/* ============================================================
   EMAIL DESIGNER — emaildesigner.css
   Prefix: ed-
   Accent: red #E8312A (email-native feel)
   ============================================================ */

/* Nohemi (variable) is declared only once, in components/base.css.
   Global tokens, reset and typography come from components/base.css:
   only this page's own tokens are declared here (never a base token). */
:root {
  --ed-accent: #E8312A;           /* product red: fills/decoration; dark text on it */
  --ed-accent-ink: #C61C15;       /* red text / fill under white text (5.87:1) */
  --ed-accent-dim: rgba(232, 49, 42, 0.12);
  --ed-accent-glow: rgba(232, 49, 42, 0.22);
  --border-dark: rgba(255, 255, 255, 0.1);
  --ed-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* on-screen movement: sheen, drag, packets */
}

body { background: var(--dark-bg); }

/* ── Container ── */
.ed-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ── Buttons ── */
.ed-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--ed-accent-ink);  /* white 5.87:1 — dark text on --ed-accent gave 4.01:1 */
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 0 28px var(--ed-accent-glow);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .ed-btn-primary:hover {
    background: #A8170F;           /* darker hover: white 7.5:1 */
    box-shadow: 0 0 48px rgba(232,49,42,0.35);
    transform: translateY(-1px);
  }
}
.ed-btn-primary--large {
  padding: 18px 40px;
  font-size: 17px;
}

.ed-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .ed-btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
  }
}
.ed-btn-ghost--cta {
  color: rgba(255,255,255,0.55);
  border: none;
  padding: 14px 8px;
}
@media (hover: hover) and (pointer: fine) { .ed-btn-ghost--cta:hover { color: #fff; background: none; transform: translateX(4px); } }
/* Press feedback: a quick dip on press that eases back on release */
.ed-btn-primary:active,
.ed-btn-ghost:active { transform: scale(0.98); transition-duration: 0.08s; }

/* ── Shared section ── */
.ed-eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ed-accent-ink);
  margin-bottom: var(--sp-2);
}
/* On dark sections the red needs its light variant (6.9:1 on --dark-bg) */
.ed-tools .ed-eyebrow,
.ed-pricing .ed-eyebrow { color: #FF8A84; }
.ed-section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.ed-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-2);
}
.ed-section-sub {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   S1 — HERO
   ============================================================ */
/* Centered copy, then the real app peeking above the fold */
.ed-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dark-bg);
}

.ed-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}
.ed-hero-glow--1 {
  top: -120px; right: -80px;
  width: 700px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,49,42,0.13) 0%, transparent 70%);
}
.ed-hero-glow--2 {
  bottom: 100px; left: -100px;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(255, 90, 31,0.08) 0%, transparent 70%);
}
.ed-hero-glow--3 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(232,49,42,0.04) 0%, transparent 65%);
}

.ed-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

/* Hero content */
.ed-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + var(--sp-6));
  padding-bottom: 0;
  max-width: 960px;
}

/* Product icon mark */
.ed-hero-icon {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-3);
}
.ed-hero-icon img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08),
    0 0 32px rgba(232, 49, 42, 0.3),
    0 8px 24px rgba(0,0,0,0.4);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}
@media (hover: hover) and (pointer: fine) {
  .ed-hero-icon:hover img {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12),
      0 0 48px rgba(232, 49, 42, 0.45),
      0 12px 32px rgba(0,0,0,0.5);
    transform: translateY(-2px);
  }
}

.ed-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  min-height: 44px;               /* it's a link: full touch target */
  background: rgba(232,49,42,0.07);
  border: 1px solid rgba(232,49,42,0.22);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: var(--sp-4);
  transition: border-color var(--transition), background var(--transition);
  letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
}
.ed-hero-badge:hover { border-color: rgba(232,49,42,0.4); background: rgba(232,49,42,0.12); color: #fff; }

.ed-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ed-accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--ed-accent);
  animation: ed-pulse 2.4s cubic-bezier(0.4,0,0.6,1) 2;   /* ends before 5 s */
}
@keyframes ed-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}

.ed-hero-headline {
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  text-wrap: balance;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.ed-hero-gradient {
  background: linear-gradient(135deg, #FF5A52 0%, var(--ed-accent) 50%, #C01F19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-hero-sub {
  font-size: 18px;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto var(--sp-4);
  text-wrap: pretty;
}

.ed-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.ed-hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted-on-dark);
}
.ed-hero-note svg { color: #4ade80; flex-shrink: 0; }

/* Product screenshot */
.ed-hero-product {
  position: relative;
  z-index: 2;
  padding: 0 var(--sp-3);
  margin-top: var(--sp-5);
  padding-bottom: var(--sp-5);        /* room for the rounded bottom corners above the stats */
}
.ed-hero-product-wrap {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-xl);    /* fully rounded card, softer against the dark hero */
  overflow: hidden;
  isolation: isolate;                 /* keeps the corner clip while layers are transformed */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(232,49,42,0.07),
    0 -20px 80px rgba(232,49,42,0.06),
    0 -60px 120px rgba(0,0,0,0.4);
  transform: perspective(1400px) rotateX(2.5deg);
  transform-origin: bottom center;
}
.ed-hero-product-wrap img { width: 100%; height: auto; display: block; }

