:root {
  --accent-h: 285;
  --accent: oklch(0.62 0.19 var(--accent-h));
  --accent-soft: oklch(0.62 0.19 var(--accent-h) / 0.12);
  --accent-glow: oklch(0.62 0.19 var(--accent-h) / 0.35);
  --accent-fg: #fff;

  /* Light surfaces */
  --bg: oklch(0.985 0.003 80);
  --bg-2: oklch(0.97 0.004 80);
  --bg-elev: #ffffff;
  --ink: oklch(0.18 0.01 250);
  --ink-2: oklch(0.34 0.01 250);
  --ink-3: oklch(0.55 0.01 250);
  --line: oklch(0.9 0.005 250);
  --line-2: oklch(0.94 0.004 250);

  /* Dark surfaces */
  --d-bg: oklch(0.155 0.012 260);
  --d-bg-2: oklch(0.19 0.014 260);
  --d-bg-3: oklch(0.225 0.014 260);
  --d-ink: oklch(0.97 0.005 80);
  --d-ink-2: oklch(0.78 0.01 250);
  --d-ink-3: oklch(0.6 0.01 250);
  --d-line: oklch(0.3 0.012 260);
  --d-line-2: oklch(0.26 0.012 260);

  --pad-y: clamp(56px, 6vw, 88px);
  --pad-x: clamp(18px, 5vw, 64px);
  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;

  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-med: 360ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 700ms cubic-bezier(.2,.7,.3,1);
}

[data-density="compact"] {
  --pad-y: 96px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: -0.01em; }
.serif { font-family: 'Instrument Serif', serif; font-weight: 400; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--pad-y) 0;
  position: relative;
}

.section-dark {
  background: var(--d-bg);
  color: var(--d-ink);
}
.section-dark .ink-2 { color: var(--d-ink-2); }
.section-dark .ink-3 { color: var(--d-ink-3); }

.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.section-dark .eyebrow {
  color: var(--d-ink-2);
  background: transparent;
  border-color: var(--d-line);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Display */
.display {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.display .em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.section-dark .lede { color: var(--d-ink-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.1) inset, 0 8px 24px -12px oklch(0 0 0 / 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.15) inset, 0 14px 28px -12px oklch(0 0 0 / 0.5);
}
.btn-primary .arrow { transition: transform var(--t-fast); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.section-dark .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.section-dark .btn-ghost {
  color: var(--d-ink);
  border-color: var(--d-line);
}
.section-dark .btn-ghost:hover { border-color: var(--d-ink); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px var(--accent-glow); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.card:hover {
  border-color: oklch(0.82 0.005 250);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px oklch(0 0 0 / 0.18);
}
.section-dark .card {
  background: var(--d-bg-2);
  border-color: var(--d-line);
}
.section-dark .card:hover {
  border-color: var(--d-ink-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}

.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.section-dark .divider-line {
  background: linear-gradient(to right, transparent, var(--d-line), transparent);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.025em; font-size: 19px; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--bg);
}
.brand-mark-grad {
  background: transparent;
  width: 26px; height: 26px;
  border-radius: 0;
  box-shadow: none;
  display: block;
  padding: 0;
}
.brand-text { display: inline-flex; align-items: baseline; gap: 0; }
.brand-accent { color: var(--accent); font-style: normal; font-family: inherit; font-weight: 600; font-size: 1em; letter-spacing: inherit; margin-left: 0; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0 0 0 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: 18%; left: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  filter: blur(8px);
  will-change: left, top;
  transform: translate(-50%, -50%);
}

/* Global mouse-follow glow — fixed, full-page, adapts to dark sections.
   The wrapper is fixed-positioned & non-interactive; the inner orb follows
   the cursor via JS-set CSS vars. mix-blend-mode lets it brighten dark
   areas while staying subtle on light backgrounds. */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.page-glow-orb {
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 30%);
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(40px);
  opacity: 0.5;
  mix-blend-mode: multiply;
  transition: opacity 600ms ease;
  will-change: left, top;
}
/* On dark sections, switch to screen blend so the glow brightens instead of darkens */
.page-glow.on-dark .page-glow-orb {
  mix-blend-mode: screen;
  opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) {
  .page-glow-orb { display: none; }
}
.hero-inner { position: relative; padding-top: 60px; padding-bottom: 40px; }
.hero-eyebrow-row {
  display: flex; justify-content: center; margin-bottom: 26px;
}
.hero-headline {
  text-align: center;
  margin: 0 auto;
  max-width: 16ch;
}
.hero-sub {
  text-align: center;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.avatars { display: inline-flex; }
.avatars .avatar {
  width: 24px; height: 24px; border-radius: 999px;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--accent);
}
.avatars .avatar:first-child { margin-left: 0; }
.avatars .avatar:nth-child(2) { background: oklch(0.7 0.16 200); }
.avatars .avatar:nth-child(3) { background: oklch(0.65 0.18 35); }
.avatars .avatar:nth-child(4) { background: oklch(0.6 0.18 145); }
.stars { display: inline-flex; gap: 2px; color: oklch(0.78 0.16 70); }

/* Hero visual */
.hero-visual {
  position: relative;
  margin: 64px auto 0;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg-2));
  box-shadow: 0 60px 100px -60px oklch(0 0 0 / 0.25), 0 0 0 1px oklch(0 0 0 / 0.02);
  /* overflow visible so the floating cards (+42 leads, ROAS, New creative
     ready) extending past the dashboard's left/right edges aren't clipped */
  overflow: visible;
}
.hero-visual > .hv-chrome,
.hero-visual > .hv-body {
  /* clip the inner dashboard content with the same rounded corners
     since the parent no longer clips */
  border-radius: 0;
}
.hero-visual > .hv-chrome {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.hv-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.hv-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--line); }
.hv-dot:nth-child(1) { background: oklch(0.75 0.14 25); }
.hv-dot:nth-child(2) { background: oklch(0.83 0.14 85); }
.hv-dot:nth-child(3) { background: oklch(0.78 0.14 145); }
.hv-url {
  margin-left: 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.hv-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 18px;
  padding: 24px;
  height: calc(100% - 49px);
}
@media (max-width: 760px) {
  .hv-body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
}

