/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Familjen Grotesk (self-hosted variable; license + EULA in fonts/FamiljenGrotesk/License) ─── */
/* Variable axis covers wght 400–700; weight 800 requests clamp to 700 (no faux-bold). */
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/FamiljenGrotesk/Fonts/WEB/fonts/FamiljenGrotesk-Variable.woff2') format('woff2'),
       url('/fonts/FamiljenGrotesk/Fonts/WEB/fonts/FamiljenGrotesk-Variable.woff') format('woff'); }

/* ─── Tokens ─── */
:root {
  --bg: #0A0A0F;
  --bg-2: #0C0C13;
  --card: #131320;
  --card-2: #16161F;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text-primary: #F5F5F7;
  --text-secondary: rgba(245,245,247,0.64);
  --text-tertiary: rgba(245,245,247,0.40);
  --text-faint: rgba(245,245,247,0.10);
  --orange: #FF6B2C;
  --amber: #FFAA33;
  --green: #00FF87;
  --cyan: #2DD4FF;
  --peak: #FF5A5A;
  --gradient-warm: linear-gradient(135deg, #FF6B2C 0%, #FFAA33 100%);
  --gradient-cool: linear-gradient(135deg, #2DD4FF 0%, #1AA8E0 100%);
  --font-sans: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 9999px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0,255,135,0.26); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--orange); color: #0A0A0F; padding: 10px 18px; border-radius: var(--r-full); font-weight: 600; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 16px; }

/* ─── Atmosphere ─── */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.ambient::before {
  content: ''; position: absolute; top: -28%; left: 50%; transform: translateX(-50%);
  width: 130%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,107,44,0.10) 0%, rgba(255,170,51,0.05) 32%, transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}
