/* ============================================================
   TrueMetriks - Home page styles
   Modeled on the Attribux landing reference. All colors via
   tokens; supports light + dark themes.
   ============================================================ */

/* --- SECTION PRIMITIVES ---------------------------------- */
.home section { padding: 56px 0; position: relative; }
.eyebrow {
  display: inline-block;
  color: var(--color-eyebrow);
  font-size: var(--font-size-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}
.home h2 {
  font-size: clamp(37px, 4vw, 53px);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}
.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: 21px;
  margin: 0;
}
.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* In dark mode the brand gradient (#2233FF -> #5C82FF) blends into the
   blue-violet body bg. Override with the warm amber accent so the
   highlighted headline phrase pops clearly off the dark wash and matches
   the eyebrow color treatment. Trial 2026-05-12. */
[data-theme="dark"] .grad-text {
  background: linear-gradient(135deg, var(--color-accent-amber) 0%, var(--color-accent-amber-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.mono { font-family: var(--font-family-mono); }

/* --- HERO -------------------------------------------------- */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--gradient-brand-glow);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* Mobile menu open: pin the header to the viewport top so the hamburger stays
   reachable to close the menu (position:sticky scrolls out of reach here
   because html/body use overflow-x:clip), and lock page scroll. Toggled by
   main.js adding .nav-open to <html>. */
html.nav-open .site-nav { position: fixed; top: 0; left: 0; right: 0; }
html.nav-open, html.nav-open body { overflow: hidden; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand-soft);
  border: 1px solid var(--color-border-strong);
  font-size: var(--font-size-xs);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-extra);
}
.lede {
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 20px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
/* Top hero only: give both CTAs the same width (the wider primary drives it)
   so "Try the live demo" matches "Start 14-day free trial" instead of sitting
   narrower. The <=768px rule below already makes hero buttons full-width +
   stacked, so this floor only applies on desktop. */
.hero .hero-cta .btn { min-width: 285px; }

/* Reusable CTA band repeated in the periwinkle gap at the bottom of each
   homepage section. Same two equal-width CTAs as the hero (gradient primary +
   raised white "live demo") plus the no-credit-card reassurance line. */
.cta-band { text-align: center; margin-top: 44px; }
.cta-band__btns { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.cta-band__btns .btn { min-width: 285px; }
.cta-band__meta { margin-top: var(--space-4); color: var(--color-text-muted); font-size: 16px; }
@media (max-width: 768px) {
  .cta-band__btns { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .cta-band__btns .btn { width: 100%; }
}
.btn-grad {
  background: var(--gradient-brand);
  color: var(--color-text-on-brand);
  box-shadow: var(--shadow-brand);
  border-color: transparent;
}
.btn-grad:hover {
  transform: translateY(-1px);
  color: var(--color-text-on-brand);
}
/* Hero-only amber CTA: warm contrast against the periwinkle (light) / navy
   (dark) wash. Dark navy text on amber for WCAG AA contrast. Other primary
   CTAs across the homepage stay brand-blue. */
.btn-amber-grad {
  background: var(--gradient-amber);
  color: var(--color-brand-deep);
  box-shadow: var(--shadow-amber);
  border-color: transparent;
  font-weight: var(--font-weight-bold);
}
.btn-amber-grad:hover {
  transform: translateY(-1px);
  color: var(--color-brand-deep);
}
/* Secondary "Try the live demo" CTA: a real raised white button - clearly a
   button (solid fill + depth) and clearly secondary to the gradient primary.
   Stays white with navy text in BOTH themes (like the site's white cards), so
   it reads identically on either background. */
.btn-light {
  background: #ffffff;
  color: var(--color-brand-deep);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 1px 2px rgba(20, 30, 90, 0.06), 0 10px 22px -8px rgba(20, 30, 90, 0.22);
}
.btn-light:hover {
  background: #ffffff;
  color: var(--color-brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(20, 30, 90, 0.08), 0 14px 28px -8px rgba(20, 30, 90, 0.26);
}
/* Keep white bg + navy text in dark mode - the global dark-mode `.btn:hover`
   rule (components.css) would otherwise repaint the label near-white = invisible
   on the white button. Equal specificity, but home.css loads later so this wins. */
[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-light:hover { background: #ffffff; color: var(--color-brand-deep); }
.hero-meta {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: 16px;
}

/* --- HERO - extension overlay stage ----------------------- */
/* Row/header heights drive both the native rows and the TM toolbar/header
   so the overlay strips line up flush over the browser chrome (no gap). */
.stage {
  --rowh: 38px;
  --headh: 42px;
  position: relative;
  max-width: 920px;
  margin: var(--space-6) auto 0;
}
.stage .browser {
  position: relative;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-brand);
}

/* Native browser chrome strip - height matches the TM toolbar so the toolbar
   fully covers it (no light sliver / gap). */
.stage .chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--headh);
  padding: 0 14px;
  background: var(--surface-tint-2);
  border-bottom: 1px solid var(--color-border);
}
.stage .cd { width: 11px; height: 11px; border-radius: var(--radius-full); }
.stage .url {
  margin-left: var(--space-3);
  font: 12px/1 var(--font-family-base);
  color: var(--color-text-subtle);
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 6px 12px;
}

.stage .native { padding: 0; }
.stage .row {
  display: grid;
  grid-template-columns: 46px 1fr 90px 120px;
  align-items: center;
  height: var(--rowh);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.stage .row.head {
  height: var(--headh);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
  font-weight: var(--font-weight-semibold);
  border-top: none;
  background: var(--surface-tint-2);
}
.stage .row .c { padding: 0 10px; text-align: right; }
.stage .row .c.l { text-align: left; display: flex; align-items: center; gap: var(--space-2); }
.stage .toggle {
  width: 26px;
  height: 15px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  position: relative;
  margin: 0 auto;
}
.stage .toggle:after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: var(--radius-full);
  background: var(--surface-tint-1);
}
.stage .thumb {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface-tint-3), var(--color-brand-2));
  flex: none;
}
.stage .adname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* TM extension toolbar - slides DOWN, height == chrome so it fully covers it.
   Navy strip is a fixed dark surface (literal, intentional) in both themes. */
.stage .tmbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--headh);
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease-out);
  background: #0c1330; /* fixed navy toolbar; literal preserved intentionally */
  color: #cdd8ff;      /* periwinkle-on-navy label; literal preserved intentionally */
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  font-size: 11px;
  z-index: 6;
}
.stage .tmbar .b { font-weight: var(--font-weight-extra); color: #fff; letter-spacing: -0.01em; font-size: 12.5px; }
.stage .tmbar .chip { color: #9fb0e6; } /* navy-toolbar text; literal preserved */
.stage .tmbar .chip b { color: #fff; font-weight: var(--font-weight-semibold); }
.stage .tmbar .site { margin-left: auto; color: #9fb0e6; }
.stage .tmbar .site b { color: #fff; }

/* TM columns panel - opaque, slides in from right. Sits ABOVE the chrome
   (top:0 of browser) so its navy header connects FLUSH to the toolbar. */
.stage .tmcols {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 470px;
  transform: translateX(108%);
  transition: transform 0.55s var(--ease-out);
  /* The TM overlay is dark in the real product, so the whole panel is navy here
     (the native FB/Google table underneath stays light - our extension columns
     are the dark surface that "overlays" on top). Literal navy preserved
     intentionally, same as the toolbar/header. */
  background: #0c1330;
  border-left: 2px solid var(--color-brand);
  z-index: 5;
  box-shadow: -14px 0 26px -14px rgba(20, 30, 90, 0.30);
}
.stage .trow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: var(--rowh);
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* faint divider on navy */
  font-size: 14px;
  background: #0c1330; /* dark overlay rows */
}
/* Header connects to the toolbar: same navy band, white labels. */
.stage .trow.head {
  height: var(--headh);
  border-top: none;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff; /* white labels on the navy strip; literal preserved */
  font-weight: var(--font-weight-bold);
  background: #0c1330; /* fixed navy header; literal preserved intentionally */
}
/* Light numbers on the navy overlay (Spend / Revenue / Sales). ROAS and Profit
   override with semantic green/red below. */
.stage .trow .c { padding: 0 10px; text-align: right; color: #e4e9ff; font-weight: var(--font-weight-semibold); }
.stage .roas { font-weight: var(--font-weight-extra); }
/* ROAS + Profit share the per-row pos/neg flag: green when the campaign is
   profitable, red at break-even/loss (e.g. 0.00x ROAS, negative profit).
   Brightened literals so they read clearly on the navy panel. */
.stage .pos { color: #34D399; font-weight: var(--font-weight-bold); }
.stage .neg { color: #FB7185; font-weight: var(--font-weight-bold); }

.stage.reveal .tmbar { transform: translateY(0); }
.stage.reveal .tmcols { transform: translateX(0); }

.stage .deck { position: relative; }
.stage .panel { transition: opacity 0.5s ease; }
.stage .panel.hidden { opacity: 0; position: absolute; inset: 0; pointer-events: none; }

.stage-caption {
  margin-top: var(--space-4);
  font-size: 16px;
  color: var(--color-text-subtle);
  min-height: 18px;
}
.stage-caption b { color: var(--color-text); }

.hero-loss {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-top: var(--space-4);
}

@media (max-width: 760px) {
  .stage .tmcols { width: 66%; }
}

@media (prefers-reduced-motion: reduce) {
  /* JS leaves the stage in the revealed state (base .stage.reveal rules
     above already set the transforms); here we only kill the transitions. */
  .stage .tmbar, .stage .tmcols { transition: none; }
}

/* --- HERO: MOBILE TUNING ---------------------------------- */
@media (max-width: 768px) {
  /* Tighten the gap between the sticky nav and the "New ..." pill.
     Must out-specify `.home section { padding: var(--space-9) 0 }` (0,1,1)
     above, so target `.home .hero` (0,2,0) - a plain `.hero` (0,1,0) loses. */
  .home .hero { padding-top: 20px; }
  /* Lede paragraph: one pixel smaller than desktop (18 -> 17). */
  .lede { font-size: 17px; }
  /* Stack the CTAs full-width so all three buttons match in size. */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .hero-cta .btn { width: 100%; }
}

/* --- HERO MOCKUP: PHONE LAYOUT ---------------------------------
   On phones the desktop browser-mockup table (4 native columns ~399px +
   a 5-column overlay ~308px) is far wider than the ~342px browser, so the
   native Cost column clips off the right edge and the overlay's Profit/Sales
   columns run off-screen. Here we (1) tighten the native table so all 4
   columns fit with no clipping, (2) reduce the overlay to the 3 columns the
   caption promises - ROAS, Revenue & Profit (Spend + Sales hidden) - and
   widen its panel, and (3) trim the TM toolbar to brand + Attribution so it
   stays on one line. Rules are `.home`-scoped so they beat the later plain
   `.stage` overrides (var + cell rules) regardless of source order. */
@media (max-width: 600px) {
  .home .stage { --rowh: 40px; --headh: 44px; }

  /* Native FB/Google table - fits all 4 columns, no horizontal clip */
  .home .stage .row {
    grid-template-columns: 34px minmax(0, 1fr) 48px 80px;
    font-size: 11px;
  }
  .home .stage .row.head { font-size: 9.5px; }
  .home .stage .row .c { padding: 0 6px; }
  .home .stage .row .c.l { gap: 6px; }
  .home .stage .thumb { width: 18px; height: 18px; }
  .home .stage .adname { font-size: 11px; }

  /* TM overlay - only ROAS / Revenue / Profit; wider panel for breathing room */
  .home .stage .tmcols { width: 72%; }
  .home .stage .trow { grid-template-columns: repeat(3, 1fr); font-size: 13px; }
  .home .stage .trow.head { font-size: 10.5px; }
  .home .stage .trow .c { padding: 0 7px; }
  .home .stage .trow .c:nth-child(2),  /* Spend  */
  .home .stage .trow .c:nth-child(5) { /* Sales  */
    display: none;
  }

  /* TM toolbar - brand + Attribution only, one line (hide Audience/Columns/Site) */
  .home .stage .tmbar { gap: 8px; font-size: 10px; padding: 0 12px; }
  .home .stage .tmbar .chip ~ .chip,
  .home .stage .tmbar .site { display: none; }
}

/* --- CLIENTS MARQUEE -------------------------------------- */
.logos { padding: var(--space-8) 0 var(--space-7); text-align: center; }
.clients-title {
  color: var(--color-text);
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-6);
  font-weight: var(--font-weight-bold);
}
/* Full-bleed river of logo cards. The track holds two identical sets; the
   animation slides it left by exactly one set (-50%) and loops seamlessly.
   Each chip uses margin-right (not flex gap) so the two halves are identical
   in width - gap would desync the loop. */
.marquee {
  position: relative;
  width: min(100% - 32px, calc(var(--container-wide) + 80px));
  margin-inline: auto;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: clients-marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto;
  width: 200px;
  height: 104px;
  margin-right: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 20, 60, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
}
.logo-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --- THE TRUE JOURNEY (multi-touch attribution) -----------
   All classes scoped `jny-` to avoid collisions with the hero
   .stage / global .pill / .dot / .tag that share home.css. The
   figure walks the lower lane; the four stop labels are permanent
   above their icons - the active state only lifts pill + node. */
.jny-stage {
  position: relative;
  height: 230px;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 48px -30px rgba(20, 30, 90, 0.4);
  margin-bottom: 18px;
}

/* persistent labels + icons */
.jny-stop {
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  text-align: center;
  width: 150px;
}
.jny-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  line-height: 1.25;
  border: 1px solid var(--color-border);
  background: var(--surface-tint-1);
  color: var(--color-text);
  box-shadow: 0 6px 14px -10px rgba(20, 30, 90, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.jny-pill.jny-bad {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #b42318; /* darker red for AA contrast on pale red tint */
}
.jny-pill.jny-good {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #0f7a55; /* darker green for AA contrast on pale green tint */
}
.jny-day {
  display: block;
  font-size: 9px;
  font-weight: var(--font-weight-extra);
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.jny-node {
  /* Absolutely pinned to a fixed lane so every icon lines up on ONE row,
     no matter how many lines its label pill wraps to (1-line "Opened your
     email" vs 2-line "Clicked the Facebook ad" used to push nodes to
     different heights). */
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-extra);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}
.jny-fb   { background: #1877F2; }                                  /* #1877F2 = Facebook brand blue */
.jny-gg   { background: #fff; border: 1px solid #e2e2e2; }          /* white bubble holds the real colour Google Ads logo */
.jny-gg img { width: 30px; height: 30px; }
.jny-email { background: #475569; font-size: 30px; }                /* slate - email is an owned channel, not a brand; larger glyph */
.jny-ig   { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); } /* Instagram brand gradient */
.jny-ig svg { width: 30px; height: 30px; }
.jny-site { background: var(--surface-tint-3); color: var(--color-brand); }
/* connector from node down to walk path */
.jny-conn {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 24px;
  border-left: 2px dotted #d3dbf3; /* faint walk-path connector */
}

/* active highlight (label STAYS, just emphasised) */
.jny-stop.jny-active .jny-pill {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px -8px rgba(34, 51, 255, 0.4);
}
.jny-stop.jny-active .jny-node {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 12px 24px -8px rgba(34, 51, 255, 0.5);
}

/* walk path + figure (below icons) */
.jny-walktrack {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 188px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #e6e9f7 0 7px, transparent 7px 14px); /* dashed walk path */
}
.jny-avatar {
  position: absolute;
  top: 188px;
  left: 10%; /* start at the Facebook stop (pos[0]); avoids a backward slide on load */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: left 1.1s cubic-bezier(0.4, 0, 0.4, 1), top 1.1s cubic-bezier(0.4, 0, 0.4, 1);
  z-index: 6;
  box-shadow: 0 6px 14px -4px rgba(34, 51, 255, 0.6);
}
.jny-avatar svg { width: 16px; height: 16px; fill: #fff; }
/* "visitor" tag riding under the moving avatar - it's a child, so it tracks
   the avatar's animated left automatically. */
.jny-avatar__label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--color-brand);
  white-space: nowrap;
  pointer-events: none;
}

/* ===== attribution payoff ===== */
.jny-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.jny-card {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 18px 40px -30px rgba(20, 30, 90, 0.4);
}
.jny-card-bad  { border-color: rgba(239, 68, 68, 0.3); }
.jny-card-good { border-color: rgba(34, 51, 255, 0.35); }
.jny-card h3 {
  font-size: 19px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jny-clm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
}
.jny-clm.jny-r {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
}
/* keep the logo bubble and its claim text on one centred line */
.jny-clm > span:first-child {
  display: inline-flex;
  align-items: center;
}
.jny-ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: var(--font-weight-extra);
  margin-right: 8px;
  /* real brand logos sit in a uniform white bubble */
  background: #fff;
  border: 1px solid var(--color-border);
  object-fit: contain;
  box-sizing: border-box;
  padding: 3px;
  overflow: hidden;
}
/* full-bleed coloured logos (Instagram) fill the bubble edge to edge */
.jny-ico.jny-ico-tile { padding: 0; }
.jny-sumline {
  margin-top: 10px;
  font-size: 15px;
  color: var(--color-text-muted);
}
.jny-sumline b { color: var(--color-danger); }
.jny-sumline b.jny-real { color: var(--color-text); }
.jny-journey-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  /* row-gap leaves room for the absolute First/Last-touch sublabels when the
     chips wrap on narrow widths; column-gap stays tight */
  gap: 18px 3px;
  font-size: 11px;
  margin: 6px 0 34px; /* extra blank line separating the path row + sublabels from the copy below */
  flex-wrap: wrap;
}
.jny-jchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-tint-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.jny-d {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-extra);
}
/* email is an owned channel, not a brand logo: slate bubble + white
   envelope so the glyph is actually visible on the pale chip */
.jny-d-email { background: #475569; font-size: 10px; }
.jny-arrow { color: #aeb6d6; } /* muted arrow between chips */
/* First-touch / last-touch labels hang BELOW their chip, absolutely
   positioned so they don't change the chip row's height (arrows stay
   centred to the chips). */
.jny-jchip-tag { position: relative; }
.jny-sublab {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: var(--font-weight-extra);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jny-sublab-ft { color: var(--color-brand); }
.jny-sublab-lt { color: #0f7a55; } /* darker green for contrast on the pale card */
.jny-truebig { font-size: 15px; color: var(--color-text); }
.jny-truebig b { color: var(--color-brand); }
.jny-tag {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  border-radius: 6px;
  padding: 2px 7px;
}
.jny-tag.jny-ft { background: rgba(34, 51, 255, 0.12); color: var(--color-brand); }
.jny-tag.jny-lt { background: rgba(16, 185, 129, 0.14); color: #0f7a55; } /* darker green for contrast on pale tint */

/* ===== Journey rebuild: source-contribution bars (left card) ===== */
.jny-bars { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 26px; }
.jny-brow { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: var(--font-weight-semibold); }
.jny-bn { width: 124px; flex: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.jny-bn i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.jny-btrack { flex: 1; height: 10px; background: rgba(34, 51, 255, 0.08); border-radius: 999px; overflow: hidden; }
.jny-bf { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-brand), var(--color-brand-2)); }
.jny-brow b { width: 40px; flex: none; text-align: right; font-weight: var(--font-weight-extra); }
.jny-contrib-note { margin: 0; font-size: 16px; color: var(--color-text-muted); line-height: 1.5; }

/* ===== Journey rebuild: ordered touch list (right card) ===== */
.jny-steps { display: flex; flex-direction: column; margin: 2px 0 16px; }
.jny-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.jny-step + .jny-step { border-top: 1px solid var(--color-border); }
.jny-snum { width: 88px; flex: none; white-space: nowrap; font-size: 12.5px; font-weight: var(--font-weight-extra); text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-brand); }
.jny-sbody { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: var(--font-weight-bold); }
.jny-sday { flex: none; font-size: 14px; color: var(--color-text-subtle); }
.jny-step-sale .jny-snum { color: #0f7a55; }
.jny-steps-note { margin: 0; font-size: 16px; color: var(--color-text-muted); line-height: 1.5; }

@media (max-width: 760px) {
  .jny-two { grid-template-columns: 1fr; }

  /* The horizontal walk has no room at phone widths: the four 170px labels
     would collide. Stack the stops vertically (icon + permanent label per
     row) and drop the walk track/figure - the four labels stay readable and
     the order still reads top-to-bottom as the journey. */
  .jny-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* extra left gutter holds the vertical walk rail + the moving "visitor" */
    padding: 22px 20px 22px 60px;
  }
  .jny-stop {
    position: static;
    transform: none;
    left: auto !important;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }
  .jny-pill { order: 2; }
  /* phone layout stacks each stop as a flex row: put the node back in flow */
  .jny-node { order: 1; position: static; transform: none; top: auto; left: auto; margin: 0; flex: 0 0 44px; width: 44px; height: 44px; font-size: 17px; }
  .jny-gg img { width: 26px; height: 26px; }
  .jny-conn { display: none; }
  /* Vertical walk rail in the left gutter; the "visitor" avatar rides DOWN it
     (JS sets its top to each active stop). */
  .jny-walktrack {
    display: block;
    left: 30px; right: auto; top: 34px; bottom: 34px;
    width: 0; height: auto;
    background: none;
    border-left: 2px dashed #e6e9f7;
  }
  .jny-avatar { display: flex; left: 30px; top: 60px; }
  /* On the stacked layout the active lift would just nudge sideways; keep the
     pill emphasis but skip the node scale so rows stay aligned. */
  .jny-stop.jny-active .jny-pill { transform: translateY(0) scale(1.02); }
  .jny-stop.jny-active .jny-node { transform: none; }

  /* Touch list: keep each source name on ONE line (Facebook ad / Instagram ad
     were wrapping). Tighter touch-label column + nowrap body frees the room.
     More gap between the touch label, the icon and the name so they breathe. */
  .jny-step { gap: 16px; }
  .jny-snum { width: 64px; font-size: 11px; }
  .jny-sbody { font-size: 14.5px; white-space: nowrap; min-width: 0; gap: 11px; }
  .jny-sday { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .jny-avatar { transition: none; }
}

/* ============================================================
   DRILL-DOWN - revenue table
   Static product mockup: browser chrome + KPI strip + controls +
   tabs + multi-level revenue table. All classes scoped with the
   `dd-` prefix to avoid colliding with the hero .dash mockup
   (.kpis/.kpi), the journey .stage (.pos/.neg/.url/.chip/.cd) and
   the leak .plat. Card stays white in dark mode (components.css).
   ============================================================ */
.dd-app {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.dd-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 14px;
  background: var(--surface-tint-2);
  border-bottom: 1px solid var(--color-border);
}
.dd-cd { width: 10px; height: 10px; border-radius: var(--radius-full); }
.dd-url {
  margin-left: var(--space-2);
  font-size: 11.5px;
  color: var(--color-text-subtle);
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 5px 11px;
}

.dd-body { padding: var(--space-4) 18px; }

.dd-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: 14px;
}
.dd-kpi {
  border: 1px solid var(--color-border);
  border-radius: 11px;
  padding: 11px 14px;
}
.dd-kpi .dd-k {
  font-size: 10px;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dd-kpi .dd-v {
  font-size: 22px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -.02em;
  margin-top: 3px;
}

.dd-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-subtle);
  padding: 10px 2px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.dd-ctl { display: flex; align-items: center; gap: var(--space-2); }
.dd-ctl .dd-lab { font-weight: var(--font-weight-semibold); }
.dd-sel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  background: var(--surface-tint-1);
}
.dd-chip {
  background: var(--surface-tint-2);
  border-radius: 7px;
  padding: 3px 8px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
}
.dd-chip .dd-x { color: var(--color-border-strong); margin-left: 3px; }
.dd-add { color: var(--color-brand); font-weight: var(--font-weight-bold); }

.dd-tabs {
  display: flex;
  gap: 20px;
  margin: var(--space-3) 2px 6px;
  font-size: 13.5px;
  color: var(--color-text-subtle);
  font-weight: var(--font-weight-semibold);
}
.dd-tabs .dd-t.dd-active {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: 6px;
}
.dd-tablebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 2px var(--space-2);
}
.dd-search {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--color-text-subtle);
  width: 200px;
}
.dd-rightmeta {
  font-size: 11.5px;
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Horizontal-scroll guard: the 9-column grid scrolls inside the card
   rather than overflowing the viewport at 360px. */
.dd-scroll { overflow-x: auto; }

/* Phone: the desktop toolbar is one wide row that wraps into an awkward order
   (chips + "Add event" + a right-floated "Columns"). Stack each control on its
   own line, drop the float, and put Search on its own full-width line with the
   row-count / export below it. The data table stays a horizontal slider. */
@media (max-width: 768px) {
  .dd-controls { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dd-controls .dd-ctl { margin-left: 0 !important; flex-wrap: wrap; }
  .dd-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .dd-tablebar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dd-search { width: 100%; box-sizing: border-box; }
}

.dd-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.dd-table th,
.dd-table td {
  padding: var(--space-2) 10px;
  text-align: right;
  border-top: 1px solid var(--color-border);
  white-space: nowrap;
}
.dd-table th {
  font-size: 10px;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: var(--font-weight-semibold);
  border-top: none;
}
.dd-table th.dd-l,
.dd-table td.dd-l { text-align: left; }
.dd-table td.dd-l { display: flex; align-items: center; gap: 6px; }
.dd-chev { color: var(--color-border-strong); font-size: 10px; width: 10px; display: inline-block; }
.dd-nm { overflow: hidden; text-overflow: ellipsis; max-width: 330px; }
.dd-table .dd-muted { color: var(--color-text-subtle); font-style: italic; }
.dd-pos { color: var(--color-success); font-weight: var(--font-weight-bold); }
.dd-neg { color: var(--color-danger); font-weight: var(--font-weight-bold); }
.dd-plat {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: var(--font-weight-extra);
  flex: none;
}
/* Platform-brand hexes - literal brand colors used here. */
.dd-fb { background: #1877F2; }                                  /* Facebook brand blue */
.dd-gg { background: #fff; color: #4285F4; border: 1px solid var(--color-border); } /* Google brand blue */
.dd-ig { background: #E1306C; }                                  /* Instagram brand magenta */
.dd-tt { background: #000; }                                     /* TikTok brand black */
.dd-em { background: #E37400; }                                  /* email/amber accent */
.dd-table tr.dd-win { background: rgba(34, 51, 255, .04); }
.dd-table tr.dd-creative { background: rgba(16, 185, 129, .06); }
.dd-table tr.dd-loser { background: rgba(239, 68, 68, .05); }
.dd-table tr.dd-total td { border-top: 2px solid var(--color-border); font-weight: var(--font-weight-extra); }
.dd-d0 { padding-left: 0; }
.dd-d1 { padding-left: 20px; }
.dd-d2 { padding-left: 40px; }
.dd-d3 { padding-left: 60px; }
.dd-d4 { padding-left: 80px; }

@media (max-width: 820px) {
  .dd-kpis { grid-template-columns: 1fr 1fr; }
  .dd-table { font-size: 11px; }
  .dd-nm { max-width: 200px; }
}

/* --- VALUE: OPTIMIZE FOR WHO'S WORTH KEEPING -------------- */
/* All section classes scoped `val-` to avoid collisions with generic
   homepage selectors (.card, .feature, .two, .seg, .demo, etc.). */

/* featured new-vs-returning panel */
.val-feature {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-4);
}
.val-frow {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.val-fcap {
  font-size: 11px;
  color: var(--color-brand-2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.val-fttl {
  font-size: 25px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
  line-height: 1.2;
}
.val-fdesc {
  font-size: 17px;
  color: var(--color-text-subtle);
  line-height: 1.55;
  margin: 0;
}
.val-callout {
  margin-top: var(--space-3);
  font-size: 15.5px;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  padding: 11px 13px;
  line-height: 1.45;
  background: rgba(34, 51, 255, 0.06);   /* brand tint */
  border: 1px solid rgba(34, 51, 255, 0.18);
  color: var(--color-text);
  min-height: 62px;
}

.val-demo {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--surface-tint-2);
}
.val-demo-cap {
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 10px;
}
.val-seg {
  display: flex;
  background: var(--surface-tint-3);
  border-radius: var(--radius-lg);
  padding: 3px;
  margin-bottom: var(--space-4);
}
.val-seg div {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-subtle);
  padding: 7px 4px;
  border-radius: var(--radius-md);
  transition: all 0.3s;
  cursor: default;
}
.val-seg div.on {
  background: var(--surface-tint-1);
  color: var(--color-brand);
  box-shadow: 0 4px 10px -4px rgba(20, 30, 90, 0.25);
}
.val-kpis3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.val-k3 {
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  padding: var(--space-3) 6px;
  background: var(--surface-tint-1);
}
.val-k3 .k {
  font-size: 11.5px;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.val-k3 .v {
  font-size: 23px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
  margin-top: 3px;
  transition: color 0.3s;
}
.val-k3 .v.good { color: #0f7a55; }       /* darker success-on-tint */
.val-k3 .v.warn { color: var(--color-danger); }

/* two cards */
.val-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.val-card {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-width: 0; /* grid item: shrink to its track instead of overflowing the
                   phone edge (the demo/KPI content forced it wider) */
}
.val-card h3 { font-size: 22px; margin: 0 0 12px; }
.val-csub {
  font-size: 15.5px;
  color: var(--color-text-subtle);
  margin: 0 0 var(--space-4);
}
/* AOV ranked-bar list: vertically centered so it fills the card height next
   to the taller LTV card (no dead bottom gap). */
.val-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 4px 0;
}
.val-arow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--color-text-muted);
}
.val-arow .an { flex: none; width: 64px; font-weight: var(--font-weight-medium); }
.val-arow .atrack {
  flex: 1;
  height: 14px;
  border-radius: 7px;
  background: rgba(34, 51, 255, 0.10);   /* brand-tinted track, reads on white */
  overflow: hidden;
}
.val-arow .ab {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-2));
}
.val-arow b { flex: none; width: 54px; text-align: right; color: var(--color-text); }
.val-ltvtop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}
.val-ltvbig {
  font-size: 30px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
}
.val-ltvcac {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #0f7a55;                         /* darker success-on-tint */
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  padding: 4px 9px;
}
.val-mini2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: 6px;
}
.val-ms {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 9px;
  text-align: center;
}
.val-ms b { display: block; font-size: 17px; font-weight: var(--font-weight-extra); }
.val-ms span { font-size: 12.5px; color: var(--color-text-subtle); }

@media (max-width: 780px) {
  .val-frow, .val-two { grid-template-columns: 1fr; }
}
/* Phone: tighten the New-vs-returning demo so the toggle + 3 KPI boxes fit
   inside the card (they were forcing both #value cards past the screen edge). */
@media (max-width: 600px) {
  .val-card { padding: 16px; }
  .val-demo { min-width: 0; padding: 12px; }
  .val-seg { min-width: 0; }
  .val-seg div { min-width: 0; font-size: 12px; padding: 7px 2px; }
  .val-kpis3 { gap: 7px; }
  .val-k3 { min-width: 0; padding: 8px 4px; }
  .val-k3 .k { font-size: 10.5px; }
  .val-k3 .v { font-size: 16px; }
}

/* --- PRICING ---------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.plan {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-6);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.plan.pop {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--gradient-brand) border-box;
  box-shadow: var(--shadow-brand);
}
.plan .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: var(--color-text-on-brand);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}
.plan h3 { margin: 0; font-size: 20px; font-weight: var(--font-weight-semibold); }
.price {
  font-size: 40px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price small {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
}
.plan .sub { color: var(--color-text-muted); margin: 0; font-size: 16px; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-text);
  font-size: 16px;
}
.plan li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.plan li::before {
  content: "\2713";
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}
.plan li.more {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}
.plan li.more::before { content: none; }
.plan .btn { margin-top: auto; font-size: 16px; } /* trial CTA bumped +2px from .btn base (14px) */
.plan-note {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-muted);
  margin: var(--space-3) 0 0;
}
.price-compare-link {
  display: block;
  text-align: center;
  margin-top: var(--space-5);
  font-weight: var(--font-weight-semibold);
}
/* Flat-pricing differentiator card below the compare link */
.price-flat {
  max-width: 720px;
  margin: 57px auto 0;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.price-flat h3 {
  font-size: 27px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.price-flat-rows {
  display: grid;
  gap: 18px;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}
.price-flat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text-subtle);
}
.price-flat-row .ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-top: 1px;
}
.price-flat-row.them .ic { background: var(--color-danger); }
.price-flat-row.us .ic { background: var(--color-success); }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }

/* ============================================================
   THE HIDDEN PROBLEM ("THE LEAK")
   ------------------------------------------------------------
   Centerpiece: dots flow along centered lanes from "your site"
   to the ad platforms; ~42% slam the red barrier (iOS / ITP /
   ad-blockers) and drop away, the rest glide through. Below it,
   two problem cards (.leak-blockbox = trackers blocked, .leak-vs =
   platform inflation) and a 3-point strip. White cards on the dark wash
   are re-pinned in components.css. Animation honors reduced-motion
   (a representative still frame is frozen below).
   ============================================================ */
.leak {
  position: relative;
  height: 300px;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(20, 30, 90, .4);
  margin-bottom: 18px;
}
.leak .flowzone { position: absolute; left: 170px; right: 185px; top: 110px; bottom: 54px; }

/* faint guide lanes */
.leak .lane { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed #dfe3f5; /* faint guide lane, intentional literal */ }

/* endpoints */
.leak .endpoint { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; text-align: center; }
.leak .site { left: 18px; }
.leak .plats { right: 18px; }
.leak .ebox {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  box-shadow: 0 10px 24px -12px rgba(20, 30, 90, .3);
}
.leak .ebox .em {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.leak .platrow { display: flex; gap: 7px; justify-content: center; margin-top: 2px; }
.leak .plat {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 15px;
}
/* uniform white tiles holding the real brand logos (Facebook roundel +
   Google Ads), matching the journey/setup chips */
.leak .fbi { background: #fff; border: 1px solid #e2e2e2; }
.leak .gi  { background: #fff; border: 1px solid #e2e2e2; }
.leak .plat img { width: 24px; height: 24px; object-fit: contain; }
.leak .plats.hit .plat { animation: platpulse 1.3s ease-in-out infinite; }
@keyframes platpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 51, 255, 0); } 50% { box-shadow: 0 0 0 5px rgba(34, 51, 255, .12); } }

/* barrier */
.leak .barrier {
  position: absolute; left: 50%; top: 100px; bottom: 46px;
  width: 0; border-left: 3px dashed var(--color-danger); z-index: 3;
}
.leak .barlbl {
  position: absolute; left: 50%; top: 46px; transform: translateX(-50%);
  display: flex; gap: 8px; flex-wrap: nowrap; justify-content: center;
  width: auto; max-width: calc(100% - 40px); z-index: 5;
}
.leak .barlbl span {
  font-size: 12px;
  background: rgba(239, 68, 68, .1);
  color: #b42318; /* dark danger-text for contrast on the danger-tint bg; intentionally darker than --color-danger */
  border: 1px solid rgba(239, 68, 68, .28);
  border-radius: var(--radius-full);
  padding: 4px 12px; white-space: nowrap;
}

/* dots */
.leak .dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; left: 0; top: -5px; }
.leak .dot.pass {
  background: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(34, 51, 255, .15);
  animation: pass 3.4s cubic-bezier(.4, 0, .5, 1) infinite;
}
.leak .dot.block {
  background: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
  animation: block 3.4s cubic-bezier(.45, 0, .3, 1) infinite;
}
@keyframes pass {
  0%   { left: 0;    opacity: 0; transform: scale(.6); }
  7%   { opacity: 1; transform: scale(1); }
  90%  { opacity: 1; left: 100%; transform: scale(1); }
  100% { left: 100%; opacity: 0; transform: scale(.5); }
}
@keyframes block {
  0%   { left: 0;   opacity: 0; transform: translateY(0) scale(.6); }
  8%   { opacity: 1; transform: translateY(0) scale(1); }
  46%  { left: 50%; opacity: 1; transform: translateY(0) scale(1); }
  54%  { left: 50%; transform: translateY(0) scale(1.5); }
  100% { left: 50%; opacity: 0; transform: translateY(34px) scale(.15); }
}

.leak .counter {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; font-size: 13px; color: var(--color-text-muted); z-index: 5;
}
.leak .counter b { color: var(--color-text); }
.leak .counter .lost { color: var(--color-danger); font-weight: 700; }

/* Caption above the blocker chips - clarifies what the red barrier is. */
.leak .barcap {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--color-danger); white-space: nowrap; z-index: 5;
}
/* "blocked" toasts that pop at the barrier as dots die. */
.leak .leak-toasts { position: absolute; left: 50%; top: 104px; bottom: 50px; width: 0; z-index: 6; pointer-events: none; }
.leak .leak-toast {
  position: absolute; left: 8px; white-space: nowrap;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--color-danger);
  border-radius: var(--radius-full); padding: 3px 9px;
  box-shadow: 0 6px 16px -6px rgba(239, 68, 68, .7);
  opacity: 0; transform: translateY(4px);
  animation: leaktoast 1.4s ease-out forwards;
}
@keyframes leaktoast {
  0%   { opacity: 0; transform: translateY(8px) scale(.9); }
  15%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  .leak .leak-toasts { display: none; }
}

/* ===== Two problem cards ===== */
.leak-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.leak-card {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 18px 40px -30px rgba(20, 30, 90, .4);
  min-width: 0; /* grid item: allow shrink to its 1fr track instead of
                   overflowing to min-content (slipped off the phone edge) */
}
.leak-card h3 { font-size: 21px; font-weight: 700; margin: 26px 0 16px; }
.leak-card p { font-size: 16.5px; color: var(--color-text-subtle); margin: 0; line-height: 1.5; }
.leak-blockbox {
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--surface-tint-1);
}
.leak-blockbox .l { font-size: 15px; color: #9aa0b4; text-transform: uppercase; letter-spacing: .04em; /* muted label, literal */ }
.leak-blockbox .big { font-size: 30px; font-weight: 800; color: var(--color-danger); line-height: 1.1; }
/* Label on the left, the big count on the right of the same row */
.leak-bbhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.leak-bbhead .l { min-width: 0; }
.leak-bbhead .big { flex: none; }
/* Static list of real blocker messages (replaced the old rotating .leak-warn). */
.leak-msgs {
  margin-top: 12px;
  background: rgba(239, 68, 68, .08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.leak-msgs-intro {
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--color-danger); margin-bottom: 14px;
}
.leak-msglist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.leak-msglist li {
  font-size: 15.5px; line-height: 1.5;
  color: #b42318; /* dark danger-text for contrast on the danger-tint bg; intentionally darker than --color-danger */
}

/* "Your pixel is being blocked" heading - moved out of the trackers card to
   sit above the 3-point strip, larger than the old in-card h3. */
.leak-pixblock { text-align: center; max-width: 760px; margin: 60px auto 18px; }
.leak-pixblock h3 { font-size: clamp(33px, 4vw, 45px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.leak-pixblock p { color: var(--color-text-muted); font-size: 21px; line-height: 1.55; margin: 0; }
.leak-vs { display: flex; flex-direction: column; gap: 8px; }
.leak-vsrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.leak-chip2 {
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700;
  min-width: 0; /* grid item: shrink within its 1fr cell on narrow phones */
}
.leak-metaC { border: 1px solid rgba(239, 68, 68, .3); background: rgba(239, 68, 68, .05); color: var(--color-danger); }
.leak-tm { border: 1px solid rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .06); color: #0f7a55; /* dark success-text for contrast on the success-tint bg; intentionally darker than --color-success */ }
.leak-chip2 .k { font-size: 12px; font-weight: 600; opacity: .8; display: block; }
.leak-chip2 .leak-says { font-size: 15px; font-weight: 700; opacity: 1; }
.leak-mk { font-weight: 800; }

/* ===== 3-point strip ===== */
.leak-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* Icon sits inline to the LEFT of the title (one row), body copy spans the
   full width below. Grid keeps it CSS-only - no markup change. */
.leak-three .pt {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
}
.leak-three .pt .ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(34, 51, 255, .1);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 0;
}
.leak-three .pt h4 { font-size: 20.5px; margin: 0; }
.leak-three .pt p { grid-column: 1 / -1; font-size: 15.5px; color: var(--color-text-subtle); margin: 10px 0 0; line-height: 1.5; }

/* ===== Flying-blind ad-spend calculator =====
   One slider (monthly ad spend, log scale $1k-$10M); output = spend x the
   35% blocked rate, framed as the spend the ad platforms can't see. Stays a
   white card in dark mode via the shared re-pin list in components.css. */
.leak-calc {
  max-width: 760px;
  margin: 30px auto 0;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  text-align: center;
}
.leak-calc__title { font-size: 18px; font-weight: 700; margin: 0 0 22px; }
.leak-calc__label {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 4px;
}
.leak-calc__spend {
  display: block; font-size: 30px; font-weight: 800; color: var(--color-text);
  margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.leak-calc__scale {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--color-text-subtle); margin-top: 7px;
}
/* range input - brand-filled track up to the handle via --fill */
.leak-calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px; margin: 0; cursor: pointer; outline: none;
  background: linear-gradient(to right,
    var(--color-brand) 0 var(--fill, 42%),
    var(--color-border-strong) var(--fill, 42%) 100%);
}
.leak-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--color-brand);
  box-shadow: 0 2px 6px rgba(20, 30, 90, .25);
}
.leak-calc input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--color-brand);
  background: #fff; box-shadow: 0 2px 6px rgba(20, 30, 90, .25);
}
.leak-calc input[type="range"]:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; }
.leak-calc__result {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.leak-calc__rlabel { font-size: 14px; color: var(--color-text-muted); }
.leak-calc__blind {
  font-size: clamp(34px, 6vw, 48px); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--color-danger); font-variant-numeric: tabular-nums;
}
.leak-calc__note {
  font-size: 12.5px; color: var(--color-text-subtle); line-height: 1.5;
  max-width: 580px; margin: 16px auto 0;
}