.hv-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.hv-panel-title {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hv-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: oklch(0.95 0.06 145);
  color: oklch(0.4 0.1 145);
}
.hv-metric {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hv-sub {
  font-size: 12.5px;
  color: var(--ink-3);
}
.hv-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 72px;
}
.hv-bars .bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), color-mix(in oklch, var(--accent) 50%, white));
  border-radius: 4px 4px 0 0;
  height: 0;
  transition: height 1.2s cubic-bezier(.2,.7,.3,1);
}
.hv-bars .bar.alt {
  background: var(--line);
}
.hv-line { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.hv-line-area { fill: var(--accent-soft); }

.hv-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}
.hv-tile-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.hv-tile-label { font-size: 13px; font-weight: 500; }
.hv-tile-value { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); }

/* Floating cards */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px -20px oklch(0 0 0 / 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  z-index: 4;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.float-1 { top: 14%; left: -3%; animation-delay: 0s; }
.float-2 { top: 56%; right: -4%; animation-delay: -2s; }
.float-3 { bottom: 12%; left: 8%; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 760px) {
  .float-card { display: none; }
}

/* ============ LOGOS ============ */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-label {
  text-align: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.logos-track {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  opacity: 0.7;
}
.logos-track .logo {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast), opacity var(--t-fast);
  filter: grayscale(1);
  opacity: 0.85;
}
.logos-track .logo:hover { color: var(--ink); opacity: 1; filter: grayscale(0); }

/* ============ PROBLEM ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  border: 1px solid var(--d-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--d-bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t-med), border-color var(--t-med);
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--d-ink-3);
}
.problem-card .num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--d-ink-3);
  letter-spacing: 0.06em;
}
.problem-card .title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.problem-card .body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--d-ink-2);
}
.problem-card .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: oklch(0.27 0.07 30);
  color: oklch(0.78 0.13 30);
  display: grid; place-items: center;
}

/* ============ SOLUTION ============ */
.solution-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
@media (max-width: 980px) { .solution-grid { grid-template-columns: 1fr; gap: 36px; } }

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}
.feature-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-row .h { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.feature-row .b { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }

/* Solution illustration */
.sol-vis {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sol-orbit {
  position: absolute;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.sol-orbit.o1 { width: 60%; height: 60%; }
.sol-orbit.o2 { width: 86%; height: 86%; }
.sol-core {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 40px -16px var(--accent-glow);
}
.sol-node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px -10px oklch(0 0 0 / 0.12);
  animation: bob 5s ease-in-out infinite;
}
.sol-node .ic {
  width: 18px; height: 18px; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.sol-n1 { top: 12%; left: 8%; animation-delay: 0s; }
.sol-n2 { top: 16%; right: 6%; animation-delay: -1s; }
.sol-n3 { bottom: 18%; left: 6%; animation-delay: -2s; }
.sol-n4 { bottom: 14%; right: 8%; animation-delay: -3s; }
.sol-n5 { top: 50%; right: 0%; animation-delay: -1.5s; }
.sol-n6 { top: 48%; left: 0%; animation-delay: -2.5s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.sol-link {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============ HOW IT WORKS — Immersive pinned scroll ============ */
.how-immersive {
  position: relative;
  height: 460vh; /* 4 chapters × ~115vh */
  background: var(--d-bg);
  color: var(--d-ink);
}
.how-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.how-progress {
  height: 3px;
  background: var(--d-line);
  position: relative;
  z-index: 5;
}
.how-progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 80ms linear;
}
.how-pin-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
  padding: 28px var(--pad-x) 32px;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.how-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  height: 100%;
  min-height: 0;
  justify-content: center;
  padding: 4px 0;
}
.how-copy .h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; margin-top: 12px !important; }
.how-copy .lede { font-size: 13.5px; margin-top: 10px !important; }
/* Hide the lede paragraph on shorter viewports — keep eyebrow, headline, steps */
@media (max-height: 820px) {
  .how-immersive .how-copy .lede { display: none; }
}
.how-steps {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.how-step-item {
  padding: 6px 0;
}
.how-step-num { font-size: 9.5px; }
.how-step-title { font-size: 14px; }
.how-step-body { font-size: 12px; line-height: 1.35; }
.how-step-bar { margin-top: 5px; }
/* On shorter pins, drop the per-step description so all 4 steps fit comfortably */
@media (max-height: 820px) {
  .how-immersive .how-step-body { display: none; }
  .how-immersive .how-step-bar { margin-top: 4px; }
  .how-immersive .how-step-item { padding: 4px 0; }
}
.how-hint { margin-top: 12px; }
@media (max-height: 760px) {
  .how-immersive .how-hint { display: none; }
}
@media (max-width: 980px) {
  .how-immersive .how-pin-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 16px var(--pad-x);
    align-items: stretch;
  }
  .how-immersive { height: 520vh; }
  .how-immersive .how-copy { max-width: none; }
  .how-immersive .how-copy .h2 { font-size: 26px; }
  .how-immersive .how-copy .lede { display: none; }
  .how-immersive .how-steps { display: none; }
  .how-immersive .how-hint { display: none; }
  .how-immersive .how-stage { min-height: 0; }
  .how-immersive .how-stage-frame { max-height: none; height: 100%; aspect-ratio: auto; }
}
@media (max-width: 600px) {
  .how-immersive .how-copy .eyebrow { font-size: 10px; padding: 4px 10px; }
  .how-immersive .how-copy .h2 { font-size: 22px; }
}

/* legacy (overridden above by scoped rules) */
.how-steps-legacy { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.how-step-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  opacity: 0.4;
  transition: opacity var(--t-med);
}
.how-step-item.active, .how-step-item.done { opacity: 1; }
.how-step-dot {
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--d-line);
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--d-ink-3);
  background: var(--d-bg);
  transition: all var(--t-med);
}
.how-step-item.active .how-step-dot {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.how-step-item.done .how-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.how-step-num {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--d-ink-3);
}
.how-step-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin-top: 1px; }
.how-step-body { font-size: 12.5px; line-height: 1.4; color: var(--d-ink-2); margin-top: 2px; }
.how-step-bar { margin-top: 6px; }
.how-step-bar {
  margin-top: 10px;
  height: 2px;
  background: var(--d-line);
  border-radius: 999px;
  overflow: hidden;
}
.how-step-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 80ms linear;
}
.how-hint {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-ink-3);
}
.how-hint svg { transform: rotate(90deg); animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(4px); }
}