.ambient::after {
  content: ''; position: absolute; bottom: -18%; right: -8%; width: 60%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(0,255,135,0.06) 0%, transparent 62%);
  animation: drift2 22s ease-in-out 2s infinite alternate;
}
@keyframes drift  { 0% { opacity: .55; transform: translateX(-50%) scale(1); } 100% { opacity: 1; transform: translateX(-50%) scale(1.12); } }
@keyframes drift2 { 0% { opacity: .4; transform: scale(1); } 100% { opacity: .85; transform: scale(1.15); } }
/* film grain: a single fixed layer over the whole scene, kept barely-there (felt, not seen) but
   "boiling" so the page reads as living film rather than a flat dark UI */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px; animation: grainBoil .5s steps(1, end) infinite;
}
@keyframes grainBoil {
  0%   { background-position:   0px   0px; }
  20%  { background-position: -42px  28px; }
  40%  { background-position:  26px -48px; }
  60%  { background-position: -30px -18px; }
  80%  { background-position:  40px  38px; }
  100% { background-position:   0px   0px; }
}
/* cinematic vignette: frames the scene, tinted toward the void (never pure black). Sits below
   .content so it darkens the background, never the text, preserving AA contrast. */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 46%, transparent 45%, rgba(6,6,12,0.34) 80%, rgba(6,6,12,0.62) 100%);
}
.content { position: relative; z-index: 2; }
/* word-by-word headline reveal (section titles), driven by marketing.js on scroll */
.cine-w { display: inline-block; opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.cine-w.in { opacity: 1; transform: none; }

/* ─── Layout ─── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
section { position: relative; }
.section-pad { padding: clamp(96px, 14vh, 190px) 0; }

/* ─── Eyebrow / titles ─── */
.eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 20px; }
.section-title { font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
.section-title .nb { white-space: nowrap; }
.section-lead { margin-top: 20px; font-size: clamp(16px,1.7vw,19px); color: var(--text-secondary); max-width: 56ch; line-height: 1.55; }

/* ─── Nav ─── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s; border-bottom: 1px solid transparent; }
nav.scrolled { background: rgba(10,10,15,0.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .nav-inner { padding: 0 40px; } }
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.logo b { color: var(--cyan); font-weight: 800; }
.nav-links { display: none; gap: 30px; align-items: center; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-links a:not(.btn) { font-size: 14.5px; color: var(--text-secondary); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text-primary); }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; border-radius: var(--r-full); cursor: pointer; border: 1px solid transparent; transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, border-color .2s; white-space: nowrap; }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--gradient-cool); color: #0A0A0F; box-shadow: 0 6px 24px rgba(45,212,255,0.22); }
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 12px 38px rgba(45,212,255,0.34); }
.btn-primary:active { transform: scale(0.985); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-secondary); background: var(--surface); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(0.985); }

/* ─── App Store badge (Apple's artwork, unmodified; the site's one download CTA) ─── */
/* The badge is a near-black pill with a hairline grey edge — Apple's bordered variant,
   built to sit on dark backgrounds. Hover borrows the site's interactive language: a
   2px lift plus a cyan drop-shadow that follows the SVG's pill alpha (not a box), so the
   artwork itself is never recoloured. */
.appstore-badge { display: inline-flex; vertical-align: middle; border-radius: 11px; transition: transform .18s var(--ease-out), filter .25s var(--ease-out); }
.appstore-badge img { display: block; height: var(--badge-h, 52px); width: auto; }
.appstore-badge:hover { transform: translateY(-2px) scale(1.015); filter: drop-shadow(0 10px 30px rgba(45,212,255,0.28)); }
.appstore-badge:active { transform: scale(0.985); }
.appstore-badge:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.appstore-badge--sm { --badge-h: 34px; }
.appstore-badge--lg { --badge-h: 56px; }

/* ─── Reveal + shimmer ─── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.shimmer { display: inline-block; height: 0.72em; min-width: 2ch; border-radius: 7px; vertical-align: -0.02em; background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.16) 37%, rgba(255,255,255,0.05) 63%); background-size: 400% 100%; animation: shimmer 1.5s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ─── Hero ─── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(44px, 6vw, 72px); align-items: center; width: 100%; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.04fr 0.96fr; } }
.hero-copy { max-width: 600px; }
.hero-kicker { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 24px; animation: fadeUp .7s var(--ease-out) .05s both; }
.hero-headline { font-size: clamp(42px, 6.6vw, 78px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; max-width: 13ch; color: var(--text-primary); animation: fadeUp .8s var(--ease-out) .12s both; }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--text-secondary); max-width: 44ch; animation: fadeUp .8s var(--ease-out) .22s both; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; animation: fadeUp .8s var(--ease-out) .32s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Hero savings card */
.hero-card { position: relative; background: transparent; border: 0; padding: clamp(26px, 3vw, 38px); animation: cardIn 1s var(--ease-out) .2s both; }
.hero-card::before { content: ''; position: absolute; top: -45%; right: -30%; width: 85%; height: 85%; background: radial-gradient(ellipse at center, rgba(0,255,135,0.12), transparent 70%); pointer-events: none; }
/* HUD corner brackets: eight thin bars forming an L at each corner — instrument-frame, not decoration */
.hero-card::after, .chart-card::after, .plan::after {
  content: ''; position: absolute; inset: 12px; pointer-events: none;
  --hud: rgba(0,255,135,0.55); --arm: 20px; --th: 2px;
  background:
    linear-gradient(var(--hud), var(--hud)) left  top    / var(--arm) var(--th) no-repeat,
    linear-gradient(var(--hud), var(--hud)) left  top    / var(--th) var(--arm) no-repeat,
    linear-gradient(var(--hud), var(--hud)) right top    / var(--arm) var(--th) no-repeat,
    linear-gradient(var(--hud), var(--hud)) right top    / var(--th) var(--arm) no-repeat,
    linear-gradient(var(--hud), var(--hud)) left  bottom / var(--arm) var(--th) no-repeat,
    linear-gradient(var(--hud), var(--hud)) left  bottom / var(--th) var(--arm) no-repeat,
    linear-gradient(var(--hud), var(--hud)) right bottom / var(--arm) var(--th) no-repeat,
    linear-gradient(var(--hud), var(--hud)) right bottom / var(--th) var(--arm) no-repeat;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }
.hero-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-card-label { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-tertiary); }
.hero-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.hero-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: livePulse 2.4s var(--ease-out) infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0,255,135,0.5); } 70% { box-shadow: 0 0 0 9px rgba(0,255,135,0); } 100% { box-shadow: 0 0 0 0 rgba(0,255,135,0); } }
.hero-amount { position: relative; font-family: var(--font-mono); font-weight: 700; font-size: clamp(56px, 8.5vw, 104px); line-height: 1; letter-spacing: -0.03em; color: var(--text-primary); margin-top: 16px; font-variant-numeric: tabular-nums; }
.hero-card-sub { position: relative; margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--text-secondary); max-width: 34ch; }
.hero-card-divider { height: 1px; background: var(--border); margin: 26px 0 20px; }
.hero-card-stats { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.hcs-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hcs-row dt { font-size: 14px; color: var(--text-tertiary); }
.hcs-row dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.hcs-row dd.hcs-cyan { color: var(--cyan); }

/* ─── Price-chart section (the signature visual) ─── */
.chartsec { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 30%); }
.chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.chart-unit { font-family: var(--font-sans); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; }
.chart-card { position: relative; background: transparent; border: 0; padding: clamp(34px, 3.5vw, 46px) clamp(30px, 3vw, 42px) clamp(28px, 3vw, 38px); margin-top: clamp(34px, 5vh, 56px); }
.chart-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: clamp(180px, 30vh, 300px); }
@media (min-width: 700px) { .chart-bars { gap: 3px; } }
.bar { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform .75s var(--ease-out); }
.chart-bars.in .bar { transform: scaleY(1); }
.bar.cheap { background: rgba(0,255,135,0.28); }
.bar.mid { background: rgba(255,255,255,0.12); }
.bar.peak { background: rgba(255,90,90,0.34); }
.bar.sel { background: rgba(0,255,135,0.5); }
.chart-bars.locked .bar.sel { background: var(--green); box-shadow: 0 0 18px rgba(0,255,135,0.4); }
.chart-now { position: absolute; top: -4px; bottom: 0; width: 1px; background: rgba(245,245,247,0.32); z-index: 3; pointer-events: none; }
.chart-now::after { content: 'now'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-family: var(--font-sans); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); }
.bar { cursor: crosshair; }
.chart-tip { position: absolute; z-index: 5; left: 0; bottom: 0; transform: translateX(-50%); pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border-strong); box-shadow: 0 10px 28px rgba(0,0,0,0.5); white-space: nowrap; opacity: 0; transition: opacity .14s var(--ease-out); }
.chart-tip.show { opacity: 1; }
.chart-tip .tip-price { display: block; font-family: var(--font-mono); font-size: 15px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.chart-tip .tip-time { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.5px; color: var(--text-tertiary); margin-top: 3px; font-variant-numeric: tabular-nums; }
.chart-tip.cheap .tip-price, .chart-tip.sel .tip-price { color: var(--green); }
.chart-tip.peak .tip-price { color: var(--peak); }
.chart-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(40px, 5vh, 56px); flex-wrap: wrap; }
.chart-controls { display: inline-flex; align-items: center; gap: 12px; }
.region-select {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.4px; color: var(--text-primary);
  background-color: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-full);
  padding: 8px 32px 8px 14px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23F5F5F7' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  transition: border-color .2s, background-color .2s;
}
.region-select:hover { border-color: var(--text-secondary); }
.region-select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.region-select:disabled { opacity: 0.5; cursor: progress; }
.region-select option { background: var(--card); color: var(--text-primary); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }
.chart-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px; border-radius: var(--r-full); background: rgba(0,255,135,0.12); border: 1px solid rgba(0,255,135,0.28); font-family: var(--font-mono); font-size: 13px; color: var(--green); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.chart-bars.locked ~ .chart-badge, .chart-card.locked .chart-badge { opacity: 1; transform: none; }
.chart-caption { margin-top: 26px; font-size: 15px; color: var(--text-secondary); max-width: 64ch; line-height: 1.55; }
.chart-caption b { color: var(--text-primary); font-weight: 600; }

