/* =========================================================================
   KAPTHA OCU — Landing Page Design System
   Brand: Violet #5A4FE6 (logo) · Emerald #0E9F6E (revenue/CTA) · Navy ink
   Type:  Schibsted Grotesk (display) · Hanken Grotesk (body)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --violet: #5A4FE6;
  --violet-600: #4a3fd0;
  --violet-50: #efeefe;
  --emerald: #0e9f6e;
  --emerald-600: #0b8a5f;
  --emerald-700: #097a53;
  --emerald-50: #e7f6ef;

  /* Ink / neutrals */
  --ink: #0c1726;          /* near-black navy text */
  --ink-2: #28384c;        /* secondary heading */
  --muted: #586475;        /* body muted */
  --faint: #8b97a8;        /* captions */
  --line: #e8eaf0;         /* hairline borders */
  --line-2: #eff1f6;
  --surface: #ffffff;
  --page: #f7f8fb;         /* page bg */
  --page-2: #f1f3f8;       /* alt section bg */

  /* Dark sections */
  --navy: #0a1626;
  --navy-2: #0e2034;
  --navy-card: #11233a;
  --navy-line: rgba(255, 255, 255, 0.09);
  --navy-muted: #9fb0c4;

  /* Touchpoint accents (from app donut) */
  --c-product: #2f6fed;
  --c-cart: #7a5af0;
  --c-drawer: #e0922f;
  --c-post: #0e9f6e;
  --c-thanks: #e0533d;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(12, 23, 38, 0.06);
  --sh-sm: 0 2px 8px rgba(12, 23, 38, 0.06), 0 1px 2px rgba(12, 23, 38, 0.04);
  --sh-md: 0 8px 24px rgba(12, 23, 38, 0.08), 0 2px 6px rgba(12, 23, 38, 0.04);
  --sh-lg: 0 24px 60px -16px rgba(12, 23, 38, 0.22), 0 8px 24px -8px rgba(12, 23, 38, 0.12);
  --sh-glow: 0 24px 70px -20px rgba(90, 79, 230, 0.45);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: "Schibsted Grotesk", "Hanken Grotesk", sans-serif;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--page); }
.section--page { background: var(--page); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow--emerald { color: var(--emerald-600); }
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6;
}

.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
}
.sec-head p {
  margin-top: 18px; color: var(--muted); font-size: clamp(17px, 2vw, 19px);
  max-width: 620px; margin-left: auto; margin-right: auto;
}

.lead { color: var(--muted); font-size: 19px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--emerald); color: #fff;
  box-shadow: 0 6px 18px -4px rgba(14, 159, 110, 0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { background: var(--emerald-600); transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(14, 159, 110, 0.55); }
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover { border-color: #d4d8e2; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #16263c; transform: translateY(-1px); }
.btn-onnavy {
  background: rgba(255,255,255,0.08); color: #fff; border-color: var(--navy-line);
  backdrop-filter: blur(6px);
}
.btn-onnavy:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.pill .dot--live { box-shadow: 0 0 0 0 rgba(14,159,110,0.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(14,159,110,.45);} 70%{box-shadow:0 0 0 6px rgba(14,159,110,0);} 100%{box-shadow:0 0 0 0 rgba(14,159,110,0);} }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase;
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-xs); }
.nav-inner { height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 8px rgba(90,79,230,0.35); }
.brand b { font-family: "Schibsted Grotesk", sans-serif; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 13px; border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--page-2); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .login { font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; }
.nav-right .login:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding: 72px 0 92px; background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 50% at 50% -8%, rgba(90,79,230,0.10), transparent 70%),
    radial-gradient(40% 40% at 92% 8%, rgba(14,159,110,0.08), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 62px); letter-spacing: -0.035em; margin-top: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--emerald) 10%, var(--violet) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: 19.5px; color: var(--muted); max-width: 520px; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ht-rating { display: flex; align-items: center; gap: 12px; }