.how-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 100%;
  border-radius: 22px;
  border: 1px solid var(--d-line);
  background: linear-gradient(180deg, var(--d-bg-2), var(--d-bg));
  box-shadow: 0 60px 120px -50px oklch(0 0 0 / 0.5), 0 0 0 1px oklch(1 0 0 / 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.how-stage-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--d-line);
  background: var(--d-bg-2);
}
.how-stage-chrome .hv-url { background: var(--d-bg-3); border-color: var(--d-line); color: var(--d-ink-2); }
.how-stage-ts { margin-left: auto; font-size: 11px; color: var(--d-ink-3); }
.how-stage-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Stage base */
.stage {
  position: absolute;
  inset: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.stage.pre, .stage.queued {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  pointer-events: none;
}
.stage.on {
  opacity: 1;
  transform: none;
}
.stage.off-up {
  opacity: 0;
  transform: translateY(-30px) scale(0.97);
  pointer-events: none;
}
.stage-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stage-label::before {
  content: '';
  width: 18px; height: 1px; background: var(--accent);
}

/* Stage 1 — brief */
.brief-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--d-bg-3);
  border: 1px solid var(--d-line);
  border-radius: 14px;
  padding: 8px 18px;
  font-family: 'Geist Mono', monospace;
}
.brief-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--d-line);
  align-items: center;
  transition: opacity 0.3s ease;
}
.brief-row:last-child { border-bottom: 0; }
.brief-label {
  font-size: 10.5px;
  color: var(--d-ink-3);
  letter-spacing: 0.06em;
}
.brief-value {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--d-ink);
}
.caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--accent);
  margin-left: 2px;
  transform: translateY(2px);
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Stage 2 — generating */
.generating-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .generating-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); } }
.gen-tile {
  background: var(--d-bg-3);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.gen-tile.making { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gen-tile.done { border-color: oklch(0.5 0.13 145); }
.gen-tile-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px;
  color: var(--d-ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gen-tile-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
}
.gen-tile-status.go { background: var(--accent-soft); color: var(--accent); }
.gen-tile-status.ok { background: oklch(0.3 0.07 145); color: oklch(0.85 0.13 145); }
.pulse {
  width: 5px; height: 5px; border-radius: 999px;
  background: currentColor;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }

.gen-tile-body { flex: 1; min-height: 0; }
.gen-image {
  width: 100%; height: 100%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.gen-image-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.3), transparent);
  width: 50%;
}
.gen-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  background: oklch(0 0 0 / 0.2);
}
.gen-copy {
  font-size: 13px;
  line-height: 1.4;
  color: var(--d-ink);
  font-weight: 500;
}
.gen-page {
  font-size: 11px;
  color: var(--d-ink-2);
  display: flex; flex-direction: column; gap: 8px;
}
.gen-page-sk { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.gen-page-sk div { height: 5px; background: var(--d-line); border-radius: 3px; }

/* Stage 3 — launching */
.launch {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
}
.launch-core {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  z-index: 3;
  box-shadow: 0 0 0 8px var(--accent-soft), 0 16px 40px -12px var(--accent-glow);
}
.launch-core-inner { text-align: center; }
.launch-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 30px;
  border: 2px solid var(--accent);
  opacity: 0.7;
  animation: launch-pulse 2.2s ease-out infinite;
}
@keyframes launch-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}
.launch-line {
  position: absolute;
  width: 100%; height: 100%;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.launch-channel {
  position: absolute;
  top: 50%; left: 50%;
  background: var(--d-bg-3);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  z-index: 2;
  transition: all 0.4s cubic-bezier(.2,.7,.3,1);
}
.launch-channel.live { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.launch-channel-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.launch-channel-name { font-size: 13px; font-weight: 600; }
.launch-channel-kind { font-size: 10.5px; color: var(--d-ink-3); }
.launch-channel-status {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--d-ink-2);
}
.dot-live {
  width: 6px; height: 6px; border-radius: 999px;
  background: oklch(0.7 0.16 145);
  box-shadow: 0 0 0 3px oklch(0.7 0.16 145 / 0.25);
  animation: live-blink 1.5s ease-in-out infinite;
}
@keyframes live-blink { 50% { opacity: 0.4; } }

@media (max-width: 760px) {
  .launch-channel { min-width: 0; padding: 6px 10px; gap: 6px; }
  .launch-channel-name { font-size: 11px; }
  .launch-channel-kind { font-size: 9px; }
  .launch-channel-status { font-size: 9px; }
  .launch-channel-icon { width: 24px; height: 24px; }
}

/* Stage 4 — leads */
.leads-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.leads-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.leads-stat {
  background: var(--d-bg-3);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 14px 18px;
}
.leads-stat-label { font-size: 10.5px; color: var(--d-ink-3); letter-spacing: 0.06em; }
.leads-stat-num {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 4px;
  line-height: 1;
}
.leads-stat-sub { font-size: 12px; margin-top: 6px; font-family: 'Geist Mono', monospace; }
.leads-feed {
  flex: 1;
  background: var(--d-bg-3);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lead-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--d-line);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 13px;
}
.lead-row:last-child { border-bottom: 0; }
.lead-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
}
.lead-name { font-weight: 600; font-size: 13px; }
.lead-meta { font-size: 10.5px; color: var(--d-ink-3); margin-top: 2px; }
.lead-amt {
  font-size: 12.5px;
  color: var(--d-ink);
  font-weight: 500;
}
.lead-flag {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: oklch(0.7 0.16 145);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.06em;
}
@media (max-width: 760px) {
  .lead-row { padding: 8px 10px; gap: 8px; }
  .lead-name { font-size: 12px; }
}