/* ─── How it works (pinned scrollytelling) ─── */
.how-head { padding: clamp(96px, 14vh, 190px) 0 clamp(36px, 6vh, 64px); }
.how-track { position: relative; }
/* Default (no-JS / mobile / reduced-motion): a clean stacked list, fully readable */
.how-stage { display: flex; flex-direction: column; gap: clamp(56px, 9vh, 110px); padding-bottom: clamp(72px, 12vh, 140px); }
.how-step { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; }
@media (min-width: 820px) { .how-step { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); gap: 0 72px; } }
.how-num { font-family: var(--font-mono); font-weight: 700; line-height: 0.8; font-size: clamp(72px, 18vw, 240px); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(0,255,135,0.30); }
.how-body h3 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.how-body p { margin-top: 18px; font-size: clamp(16px, 1.7vw, 20px); color: var(--text-secondary); max-width: 46ch; line-height: 1.55; }
.how-rail { display: none; }

/* Pinned scrollytelling, enabled by JS on desktop without reduced-motion */
.how-track.how-active { height: 300vh; }
.how-track.how-active .how-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.how-track.how-active .how-stage { display: grid; padding-bottom: 0; }
.how-track.how-active .how-step { grid-area: 1 / 1; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.how-track.how-active .how-step.active { opacity: 1; transform: none; }
.how-track.how-active .how-num { transition: -webkit-text-stroke-color .5s var(--ease-out); }
.how-track.how-active .how-step.active .how-num { -webkit-text-stroke-color: rgba(0,255,135,0.6); }
.how-track.how-active .how-rail { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; position: absolute; bottom: clamp(28px, 6vh, 60px); }
.how-dot { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; color: var(--text-faint); transition: color .4s var(--ease-out); }
.how-dot.active { color: var(--green); }

/* ─── Stat wall ─── */
.statwall { border-top: 1px solid var(--border); }
.statwall-grid { display: grid; grid-template-columns: 1fr; margin-top: clamp(36px, 5vh, 60px); }
@media (min-width: 640px) { .statwall-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .statwall-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(32px, 5vh, 60px) 28px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .stat { border-left: 1px solid var(--border); } .stat:nth-child(2n+1) { border-left: none; } }
@media (min-width: 1120px) { .stat:nth-child(2n+1) { border-left: 1px solid var(--border); } .stat:first-child { border-left: none; } }
.sw-value { font-family: var(--font-mono); font-weight: 700; line-height: 1; font-size: clamp(38px, 4.4vw, 58px); letter-spacing: -0.03em; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-value.is-cyan { color: var(--cyan); }
.sw-caption { margin-top: 18px; font-size: 15px; color: var(--text-secondary); line-height: 1.45; max-width: 24ch; }
/* "How is this calculated?" popover on the projected-saving stat (CSS-only: hover + tap/focus) */
.stat-info-wrap { position: relative; display: inline-flex; vertical-align: middle; margin-left: 7px; }
.stat-info { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; font-style: italic; line-height: 1; cursor: help; display: inline-flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s; }
.stat-info:hover, .stat-info:focus-visible { color: var(--text-primary); border-color: var(--text-secondary); outline: none; }
.stat-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: 250px; max-width: 72vw; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0,0,0,0.5); font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); z-index: 20; }
.stat-info-wrap:hover .stat-tip, .stat-info:focus + .stat-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.statwall-note { margin-top: 42px; font-size: 13px; color: var(--text-tertiary); max-width: 72ch; line-height: 1.5; }

