/* Clone8 public site — one stylesheet, written to a consistent scale.
   Tokens match the dashboard (hsl triplets). Spacing on an 8px grid, radius 12/16, one accent. */
:root {
  --background: 0 0% 100%; --foreground: 240 10% 3.9%;
  --card: 0 0% 100%; --muted: 240 4.8% 95.9%; --muted-foreground: 240 3.8% 42%;
  --primary: 173 80% 36%; --primary-foreground: 0 0% 100%;
  --border: 240 5.9% 90%; --ring: 173 80% 40%;
  --shadow: 240 10% 10%;
  --r: 12px; --r-lg: 18px; --max: 1120px; --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: 240 10% 4%; --foreground: 0 0% 98%;
    --card: 240 8% 6.5%; --muted: 240 6% 11%; --muted-foreground: 240 5% 66%;
    --primary: 173 80% 45%; --primary-foreground: 240 10% 4%;
    --border: 240 6% 13%; --ring: 173 80% 45%; --shadow: 0 0% 0%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: 240 10% 4%; --foreground: 0 0% 98%;
  --card: 240 8% 6.5%; --muted: 240 6% 11%; --muted-foreground: 240 5% 66%;
  --primary: 173 80% 45%; --primary-foreground: 240 10% 4%;
  --border: 240 6% 13%; --ring: 173 80% 45%; --shadow: 0 0% 0%;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01", "tnum" 0; background: hsl(var(--background)); color: hsl(var(--foreground)); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 80% -10%, hsl(var(--primary) / .14), transparent 60%), radial-gradient(700px 400px at -10% 30%, hsl(var(--primary) / .07), transparent 60%); }
a { color: inherit; }
h1, h2, h3 { font-family: "Inter Display", Inter, ui-sans-serif, sans-serif; letter-spacing: -0.022em; line-height: 1.12; margin: 0; font-weight: 650; }
p { margin: 0; }
section { scroll-margin-top: 88px; }
.skip { position: absolute; left: -999px; top: 8px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: hsl(var(--background) / .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: hsl(var(--border)); }
.top-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.mark { display: inline-block; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 6px 12px hsl(var(--primary) / .35)); }
.word-8 { color: hsl(var(--primary)); }
.mark.sm { width: 22px; height: 22px; filter: none; }
.nav { display: none; gap: 4px; font-size: 14px; }
.nav a { text-decoration: none; color: hsl(var(--muted-foreground)); padding: 8px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link { font-size: 14px; color: hsl(var(--muted-foreground)); text-decoration: none; padding: 8px 10px; border-radius: 8px; display: none; }
.link:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: transparent; color: inherit; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .x { display: none; }
.top.is-open .menu-btn .x { display: block; } .top.is-open .menu-btn .bars { display: none; }
.mobile-nav { display: none; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.top.is-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; display: grid; gap: 2px; max-width: var(--max); margin-inline: auto; }
.mobile-nav a { display: block; padding: 12px 10px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.mobile-nav a:hover { background: hsl(var(--muted)); }
@media (min-width: 900px) { .nav { display: flex; } .link { display: inline-block; } .menu-btn { display: none; } .top.is-open .mobile-nav { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, hsl(var(--primary) / .95), hsl(var(--primary))); color: hsl(var(--primary-foreground)); box-shadow: 0 1px 0 hsl(0 0% 100% / .15) inset, 0 8px 20px -10px hsl(var(--primary) / .8); }
.btn-primary:hover { box-shadow: 0 1px 0 hsl(0 0% 100% / .2) inset, 0 12px 28px -10px hsl(var(--primary) / .9); filter: brightness(1.04); }
.btn-ghost { border-color: hsl(var(--border)); background: hsl(var(--card) / .6); }
.btn-ghost:hover { background: hsl(var(--muted)); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.section { padding: 96px 0 0; }
.section-head { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-lede { margin-top: 16px; color: hsl(var(--muted-foreground)); font-size: 17px; line-height: 1.65; }
.fineprint { font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 1px 0 hsl(0 0% 100% / .03) inset; }
.card h3 { font-size: 17px; }
.card p { font-size: 14.5px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 8px; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 88px; } }
.hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 19ch; }
.lede { margin-top: 24px; max-width: 58ch; font-size: 18px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: hsl(var(--primary) / .15); box-shadow: inset 0 0 0 1px hsl(var(--primary) / .5); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6' fill='none' stroke='%2314b8a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero-visual { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px 0; }
.hero-visual::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(closest-side, hsl(var(--primary) / .22), transparent 70%); filter: blur(20px); z-index: 0; }
.caption { position: relative; font-size: 12.5px; color: hsl(var(--muted-foreground)); text-align: center; }

/* phones: the original on the left; each copy is swept, its "same as original" traits are replaced, and it is stamped ready */
.phones { position: relative; display: flex; gap: 18px; align-items: flex-end; perspective: 1000px; z-index: 1; padding-top: 26px; }
.phone { --w: 130px; position: relative; width: var(--w); height: calc(var(--w) * 2.05); border-radius: 26px; padding: 8px; background: linear-gradient(160deg, hsl(240 6% 22%), hsl(240 8% 8%)); border: 1px solid hsl(0 0% 100% / .08);
  box-shadow: 0 30px 60px -28px hsl(var(--shadow) / .7), inset 0 0 0 1px hsl(0 0% 0% / .5);
  transform: translateY(calc(var(--i) * -8px)) rotateY(calc((var(--i) - 1) * -8deg)); animation: phone-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
@keyframes phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.phone .tag { position: absolute; left: 50%; top: -24px; translate: -50% 0; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: hsl(var(--muted-foreground)); }
.phone.source .tag { color: hsl(var(--foreground)); }
.screen { position: relative; height: 100%; border-radius: 19px; overflow: hidden; background: #0b0b10; isolation: isolate; }
.screen::before { content: ""; position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 40px; height: 11px; border-radius: 6px; background: #0b0b10; box-shadow: 0 0 0 1px hsl(0 0% 100% / .06); z-index: 5; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, hsl(0 0% 100% / .10) 0%, transparent 35%, transparent 70%, hsl(0 0% 100% / .04) 100%); pointer-events: none; z-index: 4; }
.clip { position: absolute; inset: 0; background-size: 200% 200%; animation: clip-drift 10s ease-in-out infinite; }
.clip-a { background-image: linear-gradient(135deg, hsl(173 70% 24%), hsl(240 10% 12%) 55%, hsl(173 80% 40%)); }
.clip-b { background-image: linear-gradient(135deg, hsl(200 60% 22%), hsl(240 10% 12%) 55%, hsl(173 70% 35%)); animation-delay: -3s; }
.clip-c { background-image: linear-gradient(135deg, hsl(160 55% 20%), hsl(240 10% 12%) 55%, hsl(173 75% 45%)); animation-delay: -6s; }
@keyframes clip-drift { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.clip::after { content: ""; position: absolute; left: 50%; top: 38%; width: 40px; height: 40px; translate: -50% -50%; border-radius: 50%; background: hsl(0 0% 100% / .14); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M16 12l12 8-12 8z' fill='white'/%3E%3C/svg%3E"); }
.scan { position: absolute; left: 0; right: 0; height: 26%; background: linear-gradient(180deg, transparent, hsl(var(--primary) / .45) 50%, transparent); box-shadow: 0 0 20px hsl(var(--primary) / .3); animation: scan 6s ease-in-out infinite; animation-delay: calc((var(--i) - 1) * 1.2s); z-index: 2; }
@keyframes scan { 0%, 8% { top: -30%; } 40% { top: 104%; } 100% { top: 104%; } }
.meta { position: absolute; left: 9px; right: 9px; bottom: 46px; margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; z-index: 3; }
.meta li { font-size: 8.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; color: hsl(0 0% 100% / .9); background: hsl(240 10% 6% / .72); border: 1px solid hsl(0 0% 100% / .14); border-radius: 6px; padding: 4px 7px; width: max-content; max-width: 100%; backdrop-filter: blur(3px); }
.meta.still li { color: hsl(0 0% 100% / .75); }
.meta.before li { color: hsl(0 0% 100% / .55); text-decoration: line-through; text-decoration-color: hsl(0 0% 100% / .5); animation: before-out 6s ease-in-out infinite; animation-delay: calc((var(--i) - 1) * 1.2s); }
.meta.before li:nth-child(2) { animation-delay: calc((var(--i) - 1) * 1.2s + .1s); }
.meta.before li:nth-child(3) { animation-delay: calc((var(--i) - 1) * 1.2s + .2s); }
@keyframes before-out { 0%, 18% { opacity: 1; translate: 0 0; filter: blur(0); } 34%, 90% { opacity: 0; translate: 12px 0; filter: blur(2px); } 100% { opacity: 1; translate: 0 0; filter: blur(0); } }
.meta.after li { color: hsl(var(--primary-foreground)); background: hsl(var(--primary) / .92); border-color: transparent; text-decoration: none; opacity: 0; animation: after-in 6s ease-in-out infinite; animation-delay: calc((var(--i) - 1) * 1.2s); }
.meta.after li:nth-child(2) { animation-delay: calc((var(--i) - 1) * 1.2s + .1s); }
.meta.after li:nth-child(3) { animation-delay: calc((var(--i) - 1) * 1.2s + .2s); }
@keyframes after-in { 0%, 30% { opacity: 0; translate: -10px 0; } 40%, 88% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: -10px 0; } }
.stamp { position: absolute; left: 9px; bottom: 11px; white-space: nowrap; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); border-radius: 999px; padding: 5px 9px; z-index: 3; opacity: 0; scale: .8; box-shadow: 0 6px 16px -6px hsl(var(--primary)); animation: stamp-in 6s ease-in-out infinite; animation-delay: calc((var(--i) - 1) * 1.2s); }
.stamp.still { opacity: 1; scale: 1; animation: none; background: hsl(0 0% 100% / .14); color: hsl(0 0% 100% / .9); box-shadow: none; }
@keyframes stamp-in { 0%, 44% { opacity: 0; scale: .8; } 52%, 88% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .8; } }
@media (max-width: 480px) { .phone { --w: 96px; } .meta li { font-size: 8px; } .phones { gap: 10px; } .phone .tag { font-size: 10px; } }

/* ---------- estimator ---------- */
.estimator { margin-top: 36px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .estimator { grid-template-columns: 400px 1fr; } }
.est-control { display: flex; flex-direction: column; }
.est-control > label { font-size: 13px; color: hsl(var(--muted-foreground)); }
.est-value { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.est-value output { font-size: 56px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1; font-family: "Inter Display", Inter, sans-serif; }
.est-value span { color: hsl(var(--muted-foreground)); font-size: 15px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; margin: 0; padding: 0; border: 0; min-height: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)) var(--pct, 50%), hsl(var(--muted)) var(--pct, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: hsl(var(--muted)); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 999px; background: hsl(var(--primary)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: hsl(var(--card)); border: 2px solid hsl(var(--primary)); box-shadow: 0 4px 14px -4px hsl(var(--shadow) / .6), inset 0 0 0 6px hsl(var(--card)), inset 0 0 0 12px hsl(var(--primary)); transition: transform .12s; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: hsl(var(--primary)); border: 3px solid hsl(var(--card)); box-shadow: 0 2px 10px hsl(var(--primary) / .5); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type=range]:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 6px; border-radius: 8px; }
.est-scale { display: flex; justify-content: space-between; font-size: 11px; color: hsl(var(--muted-foreground)); padding: 0 6px; }
.est-meta { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.est-meta div { border-top: 1px solid hsl(var(--border)); padding-top: 12px; }
.est-meta small { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.est-meta strong { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.est-results { display: grid; gap: 16px; grid-template-rows: auto 1fr; }
.est-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .est-cards { grid-template-columns: 1fr 1fr; } }
.est-card { position: relative; overflow: hidden; }
.est-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, hsl(var(--primary) / .14), transparent); }
.est-card small { font-size: 12.5px; color: hsl(var(--muted-foreground)); display: block; }
.est-card strong { display: block; margin-top: 6px; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.1; font-family: "Inter Display", Inter, sans-serif; }
.est-card strong em { font-style: normal; color: hsl(var(--primary)); }
.est-card > span { display: block; margin-top: 4px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.est-chart { padding: 20px 24px 16px; }
.est-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.est-chart-head b { color: hsl(var(--foreground)); font-weight: 600; }
.est-chart svg { display: block; width: 100%; height: 170px; margin-top: 8px; overflow: visible; }
.est-chart .band { stroke: none; }
.est-chart .band { fill: hsl(var(--primary) / .12); }
.est-chart .mid { fill: none; stroke: hsl(var(--primary)); stroke-width: 2.25; stroke-linecap: round; }
.est-chart .grid { stroke: hsl(var(--border)); stroke-dasharray: 2 4; }
.est-chart text { fill: hsl(var(--muted-foreground)); font-size: 11px; font-family: inherit; }
.est-chart .dot { fill: hsl(var(--card)); stroke: hsl(var(--primary)); stroke-width: 2.25; }
.est-chart .lbl { fill: hsl(var(--foreground)); font-weight: 600; font-size: 11.5px; }

/* ---------- pipeline flow ---------- */
.formula { margin-top: 36px; padding: 12px 8px 4px; color: hsl(var(--primary)); overflow-x: auto; }
.formula svg { width: 100%; min-width: 760px; height: auto; display: block; }
.formula .paths path { stroke: hsl(var(--border)); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.4s linear infinite; }
.formula .paths path.back { stroke: hsl(var(--primary) / .5); stroke-dasharray: 3 7; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.formula .dots circle { filter: drop-shadow(0 0 6px hsl(var(--primary) / .9)); }
.formula .dots circle.back { fill: hsl(var(--primary)); }
.formula .node rect { fill: hsl(var(--background)); stroke: hsl(var(--border)); stroke-width: 1.5; animation: node-pulse 4.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes node-pulse { 0%, 100% { stroke: hsl(var(--border)); } 22% { stroke: hsl(var(--primary)); } }
.formula .node text { fill: hsl(var(--foreground)); font-weight: 600; font-size: 13.5px; font-family: inherit; }
.formula .node text.sub { fill: hsl(var(--muted-foreground)); font-weight: 400; font-size: 11px; }
.formula text.loop { fill: hsl(var(--muted-foreground)); font-size: 11.5px; font-style: italic; font-family: inherit; }
.formula .loop-bg { fill: hsl(var(--card)); }

/* ---------- stages + features: 2 x 2 then 4 across ---------- */
.stages, .features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .stages, .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .stages, .features { grid-template-columns: repeat(4, 1fr); } }
.stages li { position: relative; }
.stages .n { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: hsl(var(--primary) / .12); color: hsl(var(--primary)); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.stages h3 { font-size: 16.5px; margin-bottom: 8px; }
.stages p, .features p { font-size: 14.5px; color: hsl(var(--muted-foreground)); }
.features h3 { font-size: 16.5px; margin-bottom: 8px; }
.feat-ic { width: 34px; height: 34px; border-radius: 10px; background: hsl(var(--primary) / .12); color: hsl(var(--primary)); display: grid; place-items: center; margin-bottom: 14px; }
.feat-ic svg { width: 18px; height: 18px; }

/* ---------- learning ---------- */
.learn-grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
.learn { padding: 16px 16px 24px; }
.learn h3 { font-size: 17px; margin: 20px 8px 0; }
.learn p { margin: 8px 8px 0; }
.learn-visual { position: relative; height: 200px; border-radius: var(--r); background: hsl(var(--muted) / .55); border: 1px solid hsl(var(--border)); overflow: hidden; }

/* 1. fingerprint */
.fp { display: grid; grid-template-columns: 86px 1fr; gap: 20px; padding: 16px 18px; align-items: center; }
.fp-video { position: relative; height: 160px; border-radius: 12px; overflow: hidden; border: 1px solid hsl(var(--border)); }
.fp-video .clip::after { display: none; }
.fp-video .scan { animation-duration: 5s; animation-delay: 0s; }
.fp-hash { position: absolute; left: 6px; right: 6px; bottom: 6px; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); border-radius: 6px; padding: 5px 6px; opacity: 0; animation: fp-hash 5s ease-in-out infinite; z-index: 3; }
@keyframes fp-hash { 0%, 52% { opacity: 0; translate: 0 6px; } 62%, 92% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.fp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-bars li { display: grid; grid-template-columns: 54px 1fr 34px; align-items: center; gap: 10px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.fp-bars i { display: block; height: 7px; border-radius: 999px; background: hsl(var(--muted)); position: relative; overflow: hidden; }
.fp-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, hsl(var(--primary) / .55), hsl(var(--primary))); border-radius: inherit; transform-origin: left; animation: fp-fill 5s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: var(--d); }
.fp-bars b { font-weight: 600; font-size: 11px; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; text-align: right; opacity: 0; animation: fp-num 5s ease-in-out infinite; animation-delay: calc(var(--d) + .5s); }
@keyframes fp-fill { 0%, 10% { transform: scaleX(0); } 36%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fp-num { 0%, 10% { opacity: 0; } 30%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* 2. winners multiply, losers retire */
.win { padding: 14px 16px; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.win-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; min-height: 0; }
.tile { position: relative; border-radius: 7px; border: 1px solid hsl(var(--border)); background: linear-gradient(160deg, hsl(var(--muted)), hsl(var(--card))); min-height: 44px; }
.tile::before { border-radius: inherit; }
.tile .badge { z-index: 2; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--primary) / .18), transparent 60%); opacity: .6; }
.tile::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: hsl(var(--foreground) / .18); }
.tile.hot { animation: win-hot 6s ease-in-out infinite; animation-delay: var(--d); }
.tile.hot .badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; font-size: 9px; font-weight: 700; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); border-radius: 999px; padding: 3px 7px; opacity: 0; animation: win-badge 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes win-hot { 0%, 18% { border-color: hsl(var(--border)); box-shadow: none; } 30%, 90% { border-color: hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--primary)), 0 0 22px hsl(var(--primary) / .35); } 100% { border-color: hsl(var(--border)); box-shadow: none; } }
@keyframes win-badge { 0%, 26% { opacity: 0; scale: .7; } 34%, 90% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
.tile.cold { animation: win-cold 6s ease-in-out infinite; animation-delay: var(--d); }
.tile.cold .badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 9px; font-weight: 600; letter-spacing: .04em; color: hsl(var(--muted-foreground)); background: hsl(var(--background) / .8); border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 2px 7px; opacity: 0; animation: cold-badge 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes win-cold { 0%, 36% { opacity: 1; translate: 0 0; scale: 1; filter: saturate(1); } 50%, 86% { opacity: .22; translate: 0 10px; scale: .9; filter: saturate(0); } 100% { opacity: 1; translate: 0 0; scale: 1; filter: saturate(1); } }
@keyframes cold-badge { 0%, 36% { opacity: 0; } 44%, 80% { opacity: 1; } 88%, 100% { opacity: 0; } }
.win-variants { display: flex; align-items: center; gap: 7px; }
.win-variants b { font-size: 10px; font-weight: 600; color: hsl(var(--muted-foreground)); margin-right: 4px; text-transform: uppercase; letter-spacing: .08em; }
.win-variants i { width: 38px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, hsl(var(--primary) / .35), hsl(var(--primary) / .12)); border: 1px solid hsl(var(--primary) / .6); opacity: 0; animation: variant-in 6s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: calc(2.2s + var(--d)); }
.win-variants i::after { content: ""; position: absolute; }
@keyframes variant-in { 0%, 28% { opacity: 0; translate: -12px 0; scale: .8; } 36%, 90% { opacity: 1; translate: 0 0; scale: 1; } 100% { opacity: 0; } }
.win-variants small { margin-left: auto; font-size: 10.5px; color: hsl(var(--muted-foreground)); opacity: 0; animation: variant-in 6s ease-in-out infinite; animation-delay: 3s; }

/* 3. A/B lanes */
.ab { padding: 22px 20px; display: grid; gap: 18px; align-content: center; }
.ab-lane { display: grid; grid-template-columns: 76px 1fr 84px; align-items: center; gap: 12px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ab-lane i { display: block; height: 16px; border-radius: 999px; background: hsl(var(--muted)); position: relative; overflow: hidden; }
.ab-lane i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: hsl(var(--muted-foreground) / .4); transform-origin: left; animation: ab-grow-fade 6.5s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: var(--d); }
.ab-lane.best i::after { background: linear-gradient(90deg, hsl(var(--primary) / .6), hsl(var(--primary))); animation-name: ab-grow; }
.ab-lane.best span { color: hsl(var(--foreground)); font-weight: 600; }
.ab-lane em { font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; opacity: 0; animation: fp-num 6.5s ease-in-out infinite; animation-delay: calc(var(--d) + 1.2s); }
.ab-lane.best em { color: hsl(var(--primary)); font-weight: 700; }
.ab-lane:not(.best) em { animation-name: ab-num-fade; }
.ab-tag { justify-self: start; margin: -6px 0 0 88px; font-size: 10px; font-weight: 700; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); border-radius: 999px; padding: 3px 8px; opacity: 0; animation: ab-badge 6.5s ease-in-out infinite; }
@keyframes ab-grow { 0%, 6% { transform: scaleX(0); } 42%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ab-grow-fade { 0%, 6% { transform: scaleX(0); opacity: 1; } 42%, 58% { transform: scaleX(1); opacity: 1; } 72%, 90% { transform: scaleX(1); opacity: .22; } 100% { transform: scaleX(0); opacity: 1; } }
@keyframes ab-num-fade { 0%, 10% { opacity: 0; } 28%, 58% { opacity: 1; } 72%, 90% { opacity: .3; } 100% { opacity: 0; } }
@keyframes ab-badge { 0%, 56% { opacity: 0; scale: .8; } 64%, 90% { opacity: 1; scale: 1; } 100% { opacity: 0; } }

/* 4. shared model */
.net { color: hsl(var(--primary)); display: grid; place-items: center; }
.net svg { width: 100%; height: 100%; max-width: 380px; }
.net .spokes path { stroke: hsl(var(--border)); stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
.net .pulses circle { filter: drop-shadow(0 0 5px hsl(var(--primary) / .9)); }
.net .pulses circle.out { fill: hsl(var(--foreground) / .7); filter: none; }
.net .clients circle { fill: hsl(var(--card)); stroke: hsl(var(--border)); stroke-width: 1.5; }
.net .clients text { fill: hsl(var(--muted-foreground)); font-size: 9px; font-family: inherit; }
.net .core circle { fill: hsl(var(--primary) / .12); stroke: hsl(var(--primary)); stroke-width: 1.5; animation: core-pulse 2.6s ease-in-out infinite; }
.net .core .halo { fill: none; stroke: hsl(var(--primary) / .35); stroke-width: 1; animation: halo 2.6s ease-out infinite; transform-origin: 150px 90px; }
@keyframes core-pulse { 0%, 100% { stroke-width: 1.5; } 50% { stroke-width: 3; } }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.net .core text { fill: hsl(var(--foreground)); font-size: 11px; font-weight: 700; font-family: inherit; }
.net .core text.sub { fill: hsl(var(--muted-foreground)); font-weight: 500; font-size: 9px; }

/* ---------- dashboard mock ---------- */
.mock { margin-top: 24px; border: 1px solid hsl(var(--border)); border-radius: var(--r-lg); background: hsl(var(--card)); padding: 18px; box-shadow: 0 40px 90px -50px hsl(var(--primary) / .45); display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) { .mock { grid-template-columns: 180px 1fr; } }
.mock-side { display: none; border-right: 1px solid hsl(var(--border)); padding-right: 16px; }
@media (min-width: 820px) { .mock-side { display: block; } }
.mock-side .brand { font-size: 14px; }
.mock-side ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.mock-side li { padding: 8px 10px; border-radius: 8px; }
.mock-side li.on { background: hsl(var(--muted)); color: hsl(var(--foreground)); font-weight: 600; }
.mock-side .who { margin-top: 26px; font-size: 11px; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .08em; }
.mock-main { min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mock-bar h4 { margin: 0; font-size: 15px; font-weight: 650; }
.mock-pill { margin-left: auto; font-weight: 500; font-size: 12px; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 4px 10px; }
.mock-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 700px) { .mock-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mock-kpis div { border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: hsl(var(--background) / .5); }
.mock-kpis small { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mock-kpis strong { font-size: 21px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mock-kpis em { font-style: normal; font-size: 11px; color: hsl(var(--primary)); }
.mock-chart { margin-top: 14px; height: 120px; }
.mock-chart svg { width: 100%; height: 100%; display: block; }
.mock-chart path { fill: none; stroke: hsl(var(--primary)); stroke-width: 2; }
.mock-chart .area { fill: hsl(var(--primary) / .12); stroke: none; }
.mock-note { margin-top: 10px; font-size: 11.5px; color: hsl(var(--muted-foreground)); text-align: right; }

/* ---------- columns, faq ---------- */
.columns { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.columns h3 { font-size: 16px; margin-bottom: 10px; }
.plain { margin: 0; padding: 0; list-style: none; color: hsl(var(--muted-foreground)); font-size: 14.5px; display: grid; gap: 8px; }
.plain li { padding-left: 18px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--primary) / .7); }
.columns .no li::before { background: hsl(var(--muted-foreground) / .5); width: 8px; height: 2px; border-radius: 1px; top: .75em; }
.faq { margin: 32px 0 0; display: grid; border-top: 1px solid hsl(var(--border)); }
.faq > div { border-bottom: 1px solid hsl(var(--border)); padding: 20px 0; display: grid; gap: 6px; }
@media (min-width: 820px) { .faq > div { grid-template-columns: 1fr 2fr; gap: 24px; } }
.faq dt { font-weight: 600; font-size: 16px; }
.faq dd { margin: 0; color: hsl(var(--muted-foreground)); font-size: 15px; max-width: 70ch; }

/* ---------- invite form ---------- */
.invite { padding-bottom: 64px; }
.invite-grid { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .invite-grid { grid-template-columns: 1fr 320px; } }
.form { display: grid; gap: 16px; }
.form label { display: block; font-size: 13.5px; font-weight: 500; }
.form label > span.opt { font-weight: 400; color: hsl(var(--muted-foreground)); }
.form label > input, .form label > textarea { margin-top: 6px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
input, textarea { font: inherit; font-size: 15px; color: hsl(var(--foreground)); background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, textarea:hover { border-color: hsl(var(--muted-foreground) / .5); }
input:focus, textarea:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .18); }
textarea { resize: vertical; min-height: 96px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips legend { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.chips label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; transition: border-color .15s, background .15s; }
.chips input { width: 16px; height: 16px; min-height: 0; accent-color: hsl(var(--primary)); margin: 0; }
.chips label:has(input:checked) { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .1); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 14px; color: hsl(var(--muted-foreground)); }
.form-status.is-error { color: hsl(0 72% 55%); }
.form-status.is-ok { color: hsl(var(--primary)); }
.next-steps { padding: 22px; }
.next-steps h3 { font-size: 15px; margin-bottom: 12px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.next-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; color: hsl(var(--muted-foreground)); counter-increment: s; }
.next-steps li > div { min-width: 0; }
.next-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: hsl(var(--primary)); background: hsl(var(--primary) / .12); }
.next-steps li b { display: block; color: hsl(var(--foreground)); font-weight: 600; margin-bottom: 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid hsl(var(--border)); margin-top: 40px; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 44px; display: grid; gap: 18px; font-size: 14px; color: hsl(var(--muted-foreground)); }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1fr auto; align-items: start; } .foot-inner .fineprint { grid-column: 1 / -1; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { text-decoration: none; padding: 4px 0; }
.foot-links a:hover { color: hsl(var(--foreground)); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; translate: 0 14px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
.stages > :nth-child(2), .features > :nth-child(2), .learn-grid > :nth-child(2) { transition-delay: .08s; }
.stages > :nth-child(3), .features > :nth-child(3), .learn-grid > :nth-child(3) { transition-delay: .16s; }
.stages > :nth-child(4), .features > :nth-child(4), .learn-grid > :nth-child(4) { transition-delay: .24s; }

/* ---------- proof page (unlinked) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 36px 0 10px; padding: 0; }
.stats > div { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stats dt { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.stats dd { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { font-size: 12px; color: hsl(var(--muted-foreground)); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .case-grid { grid-template-columns: 3fr 2fr; } }
.card-note { margin-top: 6px; font-size: 14px; }
.card-note span { color: hsl(var(--foreground)); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart { margin-top: 18px; height: 180px; width: 100%; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart rect { fill: hsl(var(--primary)); opacity: .85; }
.chart rect.is-today { opacity: .45; }
.chart text { fill: hsl(var(--muted-foreground)); font-size: 11px; font-family: inherit; }
.chart line { stroke: hsl(var(--border)); }
.facts { list-style: none; margin: 16px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.top-videos { margin-top: 16px; padding: 18px 22px; }
.top-videos h3 { font-size: 15px; }
.top-videos ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.top-videos a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 6px 12px; font-size: 13px; text-decoration: none; }
.top-videos b { font-variant-numeric: tabular-nums; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .reveal { transition: none; }
  .reveal { opacity: 1; translate: 0 0; }
  .phone, .clip, .scan, .meta li, .stamp, .formula .paths path, .formula .node rect, .fp-hash, .fp-bars i::after, .fp-bars b, .tile, .tile .badge, .win-variants i, .win-variants small, .ab-lane i::after, .ab-lane em, .ab-tag, .net .spokes path, .net .core circle, .net .core .halo { animation: none !important; }
  .scan, .meta.before, .net .pulses, .formula .dots, .net .core .halo { display: none; }
  .meta.after li { opacity: 1; translate: 0 0; }
  .stamp, .fp-hash, .fp-bars b, .tile .badge, .win-variants i, .win-variants small, .ab-lane em, .ab-tag { opacity: 1; scale: 1; }
  .fp-bars i::after, .ab-lane i::after { transform: scaleX(1); }
  .tile.cold { opacity: .35; }
}

/* ---------- narrow screens: learning panels ---------- */
@media (max-width: 560px) {
  .win-grid { grid-template-columns: repeat(4, 1fr); }
  .win-grid .tile:nth-child(n+9) { display: none; }
  .win-variants small { display: none; }
  .tile.hot .badge, .tile.cold .badge { font-size: 8.5px; padding: 2px 6px; }
  .ab { padding: 18px 14px; gap: 14px; }
  .ab-lane { grid-template-columns: 68px 1fr 76px; gap: 8px; font-size: 11.5px; }
  .ab-lane em { font-size: 10.5px; }
  .ab-tag { margin-left: 76px; }
  .fp { grid-template-columns: 70px 1fr; gap: 14px; padding: 14px; }
  .fp-video { height: 140px; }
  .fp-bars li { grid-template-columns: 46px 1fr 30px; gap: 8px; font-size: 11px; }
}