/* ============ BENEFITS ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 980px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}
.benefit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.benefit:hover {
  transform: translateY(-4px);
  border-color: oklch(0.82 0.005 250);
}
.benefit:hover::before { opacity: 1; }

.benefit .num-big {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  font-family: 'Geist', sans-serif;
}
.benefit .num-big .unit {
  font-size: 26px;
  color: var(--accent);
  font-weight: 500;
}
.benefit .benefit-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.benefit .benefit-body {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============ STATS ============ */
.stats {
  padding: 100px 0;
  background: var(--d-bg);
  color: var(--d-ink);
  border-top: 1px solid var(--d-line-2);
  border-bottom: 1px solid var(--d-line-2);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 880px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

.stat {
  padding: 0 28px;
  border-right: 1px solid var(--d-line);
}
.stat:last-child { border-right: 0; }
@media (max-width: 880px) {
  .stat { border-right: 0; padding: 0 8px; }
}
.stat-num {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.stat-num .unit {
  color: var(--accent);
  font-weight: 500;
}
.stat-label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--d-ink-2);
  text-wrap: balance;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.testimonial:hover {
  border-color: oklch(0.82 0.005 250);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -30px oklch(0 0 0 / 0.18);
}
.testimonial .quote {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
  flex: 1;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.testimonial .avatar-lg {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 14px;
}
.testimonial .author .name { font-size: 14.5px; font-weight: 600; }
.testimonial .author .role { font-size: 13px; color: var(--ink-3); }
.testimonial .stars { font-size: 14px; }

/* Featured testimonial (the big one) */
.testimonial-featured {
  grid-column: span 3;
  padding: 48px;
  background: var(--d-bg);
  color: var(--d-ink);
  border-color: var(--d-line);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) { .testimonial-featured { grid-template-columns: 1fr; padding: 32px; } }
.testimonial-featured .quote {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--d-ink);
}
.testimonial-featured .author { border-top-color: var(--d-line); }
.testimonial-featured .author .role { color: var(--d-ink-3); }
.testimonial-featured .feat-stat {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.testimonial-featured .feat-stat .unit { color: var(--accent); }
.testimonial-featured .feat-label {
  font-size: 14px;
  color: var(--d-ink-2);
  margin-top: 10px;
}

/* ============ COMPARISON ============ */
.compare {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-cell {
  padding: 18px 22px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line-2);
}
.compare-cell:last-child { border-right: 0; }
.compare-row.head .compare-cell {
  background: var(--bg-2);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 14px 22px;
}
.compare-row.head .compare-cell.us {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
}
.compare-cell.us {
  background: oklch(0.985 0.003 80);
}
.compare-cell.label { font-weight: 500; color: var(--ink); }
.compare-cell.val { color: var(--ink-2); }
.compare-cell.us.val { color: var(--ink); font-weight: 500; }
.compare-row:hover .compare-cell { background: var(--bg-2); }
.compare-row:hover .compare-cell.us { background: oklch(0.96 0.01 80); }
.compare-yes { color: oklch(0.5 0.13 145); font-weight: 600; }
.compare-no { color: var(--ink-3); }
@media (max-width: 880px) {
  .compare-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 12px; }
  .compare-cell { padding: 12px 10px; font-size: 12px; }
}

/* ============ CASE STUDY ============ */
.case-card {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) { .case-card { grid-template-columns: 1fr; } }
.case-vis {
  padding: 48px;
  background: var(--d-bg);
  color: var(--d-ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.case-vis::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.case-text {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.case-text h3 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
.case-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--d-line);
}
.case-num { padding-right: 16px; }
.case-num .v {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-num .v .unit { color: var(--accent); }
.case-num .l { font-size: 12px; color: var(--d-ink-3); margin-top: 6px; font-family: 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: 0.04em; }

.chart-svg { width: 100%; height: 220px; position: relative; z-index: 2; }

/* ============ CTA / BOOK ============ */
.cta {
  background: var(--d-bg);
  color: var(--d-ink);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; } }

.cta-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.cta-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--d-ink-2);
}
.cta-check .ic {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Form */
.form {
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--d-line);
}
.form-head .t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.form-head .s { font-size: 13px; color: var(--d-ink-3); font-family: 'Geist Mono', monospace; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--d-ink-3);
}
.field input, .field textarea {
  background: var(--d-bg-3);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--d-ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.error input, .field.error textarea {
  border-color: oklch(0.6 0.18 25);
  box-shadow: 0 0 0 3px oklch(0.6 0.18 25 / 0.18);
}
.field .err {
  font-size: 12px;
  color: oklch(0.7 0.16 25);
}
.form .submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.form .legal { font-size: 12px; color: var(--d-ink-3); max-width: 30ch; }

/* Calendar success */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-family: 'Geist Mono', monospace;
  color: var(--d-ink-2);
  transition: all var(--t-fast);
  cursor: pointer;
}
.cal-day:hover { background: var(--d-bg-3); border-color: var(--d-ink-3); }
.cal-day.muted { color: var(--d-ink-3); opacity: 0.4; cursor: default; }
.cal-day.muted:hover { background: transparent; border-color: var(--d-line); }
.cal-day.has-slot { border-color: var(--accent); color: var(--accent); }
.cal-day.has-slot:hover { background: var(--accent-soft); }
.cal-day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-day-head {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--d-ink-3);
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.04em;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.slot {
  border: 1px solid var(--d-line);
  background: var(--d-bg-3);
  color: var(--d-ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  transition: all var(--t-fast);
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.success-msg {
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.success-msg .check {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}

/* Footer */
.footer {
  padding: 56px 0 36px;
  background: var(--d-bg);
  color: var(--d-ink-2);
  border-top: 1px solid var(--d-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--d-ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { transition: color var(--t-fast); }
.footer ul a:hover { color: var(--d-ink); }
.footer-brand-text { color: var(--d-ink-2); font-size: 14px; line-height: 1.6; max-width: 36ch; margin-top: 14px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--d-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--d-ink-3);
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
}

/* Density compact tweaks */
[data-density="compact"] .card { padding: 22px; }
[data-density="compact"] .benefit { padding: 24px; }
[data-density="compact"] .testimonial { padding: 22px; }
[data-density="compact"] .form { padding: 28px; }
[data-density="compact"] .case-vis,
[data-density="compact"] .case-text { padding: 32px; }

/* ============ MODULAR ("Choose what you need") ============
   Uses the existing solution-grid + feature-row vocabulary so it
   reads as part of the same system, just with selectable rows. */
.section-alt { background: var(--bg-2); }

/* ============ MODULAR — 3-column always-visible card grid ============ */
.mod-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .mod-grid { grid-template-columns: 1fr; gap: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
}

.mod-card {
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.82 0.005 250);
  box-shadow: 0 24px 50px -28px oklch(0 0 0 / 0.15);
}
.mod-card.active {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -28px var(--accent-glow), inset 0 0 0 1px var(--accent);
  transform: translateY(-3px);
}

.mod-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mod-card-kicker {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--t-med);
}
.mod-card.active .mod-card-kicker { color: var(--accent); }
.mod-card-check {
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all var(--t-med);
}
.mod-card-check-inner {
  width: 8px; height: 8px; border-radius: 999px;
  background: transparent;
  transition: background var(--t-med), transform var(--t-med);
  transform: scale(0.4);
}
.mod-card.active .mod-card-check {
  border-color: var(--accent);
  background: var(--accent);
}
.mod-card.active .mod-card-check-inner {
  background: var(--accent-fg);
  transform: scale(1);
}

.mod-card-head { display: flex; align-items: center; gap: 12px; }
.mod-card-ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background var(--t-med), color var(--t-med);
}
.mod-card.active .mod-card-ic { background: var(--accent); color: var(--accent-fg); }
.mod-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mod-card-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.mod-card-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
.mod-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.mod-card-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.mod-card-bullet-dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--ink-3);
  flex-shrink: 0;
  transition: background var(--t-med);
}
.mod-card.active .mod-card-bullet-dot { background: var(--accent); }
.mod-card-tag {
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-2);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.mod-card.active .mod-card-tag { color: var(--ink); border-top-color: var(--accent-soft); }