.ht-rating .stars { display: flex; gap: 2px; color: #f5a623; }
.ht-rating .stars svg { width: 18px; height: 18px; }
.ht-rating .rt b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.ht-rating .rt span { font-size: 13.5px; color: var(--muted); }
.hero-trust .sep { width: 1px; height: 34px; background: var(--line); }
.ht-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.ht-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 8px 13px; border-radius: var(--r-pill); box-shadow: var(--sh-xs); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.ht-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.ht-chip svg { width: 15px; height: 15px; color: var(--emerald); }

.hero-visual { position: relative; }
.hero-anim { opacity: 1; }
@media (prefers-reduced-motion: no-preference){
  .hero-anim { transform: translateY(16px); animation: heroIn 0.7s var(--ease) forwards; }
  .hero-anim--2 { animation-delay: 0.18s; }
  .hero-anim--3 { animation-delay: 0.3s; }
}
@keyframes heroIn { to { transform: none; } }

/* =========================================================================
   PRODUCT UI MOCKUPS  (recreated app surfaces)
   ========================================================================= */
.win {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #fcfcfe; }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1){ background:#ff5f57;} .win-dots i:nth-child(2){ background:#febc2e;} .win-dots i:nth-child(3){ background:#28c840;}
.win-title { font-size: 12.5px; color: var(--faint); font-weight: 600; margin-left: 6px; display: flex; align-items: center; gap: 7px; }
.win-title img { width: 16px; height: 16px; border-radius: 5px; }

/* Dashboard hero banner (dark) */
.dash { padding: 16px; background: var(--page); }
.dash-banner {
  border-radius: var(--r-md); padding: 22px 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 10%, #143150 0%, var(--navy-2) 42%, var(--navy) 100%);
}
.dash-banner::after {
  content:""; position:absolute; right:-40px; top:-30px; width:230px; height:230px; border-radius:50%;
  background: radial-gradient(circle, rgba(90,79,230,0.28), transparent 65%);
}
.dash-banner .label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: #5ad0a0; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.dash-banner .plan-badge { background: rgba(122,90,240,0.28); color: #c9bdff; padding: 3px 9px; border-radius: var(--r-pill); font-size: 10px; letter-spacing: 0.04em; }
.dash-banner .earned { font-family: "Schibsted Grotesk"; font-size: 38px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.03em; }
.dash-banner .earned small { font-size: 20px; font-weight: 700; }
.dash-banner .sub { color: var(--navy-muted); font-size: 13.5px; }
.dash-banner .acts { display: flex; gap: 9px; margin-top: 16px; }
.dash-banner .b1 { background: var(--emerald); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 15px; border-radius: var(--r-sm); box-shadow: 0 6px 16px -4px rgba(14,159,110,0.6); }
.dash-banner .b2 { background: rgba(255,255,255,0.08); border: 1px solid var(--navy-line); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 15px; border-radius: var(--r-sm); }
.dash-banner .pot {
  position: absolute; right: 22px; top: 22px; background: rgba(13,28,46,0.55); border: 1px solid var(--navy-line);
  border-radius: var(--r-sm); padding: 12px 15px; backdrop-filter: blur(4px); min-width: 150px;
}
.dash-banner .pot .k { font-size: 10px; letter-spacing: 0.1em; color: var(--navy-muted); text-transform: uppercase; }
.dash-banner .pot .v { font-family: "Schibsted Grotesk"; font-size: 26px; font-weight: 800; color: #34d399; }
.dash-banner .pot .m { font-size: 11px; color: var(--navy-muted); margin-top: 2px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 13px 14px; position: relative; overflow: hidden;
}
.kpi::before { content:""; position:absolute; left:0; top:0; height:3px; width:100%; }
.kpi.k1::before{ background: var(--emerald);} .kpi.k2::before{ background: var(--c-product);} .kpi.k3::before{ background: var(--c-cart);} .kpi.k4::before{ background: var(--c-drawer);}
.kpi .kpi-top { display:flex; align-items:center; justify-content:space-between; }
.kpi .kpi-l { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.kpi .kpi-ic { width: 24px; height: 24px; border-radius: 7px; background: var(--page-2); display:flex; align-items:center; justify-content:center; color: var(--ink-2); }
.kpi .kpi-ic svg { width: 14px; height: 14px; }
.kpi .kpi-v { font-family: "Schibsted Grotesk"; font-size: 21px; font-weight: 800; margin-top: 7px; letter-spacing: -0.02em; }

/* Generic stat chip used elsewhere */
.spark { height: 3px; border-radius: 3px; margin-top: 9px; background: linear-gradient(90deg,var(--emerald),rgba(14,159,110,0.15)); }

/* Floating mini cards on hero */
.float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-md); padding: 12px 14px; display: flex; align-items: center; gap: 11px; z-index: 3;
}
.float .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.float .ic svg { width: 20px; height: 20px; }
.float .f-k { font-size: 11px; color: var(--faint); font-weight: 600; }
.float .f-v { font-family: "Schibsted Grotesk"; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.float--tl { top: -26px; right: -22px; left: auto; }
.float--br { bottom: -24px; right: -22px; }
@media (max-width: 1080px){ .float--tl{ right: -6px;} .float--br{ right:-4px;} }

/* =========================================================================
   LOGO / TRUST STRIP
   ========================================================================= */
.trustbar { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trustbar .tb-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 24px; letter-spacing: 0.02em; }
.tb-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.tb-stat { display: flex; align-items: center; gap: 14px; text-align: left; }
.tb-stat + .tb-stat { border-left: 1px solid var(--line); padding-left: 22px; }
.tb-ic { width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 22px -8px var(--tb-glow, rgba(14,159,110,0.5)); transition: transform 0.25s var(--ease); }
.tb-ic svg { width: 26px; height: 26px; }
.tb-stat:hover .tb-ic { transform: translateY(-3px) rotate(-4deg); }
.tb-ic--e { background: linear-gradient(140deg, var(--emerald), var(--emerald-700)); --tb-glow: rgba(14,159,110,0.5); }
.tb-ic--b { background: linear-gradient(140deg, var(--c-product), #1f54c9); --tb-glow: rgba(47,111,237,0.5); }
.tb-ic--v { background: linear-gradient(140deg, var(--c-cart), #5a3fd0); --tb-glow: rgba(122,90,240,0.5); }
.tb-ic--a { background: linear-gradient(140deg, var(--c-drawer), #c4760f); --tb-glow: rgba(224,146,47,0.5); }
.tb-stat .v { font-family: "Schibsted Grotesk"; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.tb-stat .v .u { color: var(--emerald); }
.tb-stat .k { font-size: 13.5px; color: var(--muted); margin-top: 5px; font-weight: 500; line-height: 1.3; }

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px 28px; box-shadow: var(--sh-sm);
}
.step-n {
  font-family: "Schibsted Grotesk"; font-size: 14px; font-weight: 800; color: var(--violet);
  width: 34px; height: 34px; border-radius: 10px; background: var(--violet-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 21px; }
.step p { color: var(--muted); margin-top: 9px; font-size: 15.5px; }
.step-vis { margin-top: 20px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--page); padding: 14px; }
.step-arrow { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); color: var(--line); z-index: 2; }
.step-arrow svg { width: 28px; height: 28px; }

/* mini funnel diagram */
.mini-funnel { display: flex; flex-direction: column; gap: 7px; }
.mf-row { display:flex; align-items:center; gap:9px; background:#fff; border:1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; font-weight: 600; }
.mf-row .mf-ic { width:22px; height:22px; border-radius: 6px; display:flex;align-items:center;justify-content:center; color:#fff; font-size: 11px; }
.mf-row .mf-tag { margin-left:auto; font-size: 10px; font-weight:700; padding: 2px 7px; border-radius: var(--r-pill); }

/* targeting chips */
.target-vis { display:flex; flex-direction: column; gap: 8px; }
.tg-chip { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:9px; padding:8px 11px; font-size:12.5px; font-weight:600; }
.tg-chip .ck { width:18px;height:18px;border-radius:5px;background:var(--emerald-50); color:var(--emerald); display:flex;align-items:center;justify-content:center; }
.tg-chip .ck svg{width:12px;height:12px;}
.tg-and { font-size:10px;font-weight:800;color:var(--violet); letter-spacing:0.1em; align-self:flex-start; padding-left:4px; }

/* aov bar */
.aov-vis { text-align:center; }
.aov-bars { display:flex; align-items:flex-end; justify-content:center; gap: 16px; min-height: 92px; margin: 4px 0 10px; }
.aov-col { width: 54px; display:flex; flex-direction:column; align-items:center; gap:7px; }
.aov-bar { width: 100%; border-radius: 8px 8px 4px 4px; }
.aov-bar.before { height: 44px; background: var(--page-2); border:1px solid var(--line); }
.aov-bar.after { height: 80px; background: linear-gradient(180deg,var(--emerald),var(--emerald-700)); box-shadow: 0 8px 18px -6px rgba(14,159,110,0.5); }
.aov-col span { font-size: 11px; color: var(--faint); font-weight:700; }
.aov-col b { font-family:"Schibsted Grotesk"; font-size: 15px; }

/* =========================================================================
   TOUCHPOINTS
   ========================================================================= */
.tp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.tp-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--sh-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  position: relative; overflow: hidden;
}
.tp-card::before { content:""; position:absolute; inset:0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.tp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tp-card:hover::before { transform: scaleX(1); }
.tp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tp-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--accent); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.tp-ic svg { width: 24px; height: 24px; }
.tp-max { font-size: 11px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, #fff); padding: 5px 10px; border-radius: var(--r-pill); }
.tp-card h3 { font-size: 20px; }
.tp-why { color: var(--muted); font-size: 15px; margin-top: 9px; flex-grow: 1; }
.tp-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.tp-foot .lift { font-family: "Schibsted Grotesk"; font-weight: 800; color: var(--ink); font-size: 15px; }
.tp-foot .lift span { color: var(--emerald); }
.tp-foot .uc { font-size: 12.5px; color: var(--faint); }

/* The 6th cell — summary tile */
.tp-summary {
  grid-column: span 1; background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.tp-summary::after{ content:""; position:absolute; right:-30px; bottom:-30px; width:180px;height:180px;border-radius:50%; background: radial-gradient(circle, rgba(90,79,230,0.35), transparent 65%);}
.tp-summary h3 { color:#fff; font-size: 24px; position:relative; }
.tp-summary p { color: var(--navy-muted); font-size: 15px; margin-top: 10px; position:relative; }
.tp-summary .btn { margin-top: 20px; align-self: flex-start; position: relative; }

/* =========================================================================
   FEATURES
   ========================================================================= */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 20px;
  box-shadow: var(--sh-xs); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s; min-height: 100%;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: #dcdfe8; }
.feat-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--violet-50); color: var(--violet); display: flex; align-items: center; justify-content: center; margin-bottom: 15px; transition: background 0.2s, color 0.2s; }
.feat:hover .feat-ic { background: var(--violet); color: #fff; }
.feat-ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 16.5px; letter-spacing: -0.01em; }
.feat p { color: var(--muted); font-size: 14px; margin-top: 7px; line-height: 1.5; }

/* =========================================================================
   SHOWCASE (alternating)
   ========================================================================= */
.showcases { display: flex; flex-direction: column; gap: 96px; }
.showcase { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.showcase.flip .sc-copy { order: 2; }
.showcase.flip .sc-visual { order: 1; }
.sc-copy { max-width: 480px; }
.sc-copy .eyebrow { margin-bottom: 16px; }
.sc-copy h3 { font-size: clamp(26px, 3.2vw, 36px); }
.sc-copy p { color: var(--muted); margin-top: 16px; font-size: 17.5px; }
.sc-out { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.sc-out li { display: flex; align-items: flex-start; gap: 12px; list-style: none; font-size: 15.5px; font-weight: 500; }
.sc-out .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--emerald-50); color: var(--emerald); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.sc-out .ck svg { width: 14px; height: 14px; }
.sc-out li b { font-family: "Schibsted Grotesk"; }
.sc-out ul { margin: 0; padding: 0; }

.sc-visual { position: relative; }

/* ---- showcase: analytics donut + bars ---- */
.an { padding: 20px; }
.an-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.an-head h4 { font-size: 16px; }
.an-head .range { font-size: 11px; color: var(--faint); background: var(--page-2); padding: 5px 10px; border-radius: var(--r-pill); font-weight: 600; }
.an-body { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.donut { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.donut svg { transform: rotate(-90deg); }
.donut .center { position: absolute; inset: 0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut .center b { font-family:"Schibsted Grotesk"; font-size: 23px; color: var(--emerald); letter-spacing:-0.02em;}
.donut .center span { font-size: 10.5px; color: var(--faint); font-weight: 600; }
.an-bars { display: flex; flex-direction: column; gap: 7px; }
.an-bar { display:flex; align-items:center; gap: 9px; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.an-bar .sw { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.an-bar .nm { color: var(--ink-2); }
.an-bar .vv { margin-left: auto; font-family:"Schibsted Grotesk"; font-weight: 800; }
.an-bar .sh { color: var(--faint); font-weight: 600; font-size: 11px; }

/* ---- showcase: AI generator ---- */
.ai { padding: 18px; }
.ai-prompt { background: var(--page); border:1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.ai-prompt .row { display:flex; align-items:center; gap:9px; font-size: 12px; color: var(--faint); font-weight:600; }
.ai-chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill); background: var(--violet-50); color: var(--violet); }
.ai-gen { margin-top: 12px; display:flex; align-items:center; justify-content:center; gap:8px; background: linear-gradient(100deg,var(--violet),#7a5af0); color:#fff; font-weight:700; font-size:13px; padding:11px; border-radius: var(--r-sm); box-shadow: 0 10px 22px -8px rgba(90,79,230,0.6); }
.ai-gen svg{ width:16px;height:16px;}
.ai-out { margin-top: 14px; background:#fff; border:1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.ai-out .gen-label { font-size:10px; font-weight:800; letter-spacing:0.12em; color: var(--violet); text-transform: uppercase; display:flex; align-items:center; gap:7px; margin-bottom: 10px;}
.ai-out h5 { font-family:"Schibsted Grotesk"; font-size: 18px; }
.ai-out p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.ai-out .cta-row { display:flex; gap:8px; margin-top: 12px; }
.ai-out .cta-row .a1 { flex:1; background: var(--emerald); color:#fff; text-align:center; font-weight:700; font-size:12.5px; padding:9px; border-radius:8px;}
.ai-out .cta-row .a2 { flex:1; background:#fff; border:1px solid var(--line); color:var(--muted); text-align:center; font-weight:600; font-size:12.5px; padding:9px; border-radius:8px;}
.typing-cursor { display:inline-block; width:2px; height:1em; background: var(--violet); margin-left:1px; vertical-align:-2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- showcase: page builder ---- */
.pb { padding: 0; }
.pb-top { display:flex; align-items:center; gap: 10px; padding: 11px 14px; border-bottom:1px solid var(--line-2); background:#fcfcfe; }
.pb-top .seg { display:flex; gap:4px; background: var(--page-2); padding:3px; border-radius: 8px; }
.pb-top .seg b { font-size: 11px; font-weight:700; padding: 4px 10px; border-radius: 6px; color: var(--faint); }
.pb-top .seg b.on { background:#fff; color: var(--ink); box-shadow: var(--sh-xs); }
.pb-top .save { margin-left:auto; font-size: 11px; font-weight:700; color:#fff; background: var(--emerald); padding: 6px 12px; border-radius: 7px; }
.pb-body { display:grid; grid-template-columns: 120px 1fr; min-height: 250px; }
.pb-rail { border-right: 1px solid var(--line-2); padding: 12px 10px; background: #fcfcfe; display:flex; flex-direction:column; gap:6px; }
.pb-rail .ri { display:flex; align-items:center; gap:7px; font-size: 11px; font-weight:600; color: var(--muted); padding:6px 8px; border-radius:7px;}
.pb-rail .ri.on { background: var(--violet-50); color: var(--violet); }
.pb-rail .ri svg{ width:13px;height:13px;}
.pb-canvas { padding: 18px; background: var(--page); display:flex; flex-direction:column; gap:10px; }
.pb-sec { background:#fff; border:1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; }
.pb-sec.sel { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(90,79,230,0.12); }
.pb-banner { background: var(--ink); color:#fff; text-align:center; font-weight:700; font-size:12px; padding:10px; border-radius:8px;}
.pb-prod { display:flex; gap:12px; align-items:center; }
.pb-prod .ph { width:64px; height:64px; border-radius:8px; background: var(--page-2); display:flex;align-items:center;justify-content:center; font-size:22px;}
.pb-prod .by { flex:1; }
.pb-prod .by .pn { font-family:"Schibsted Grotesk"; font-weight:800; font-size:15px;}
.pb-prod .by .pr { font-size:12px; }
.pb-prod .by .pr s { color: var(--faint);}
.pb-prod .by .pr b { color: var(--emerald);}
.pb-prod .add { background: var(--c-product); color:#fff; font-weight:700; font-size:11px; padding:8px 10px; border-radius:7px; text-align:center; margin-top:6px;}

/* ---- showcase: A/B test ---- */
.ab { padding: 20px; }
.ab-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px;}
.ab-head h4{ font-size:16px;}
.ab-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ab-var { border:1px solid var(--line); border-radius: var(--r-md); padding: 15px; position:relative; }
.ab-var.win { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14,159,110,0.1); background: var(--emerald-50);}
.ab-var .vh { display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px;}
.ab-var .vt { font-weight:800; font-size:13px; }
.ab-var .vbadge { font-size: 9.5px; font-weight:800; letter-spacing:0.06em; padding:3px 8px; border-radius: var(--r-pill); text-transform:uppercase;}
.ab-var .conv { font-family:"Schibsted Grotesk"; font-size: 30px; font-weight:800; letter-spacing:-0.03em; }
.ab-var .conv small { font-size:13px; color:var(--faint); font-weight:700;}
.ab-var .meta { font-size:11px; color: var(--muted); margin-top:4px; }
.ab-var .track { height:6px; border-radius:4px; background: var(--page-2); margin-top:12px; overflow:hidden;}
.ab-var .track i { display:block; height:100%; border-radius:4px;}
.ab-split { margin-top:12px; display:flex; align-items:center; gap:10px; font-size:11.5px; color:var(--muted); font-weight:600; }
.ab-split .bar { flex:1; height:8px; border-radius:5px; background: var(--c-product); position:relative; overflow:hidden;}
.ab-split .bar i { position:absolute; right:0; top:0; bottom:0; width:30%; background: var(--emerald);}

/* =========================================================================
   USE CASES
   ========================================================================= */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--sh-sm); display:flex; flex-direction:column; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.uc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.uc-top { display:flex; align-items:center; gap: 13px; margin-bottom: 16px; }
.uc-emoji { width: 48px; height: 48px; border-radius: 13px; display:flex; align-items:center; justify-content:center; font-size: 24px; background: var(--page-2); }
.uc-cat { font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing:0.04em; text-transform:uppercase;}
.uc-card h3 { font-size: 19px; margin-top:2px; }
.uc-offer { font-size: 14.5px; color: var(--muted); margin-top: 12px; flex-grow:1; }
.uc-offer b { color: var(--ink); font-weight:700; }
.uc-foot { margin-top: 18px; padding-top:16px; border-top:1px solid var(--line-2); display:flex; align-items:center; justify-content:space-between; }
.uc-foot .why { font-size: 12px; color: var(--faint); max-width: 60%;}
.uc-foot .lift { font-family:"Schibsted Grotesk"; font-weight:800; color: var(--emerald); font-size: 15px; }

/* =========================================================================
   COMPARISON
   ========================================================================= */
.cmp-wrap { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); background:#fff; }
.cmp-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: stretch; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line-2); }
.cmp-head { background: var(--page); }
.cmp-head .cmp-cell { padding: 20px 22px; }
.cmp-cell { padding: 16px 22px; display: flex; align-items: center; font-size: 15px; }
.cmp-cell.feat-name { font-weight: 600; color: var(--ink-2); }
.cmp-cell.kaptha { background: linear-gradient(180deg, rgba(90,79,230,0.05), rgba(14,159,110,0.04)); border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font-weight: 600; gap: 9px; }
.cmp-cell.them { color: var(--muted); gap: 9px; }
.cmp-h-k { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.cmp-h-k .nm { display:flex; align-items:center; gap:8px; font-family:"Schibsted Grotesk"; font-weight:800; font-size:16px;}
.cmp-h-k .nm img { width:22px;height:22px;border-radius:6px;}
.cmp-h-k .tag { background: var(--emerald-50); color: var(--emerald-700); }
.cmp-h-t { font-weight:700; color: var(--ink-2); font-size:15px;}
.ic-yes { color: var(--emerald); flex-shrink:0;} .ic-yes svg{width:19px;height:19px;}
.ic-no { color: #c2c9d4; flex-shrink:0;} .ic-no svg{width:18px;height:18px;}
.cmp-scroll { max-width: 860px; margin: 0 auto; }
.cmp-hint { display: none; }
@media (max-width:640px){
  .cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; border-radius: var(--r-xl); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .cmp-wrap { min-width: 600px; }
  .cmp-head { display: grid !important; }
  .cmp-cell { font-size: 13.5px; padding: 13px 14px; }
  .cmp-cell.feat-name { font-size: 13.5px; }
  .cmp-hint { display: block; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--faint); margin-top: 14px; letter-spacing: 0.02em; animation: hintnudge 1.8s var(--ease) infinite; }
}
@keyframes hintnudge { 0%,100%{ transform: translateX(0);} 50%{ transform: translateX(5px);} }

/* =========================================================================
   PRICING
   ========================================================================= */
.price-hero { max-width: 760px; margin: 0 auto 44px; }
.price-card-wrap { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: stretch; }
.price-main {
  background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 38px 36px; position: relative; overflow: hidden;
  box-shadow: var(--sh-lg);
}
.price-main::after{ content:""; position:absolute; right:-60px; top:-50px; width:280px;height:280px;border-radius:50%; background: radial-gradient(circle, rgba(90,79,230,0.3), transparent 65%);}
.price-main .pm-top { display:flex; align-items:center; gap:10px; position:relative; }
.price-main .pm-top .tag { background: rgba(14,159,110,0.2); color:#5ad0a0; }
.price-main h3 { color:#fff; font-size: 26px; margin-top: 16px; position:relative; }
.price-main .amount { display:flex; align-items:baseline; gap: 8px; margin-top: 14px; position:relative; }
.price-main .amount .big { font-family:"Schibsted Grotesk"; font-size: 56px; font-weight:800; letter-spacing:-0.04em;}
.price-main .amount .per { color: var(--navy-muted); font-size: 15px; }
.price-main .usage { margin-top: 6px; color: #5ad0a0; font-weight: 700; font-size: 15px; position:relative; }
.price-main .pm-list { margin: 24px 0 0; padding: 0; list-style:none; display:flex; flex-direction:column; gap: 12px; position:relative; }
.price-main .pm-list li { display:flex; align-items:flex-start; gap: 11px; font-size: 15px; color: #e6ecf4; }
.price-main .pm-list .ck { width:22px;height:22px;border-radius:6px; background: rgba(14,159,110,0.2); color:#5ad0a0; display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.price-main .pm-list .ck svg{width:13px;height:13px;}
.price-main .btn { margin-top: 28px; position:relative; }

.price-side { display:flex; flex-direction:column; gap: 16px; }
.price-fact { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-sm); }
.price-fact .fic { width: 40px; height:40px; border-radius:11px; display:flex;align-items:center;justify-content:center; margin-bottom: 12px; }
.price-fact .fic svg { width:20px;height:20px;}
.price-fact h4 { font-size: 17px; }
.price-fact p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.price-scale { background: var(--page); border:1px dashed var(--line); border-radius: var(--r-lg); padding: 18px 22px; }
.price-scale .ps-t { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.price-scale .ps-d { font-size: 13px; color: var(--muted); }
.price-scale a { color: var(--violet); font-weight: 700; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background:#fff; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item.open { border-color: #d8dbe6; box-shadow: var(--sh-sm); }
.faq-q { width:100%; text-align:left; background:none; border:none; padding: 20px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-family:"Schibsted Grotesk"; font-weight:700; font-size: 17px; color: var(--ink); }
.faq-q .chev { flex-shrink:0; width: 28px; height:28px; border-radius:8px; background: var(--page-2); display:flex;align-items:center;justify-content:center; transition: transform 0.25s var(--ease), background 0.2s; }
.faq-q .chev svg { width: 16px; height:16px; color: var(--ink-2); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--violet-50); }
.faq-item.open .faq-q .chev svg { color: var(--violet); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 130% at 80% 0%, #16315a 0%, var(--navy-2) 45%, var(--navy) 100%);
}
.final::before { content:""; position:absolute; left:-100px; bottom:-120px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(90,79,230,0.4), transparent 62%); }
.final::after { content:""; position:absolute; right:-80px; top:-100px; width:360px; height:360px; border-radius:50%; background: radial-gradient(circle, rgba(14,159,110,0.32), transparent 62%); }
.final-inner { position: relative; z-index:1; text-align:center; max-width: 680px; margin: 0 auto; padding: 104px 0; }
.final .eyebrow { color: #5ad0a0; justify-content:center; }
.final h2 { color:#fff; font-size: clamp(34px, 5vw, 54px); letter-spacing:-0.035em; margin-top: 16px; }
.final h2 .grad { background: linear-gradient(100deg,#5ad0a0, #b3a8ff); -webkit-background-clip:text;background-clip:text;color:transparent;}
.final p { color: var(--navy-muted); font-size: 19px; margin-top: 18px; }
.final-cta { margin-top: 30px; display:flex; gap: 12px; justify-content:center; flex-wrap:wrap; }
.final-assure { margin-top: 24px; display:flex; gap: 22px; justify-content:center; flex-wrap:wrap; font-size: 14px; color: var(--navy-muted); }
.final-assure span { display:flex; align-items:center; gap:7px; }
.final-assure svg { width:16px; height:16px; color:#5ad0a0; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--navy); color: var(--navy-muted); padding: 60px 0 32px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
.footer .brand { color:#fff; margin-bottom: 14px; }
.footer-blurb { font-size: 14.5px; max-width: 280px; line-height:1.6; }
.footer-col h5 { color:#fff; font-size: 13px; letter-spacing:0.06em; text-transform:uppercase; margin-bottom: 14px; font-family:"Hanken Grotesk"; font-weight:700;}
.footer-col a { display:block; font-size: 14.5px; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color:#fff; }
.footer-bot { display:flex; align-items:center; justify-content:space-between; padding-top: 24px; font-size: 13.5px; flex-wrap:wrap; gap:12px; }
.footer-bot .made { display:flex; align-items:center; gap:8px; }

/* =========================================================================
   SCROLL REVEAL + MOTION SYSTEM
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; } .reveal.d2 { transition-delay: 0.14s; } .reveal.d3 { transition-delay: 0.21s; } .reveal.d4 { transition-delay: 0.28s; } .reveal.d5 { transition-delay: 0.35s; } .reveal.d6 { transition-delay: 0.42s; }
/* directional + scale variants */
.reveal--scale { transform: translateY(28px) scale(0.95); }
.reveal--left  { transform: translateX(-42px); }
.reveal--right { transform: translateX(42px); }
.reveal--scale.in, .reveal--left.in, .reveal--right.in { transform: none; }

/* Section heads: animate eyebrow → h2 → p in sequence when the head reveals */
@media (prefers-reduced-motion: no-preference){
  .sec-head.reveal .eyebrow,
  .sec-head.reveal h2,
  .sec-head.reveal p { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .sec-head.reveal.in .eyebrow { opacity: 1; transform: none; transition-delay: 0.02s; }
  .sec-head.reveal.in h2 { opacity: 1; transform: none; transition-delay: 0.12s; }
  .sec-head.reveal.in p  { opacity: 1; transform: none; transition-delay: 0.22s; }

  /* Showcase: copy + mock animate from opposite sides */
  .showcase .sc-copy   { opacity: 0; transform: translateX(-26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .showcase .sc-visual { opacity: 0; transform: translateX(26px) scale(0.98); transition: opacity 0.75s var(--ease) 0.1s, transform 0.75s var(--ease) 0.1s; }
  .showcase.flip .sc-copy   { transform: translateX(26px); }
  .showcase.flip .sc-visual { transform: translateX(-26px) scale(0.98); }
  .showcase.in .sc-copy, .showcase.in .sc-visual { opacity: 1; transform: none; }

  /* AOV bars grow up when step 3 reveals */
  .step.reveal .aov-bar { transform: scaleY(0); transform-origin: bottom; transition: transform 0.8s var(--ease); }
  .step.reveal.in .aov-bar.before { transform: scaleY(1); transition-delay: 0.15s; }
  .step.reveal.in .aov-bar.after  { transform: scaleY(1); transition-delay: 0.38s; }

  /* Analytics donut pops + spins in; legend rows cascade */
  .showcase .donut { opacity: 0; transform: rotate(-25deg) scale(0.8); transition: opacity 0.7s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s; }
  .showcase.in .donut { opacity: 1; transform: none; }
  .showcase .an-bar { opacity: 0; transform: translateX(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .showcase.in .an-bar { opacity: 1; transform: none; }
  .showcase.in .an-bar:nth-child(1){ transition-delay: 0.30s; }
  .showcase.in .an-bar:nth-child(2){ transition-delay: 0.40s; }
  .showcase.in .an-bar:nth-child(3){ transition-delay: 0.50s; }
  .showcase.in .an-bar:nth-child(4){ transition-delay: 0.60s; }

  /* A/B test winner bar fills from the left when revealed */
  .showcase .track i { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.3s; }
  .showcase.in .track i { transform: scaleX(1); }

  /* Mini-funnel rows cascade in */
  .step.reveal .mf-row, .showcase .mf-row { opacity: 0; transform: translateX(-12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
  .step.reveal.in .mf-row, .showcase.in .mf-row { opacity: 1; transform: none; }
  .step.reveal.in .mf-row:nth-child(2), .showcase.in .mf-row:nth-child(2){ transition-delay: 0.1s; }
  .step.reveal.in .mf-row:nth-child(3), .showcase.in .mf-row:nth-child(3){ transition-delay: 0.2s; }
  .step.reveal.in .mf-row:nth-child(4), .showcase.in .mf-row:nth-child(4){ transition-delay: 0.3s; }

  /* ----- Ambient continuous motion ----- */
  .float--tl { animation: bob 6s var(--ease) infinite; }
  .float--br { animation: bob 7s var(--ease) infinite 0.8s; }
  .tp-summary::after { animation: floaty2 9s var(--ease) infinite; }
  .uc-card[style*="--ink"] > div:first-child { animation: floaty2 10s var(--ease) infinite; }
  .eyebrow::before { animation: linegrow 2.8s var(--ease) infinite; }
  .spark { background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
  .pill .dot--live { animation: pulse 2.2s infinite; }
}
@keyframes bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }
@keyframes floaty2 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-12px,10px);} }
@keyframes linegrow { 0%,100%{ opacity: 0.5; width: 18px;} 50%{ opacity: 0.9; width: 26px;} }
@keyframes shimmer { 0%{ background-position: 200% 0;} 100%{ background-position: -200% 0;} }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal--scale, .reveal--left, .reveal--right { opacity: 1 !important; transform: none !important; }
  .sec-head.reveal .eyebrow, .sec-head.reveal h2, .sec-head.reveal p,
  .showcase .sc-copy, .showcase .sc-visual, .showcase .donut, .showcase .an-bar,
  .step.reveal .aov-bar, .showcase .track i, .step.reveal .mf-row, .showcase .mf-row { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { max-width: 640px; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn-primary, .nav-right .login { display: none; }
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step-arrow { display: none; }
  .showcase, .showcase.flip .sc-copy, .showcase.flip .sc-visual { grid-template-columns: 1fr; order: initial; }
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcases { gap: 72px; }
  .price-card-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* mobile menu */
  .mobile-menu { display: block; position: fixed; inset: 70px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg); padding: 16px var(--gutter) 22px; transform: translateY(-120%); transition: transform 0.3s var(--ease); z-index: 49; }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a { display:block; padding: 13px 6px; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line-2); }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .tb-stats { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .tb-stat { padding: 6px 0; gap: 12px; }
  .tb-stat + .tb-stat { border-left: none; padding-left: 0; }
  .tb-stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .tb-ic { width: 46px; height: 46px; border-radius: 13px; }
  .tb-ic svg { width: 23px; height: 23px; }
  .tp-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-banner .pot { position: static; margin-top: 16px; }
  .dash-banner .earned { font-size: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .an-body { grid-template-columns: 1fr; }
  .ab-grid { grid-template-columns: 1fr; }
  .float { display: none; }
  .hero { padding: 48px 0 64px; }

  /* Larger, consistent type on mobile */
  .step p, .tp-why, .feat p, .uc-offer, .sc-copy p, .tp-summary p { font-size: 15.5px; }
  .tp-foot .uc, .uc-foot .why { font-size: 13px; }
  .feat h3 { font-size: 17px; }
  .faq-q { font-size: 16.5px; }
  .faq-a-inner { font-size: 15.5px; }
  .lead, .hero-sub { font-size: 17.5px; }
  .sec-head p { font-size: 16.5px; }
}
@media (max-width: 420px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