.ed-hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--dark-bg);       /* solid: it sits over a light screenshot */
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  font-size: var(--fs-meta);
  font-weight: 550;
  color: var(--text-on-dark);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 3;
}
.ed-hero-float--compat { bottom: 32px; left: 32px; }
.ed-hero-float--compat svg { color: #FF8A84; flex-shrink: 0; }   /* red accent on the icon only */
@keyframes ed-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ============================================================
   HERO SCREENSHOT — LAYERED ASSEMBLY
   emaildesigner.js splits the collage into its ten real windows
   (one layer each, cut from the same image: no extra download)
   and drives them with scroll and pointer. At rest the layers
   reproduce the screenshot pixel for pixel.
   Without JS, or with reduced motion, the plain <img> stays.
   ============================================================ */
.ed-shot { display: none; }

.ed-hero-product-wrap.is-armed { background: #000; will-change: transform; }   /* the collage's own black */
.ed-hero-product-wrap.is-armed picture img { opacity: 0; }                     /* stays for size, alt and LCP */
.ed-hero-product-wrap.is-armed .ed-shot {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ed-shot-win {
  position: absolute;
  background-repeat: no-repeat;
  /* Rounded like a modern app window. emaildesigner.js squares the
     corners that sit on the card's edge, where the window is cropped */
  --ed-win-r: clamp(3px, 0.75vw, 9px);
  border-radius: var(--ed-win-r);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Soft red light behind the editor; its strength follows the assembly */
.ed-shot-glow {
  position: absolute;
  left: 8%;
  top: 14%;
  width: 84%;
  height: 72%;
  background: radial-gradient(closest-side, rgba(232, 49, 42, 0.22), rgba(232, 49, 42, 0.06) 55%, transparent);
  opacity: 0;
  will-change: opacity;
}

/* One pass of light across the editor once everything has landed */
.ed-shot-win--main { overflow: hidden; }
.ed-shot-win--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.10) 46%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.06) 54%, transparent 64%);
  transform: translateX(-100%);
  opacity: 0;
}
.ed-hero-product-wrap.is-assembled .ed-shot-win--main::after {
  animation: ed-sheen 1500ms var(--ed-ease-in-out) 120ms;
}
@keyframes ed-sheen {
  0%   { transform: translateX(-100%); opacity: 1; }
  100% { transform: translateX(100%);  opacity: 1; }
}

/* The floating label arrives last */
.ed-hero-product-wrap.is-armed .ed-hero-float { opacity: 0; transform: translateY(8px); }
.ed-hero-product-wrap.is-assembled .ed-hero-float {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease-out) 380ms, transform 600ms var(--ease-out) 380ms;
}

/* Stats row */
.ed-hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-dark);
}
.ed-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4) 0;
}
.ed-stat {
  display: flex;
  flex-direction: column-reverse;   /* value above the label (<dt> comes first) */
  align-items: center;
  gap: 4px;
  padding: 0 var(--sp-5);
}
.ed-stat-value {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.04em;
  color: #fff;
}
.ed-stat-label {
  font-size: var(--fs-meta);   /* lowercase text: 13px floor */
  color: var(--text-muted-on-dark);
  white-space: nowrap;
}
.ed-stat-divider {
  width: 1px; height: 40px;
  background: var(--border-dark);
  flex-shrink: 0;
}

/* ============================================================
   S3 — FEATURES (light)
   Five highlights from the official page, then real screenshots.
   ============================================================ */
.ed-features {
  background: var(--surface);
  padding: var(--sp-8) 0;
}
.ed-features .ed-section-title { color: var(--text-primary); }
.ed-features .ed-section-sub { color: var(--text-secondary); max-width: 640px; }

/* ── Highlights: one hairline panel, five columns ── */
.ed-highlights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
  margin-bottom: var(--sp-8);
}

.ed-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-4) var(--sp-3);
  background: #fff;
}

.ed-highlight-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  background: rgba(232, 49, 42, 0.08);
  color: var(--ed-accent-ink);
}

.ed-highlight-title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  color: var(--text-primary);
}

.ed-highlight-text {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Rows: copy + real screenshot, alternating ── */
.ed-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.ed-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--sp-6);
  align-items: center;
  scroll-margin-top: calc(var(--nav-height) + var(--sp-3));
}
.ed-row--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.ed-row--flip .ed-row-copy { order: 2; }

.ed-row-copy { max-width: 46ch; }

.ed-row-title {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.ed-row-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.ed-row-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 24px 64px rgba(33, 26, 20, 0.12);
}
.ed-row-frame img { display: block; width: 100%; height: auto; }


.ed-row-caption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--ed-accent);
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ============================================================
   ROW ILLUSTRATIONS — shared stage
   Drawn in HTML/CSS so they stay sharp at any size. Every size is
   in --u (1% of the frame width, container query units), so the
   whole drawing scales like an image. Narrow frames switch to a
   taller, simpler layout with a larger --u.
   Motion: emaildesigner.js arms them (.is-armed) and plays each
   once when it scrolls into view (.is-in). Without JS, or with
   reduced motion, this is the static final picture. < 5 s, no loop.
   ============================================================ */
.ed-cmp,
.ed-plat {
  container-type: inline-size;
  background: #F7F5EF;
}
.ed-cmp-stage,
.ed-plat-stage {
  --u: 1cqi;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  color: var(--text-primary);
  /* Dotted canvas, like a design tool's artboard */
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 49, 42, 0.07), transparent 60%),
    radial-gradient(circle, rgba(33, 26, 20, 0.11) 0.09cqi, transparent 0.14cqi) 0 0 / calc(var(--u) * 2.6) calc(var(--u) * 2.6);
}
.ed-cmp-stage *,
.ed-plat-stage * { box-sizing: border-box; }

/* Cards share one surface: white, hairline border, soft long shadow */
.ed-cmp-lib, .ed-cmp-email, .ed-cmp-ghost-card,
.ed-plat-app, .ed-plat-esp, .ed-plat-test {
  background: #fff;
  border: 1px solid rgba(33, 26, 20, 0.08);
  box-shadow: 0 calc(var(--u) * 0.15) calc(var(--u) * 0.4) rgba(33, 26, 20, 0.05),
              0 calc(var(--u) * 2) calc(var(--u) * 4.5) rgba(33, 26, 20, 0.09);
}

/* ============================================================
   COMPONENTS ILLUSTRATION (.ed-cmp)
   Library panel · email · the "Two columns" block being dragged
   ============================================================ */
.ed-cmp-lib {
  position: absolute;
  left: calc(var(--u) * 5);
  top: calc(var(--u) * 5.5);
  width: calc(var(--u) * 37);
  height: calc(var(--u) * 55.6);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 1.4);
  padding: calc(var(--u) * 2);
  border-radius: calc(var(--u) * 1.6);
  z-index: 2;
}
.ed-cmp-lib-head { display: flex; align-items: center; justify-content: space-between; height: calc(var(--u) * 2.6); }
.ed-cmp-lib-title { font-size: calc(var(--u) * 1.75); font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); }
.ed-cmp-tabs { display: inline-flex; padding: calc(var(--u) * 0.3); border-radius: var(--radius-pill); background: #F1EEE7; }
.ed-cmp-tabs span { padding: calc(var(--u) * 0.45) calc(var(--u) * 1); border-radius: var(--radius-pill); font-size: calc(var(--u) * 1.1); color: var(--text-secondary); }
.ed-cmp-tabs .is-on { background: #fff; color: var(--text-primary); font-weight: var(--fw-strong); box-shadow: 0 1px 2px rgba(33, 26, 20, 0.1); }
.ed-cmp-search {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.8);
  height: calc(var(--u) * 3.6);
  padding: 0 calc(var(--u) * 1.1);
  border: 1px solid rgba(33, 26, 20, 0.1);
  border-radius: calc(var(--u) * 0.9);
  font-size: calc(var(--u) * 1.25);
  color: #8F8A81;
}
.ed-cmp-search svg { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); flex: none; }