/* ─── Feature panels ─── */
.panel { display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(56px, 8vh, 100px) 0; align-items: center; }
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); min-height: 84vh; } .panel .panel-copy { align-self: center; } .panel-media { position: sticky; top: 16vh; align-self: start; } .panel.reverse .panel-media { order: -1; } }
.panel-copy h3 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.panel-copy p { margin-top: 20px; font-size: clamp(16px,1.7vw,19px); color: var(--text-secondary); max-width: 46ch; }

/* phone frame holding a real product screenshot */
.mock { position: relative; width: min(300px, 80%); aspect-ratio: 9 / 18.6; margin: 0 auto; border-radius: 42px; background: linear-gradient(165deg, #17171F, #0B0B11); border: 1px solid var(--border-strong); box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 30px 90px rgba(0,0,0,0.55), 0 0 60px rgba(0,255,135,0.06); padding: 13px; }
.mock-shot { display: block; width: 100%; height: 100%; border-radius: 30px; object-fit: cover; object-position: center top; background: var(--bg); }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: clamp(44px,6vh,68px); align-items: stretch; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.plan { position: relative; background: transparent; border: 0; padding: clamp(28px, 4vw, 42px); display: flex; flex-direction: column; }
.plan.featured::after { --hud: rgba(45,212,255,0.9); }
.plan.free::after { --hud: rgba(245,245,247,0.5); }
.plan-name { font-size: 14px; font-family: var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); }
.plan.featured .plan-name { color: var(--cyan); }
.plan-price { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price .big { font-family: var(--font-mono); font-size: clamp(34px,4vw,46px); font-weight: 700; letter-spacing: -0.03em; }
.plan-price .unit { color: var(--text-tertiary); font-size: 15px; }
.plan-annual { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.best-badge { font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #0A0A0F; background: var(--cyan); border-radius: var(--r-full); padding: 4px 10px; }
.plan-sub { margin-top: 6px; font-size: 14px; color: var(--text-tertiary); }
.plan-list { list-style: none; margin: 26px 0 0; display: flex; flex-direction: column; gap: 15px; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15.5px; color: var(--text-secondary); line-height: 1.45; }
.plan-list li .tick { color: var(--cyan); font-weight: 700; }
.plan.free .plan-list li .tick { color: var(--text-tertiary); }
.plan-list li b { color: var(--text-primary); font-weight: 600; }
.pricing-note { margin-top: 34px; text-align: center; font-size: 14.5px; color: var(--text-tertiary); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ─── Download (closing CTA) ─── */
.download { text-align: center; border-top: 1px solid var(--border); }
.download-inner { max-width: 640px; margin: 0 auto; }
.download h2 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
.download .lead { margin-top: 18px; font-size: clamp(16px,1.7vw,19px); color: var(--text-secondary); max-width: 46ch; margin-left: auto; margin-right: auto; }
.download .appstore-badge { margin-top: 38px; }
.download-note { margin-top: 22px; font-size: 13px; color: var(--text-tertiary); }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--border); padding: 56px 0 64px; }
.footer-grid { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 760px) { .footer-grid { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; color: var(--text-secondary); transition: color .2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-fine { margin-top: 34px; font-size: 13px; color: var(--text-tertiary); }
.footer-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.footer-logo b { color: var(--cyan); }

/* ─── Scroll-driven motion (Apple-style: hero recede + media parallax) ─── */
/* Native scroll timelines: GPU-driven, no library, gracefully static where unsupported,
   and fully disabled under reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Hero gently rises and fades as you scroll past the first screen */
    .hero-grid {
      animation: heroRecede linear both;
      animation-timeline: scroll(root);
      animation-range: 10vh 95vh;
    }
    @keyframes heroRecede { to { opacity: 0; transform: translateY(-48px); } }

    /* Feature screenshots drift for depth while their copy advances (desktop, where media is pinned) */
    @media (min-width: 900px) {
      .panel { view-timeline: --panel block; }
      .panel-media .mock {
        animation: mediaParallax linear both;
        animation-timeline: --panel;
        animation-range: entry 0% exit 100%;
      }
      @keyframes mediaParallax {
        from { transform: translateY(42px); }
        to   { transform: translateY(-42px); }
      }
    }
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-kicker, .hero-headline, .hero-sub, .hero-actions, .hero-card { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ambient::before, .ambient::after, .hero-live-dot, .shimmer, .grain { animation: none !important; }
  .cine-w { opacity: 1 !important; transform: none !important; }
  .bar { transition: none !important; transform: scaleY(1) !important; }
  .chart-badge { transition: none !important; opacity: 1 !important; transform: none !important; }
}