.mod-foot {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mod-foot .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

[data-density="compact"] .mod-card { padding: 22px 20px 20px; }

/* Book-a-call CTA that appears inside the active modular card */
.mod-card-cta {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  animation: mod-cta-in 320ms cubic-bezier(.2,.7,.3,1) backwards;
}
@keyframes mod-cta-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mod-card-cta { animation: none; }
}

/* Legacy mod-row classes (kept harmless if referenced elsewhere) */
.mod-row {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr 14px;
  gap: 14px;
  align-items: flex-start;
  transition: padding var(--t-med), background var(--t-med), border-color var(--t-med);
}
.mod-row:last-child { border-bottom: 0; }
.mod-row .ic {
  margin-top: 2px;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.mod-row-body { min-width: 0; }
.mod-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.mod-row-sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mod-row-arrow {
  color: var(--ink-3);
  margin-top: 9px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-med), transform var(--t-med), color var(--t-med);
}
.mod-row:hover { padding-left: 8px; padding-right: 8px; }
.mod-row:hover .ic { background: var(--accent); color: var(--accent-fg); }
.mod-row.active {
  padding-left: 8px;
  padding-right: 8px;
}
.mod-row.active .ic {
  background: var(--accent);
  color: var(--accent-fg);
}
.mod-row.active .mod-row-arrow {
  opacity: 1;
  transform: none;
  color: var(--accent);
}
.mod-row.active::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* mod-board: right-side visual. Same design language as sol-vis —
   bg-elev card, dashed rules, accent dot. No window chrome. */
.mod-board {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.mod-board-rule {
  position: absolute;
  left: 36px; right: 36px;
  top: 50%;
  border-top: 1px dashed var(--line);
  pointer-events: none;
  opacity: 0.6;
}
.mod-board-rule.v {
  left: 50%;
  top: 36px; bottom: 84px;
  right: auto;
  border-top: 0;
  border-left: 1px dashed var(--line);
}
.mod-board-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.mod-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.mod-tile.active {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -22px var(--accent-glow), inset 0 0 0 1px var(--accent);
  background: var(--bg-elev);
}
.mod-tile.featured {
  background: var(--bg-elev);
}
.mod-tile-kicker {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mod-tile.active .mod-tile-kicker { color: var(--accent); }
.mod-tile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mod-tile-ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background var(--t-med), color var(--t-med);
}
.mod-tile.active .mod-tile-ic {
  background: var(--accent);
  color: var(--accent-fg);
}
.mod-tile-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.mod-tile-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}
.mod-tile-tag {
  font-size: 13.5px;
  color: var(--ink-2);
  font-style: italic;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.mod-tile.active .mod-tile-tag { color: var(--ink); border-top-color: var(--accent-soft); }

.mod-board-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
}
.mod-board-foot .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  display: inline-block;
  margin-right: 8px;
}
.mod-board-foot span { display: inline-flex; align-items: center; }