.ed-cmp-list { display: flex; flex-direction: column; gap: calc(var(--u) * 0.8); margin: 0; padding: 0; list-style: none; }
.ed-cmp-item {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.2);
  height: calc(var(--u) * 6.2);
  padding: 0 calc(var(--u) * 0.8);
  border: 1px solid transparent;
  border-radius: calc(var(--u) * 1);
}
/* The block being dragged leaves a dashed placeholder behind */
.ed-cmp-item--source { border: 1px dashed rgba(232, 49, 42, 0.5); background: rgba(232, 49, 42, 0.035); }
.ed-cmp-item--source > * { opacity: 0.4; }

.ed-cmp-name { display: flex; flex-direction: column; font-size: calc(var(--u) * 1.4); font-weight: var(--fw-strong); line-height: 1.2; white-space: nowrap; }
.ed-cmp-name small { margin-top: calc(var(--u) * 0.25); font-size: calc(var(--u) * 1.05); font-weight: var(--fw-regular); color: var(--text-secondary); }
.ed-cmp-name .ed-cmp-sym { color: var(--ed-accent-ink); font-weight: var(--fw-strong); }
.ed-cmp-sym::before {
  content: '';
  display: inline-block;
  width: calc(var(--u) * 0.6);
  height: calc(var(--u) * 0.6);
  margin-right: calc(var(--u) * 0.5);
  background: currentColor;
  transform: rotate(45deg) translateY(-15%);
}

/* Mini wireframes */
.ed-cmp-thumb {
  flex: none;
  display: flex;
  gap: calc(var(--u) * 0.4);
  width: calc(var(--u) * 7.2);
  height: calc(var(--u) * 4.6);
  padding: calc(var(--u) * 0.6);
  border-radius: calc(var(--u) * 0.6);
  background: #F1EEE7;
}
.ed-cmp-thumb i { display: block; border-radius: calc(var(--u) * 0.25); background: rgba(33, 26, 20, 0.16); }
.ed-cmp-thumb--header { align-items: center; justify-content: space-between; }
.ed-cmp-thumb--header i:first-child { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); background: var(--ed-accent); border-radius: calc(var(--u) * 0.4); }
.ed-cmp-thumb--header i:last-child { width: 50%; height: calc(var(--u) * 0.5); }
.ed-cmp-thumb--hero { flex-direction: column; }
.ed-cmp-thumb--hero i:first-child { flex: 1; background: linear-gradient(135deg, #FF9A6B, var(--ed-accent)); }
.ed-cmp-thumb--hero i:last-child { width: 60%; height: calc(var(--u) * 0.5); }
.ed-cmp-thumb--cols i { flex: 1; }
.ed-cmp-thumb--cols i:last-child { background: rgba(33, 26, 20, 0.09); }
.ed-cmp-thumb--btn { align-items: center; justify-content: center; }
.ed-cmp-thumb--btn i { width: 64%; height: calc(var(--u) * 1.5); border-radius: var(--radius-pill); background: #211A14; }
.ed-cmp-thumb--footer { align-items: center; justify-content: center; }
.ed-cmp-thumb--footer i { width: calc(var(--u) * 0.9); height: calc(var(--u) * 0.9); border-radius: 50%; background: rgba(33, 26, 20, 0.28); }

/* Email being built */
.ed-cmp-email {
  position: absolute;
  left: calc(var(--u) * 48);
  top: calc(var(--u) * 5.5);
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 55.6);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 2.2) calc(var(--u) * 2.4);
  border-radius: calc(var(--u) * 1.6);
  z-index: 1;
}
.ed-cmp-block { position: relative; display: flex; flex: none; border-radius: calc(var(--u) * 0.8); }
.ed-cmp-line { display: block; width: 100%; height: calc(var(--u) * 0.7); border-radius: var(--radius-pill); background: rgba(33, 26, 20, 0.1); }
.ed-cmp-line--title { width: 62%; height: calc(var(--u) * 1.3); background: rgba(33, 26, 20, 0.78); }
.ed-cmp-line--short { width: 55%; }

.ed-cmp-block--header { align-items: center; height: calc(var(--u) * 4.2); padding-bottom: calc(var(--u) * 1.2); border-bottom: 1px solid rgba(33, 26, 20, 0.07); border-radius: 0; }
.ed-cmp-logo { width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); border-radius: calc(var(--u) * 0.7); background: var(--ed-accent); }
.ed-cmp-nav { display: flex; gap: calc(var(--u) * 0.9); margin-left: auto; }
.ed-cmp-nav i { width: calc(var(--u) * 3); height: calc(var(--u) * 0.55); border-radius: var(--radius-pill); background: rgba(33, 26, 20, 0.16); }

.ed-cmp-block--hero { flex-direction: column; gap: calc(var(--u) * 0.9); }
.ed-cmp-hero-img {
  height: calc(var(--u) * 20.2);
  border-radius: calc(var(--u) * 0.9);
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.35) 0 calc(var(--u) * 3.2), transparent calc(var(--u) * 3.3)),
    radial-gradient(120% 90% at 10% 100%, #7A1E3A, transparent 60%),
    linear-gradient(135deg, #FFB27A, #FF6A3D 40%, var(--ed-accent) 75%);
}
.ed-cmp-btn { width: calc(var(--u) * 9); height: calc(var(--u) * 2.6); border-radius: var(--radius-pill); background: #211A14; }

/* Where the dragged block will land */
.ed-cmp-drop {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--u) * 7);
  border: 1.5px dashed rgba(232, 49, 42, 0.6);
  border-radius: calc(var(--u) * 0.8);
  background: rgba(232, 49, 42, 0.05);
}
.ed-cmp-drop-label { font-size: calc(var(--u) * 1.1); font-weight: var(--fw-strong); color: var(--ed-accent-ink); }