@media (max-width: 768px) {
  .leak-two, .leak-three { grid-template-columns: 1fr; }
  /* Body copy 17px on mobile */
  .leak-card p, .leak-three .pt p { font-size: 17px; }

  /* says/actually chips: stack label -> metric -> number so the value no
     longer overlaps the wrapped label on a narrow phone (was a space-between
     row that collided once the label wrapped). */
  .leak-chip2 { flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 11px; }
  .leak-chip2 .leak-mk { font-size: 18px; margin-top: 3px; }

  /* Leak centerpiece: the desktop layout pins the flowzone with hardcoded
     pixel insets (left:170px / right:185px) and a 330px barrier label, which
     overflow/overlap on a 360px phone. Tighten the insets, shrink the
     endpoint boxes + barrier label, and cap the label width so the
     source -> barrier -> destination still reads at 360px. */
  .leak { height: 280px; }
  /* Caption on ONE line (shrunk to fit the phone width), sitting above the
     chips; barrier / flow / counter stacked below so nothing overlaps. */
  .leak .barcap {
    top: 16px;
    white-space: nowrap;
    max-width: none;
    font-size: 8px;
    letter-spacing: normal;
    line-height: 1.2;
  }
  .leak .barlbl { width: auto; max-width: calc(100% - 16px); gap: 4px; top: 44px; }
  .leak .barlbl span { font-size: 9px; padding: 2px 7px; }
  .leak .barrier { top: 72px; bottom: 50px; }
  .leak .flowzone { left: 84px; right: 90px; top: 86px; bottom: 56px; }
  .leak .site  { left: 10px;  top: 155px; }
  .leak .plats { right: 10px; top: 155px; }
  .leak .ebox { padding: 9px 8px; font-size: 11px; }
  .leak .ebox .em { font-size: 8.5px; margin-bottom: 4px; }
  .leak .platrow { gap: 5px; }
  .leak .plat { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
  .leak .plat img { width: 17px; height: 17px; }
  .leak .counter { font-size: 11px; bottom: 12px; padding: 0 10px; }
  /* Keep the frozen reduced-motion "passed" dots near the (narrower) destination. */
  .leak .dot.pass { left: calc(100% - 24px); }
}

/* Reduced motion: freeze a representative still - some dots stopped at the
   barrier, some arrived at the platforms. */
@media (prefers-reduced-motion: reduce) {
  .leak .dot { animation: none; opacity: 1; }
  .leak .dot.block { left: 49%; opacity: .5; }
  .leak .dot.pass  { left: calc(100% - 150px); }
}

/* ============================================================
   THE FIX - radar
   Ported from the "Direction A" mockup. Generic mock classes
   that already exist on the homepage (.feat / .ic / .split /
   .plats) are scoped here with a fix- prefix to avoid collisions.
   ============================================================ */
.fix-panel {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-xl);
}
.fix-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
/* a touch more breathing room between the section title and the feature list */
.fix-split h2 { margin-bottom: 40px; }
.fix-feat { display: flex; gap: 11px; margin-bottom: 24px; }
.fix-feat .fix-fi {
  width: 30px; height: 30px;
  border-radius: var(--radius-md);
  background: rgba(34, 51, 255, .1); /* brand @ 10% - var() can't alpha-mix without color-mix() */
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex: none; font-size: 14px;
}
.fix-feat h4 { margin: 0; font-size: 20.5px; }
.fix-feat p { margin: 8px 0 0; font-size: 16px; color: var(--color-text-subtle); line-height: 1.45; }