/* Density compact */
[data-density="compact"] .mod-board { padding: 26px; }
[data-density="compact"] .mod-tile { padding: 14px 16px; }


/* ============ MOBILE POLISH ============ */
/* Premium mobile experience — intentional, not shrunk */
@media (max-width: 760px) {
  /* Tighter section rhythm on mobile */
  :root { --pad-y: 72px; --radius-lg: 18px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* Type scale — readable but not bloated */
  .display { font-size: clamp(36px, 9vw, 52px); line-height: 1.02; letter-spacing: -0.03em; }
  .h2 { font-size: clamp(28px, 7.5vw, 38px); line-height: 1.05; }
  .h3 { font-size: 20px; }
  .lede { font-size: 16px; line-height: 1.55; }
  .eyebrow { font-size: 11px; }

  /* Buttons — tap targets, no jitter */
  .btn { min-height: 44px; padding: 12px 18px; }
  .btn-primary { padding: 12px 20px; }
  a, button { -webkit-tap-highlight-color: transparent; }

  /* Hero spacing — tighter top gap so hero starts close to the navbar */
  .hero { padding-top: 24px !important; padding-bottom: 56px !important; min-height: 0 !important; }
  .hero-inner { padding-top: 12px !important; padding-bottom: 16px !important; }
  .hero-eyebrow-row { margin-bottom: 18px !important; }
  .hero-grid { display: none; }
  .hero-visual { margin-top: 32px; }
  .hv-body { padding: 14px !important; gap: 12px !important; }
  .hv-panel { padding: 14px; }

  /* Sections — make sure nothing overflows */
  .solution-grid, .case-card, .cta-inner, .footer-grid { gap: 32px !important; }
  .solution-features { gap: 18px; }
  .feature-row { gap: 14px; padding: 14px; }

  /* Cards: tighter inner padding */
  .problem-card, .testimonial, .benefit, .form, .mod-tile { padding: 22px !important; }
  .testimonial-featured { padding: 24px !important; }

  /* Footer: brand row on top (full-width), then Product | Company | Legal
     side-by-side as a 3-col strip. Tighter typography overall. */
  .footer { padding: 36px 0 28px !important; }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 26px 14px !important;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .footer h5 {
    font-size: 9.5px !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.08em !important;
  }
  .footer ul { gap: 8px !important; font-size: 12.5px !important; }
  .footer-brand-text {
    font-size: 13px !important;
    max-width: none !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
    font-size: 11px !important;
    margin-top: 28px !important;
    padding-top: 16px !important;
  }

  /* Stats */
  .stats-row { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .stat-num { font-size: clamp(36px, 10vw, 48px); }

  /* Comparison: scroll horizontally, no squish */
  .compare-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-row { min-width: 580px; grid-template-columns: 1.4fr 1fr 1fr 1fr !important; }

  /* Forms */
  .field input, .field textarea, .field select { font-size: 16px !important; min-height: 44px; padding: 12px 14px !important; }

  /* Nav */
  .nav-cta .btn { padding: 9px 14px !important; font-size: 13.5px !important; }
}

/* Even smaller — phones in portrait */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .display { font-size: 38px; }
  .nav-inner { gap: 8px; }
  .brand-text { font-size: 17px; }
}

/* Mobile nav drawer */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { background: var(--bg-2); }
.nav-toggle svg { display: block; transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(10, 10, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease;
  z-index: 90;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute;
  top: 12px; right: 12px; left: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 80px -20px rgba(10,10,16,.35);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateY(0) scale(1); opacity: 1; }
.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-links {
  display: flex; flex-direction: column;
  padding: 12px 0 4px;
  gap: 2px;
}
.mobile-drawer-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.mobile-drawer-links a:hover { background: var(--bg-2); padding-left: 12px; }
.mobile-drawer-links a::after {
  content: '→'; color: var(--ink-3); transition: color var(--t-fast), transform var(--t-fast);
}
.mobile-drawer-links a:hover::after { color: var(--accent); transform: translateX(2px); }
.mobile-drawer-cta { margin-top: 14px; }
.mobile-drawer-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .nav-toggle { width: 38px; height: 38px; }
}

/* Smoother scroll-reveal on mobile (less Y travel for snappier feel) */
@media (max-width: 760px) {
  .reveal { transform: translateY(18px); }
}

/* Disable expensive backdrop blurs on small/low-power devices */
@media (max-width: 760px) {
  .nav { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* Better focus states everywhere */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Crisper card hover on desktop */
@media (hover: hover) {
  .benefit, .problem-card, .testimonial, .mod-tile, .feature-row {
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  }
  .benefit:hover, .problem-card:hover, .testimonial:hover {
    transform: translateY(-3px);
  }
}

/* ============ ZOOM-OUT / WIDTH-GLITCH GUARDS ============
   Don't touch html/body overflow — body already has overflow-x: hidden
   at the top of this file, and adding overflow rules here breaks the
   sticky positioning the desktop pinned-scroll relies on. Instead, clip
   only the specific sections that have decorative absolute-positioned
   children (glows, grids, floats). */
img, svg, video { max-width: 100%; height: auto; }
.hero, .stats, .cta, .footer, .logos { overflow: hidden; }
.section-dark { position: relative; }

/* Cap the hero/CTA glows on ultrawide screens so they don't dominate */
@media (min-width: 1600px) {
  .hero-glow { width: 1100px; height: 1100px; }
  .cta-glow { width: 1200px; height: 1200px; }
}

/* ============ HOW IT WORKS — MOBILE LAYOUT ============
   Mobile (≤980px) renders <HowItWorksMobile> instead of the pinned-scroll
   version, surfacing all 4 step bodies + a static results preview. */
.how-mobile { position: relative; }
.how-mobile-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;  /* always 2-col on mobile */
}
@media (min-width: 600px) {
  .how-mobile-steps { gap: 16px; }
}
.how-mobile-step {
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  /* Entrance animation — plays on mount, stagger via nth-child below */
  animation: how-mobile-card-in 620ms cubic-bezier(.2,.7,.3,1) backwards;
}
.how-mobile-step:nth-child(1) { animation-delay: 80ms; }
.how-mobile-step:nth-child(2) { animation-delay: 180ms; }
.how-mobile-step:nth-child(3) { animation-delay: 280ms; }
.how-mobile-step:nth-child(4) { animation-delay: 380ms; }

@keyframes how-mobile-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Top accent stripe slowly sweeps left to right — gives subtle life */
@keyframes how-mobile-stripe-sweep {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
.how-mobile-step::before {
  background-size: 200% 100%;
  animation: how-mobile-stripe-sweep 4s ease-in-out infinite;
}

/* Live dot — pulses next to "LEADS · 24H" */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: oklch(0.7 0.16 145);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 oklch(0.7 0.16 145 / 0.55);
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.7 0.16 145 / 0.55); }
  50%      { box-shadow: 0 0 0 6px oklch(0.7 0.16 145 / 0); }
}