.ed-cmp-block--text { flex-direction: column; gap: calc(var(--u) * 0.9); }
.ed-cmp-block--footer { align-items: center; gap: calc(var(--u) * 1.6); }
.ed-cmp-social { display: flex; gap: calc(var(--u) * 0.7); }
.ed-cmp-social i { width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border-radius: 50%; background: rgba(33, 26, 20, 0.18); }

/* Symbols: selected outline + a label tab */
.ed-cmp-block--header,
.ed-cmp-block--footer { box-shadow: 0 0 0 calc(var(--u) * 0.18) rgba(232, 49, 42, 0.35); border-radius: calc(var(--u) * 0.5); }
.ed-cmp-block--header { padding: 0 calc(var(--u) * 0.8) calc(var(--u) * 1.2); }
.ed-cmp-block--footer { padding: calc(var(--u) * 0.8); }
.ed-cmp-chip {
  position: absolute;
  right: calc(var(--u) * -0.2);
  top: calc(var(--u) * -1.9);
  padding: calc(var(--u) * 0.25) calc(var(--u) * 0.7);
  border-radius: calc(var(--u) * 0.4);
  background: var(--ed-accent-ink);
  color: #fff;
  font-size: calc(var(--u) * 0.95);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

/* The block in mid-drag, crossing from the library into the email */
.ed-cmp-ghost {
  --gx: calc(var(--u) * -33);      /* back to its slot in the library */
  --gy: calc(var(--u) * -12.4);
  position: absolute;
  left: calc(var(--u) * 40);
  top: calc(var(--u) * 42.6);
  z-index: 3;
  transform: rotate(-3deg);
}
.ed-cmp-ghost-card {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.2);
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 6.2);
  padding: 0 calc(var(--u) * 0.8);
  border-color: rgba(232, 49, 42, 0.4);
  border-radius: calc(var(--u) * 1);
  box-shadow: 0 calc(var(--u) * 0.4) calc(var(--u) * 1) rgba(33, 26, 20, 0.12),
              0 calc(var(--u) * 2.6) calc(var(--u) * 5) rgba(33, 26, 20, 0.22);
}
.ed-cmp-cursor { position: absolute; right: 14%; bottom: calc(var(--u) * -1.8); width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); }

/* Narrow frames: bigger type, library in front, email peeking behind */
@container (max-width: 480px) {
  .ed-cmp-stage { --u: 1.9cqi; aspect-ratio: 1 / 1.08; }
  .ed-cmp-lib { left: calc(var(--u) * 3.2); top: calc(var(--u) * 3.4); width: calc(var(--u) * 33.7); height: calc(var(--u) * 50); }
  .ed-cmp-email { left: calc(var(--u) * 30.5); top: calc(var(--u) * 8); width: calc(var(--u) * 31.6); height: auto; bottom: calc(var(--u) * -6); }
  .ed-cmp-nav i:nth-child(n + 2) { display: none; }
  .ed-cmp-ghost { left: calc(var(--u) * 20); top: calc(var(--u) * 45); --gx: calc(var(--u) * -14.8); --gy: calc(var(--u) * -16.6); }
  .ed-cmp-ghost-card { width: calc(var(--u) * 24); }
}

/* ── Motion ── */
.ed-cmp.is-armed .ed-cmp-lib,
.ed-cmp.is-armed .ed-cmp-email { opacity: 0; transform: translateY(calc(var(--u) * 1.6)); }
.ed-cmp.is-armed .ed-cmp-item,
.ed-cmp.is-armed .ed-cmp-block,
.ed-cmp.is-armed .ed-cmp-drop { opacity: 0; transform: translateY(calc(var(--u) * 0.8)); }
.ed-cmp.is-armed .ed-cmp-item--source { border-color: transparent; background: none; }
.ed-cmp.is-armed .ed-cmp-item--source > * { opacity: 1; }
.ed-cmp.is-armed .ed-cmp-chip { opacity: 0; transform: translateY(calc(var(--u) * 0.5)) scale(0.85); }
.ed-cmp.is-armed .ed-cmp-ghost { opacity: 0; }

.ed-cmp.is-in .ed-cmp-lib,
.ed-cmp.is-in .ed-cmp-email,
.ed-cmp.is-in .ed-cmp-item,
.ed-cmp.is-in .ed-cmp-block,
.ed-cmp.is-in .ed-cmp-drop,
.ed-cmp.is-in .ed-cmp-chip { opacity: 1; transform: none; }
.ed-cmp.is-in .ed-cmp-lib { transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
.ed-cmp.is-in .ed-cmp-email { transition: opacity 600ms var(--ease-out) 120ms, transform 800ms var(--ease-out) 120ms; }
.ed-cmp.is-in .ed-cmp-item { transition: opacity 450ms var(--ease-out) var(--d), transform 600ms var(--ease-out) var(--d); }
.ed-cmp.is-in .ed-cmp-block { transition: opacity 450ms var(--ease-out) var(--d), transform 600ms var(--ease-out) var(--d); }
.ed-cmp-item:nth-child(1) { --d: 260ms; }
.ed-cmp-item:nth-child(2) { --d: 320ms; }
.ed-cmp-item:nth-child(3) { --d: 380ms; }
.ed-cmp-item:nth-child(4) { --d: 440ms; }
.ed-cmp-item:nth-child(5) { --d: 500ms; }
.ed-cmp-block--header { --d: 380ms; }
.ed-cmp-block--hero   { --d: 450ms; }
.ed-cmp-block--text   { --d: 590ms; }
.ed-cmp-block--footer { --d: 660ms; }
/* The pick-up leaves its placeholder behind */
.ed-cmp.is-in .ed-cmp-item--source { border-color: rgba(232, 49, 42, 0.5); background: rgba(232, 49, 42, 0.035); transition: opacity 450ms var(--ease-out) var(--d), transform 600ms var(--ease-out) var(--d), border-color 250ms ease 1100ms, background-color 250ms ease 1100ms; }
.ed-cmp.is-in .ed-cmp-item--source > * { opacity: 0.4; transition: opacity 250ms ease 1100ms; }
.ed-cmp.is-in .ed-cmp-ghost { animation: ed-cmp-drag 1200ms var(--ed-ease-in-out) 1000ms both; }
/* The slot opens just before the block arrives */
.ed-cmp.is-in .ed-cmp-drop { transition: opacity 300ms var(--ease-out) 1650ms, transform 400ms var(--ease-out) 1650ms; }
.ed-cmp.is-in .ed-cmp-chip { transition: opacity 300ms var(--ease-out) var(--d), transform 420ms var(--ease-bounce) var(--d); }
.ed-cmp-block--header .ed-cmp-chip { --d: 2250ms; }
.ed-cmp-block--footer .ed-cmp-chip { --d: 2350ms; }

@keyframes ed-cmp-drag {
  0%   { opacity: 0; transform: translate(var(--gx), var(--gy)) rotate(0deg) scale(1); }
  12%  { opacity: 1; transform: translate(var(--gx), var(--gy)) rotate(-1deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(-3deg); }
}

/* ============================================================
   PLATFORMS ILLUSTRATION (.ed-plat)
   Email Designer → clean HTML → your provider · tests via Gmail/SMTP
   ============================================================ */
.ed-plat-app {
  position: absolute;
  left: calc(var(--u) * 4.5);
  top: calc(var(--u) * 17);
  width: calc(var(--u) * 21);
  height: calc(var(--u) * 24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 1.3);
  border-radius: calc(var(--u) * 1.6);
}
.ed-plat-app img { width: calc(var(--u) * 6.4); height: calc(var(--u) * 6.4); border-radius: calc(var(--u) * 1.4); box-shadow: 0 calc(var(--u) * 0.8) calc(var(--u) * 2) rgba(232, 49, 42, 0.28); }
.ed-plat-app-name { font-size: calc(var(--u) * 1.55); font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); }
.ed-plat-export {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.6);
  padding: calc(var(--u) * 0.7) calc(var(--u) * 1.3);
  border-radius: var(--radius-pill);
  background: var(--ed-accent-ink);
  color: #fff;
  font-size: calc(var(--u) * 1.15);
  font-weight: var(--fw-bold);
}
.ed-plat-export svg { width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); }