/* ===== RADAR ===== */
.radar { position: relative; width: 340px; height: 340px; margin: 0 auto; }
.ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-border);
  border-radius: 50%;
}
.r1 { width: 340px; height: 340px; }
.r2 { width: 250px; height: 250px; }
.r3 { width: 160px; height: 160px; }
.r4 { width: 80px; height: 80px; }
.sweep {
  position: absolute; top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 51, 255, .22), rgba(34, 51, 255, 0) 60deg, rgba(34, 51, 255, 0)); /* brand fade - alpha needs literals */
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
  box-shadow: 0 10px 24px -8px rgba(34, 51, 255, .6); /* brand glow - alpha literal */
  z-index: 3;
}
.fix-ic {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: icon-pulse 3s ease-in-out infinite;
}
@keyframes icon-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.blip {
  position: absolute;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 7px 10px; font-size: 11px;
  color: var(--color-text);
  box-shadow: 0 8px 18px -8px rgba(20, 30, 90, .3);
  z-index: 4;
  animation: pop 4s ease-in-out infinite;
}
.blip b { font-weight: 700; }
.blip .g { color: var(--color-success); font-weight: 700; }
@keyframes pop {
  0%, 15% { opacity: 0; transform: scale(.9); }
  25%, 75% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; }
}

/* ===== SETUP STRIP ===== */
/* Setup strip: lead on its own centered line, then the platform chips in an
   even centered grid (5 across on desktop -> 2 tidy rows of 10). */