/* The dashboard mock itself fades + lifts in after the cards */
.how-mobile-mock {
  animation: how-mobile-card-in 700ms cubic-bezier(.2,.7,.3,1) 480ms backwards;
}

@media (prefers-reduced-motion: reduce) {
  .how-mobile-step,
  .how-mobile-step::before,
  .how-mobile-mock,
  .live-dot { animation: none !important; }
}
.how-mobile-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  opacity: 0.55;
}
.how-mobile-step:hover {
  border-color: var(--d-ink-3);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px var(--accent-glow);
}
.how-mobile-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.how-mobile-step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-transform: none;
}
.how-mobile-step-ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}
.how-mobile-step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--d-ink);
  line-height: 1.2;
}
.how-mobile-step-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--d-ink-2);
}

/* Static dashboard mock at end of mobile section */
.how-mobile-mock {
  margin-top: 36px;
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -50px var(--accent-glow);
}
.how-mobile-mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--d-line);
  background: var(--d-bg-3);
}
.how-mobile-mock-chrome .hv-url {
  background: var(--d-bg-2);
  border-color: var(--d-line);
  color: var(--d-ink-2);
}
.how-mobile-mock-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-mobile-mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.how-mobile-mock-stats .leads-stat { padding: 12px 14px; }
.how-mobile-mock-stats .leads-stat-num { font-size: 24px; }
.how-mobile-mock-stats .leads-stat-sub { font-size: 11px; }
.how-mobile-mock-feed {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--d-bg-3);
}
.how-mobile-mock-feed .lead-row { padding: 10px 12px; }
.how-mobile-mock-feed .lead-name { font-size: 13px; }
.how-mobile-mock-feed .lead-meta { font-size: 10.5px; }
.how-mobile-mock-feed .lead-amt { font-size: 12px; }

@media (max-width: 420px) {
  .how-mobile-step { padding: 18px; }
  .how-mobile-step-title { font-size: 16px; }
  .how-mobile-step-body { font-size: 13.5px; }
  .how-mobile-mock-stats .leads-stat-num { font-size: 20px; }
  .how-mobile-mock-body { padding: 14px; }
}