/* Dashed connectors with a packet that travels once */
.ed-plat-link {
  --len: calc(var(--u) * 7);
  position: absolute;
  top: calc(var(--u) * 29);
  width: var(--len);
  height: calc(var(--u) * 0.25);
  background: repeating-linear-gradient(90deg, rgba(33, 26, 20, 0.3) 0 calc(var(--u) * 0.6), transparent 0 calc(var(--u) * 1.1));
  transform-origin: left center;
}
.ed-plat-link--1 { left: calc(var(--u) * 25.8); }
.ed-plat-link--2 { left: calc(var(--u) * 69.4); --len: calc(var(--u) * 3.8); }
.ed-plat-link i {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(var(--u) * 1.1);
  height: calc(var(--u) * 1.1);
  margin-top: calc(var(--u) * -0.55);
  border-radius: 50%;
  background: var(--ed-accent);
  box-shadow: 0 0 0 calc(var(--u) * 0.5) var(--ed-accent-dim);
  opacity: 0;
}

.ed-plat-code {
  position: absolute;
  left: calc(var(--u) * 32.8);
  top: calc(var(--u) * 15.5);
  width: calc(var(--u) * 36.6);
  height: calc(var(--u) * 27);
  overflow: hidden;
  border-radius: calc(var(--u) * 1.6);
  background: #1B1611;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 calc(var(--u) * 0.4) calc(var(--u) * 1) rgba(33, 26, 20, 0.18),
              0 calc(var(--u) * 3) calc(var(--u) * 6) rgba(33, 26, 20, 0.28);
}
.ed-plat-code-bar {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.6);
  height: calc(var(--u) * 3.2);
  padding: 0 calc(var(--u) * 1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ed-plat-code-bar span { width: calc(var(--u) * 0.9); height: calc(var(--u) * 0.9); border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.ed-plat-code-bar b { margin-left: calc(var(--u) * 0.9); font-family: var(--font-mono); font-size: calc(var(--u) * 1.05); font-weight: var(--fw-regular); color: var(--text-muted-on-dark); }
.ed-plat-code-body {
  display: flex;
  flex-direction: column;
  padding: calc(var(--u) * 1.5) calc(var(--u) * 1.8);
  font-family: var(--font-mono);
  font-size: calc(var(--u) * 1.08);
  line-height: calc(var(--u) * 2.2);
  color: rgba(242, 240, 237, 0.88);
  white-space: nowrap;
}
.ed-plat-ln { display: block; }
.ed-plat-ln--1 { padding-left: calc(var(--u) * 1.6); }
.ed-plat-ln--2 { padding-left: calc(var(--u) * 3.2); }
.ed-plat-ln--3 { padding-left: calc(var(--u) * 4.8); }
.ed-plat-ln em { font-style: normal; color: #FF8A84; }
.ed-plat-ln u  { text-decoration: none; color: var(--amber-on-dark); }
.ed-plat-ln q  { quotes: none; color: var(--mint-on-dark); }

.ed-plat-esps {
  position: absolute;
  left: calc(var(--u) * 73.2);
  top: calc(var(--u) * 11.4);
  width: calc(var(--u) * 22.3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 1.2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-plat-esp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  height: calc(var(--u) * 8);
  padding: 0 calc(var(--u) * 1.6);
  border-radius: calc(var(--u) * 1.2);
}
.ed-plat-esp svg {
  flex: none;
  width: calc(var(--u) * 2.2);
  height: calc(var(--u) * 2.2);
  padding: calc(var(--u) * 0.4);
  border-radius: 50%;
  background: rgba(0, 134, 108, 0.12);
  color: var(--mint-solid);
}
/* Logos cut from the providers sprite (800 × 250) */
.ed-plat-logo {
  display: block;
  flex: none;                  /* never squeezed: the crop is relative to its own box */
  background: url("/assets-coffeecup-website/email-designer-assets/RED-mail-services-logos.png") no-repeat;
}
.ed-plat-logo--et { width: calc(var(--u) * 11.9); height: calc(var(--u) * 2.2);  background-size: 268.46% 454.55%; background-position: 1.195% 4.103%; }
.ed-plat-logo--mc { width: calc(var(--u) * 11.3); height: calc(var(--u) * 2.8);  background-size: 247.68% 312.5%;  background-position: 91.61% 2.941%; }
.ed-plat-logo--cc { width: calc(var(--u) * 4.6);  height: calc(var(--u) * 4.64); background-size: 645.16% 200%;    background-position: 9.024% 97.6%; }
.ed-plat-logo--cm { width: calc(var(--u) * 14.6); height: calc(var(--u) * 1.5);  background-size: 174.29% 531.91%; background-position: 96.77% 93.1%; }

.ed-plat-test {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 9.5);
  translate: -50% 0;                    /* the transform property is left free for motion */
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.8);
  padding: calc(var(--u) * 0.9) calc(var(--u) * 1.6);
  border-radius: var(--radius-pill);
  font-size: calc(var(--u) * 1.2);
  color: var(--text-secondary);
  white-space: nowrap;
}
.ed-plat-test b { font-weight: var(--fw-bold); color: var(--text-primary); }
.ed-plat-test svg { flex: none; width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.4); color: var(--ed-accent-ink); }

/* Narrow frames: the same flow, top to bottom */
@container (max-width: 480px) {
  .ed-plat-stage { --u: 1.9cqi; aspect-ratio: 1 / 1.52; }
  .ed-plat-app { left: calc(var(--u) * 11.3); top: calc(var(--u) * 3); width: calc(var(--u) * 30); height: calc(var(--u) * 18.5); }
  .ed-plat-link {
    --len: calc(var(--u) * 4);
    left: calc(var(--u) * 26.2);
    top: calc(var(--u) * 21.9);
    width: calc(var(--u) * 0.25);
    height: var(--len);
    background: repeating-linear-gradient(180deg, rgba(33, 26, 20, 0.3) 0 calc(var(--u) * 0.6), transparent 0 calc(var(--u) * 1.1));
    transform-origin: center top;
  }
  .ed-plat-link--2 { left: calc(var(--u) * 26.2); top: calc(var(--u) * 52.3); --len: calc(var(--u) * 3.6); }
  .ed-plat-link i { left: 50%; top: 0; margin: 0 0 0 calc(var(--u) * -0.55); }
  .ed-plat-code { left: calc(var(--u) * 4); top: calc(var(--u) * 26); width: calc(var(--u) * 44.6); height: calc(var(--u) * 26.2); }
  .ed-plat-esps { left: calc(var(--u) * 4); top: calc(var(--u) * 56); width: calc(var(--u) * 44.6); display: grid; grid-template-columns: 1fr 1fr; }
  .ed-plat-esp { height: calc(var(--u) * 7); padding: 0 calc(var(--u) * 1.2); }
  .ed-plat-esp svg { width: calc(var(--u) * 1.9); height: calc(var(--u) * 1.9); }
  .ed-plat-logo--et { width: calc(var(--u) * 13.5); height: calc(var(--u) * 2.5); }
  .ed-plat-logo--mc { width: calc(var(--u) * 12.9); height: calc(var(--u) * 3.2); }
  .ed-plat-logo--cc { width: calc(var(--u) * 4.4);  height: calc(var(--u) * 4.44); }
  .ed-plat-logo--cm { width: calc(var(--u) * 15.6); height: calc(var(--u) * 1.6); }
  .ed-plat-test { bottom: calc(var(--u) * 2.6); font-size: calc(var(--u) * 1.15); }
}

/* ── Motion ── */
.ed-plat.is-armed .ed-plat-app,
.ed-plat.is-armed .ed-plat-code,
.ed-plat.is-armed .ed-plat-test { opacity: 0; transform: translateY(calc(var(--u) * 1.4)); }
.ed-plat.is-armed .ed-plat-link { transform: scaleX(0); }
.ed-plat.is-armed .ed-plat-ln { clip-path: inset(0 100% 0 0); }
.ed-plat.is-armed .ed-plat-esp { opacity: 0; transform: translateX(calc(var(--u) * 1.2)); }
.ed-plat.is-armed .ed-plat-esp svg { opacity: 0; transform: scale(0.5); }

.ed-plat.is-in .ed-plat-app,
.ed-plat.is-in .ed-plat-code,
.ed-plat.is-in .ed-plat-test,
.ed-plat.is-in .ed-plat-esp,
.ed-plat.is-in .ed-plat-esp svg { opacity: 1; transform: none; }
.ed-plat.is-in .ed-plat-link { transform: none; }
.ed-plat.is-in .ed-plat-ln { clip-path: inset(0 0 0 0); }

.ed-plat.is-in .ed-plat-app  { transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
.ed-plat.is-in .ed-plat-export { animation: ed-plat-press 380ms var(--ease-out) 560ms; }
.ed-plat.is-in .ed-plat-link--1 { transition: transform 380ms var(--ease-out) 720ms; }
.ed-plat.is-in .ed-plat-link--1 i { animation: ed-plat-packet 620ms var(--ed-ease-in-out) 760ms; }
.ed-plat.is-in .ed-plat-code { transition: opacity 600ms var(--ease-out) 860ms, transform 800ms var(--ease-out) 860ms; }
/* The code types itself in, line by line */
.ed-plat.is-in .ed-plat-ln { transition: clip-path 300ms steps(14, end) var(--d); }
.ed-plat-ln:nth-child(1) { --d: 1080ms; }
.ed-plat-ln:nth-child(2) { --d: 1190ms; }
.ed-plat-ln:nth-child(3) { --d: 1300ms; }
.ed-plat-ln:nth-child(4) { --d: 1410ms; }
.ed-plat-ln:nth-child(5) { --d: 1520ms; }
.ed-plat-ln:nth-child(6) { --d: 1630ms; }
.ed-plat-ln:nth-child(7) { --d: 1740ms; }
.ed-plat-ln:nth-child(8) { --d: 1850ms; }
.ed-plat-ln:nth-child(9) { --d: 1960ms; }
.ed-plat.is-in .ed-plat-link--2 { transition: transform 300ms var(--ease-out) 2220ms; }
.ed-plat.is-in .ed-plat-link--2 i { animation: ed-plat-packet 520ms var(--ed-ease-in-out) 2260ms; }
/* Each provider lights up as the code reaches it */
.ed-plat.is-in .ed-plat-esp { transition: opacity 450ms var(--ease-out) var(--d), transform 600ms var(--ease-out) var(--d); }
.ed-plat.is-in .ed-plat-esp svg { transition: opacity 250ms var(--ease-out) calc(var(--d) + 200ms), transform 450ms var(--ease-bounce) calc(var(--d) + 200ms); }
.ed-plat-esp:nth-child(1) { --d: 2480ms; }
.ed-plat-esp:nth-child(2) { --d: 2600ms; }
.ed-plat-esp:nth-child(3) { --d: 2720ms; }
.ed-plat-esp:nth-child(4) { --d: 2840ms; }
.ed-plat.is-in .ed-plat-test { transition: opacity 500ms var(--ease-out) 3250ms, transform 700ms var(--ease-out) 3250ms; }

@keyframes ed-plat-press {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(0.93); }
}
@keyframes ed-plat-packet {
  0%   { opacity: 0; transform: translateX(0); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(var(--len) - var(--u) * 1.1)); }
}
@keyframes ed-plat-packet-y {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--len) - var(--u) * 1.1)); }
}
/* Narrow frames: the connectors are vertical */
@container (max-width: 480px) {
  .ed-plat.is-armed .ed-plat-link { transform: scaleY(0); }
  .ed-plat.is-in .ed-plat-link { transform: none; }      /* must follow the armed rule */
  .ed-plat.is-in .ed-plat-link--1 i,
  .ed-plat.is-in .ed-plat-link--2 i { animation-name: ed-plat-packet-y; }
}