.setup {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
}
.setup .lead { font-weight: 700; font-size: 21px; color: var(--color-text); text-align: center; }
.setup .lead span { color: var(--color-brand); }
/* Small gap between the lightning bolt and the blue phrase. */
.setup .lead .lead-em { margin-left: 11px; }
/* "No code." sits in the default text color with a single-space-sized gap
   after the blue "Set up in just a few minutes." phrase. */
.setup .lead .lead-rest { color: var(--color-text); margin-left: 6px; }
.fix-plats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1020px;
}
.pchip {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-size: 18px; font-weight: 600;
  white-space: nowrap; min-width: 0;
  height: 62px; box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0 18px;
  color: var(--color-text);
  background: var(--surface-tint-2);
}
.pchip span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pchip.any { border-style: dashed; color: var(--color-brand); }
/* Every icon sits in an identical white bubble so all chips look uniform,
   regardless of whether the source logo is a transparent glyph or a
   full-bleed colored tile. */
.pchip-ico {
  width: 36px; height: 36px; flex: none;
  object-fit: contain; box-sizing: border-box;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 9px; padding: 5px; overflow: hidden;
}
/* Logos that are already a full-bleed colored tile fill the bubble edge to
   edge (no white margin) so their footprint matches the glyph bubbles. */
.pchip-ico.tile { padding: 0; }
/* Setup chips on tablet + desktop: flex-wrap so each pill sizes to its own
   label - longer names like "Google Analytics" can't spill outside the bubble
   the way they did in a fixed equal-width grid - and the rows stay centered.
   Phones (<=560px) keep the full-width stacked grid defined below. */