/* ============ ADDITIONAL MOBILE POLISH ============ */
@media (max-width: 760px) {
  /* Tighter reveal animation travel — feels snappier on phones */
  .reveal { transform: translateY(14px); transition-duration: 540ms; }
  .reveal[data-delay="1"] { transition-delay: 60ms; }
  .reveal[data-delay="2"] { transition-delay: 120ms; }
  .reveal[data-delay="3"] { transition-delay: 180ms; }
  .reveal[data-delay="4"] { transition-delay: 240ms; }

  /* ===== Hero dashboard mock — mobile redesign =====
     Desktop has a 3-panel grid with chrome + bars + tiles. On phones that
     becomes a tall, busy stack. Mobile: hide the campaigns + CTR panels
     entirely, keep only the leads panel at a tighter scale. The result is
     a single clean stat card with the wow-number and the upward chart. */
  .hero-visual {
    margin-left: auto; margin-right: auto;
    max-width: calc(100vw - 32px);
    aspect-ratio: auto;            /* let it size to content */
    border-radius: 18px;
  }
  .hv-chrome { padding: 10px 14px; }
  .hv-url { font-size: 11px; padding: 3px 10px; }
  .hv-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    padding: 14px !important;
    gap: 0 !important;
    height: auto !important;
  }
  .hv-body > .hv-panel:nth-child(2),
  .hv-body > .hv-panel:nth-child(3) { display: none; }
  .hv-panel { padding: 18px; gap: 10px; }
  .hv-panel-title { font-size: 10.5px; }
  .hv-pill { font-size: 9.5px; padding: 2px 7px; }
  .hv-metric { font-size: 36px; line-height: 1; }
  .hv-sub { font-size: 12px; }

  /* Solution orbital viz: tighter aspect + smaller nodes for phones */
  .sol-vis { aspect-ratio: 1.1; }
  .sol-node { font-size: 11px; padding: 6px 10px; }
  .sol-node .ic { width: 16px; height: 16px; }
  .sol-orbit.o1 { width: 55%; height: 55%; }
  .sol-orbit.o2 { width: 80%; height: 80%; }
  .sol-core { width: 78px; height: 78px; border-radius: 18px; font-size: 12px; }

  /* Solution features: 2 per row on mobile, vertical layout per card so
     icon sits above title (saves horizontal space). */
  .solution-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }
  .feature-row {
    border-bottom: 0 !important;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-elev);
    padding: 14px !important;
    flex-direction: column;
    gap: 10px !important;
    align-items: flex-start;
  }
  .feature-row .ic { width: 30px; height: 30px; border-radius: 8px; }
  .feature-row .ic svg { width: 15px; height: 15px; }
  .feature-row .h { font-size: 13.5px !important; line-height: 1.2; }
  .feature-row .b { font-size: 12px !important; line-height: 1.4; margin-top: 2px !important; }

  /* Comparison table — keep 4 columns on mobile, compress everything tight
     so it fits without horizontal scroll. */
  .compare { overflow: visible; margin-top: 32px; }
  .compare-row {
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr !important;
    min-width: 0 !important;
  }
  .compare-cell {
    padding: 10px 7px !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    gap: 4px !important;
    align-items: flex-start !important;
    word-break: break-word;
  }
  .compare-row.head .compare-cell {
    padding: 9px 7px !important;
    font-size: 9.5px !important;
    letter-spacing: 0.04em !important;
  }
  .compare-row.head .compare-cell.us {
    font-size: 11px !important;
    font-family: 'Geist', sans-serif !important;
    text-transform: none !important;
  }
  .compare-cell.label { font-size: 12px !important; font-weight: 600 !important; }
  .compare-cell.us.val svg { width: 12px; height: 12px; flex-shrink: 0; }

  /* Case study: tighter on mobile */
  .case-vis, .case-text { padding: 28px; }
  .case-text h3 { font-size: 24px; line-height: 1.15; }
  .case-numbers { gap: 16px; padding-top: 18px; }
  .case-num .v { font-size: 26px; }
  .case-num .l { font-size: 11px; }

  /* CTA form spacing */
  .cta-checks { gap: 10px; }
  .cta-check { font-size: 14px; }
}

/* Even smaller phones */
@media (max-width: 380px) {
  .hero-trust { font-size: 12px; gap: 10px; }
  .display { font-size: 34px; line-height: 1.04; }
  .h2 { font-size: 24px; }
  .lede { font-size: 15px; }
  .stat-num { font-size: 36px; }
  .container { padding: 0 14px; }
}

/* ============ MOBILE COMPRESSION ============
   Tighten Modular, Benefits, and Testimonials sections so they don't
   take up an entire screenful per card on phones. */
@media (max-width: 760px) {
  /* ---- Modular (Ads / CRM / Both) ---- */
  .mod-grid { margin-top: 36px !important; gap: 12px !important; }
  .mod-card { padding: 18px 18px 16px !important; gap: 12px; }
  .mod-card-title { font-size: 19px; }
  .mod-card-body { font-size: 13.5px; line-height: 1.45; }
  .mod-card-bullets { gap: 6px; padding-top: 10px; }
  .mod-card-bullets li { font-size: 13px; }
  .mod-card-tag { font-size: 13px; padding-top: 10px; }
  .mod-card-ic { width: 32px; height: 32px; border-radius: 9px; }
  .mod-card-kicker { font-size: 9.5px; }
  .mod-card-sub { font-size: 10px; margin-top: 2px; }
  .mod-foot { margin-top: 24px; font-size: 10px; }

  /* ---- Benefits (6 stat cards) ---- */
  .benefits-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 32px !important;
  }
  .benefit { padding: 16px !important; gap: 8px; }
  .benefit .num-big { font-size: 32px; line-height: 0.95; }
  .benefit .num-big .unit { font-size: 16px; }
  .benefit .benefit-title { font-size: 14px; }
  .benefit .benefit-body { font-size: 12.5px; line-height: 1.4; }

  /* ---- Testimonials ---- */
  /* Force the featured card to NOT span — that's what was breaking the
     stack at narrow widths (3 mini cards crammed into a row). */
  .testimonial-featured { grid-column: auto !important; }
  .testimonials-grid { gap: 12px !important; margin-top: 36px !important; }

  /* Featured: more compact on mobile, stats inline as a row */
  .testimonial-featured { padding: 24px !important; gap: 22px !important; }
  .testimonial-featured .quote { font-size: 17px !important; line-height: 1.4; }
  .testimonial-featured > div:last-child > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .testimonial-featured .feat-stat { font-size: 24px !important; line-height: 1; }
  .testimonial-featured .feat-stat .unit { font-size: 18px !important; }
  .testimonial-featured .feat-label { font-size: 11px !important; margin-top: 4px !important; line-height: 1.25; }

  /* Regular testimonial cards: tighter */
  .testimonial { padding: 20px !important; gap: 14px; }
  .testimonial .quote { font-size: 15px; line-height: 1.45; }
  .testimonial .author { padding-top: 14px; gap: 10px; }
  .testimonial .avatar-lg { width: 34px; height: 34px; font-size: 12px; }
  .testimonial .author .name { font-size: 13.5px; }
  .testimonial .author .role { font-size: 12px; }
}

@media (max-width: 480px) {
  /* Keep benefits at 2-col even on narrow phones (per user feedback).
     Tighten further to fit. */
  .benefit { padding: 12px !important; }
  .benefit .num-big { font-size: 26px; }
  .benefit .num-big .unit { font-size: 14px; }
  .benefit .benefit-title { font-size: 13px; }
  .benefit .benefit-body { font-size: 11.5px; line-height: 1.35; }

  /* Featured stats: even tighter */
  .testimonial-featured { padding: 20px !important; gap: 18px !important; }
  .testimonial-featured .feat-stat { font-size: 22px !important; }
}