/* ============================================================
   S4 — TOOLS (dark): feature tabs + official videos.
   Same component as the Site Designer page (ds-feat-*).
   ============================================================ */
.ed-tools {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
}
.ed-tools::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(232, 49, 42, 0.14) 0%, rgba(232, 49, 42, 0) 65%);
  pointer-events: none;
}
.ed-tools .ed-container { position: relative; z-index: 1; }

.ed-eyebrow--light { color: #FF8A84; }              /* 6.9:1 on --dark-bg */
.ed-section-title--light { color: var(--text-on-dark); }
.ed-section-sub--light { color: var(--text-muted-on-dark); }

/* Tool tabs + video: shared component (components/feature-tabs.css) */

/* ============================================================
   S5 — BE RESPONSIVE (interactive demo)
   A dark "canvas" stage on the light section. The sample email
   is a size container: its columns stack below 600px of FRAME
   width (container query), whatever the window size.
   ============================================================ */
.ed-resp {
  padding: var(--sp-8) 0;
  background: var(--surface);
  color: var(--text-primary);
}

/* ── Head: copy + the official stat ── */
.ed-resp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-7);
  align-items: end;
  margin-bottom: var(--sp-5);
}
.ed-resp .ed-eyebrow { color: var(--ed-accent-ink); }