@media (min-width: 561px) {
  .fix-plats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1080px; }
}
@media (max-width: 560px) {
  /* One pill per row on phones: half-width pills can't fit the longer labels
     (e.g. "Google Analytics"), so the icon + text spilled outside the bubble.
     Full-width keeps every icon + label inside its pill. The chips are
     left-aligned (not centered) so the icon bubbles stack into one straight
     vertical line down the column - every icon sits at the same x. */
  .fix-plats { grid-template-columns: 1fr; gap: 9px; }
  .pchip {
    font-size: 17px; gap: 13px;
    justify-content: flex-start;
    height: 60px; padding: 0 26px;
  }
  .pchip.any { justify-content: center; }
  .pchip-ico { width: 34px; height: 34px; }
}

@media (max-width: 780px) {
  .fix-split { grid-template-columns: 1fr; }
  /* Body copy 17px on mobile */
  .fix-feat p { font-size: 17px; }
  /* Less panel padding on phones: pulls the feature list left (it was crammed
     toward the right edge by the 30px padding) and frees width for the radar. */
  .fix-panel { padding: 16px; }
  /* Smaller gap between feature blocks than desktop. */
  .fix-feat { margin-bottom: 18px; }
  /* Radar fits inside the narrower panel so nodes/blips no longer hit the edge. */
  .radar { width: 264px; height: 264px; }
  .r1, .sweep { width: 264px; height: 264px; }
  .r2 { width: 194px; height: 194px; }
  .r3 { width: 124px; height: 124px; }
  .r4 { width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar .sweep { animation: none; }
  .radar .fix-ic { animation: none; opacity: 1; }
  .blip { animation: none; opacity: 1; }
}

/* ============================================================
   SECTION SEPARATION
   Three visual zones to break monotony. Used by alternating
   the .sec-* class on top-level <section> elements.

   Note: the rgba() literals below are spelled-out alpha versions
   of --color-brand (#2233FF) and --color-brand-2 (#5C82FF). CSS
   var() can't be alpha-mixed without color-mix(), which is still
   patchy in older Safari (mid-2026). The underlying RGB matches
   the tokens exactly. Documented exception to the no-hardcoded-
   colors rule.
   ============================================================ */

section { position: relative; }

/* ============================================================
   SECTION CHAIN (light + dark)
   Each section's bottom color = next section's top color, so
   the homepage reads as one continuous wash broken into chapters.
   Uses --surface-tint-1..5 which are theme-aware in tokens.css:
   light = periwinkle scale (white -> deep periwinkle),
   dark  = navy scale (lifted navy -> near-black).
   The legacy .sec-panel / .sec-alt rules below are dead on the
   homepage (chain overrides them) but kept for any future page
   that wants the old panel-and-glow look outside .home.
   ============================================================ */
.home > section {
  border-top: 0;
  border-bottom: 0;
}
.home > section.sec-panel,
.home > section.sec-alt,
.home > section.sec-tint-2 {
  background: none;
}

/* The chain undulates: each section spans from a "trough" (near-white) to a
   "peak" (deeper periwinkle) or vice versa, so scrolling reads as a wave -
   blue, then lighter, then blue again. Consecutive endpoints match. */

/* 1. hero          tint-1 -> tint-3  (white -> mid, opening ramp) */
.home > section:nth-of-type(1) {
  background: linear-gradient(180deg, var(--surface-tint-1) 0%, var(--surface-tint-3) 100%);
}
/* 2. logos strip   tint-3 -> tint-2  (eases back toward light - first dip) */
.home > section:nth-of-type(2) {
  background: linear-gradient(180deg, var(--surface-tint-3) 0%, var(--surface-tint-2) 100%);
}
/* 3. features      tint-2 -> tint-4  (light -> deep, first peak) */
.home > section:nth-of-type(3) {
  background: linear-gradient(180deg, var(--surface-tint-2) 0%, var(--surface-tint-4) 100%);
}
/* 4. attribution   tint-4 -> tint-2  (deep -> light, dip) */
.home > section:nth-of-type(4) {
  background: linear-gradient(180deg, var(--surface-tint-4) 0%, var(--surface-tint-2) 100%);
}
/* 5. journey       tint-2 -> tint-4  (light -> deep, peak) */
.home > section:nth-of-type(5) {
  background: linear-gradient(180deg, var(--surface-tint-2) 0%, var(--surface-tint-4) 100%);
}
/* 6. value         tint-4 -> tint-2  (deep -> light, dip) */
.home > section:nth-of-type(6) {
  background: linear-gradient(180deg, var(--surface-tint-4) 0%, var(--surface-tint-2) 100%);
}
/* 7. pricing       tint-2 -> tint-4  (light -> deep, peak) */
.home > section:nth-of-type(7) {
  background: linear-gradient(180deg, var(--surface-tint-2) 0%, var(--surface-tint-4) 100%);
}
/* 8. final cta     tint-4 -> tint-1  (deep -> white, closing fade) */
.home > section:nth-of-type(8) {
  background: linear-gradient(180deg, var(--surface-tint-4) 0%, var(--surface-tint-1) 100%);
}

/* Dark-theme keeps the original panel system below. */
.sec-panel {
  background:
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sec-alt {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(34, 51, 255, 0.05), transparent 60%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="dark"] .sec-alt {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(34, 51, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 60%);
}

/* Brand-2-tinted glow from top-left. Different hue + position for visual rhythm. */
.sec-tint-2 {
  background:
    radial-gradient(800px 380px at 10% 0%, rgba(92, 130, 255, 0.06), transparent 60%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="dark"] .sec-tint-2 {
  background:
    radial-gradient(800px 380px at 10% 0%, rgba(92, 130, 255, 0.14), transparent 60%);
}

/* NOTE: the "keep cards white in dark mode" rule lives in components.css
   (shared, site-wide) so it also covers off-homepage cards like the contact
   form. Add new white-card selectors there, not here. */

/* Optional thin gradient divider helper (not used by default - reserved for future) */
.sec-divider {
  height: 1px;
  max-width: var(--container-wide);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

/* --- MOBILE: SECTION SPACING, TYPOGRAPHY & OVERFLOW -------
   Placed at end-of-file so these win on source order over the base rules above
   (media queries add no specificity). */
@media (max-width: 768px) {
  /* Section spacing: desktop gives every section 96px top/bottom (.home section),
     stacking ~190px of dead space between sections on a phone. Tighten so the
     band between sections lands at ~20px. */
  .home section { padding: 20px 0; }
  /* Section title/subtitle block sits 48px above its content on desktop - far
     too airy on a phone. Pull it in across every section. */
  .home .section-head { margin-bottom: 20px; }
  /* Trusted-by label sits closer to the logo row. */
  .home .logos p { margin-bottom: 14px; }

  /* Uniform body-copy size everywhere - match the hero lede (17px). Section
     subtitles were 19px, creating the inconsistency. */
  .home .lede,
  .home .section-head p,
  .home .leak-pixblock p { font-size: 17px; line-height: var(--line-height-relaxed); }

  /* Smaller client cards so ~3 fit across a phone. */
  .logo-chip { width: 104px; height: 60px; margin-right: 12px; padding: 9px 12px; }
}

/* Page-level backstop: never allow horizontal scrolling on phones. `clip`
   (not `hidden`) avoids creating a scroll container, so the sticky nav still
   works. The fixes above make content actually fit; this just guards stragglers. */
@media (max-width: 768px) {
  html, body { overflow-x: clip; max-width: 100%; }
}

/* ============================================================
   EVERYTHING YOU CAN MEASURE - feature grid (#features)
   Ported from mockup feature-grid-section.html. All mock classes
   scoped with fg- prefix to avoid collisions with the homepage's
   pre-existing .ic / .pill / .head / .sub / .grid rules. Hover-lift
   only - no loop animations.
   ============================================================ */
.fg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.fg-fcard {
  background: var(--surface-tint-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 18px 40px -30px rgba(20, 30, 90, .4);
  transition: transform .2s, box-shadow .2s;
}
.fg-fcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px -28px rgba(34, 51, 255, .4);
}
@media (prefers-reduced-motion: reduce) {
  .fg-fcard { transition: none; }
  .fg-fcard:hover { transform: none; }
}

.fg-mini {
  height: 92px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--surface-tint-2);
  margin-bottom: 14px;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fg-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.fg-ic {
  width: 30px; height: 30px;
  border-radius: var(--radius-md);
  background: rgba(34, 51, 255, .1);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.fg-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fg-fcard h3 { font-size: 19.5px; margin: 0; font-weight: 700; }
.fg-desc { font-size: 16px; color: var(--color-text-subtle); margin: 0; line-height: 1.5; }

/* micro visuals */
/* Funnel mini: 2-col grid so each bar and its count share one row, aligned.
   Replaces the old block + negative-margin hack that drifted out of line and
   let the flex column collapse the bars. */
.fg-fnl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-content: center;
  gap: 9px 12px;
}
.fg-fbar {
  height: 11px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-2));
}
.fg-fnl span { font-size: 10px; color: var(--color-text-subtle); text-align: right; }
.fg-prow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--color-text-muted); }
.fg-prow .fg-pb { height: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--color-brand), var(--color-brand-2)); }
.fg-prow b { margin-left: auto; color: var(--color-text); }
.fg-pill {
  display: inline-block; font-size: 9.5px;
  background: var(--surface-tint-3);
  border-radius: var(--radius-full);
  padding: 3px 8px; margin: 0 4px 4px 0;
  color: var(--color-text-muted); font-weight: 600;
}
.fg-pill b { color: var(--color-text); }
/* custom-events mockup: a tidy event list (dot + name + right-aligned count),
   matching the Products rows / Platform-health dots instead of scattered chips */
.fg-evts { gap: 0; justify-content: center; }
.fg-erow {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; line-height: 1.2;
  color: var(--color-text-muted);
  padding: 2px 1px;
}
.fg-erow:not(:last-child) { border-bottom: 1px solid var(--color-border); }
.fg-erow i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fg-erow b { margin-left: auto; color: var(--color-text); font-size: 12.5px; }
.fg-dots { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.fg-pdot { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--color-text-muted); }
.fg-pdot i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.fg-session { display: flex; align-items: center; gap: 5px; }
.fg-sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-brand-2); }
.fg-sline { flex: 1; height: 2px; background: var(--color-border); }
.fg-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-2));
  color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 820px) { .fg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) {
  .fg-grid { grid-template-columns: 1fr; }
  .fg-desc { font-size: 17px; }
}

/* Hero dashboard polish (2026-05-31):
   1. Overlay column headers were dark-on-navy (invisible) - force white. The
      cell color is set by `.stage .trow .c` (#1b2550); this equal-specificity
      rule wins by source order for the header row only.
   2. Make the dashboard a touch larger / more substantial (920 -> 1060px,
      slightly taller rows). 360px is unaffected (the mobile @media below caps
      .stage width and these only enlarge it). */
.stage { max-width: 1060px; --rowh: 46px; --headh: 50px; }
.stage .trow.head .c { color: #fff; }
/* ROAS + Profit columns: green when the campaign is profitable, red at
   break-even/loss. Both cells carry the per-row `.c.pos` / `.c.neg` flag (set
   by home.js); these (0,4,0) beat `.stage .trow .c` (0,3,0) which would
   otherwise force the light default on every cell. Brightened literals so the
   green/red read clearly on the navy overlay panel. ROAS is weight-only here so
   its own row's pos/neg color shows through (the cell is `.c.roas.pos`). */
.stage .trow .c.pos { color: #34D399; font-weight: var(--font-weight-bold); }
.stage .trow .c.neg { color: #FB7185; font-weight: var(--font-weight-bold); }
.stage .trow .c.roas { font-weight: var(--font-weight-extra); }
/* Per-platform favicon in the browser chrome bar (toggled by home.js). */
.stage .chrome .fav {
  width: 20px; height: 20px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.stage .chrome .fav svg { width: 20px; height: 20px; display: block; }
.stage .chrome .fav.off { display: none; }
@media (max-width: 700px) { .stage { max-width: 100%; } }