.ed-resp-title {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-h1);
  line-height: 1.04;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}

.ed-resp-lead {
  max-width: 58ch;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.ed-resp-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-4);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 16px 48px rgba(33, 26, 20, 0.06);
}
.ed-resp-stat-value {
  font-size: clamp(56px, 6vw, 80px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 0.95;
  color: var(--ed-accent-ink);
}
.ed-resp-stat-label {
  max-width: 24ch;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ── Stage ── */
.ed-resp-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--dark-bg);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.06), 0 40px 100px rgba(33, 26, 20, 0.22);
  color: var(--text-on-dark);
  --focus-ring: var(--primary-on-dark);
}

.ed-resp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px var(--sp-3);
  padding: 14px var(--sp-3);
  border-bottom: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
}

.ed-resp-presets {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
}

.ed-resp-preset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted-on-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: background var(--transition), color var(--transition);
}
.ed-resp-preset:hover { color: var(--text-on-dark); }
.ed-resp-preset[aria-pressed="true"] { background: var(--text-on-dark); color: var(--dark-bg); }

.ed-resp-readout {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}
.ed-resp-width {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}

/* Canvas: dotted grid, like a design tool's artboard */
.ed-resp-canvas {
  position: relative;
  padding: var(--sp-5) var(--sp-4);
  background-color: #1C1712;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* The resizable "viewport". Without JS: native CSS resize handle. */
.ed-resp-frame {
  position: relative;
  width: 100%;
  min-width: 300px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  resize: horizontal;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5);
  height: clamp(440px, 64vh, 620px);   /* a fixed preview: the email scrolls inside */
  container-type: inline-size;
  transition: width 0.45s var(--ease-out);
}

.ed-resp-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
  scrollbar-width: thin;
}
/* The preview scrolls inside, and phones show no scrollbar: a soft
   fade at the bottom says "more below" instead of a line sliced in
   half. The spacer lets the email's last line clear the fade. */
.ed-resp-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}
.ed-resp-scroll::after { content: ''; display: block; height: 40px; }
/* Enhanced: the frame keeps its REAL width (so the email lays out for
   that width) and is scaled down to fit when the canvas is narrower —
   like a device preview's zoom. The fit box reserves the scaled height. */
.ed-resp-stage.is-enhanced .ed-resp-fit {
  position: relative;
  height: var(--fit-h, 560px);
}
.ed-resp-stage.is-enhanced .ed-resp-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--frame-w, 100%);
  max-width: none;
  min-width: 0;
  resize: none;
  transform: translateX(-50%) scale(var(--frame-s, 1));
  transform-origin: top center;
  transition: width 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.ed-resp-stage.is-dragging .ed-resp-frame,
.ed-resp-stage.is-dragging .ed-resp-handle { transition: none; }

/* Drag handle on the right edge */
.ed-resp-handle {
  position: absolute;
  top: calc(var(--fit-h, 560px) / 2);
  left: calc(50% + var(--frame-ws, 0px) / 2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
  border: none;
  background: none;
  cursor: ew-resize;
  transform: translate(-50%, -50%);
  touch-action: none;
  transition: left 0.45s var(--ease-out);
}
.ed-resp-handle span {
  width: 10px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--ed-accent);
  box-shadow: 0 0 0 4px rgba(232, 49, 42, 0.25), 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ed-resp-stage.is-dragging .ed-resp-handle span { transform: scaleX(1.2); box-shadow: 0 0 0 6px rgba(232, 49, 42, 0.3), 0 6px 18px rgba(0, 0, 0, 0.4); }
@media (hover: hover) and (pointer: fine) { .ed-resp-handle:hover span { transform: scaleX(1.2); box-shadow: 0 0 0 6px rgba(232, 49, 42, 0.3), 0 6px 18px rgba(0, 0, 0, 0.4); } }

.ed-resp-note {
  padding: 14px var(--sp-3);
  border-top: 1px solid var(--border-dark);
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: var(--text-muted-on-dark);
}

/* ── The sample email (inside the frame, email-client typography) ── */
.ed-mail {
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  color: #3A2E2A;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.ed-mail-pre {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;     /* Georgia ships a real italic */
  color: #8C6F66;
}

.ed-mail-mast {
  margin: 0 24px;
  padding: 18px 0;
  border-top: 1px solid #E6D8D3;
  border-bottom: 1px solid #E6D8D3;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  color: #B3243A;
  text-align: center;
}

.ed-mail-banner { display: block; width: 100%; height: auto; margin-top: 20px; }

.ed-mail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #FDF4F1;
}
.ed-mail-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-mail-text { padding: 28px; }
.ed-mail-h {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A1D17;
}
.ed-mail-text p { margin-bottom: 18px; color: #6B4A42; }
.ed-mail-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  background: #B3243A;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ed-mail-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #EADBD6;
  border-top: 1px solid #EADBD6;
}
.ed-mail-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 24px;
  background: #fff;
}
.ed-mail-col strong { font-size: 15px; color: #3A2E2A; }
.ed-mail-col span { font-size: 13px; color: #B3243A; text-decoration: underline; }

.ed-mail-foot {
  padding: 16px 24px;
  background: #F5EEEB;
  font-size: 12px;
  color: #6F5E58;
  text-align: center;
}

/* The breakpoint: columns stack below 600px of frame width */
@container (max-width: 599px) {
  .ed-mail-row,
  .ed-mail-cols { grid-template-columns: 1fr; }
  .ed-mail-photo { height: auto; }
  .ed-mail-text { padding: 22px 20px; }
  .ed-mail-mast { font-size: 24px; margin: 0 16px; }
  .ed-mail-pre { padding: 10px 16px; }
  .ed-mail-pre span:last-child { display: none; }
  .ed-mail-col { padding: 14px 20px; }
}

/* ── Points below the stage ── */
.ed-resp-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5);
}
.ed-resp-point { padding-top: var(--sp-3); border-top: 1px solid var(--border-strong); }
.ed-resp-point-title {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.ed-resp-point p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.ed-resp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ed-resp-checks li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-primary); }
.ed-resp-checks svg { color: var(--ed-accent-ink); flex-shrink: 0; }

/* ============================================================
   S6 — PRICING
   ============================================================ */
.ed-pricing {
  background: var(--dark-bg);
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}
.ed-pricing::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,49,42,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ed-pricing-compare {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: 14px;
  color: var(--text-muted-on-dark);
}

/* ============================================================
   S8 — FAQ (canonical — identical to index.html)
   ============================================================ */
.ed-faq {
  background: var(--surface);
  padding: var(--sp-8) 0;
}
.ed-faq .ed-section-title { color: var(--text-primary); }
.ed-faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   S9 — CTA FINAL
   ============================================================ */
.ed-cta-final {
  background: var(--dark-bg);
  padding: var(--sp-8) 0 calc(var(--sp-8) + 32px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
}

.ed-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(232,49,42,0.1) 0%, rgba(255, 90, 31,0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(70px);
}

.ed-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.ed-cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
}
.ed-cta-sub {
  font-size: 18px;
  color: var(--text-muted-on-dark);
  max-width: 520px;
  line-height: 1.6;
}
.ed-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-1);
}
.ed-cta-note {
  font-size: 13px;
  color: var(--text-muted-on-dark);
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Mobile spacing tokens ── */
@media (max-width: 768px) {
  :root { --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px; }
}
@media (max-width: 480px) {
  :root { --sp-4: 24px; --sp-5: 24px; --sp-6: 36px; --sp-7: 48px; --sp-8: 64px; }
}

@media (max-width: 1024px) {
  .ed-hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--nav-height) + var(--sp-6)); }
  .ed-stats-grid { flex-wrap: wrap; gap: var(--sp-4); }
  .ed-stat { padding: 0 var(--sp-3); }
  .ed-stat-divider { display: none; }
  .ed-resp-head { grid-template-columns: minmax(0, 1fr); }
  .ed-resp-stat { flex-direction: row; align-items: center; gap: var(--sp-3); }
  .ed-resp-points { grid-template-columns: minmax(0, 1fr); }
  .ed-resp-canvas { padding: var(--sp-4) 14px; }
  .ed-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-row,
  .ed-row--flip { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .ed-row--flip .ed-row-copy { order: 0; }
  .ed-row-copy { max-width: 62ch; }
  
}

@media (max-width: 768px) {
  .ed-hero-headline { font-size: 40px; }
  .ed-section-title { font-size: 26px; }
  .ed-cta-title { font-size: 32px; }
  .ed-cta-actions { flex-direction: column; align-items: stretch; }
  .ed-btn-primary--large,
  .ed-btn-ghost--cta { text-align: center; justify-content: center; }   /* stretched: keep the label centred */
}

@media (max-width: 640px) {
  .ed-container { padding: 0 var(--sp-3); }   /* same 24px gutter as the rest of the site */

  /* Hero mobile layout */
  .ed-hero-inner { align-items: center; text-align: center; padding-top: calc(var(--nav-height) + var(--sp-4)); }
  .ed-hero-sub { margin: 0 auto var(--sp-4); }   /* keeps its gap above the buttons */
  .ed-hero-note { justify-content: center; }
  .ed-hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .ed-hero-ctas .ed-btn-primary,
  .ed-hero-ctas .ed-btn-ghost { width: 100%; justify-content: center; }

  /* Icon — larger & prominent on mobile */
  .ed-hero-icon img { width: 72px; height: 72px; border-radius: 20px; }

  /* The real app stays visible on mobile; the floating label would cover it */
  .ed-hero-float { display: none; }
  .ed-highlights { grid-template-columns: minmax(0, 1fr); }
  .ed-highlight {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px var(--sp-2);
  }
  .ed-highlight-icon { grid-row: span 2; margin: 0; }
}

/* ── Plan icon image (formerly an inline style) ── */

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ed-resp-stage.is-enhanced .ed-resp-frame,
  .ed-resp-handle,
  .ed-resp-frame,
  .ed-resp-handle span { transition: none; }
}

.ed-nowrap { white-space: nowrap; }

/* Narrow phones: the three presets share the toolbar width */
@media (max-width: 420px) {
  .ed-resp-toolbar { padding: 12px; }
  .ed-resp-presets { display: flex; width: 100%; }
  .ed-resp-preset { flex: 1; justify-content: center; gap: 6px; padding: 0 6px; font-size: var(--fs-meta); }
}

/* Super Pack icon: a 2×2 mosaic of the real app icons (packs-assets/superpack-icon).
   It carries its own color, so the box drops its tint, border and padding. */

