/* ==========================================================================
   Progr — marketing site
   Tokens mirror the app's utils/theme.ts so the site and the product read
   as one thing. Dark only. One accent (ember), used sparingly.
   ========================================================================== */

:root {
  --bg:            #0A0D18;
  --bg-deep:       #070911;
  --surface:       #131829;
  --surface-2:     #1C2338;
  --hairline:      rgba(164, 178, 255, 0.12);
  --hairline-2:    rgba(164, 178, 255, 0.20);

  --text:          #F7F8FC;
  --text-2:        rgba(247, 248, 252, 0.66);
  /* 0.48 is the lowest alpha that still clears WCAG AA (4.5:1) for normal-size
     text on both --bg and --surface. The app's own tertiary is 0.35, which
     measures 3.4:1 — too low to reuse on a public page. */
  --text-3:        rgba(247, 248, 252, 0.48);

  --accent:        #FF6A4D;
  --accent-press:  #E5583D;
  --accent-soft:   rgba(255, 106, 77, 0.14);

  --r-tile:  20px;
  --r-card:  24px;
  --r-pill:  999px;

  --wrap:    1160px;
  --gutter:  clamp(20px, 5vw, 40px);
  --nav-h:   62px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep in-page anchors clear of the fixed nav. */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: 50%; top: 8px; transform: translate(-50%, -200%);
  background: var(--surface); border: 1px solid var(--hairline-2);
  padding: 10px 18px; border-radius: var(--r-pill); z-index: 200;
  font-size: 15px; font-weight: 600;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }
.section { padding-block: clamp(80px, 11vw, 132px); position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(19, 24, 41, 0.55) 18%, rgba(19, 24, 41, 0.55) 82%, transparent); }
.center { text-align: center; }

/* ---------- type ---------- */
h1 { font-size: clamp(38px, 5.2vw, 66px); letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--accent); }

.h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px; }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 18px;
}

.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--text-2); line-height: 1.5; max-width: 56ch; }
.lede.center { margin-inline: auto; }
.body { font-size: 18px; color: var(--text-2); margin-block: 24px; max-width: 60ch; }
.micro { font-size: 14px; color: var(--text-3); margin-top: 16px; }

.pull {
  font-size: clamp(21px, 2.8vw, 30px); line-height: 1.32; letter-spacing: -0.02em;
  color: var(--text); margin-top: 36px; max-width: 24ch;
  border-left: 2px solid var(--accent); padding-left: 24px;
}
.pull.center { border-left: 0; padding-left: 0; margin-inline: auto; max-width: 22ch; text-align: center; }

.big {
  font-size: clamp(40px, 8vw, 92px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.02; text-align: center;
}
.big-accent { color: var(--accent); }
.big + .big { margin-top: 4px; }
.big + .lede, .big-accent + .lede { margin-top: 32px; }

.payoff {
  font-size: clamp(26px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.18; text-align: center; margin-top: clamp(52px, 7vw, 84px);
  color: var(--text-2);
}
.payoff em { font-style: normal; color: var(--text); }
.payoff.sm { font-size: clamp(22px, 3vw, 34px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #17070B;
  font-family: inherit; font-size: 16px; font-weight: 650; letter-spacing: -0.01em;
  padding: 14px 26px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 30px rgba(255, 106, 77, 0.22);
}
.btn:hover { background: #FF7E63; transform: translateY(-1px); box-shadow: 0 12px 36px rgba(255, 106, 77, 0.30); }
.btn:active { background: var(--accent-press); transform: translateY(0); }
.btn-lg { font-size: 17px; padding: 17px 34px; }
.btn-sm { font-size: 14px; padding: 10px 18px; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--hairline-2); box-shadow: none;
}
.btn-ghost:hover { background: rgba(247, 248, 252, 0.06); color: var(--text); box-shadow: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.nav.stuck {
  background: rgba(10, 13, 24, 0.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand-mark { width: 88px; height: auto; }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-bottom: -10px; }
.nav-links { margin-left: auto; display: flex; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn-sm { flex: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(112px, 13vw, 156px);
  padding-bottom: clamp(72px, 11vw, 130px);
}
.hero-glow {
  position: absolute; top: -26%; left: 50%; transform: translateX(-50%);
  width: min(1200px, 150vw); aspect-ratio: 1.5;
  background:
    radial-gradient(closest-side, rgba(255, 106, 77, 0.17), transparent 70%),
    radial-gradient(closest-side, rgba(90, 110, 255, 0.13), transparent 72%);
  background-position: 32% 40%, 72% 55%;
  background-repeat: no-repeat;
  background-size: 62% 80%, 66% 78%;
  filter: blur(20px); pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; gap: clamp(48px, 6vw, 72px);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { display: flex; justify-content: center; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
}

/* ==========================================================================
   PHONE — the app UI, rebuilt in CSS from utils/theme.ts. No screenshots,
   so it stays crisp at any size and weighs nothing.
   ========================================================================== */
.phone {
  --pw: 300px;
  width: var(--pw); flex: none;
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border-radius: 44px;
  padding: 10px;
  border: 1px solid rgba(180, 195, 255, 0.16);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.6);
  position: relative;
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 15px; background: #000; border-radius: var(--r-pill); z-index: 3;
}
.phone-sm { --pw: 268px; }
.phone-screen {
  height: 100%; border-radius: 35px; overflow: hidden;
  background: linear-gradient(150deg, #111730 0%, #0A0D18 55%, #080A13 100%);
  padding: 44px 16px 20px;
  display: flex; flex-direction: column;
  font-size: 13px;
  /* The hero and the steps centre their copy; the app UI never does. */
  text-align: left;
}
.phone-float { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(-8px) rotate(-0.6deg); }
  50%      { transform: translateY(8px)  rotate(0.6deg); }
}

.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-wordmark { width: 66px; height: auto; }
.app-account { font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-3); }
.app-back { font-size: 12px; color: var(--text-2); margin-bottom: 12px; font-weight: 500; }
.app-kicker {
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-3); margin-bottom: 8px;
}
.app-title {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
  margin-bottom: 18px;
}
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* duration tiles — aspect 1.35, radius 20, 44px numeral (scaled) */
.tile {
  aspect-ratio: 1.35; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.tile-on { border-color: rgba(255, 106, 77, 0.55); box-shadow: 0 0 0 1px rgba(255,106,77,0.25), 0 8px 24px rgba(255,106,77,0.14); }
.tile-val { font-size: 27px; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.tile-val-sm { font-size: 15px; font-weight: 600; }
.tile-cap { font-size: 7.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }

/* category cards — gradients lifted from utils/categoryArt.ts */
.cat {
  aspect-ratio: 1.35; border-radius: 14px; border: 1px solid var(--hairline);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.cat::before { /* bloom */
  content: ""; position: absolute; top: -30%; right: -30%; width: 95%; height: 110%;
  border-radius: 999px; opacity: 0.9;
  background: radial-gradient(closest-side, var(--cat-accent), transparent);
}
.cat::after { /* raked band, echoes the mark's diagonal */
  content: ""; position: absolute; top: -60%; left: 30%; width: 30%; height: 220%;
  background: rgba(255, 255, 255, 0.045); transform: rotate(22deg);
}
.cat-name {
  position: relative; z-index: 2; font-size: 17px; font-weight: 800; letter-spacing: -0.03em;
  text-shadow: 0 0 12px var(--cat-accent);
}
.cat-count {
  position: relative; z-index: 2; font-size: 7.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(247, 248, 252, 0.62); margin-top: 1px;
}
.cat-wide { grid-column: 1 / -1; aspect-ratio: 2.9; }
.cat-wide .cat-name { font-size: 21px; }

.cat-action { --cat-accent: rgba(255, 138, 82, 0.6);  background: linear-gradient(142deg, #C2401A 0%, #5E1C0D 55%, #1A0705 100%); }
.cat-sports { --cat-accent: rgba(72, 235, 158, 0.55); background: linear-gradient(142deg, #0E7A50 0%, #0A3826 55%, #03130D 100%); }
.cat-epic   { --cat-accent: rgba(140, 158, 255, 0.6); background: linear-gradient(142deg, #3B47C4 0%, #1B2160 55%, #07091A 100%); }
.cat-drama  { --cat-accent: rgba(228, 142, 255, 0.55);background: linear-gradient(142deg, #7E2A8E 0%, #3A1442 55%, #130716 100%); }
.cat-all    { --cat-accent: rgba(186, 208, 245, 0.5); background: linear-gradient(142deg, #42527A 0%, #1E2739 55%, #080A12 100%); }

/* player screen — chrome sits outside the video rect, as the app requires */
.phone-screen-player { justify-content: center; gap: 14px; }
.pl-top, .pl-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-right, .pl-ctrls { display: flex; align-items: center; gap: 8px; }
.hud {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--hairline); display: grid; place-items: center;
  font-size: 11px; color: var(--text-2);
}
.time-pill {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 5px 11px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pl-video {
  aspect-ratio: 16 / 9; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(125deg, #2A1410, #0C0A12 60%, #131829);
}
.pl-play {
  position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 15px solid rgba(255, 255, 255, 0.86);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  translate: 2px 0;
}
.pl-scrub { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 2.5px; background: rgba(255,255,255,0.28); border-radius: 2px; }
.pl-scrub i { display: block; width: 38%; height: 100%; background: #FF0033; border-radius: 2px; }
.pl-titles { display: flex; flex-direction: column; min-width: 0; }
.pl-scene { font-size: 12px; font-weight: 650; letter-spacing: -0.01em; }
.pl-movie { font-size: 10px; color: var(--text-2); }
.pl-attr  { font-size: 8.5px; color: var(--text-3); margin-top: 2px; }

/* ==========================================================================
   HERO PHONE — the product loop, played inside the device
   Screens stack absolutely and push left/right like a nav stack. Only
   transform and opacity animate, so nothing here triggers layout.
   ========================================================================== */
#hero-phone .phone-screen { padding: 0; position: relative; }

#hero-phone .scr {
  position: absolute; inset: 0;
  padding: 44px 16px 20px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateX(26%) scale(0.97);
  transition: opacity 0.42s var(--ease), transform 0.52s var(--ease);
  pointer-events: none;
}
#hero-phone .scr-on { opacity: 1; transform: none; }
/* the screen we just navigated away from */
#hero-phone .scr-past { opacity: 0; transform: translateX(-18%) scale(0.97); }

#hero-phone .scr-player { justify-content: center; gap: 14px; }

/* Playback bar scales instead of resizing — animating width relayouts the
   player on every frame, transform runs on the compositor. */
#hero-phone .pl-scrub i {
  width: 100%; transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}

/* the tile/card being chosen, a beat before the push */
#hero-phone [data-pick].picked { position: relative; }
#hero-phone .tile.picked {
  border-color: rgba(255, 106, 77, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 106, 77, 0.35), 0 8px 26px rgba(255, 106, 77, 0.20);
}
#hero-phone .cat.picked { border-color: rgba(255, 255, 255, 0.45); }
#hero-phone .hud.picked { background: var(--surface-2); border-color: rgba(255,106,77,0.6); color: var(--text); }
#hero-phone [data-pick] {
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), transform 0.25s var(--ease);
}
#hero-phone [data-pick].picked { transform: scale(0.965); }

/* finger tap — a ring that expands and fades where the tap lands */
.tapdot {
  position: absolute; z-index: 6; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45) inset;
}
.tapdot.ping { animation: tapPing 0.62s var(--ease); }
@keyframes tapPing {
  0%   { opacity: 0;    transform: scale(0.35); }
  35%  { opacity: 1;    transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.85); }
}

/* between-scene message */
.scr-ov {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(8, 10, 19, 0.92);
  opacity: 0; pointer-events: none;
  transition: opacity 0.34s var(--ease);
  padding: 24px;
}
.scr-ov.on { opacity: 1; }
.ov-1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.ov-2 { font-size: 12px; color: var(--text-2); }

/* ==========================================================================
   THE STACK — scene blocks adding up to a real workout
   ========================================================================== */
.stack-wrap {
  margin-top: clamp(56px, 8vw, 88px);
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.stack-total {
  position: sticky; top: 42vh; display: flex; flex-direction: column; gap: 8px;
}
.total-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.total-time {
  font-size: clamp(56px, 8vw, 88px); font-weight: 700; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.total-bar { display: block; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; max-width: 260px; }
.total-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 0.5s var(--ease); }

.scene-list { display: flex; flex-direction: column; gap: 12px; }
.scene {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-tile);
  padding: 20px 24px;
  opacity: 0; transform: translateY(26px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.scene.on { opacity: 1; transform: none; border-color: var(--hairline-2); }
.scene-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid currentColor;
}
.t-action { color: #FF8A52; }
.t-sports { color: #48EB9E; }
.t-epic   { color: #8C9EFF; }
.t-drama  { color: #E48EFF; }
.scene-name { font-size: 17px; font-weight: 500; color: var(--text-2); }
.scene-time { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.scene-more .scene-name { color: var(--text-3); font-style: italic; }

@media (max-width: 860px) {
  .stack-wrap { grid-template-columns: 1fr; gap: 20px; }
  .stack-total {
    /* Park it below the fixed nav, not underneath it. */
    top: var(--nav-h); padding: 14px 0 12px; z-index: 20;
    background: linear-gradient(180deg, var(--bg) 62%, rgba(10, 13, 24, 0.85) 85%, transparent);
    flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap;
  }
  .total-time { font-size: 44px; }
  .total-bar { flex: 1 1 100%; max-width: none; }
  .scene { padding: 16px 18px; gap: 12px; }
  .scene-name { font-size: 15px; }
}
@media (max-width: 480px) {
  .scene { padding: 14px 16px; gap: 10px; }
  .scene-tag { font-size: 9px; letter-spacing: 0.1em; padding: 4px 8px; }
  .scene-name { font-size: 14px; }
  .scene-time { font-size: 18px; }
}

/* ---------- how it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 44px);
  margin-top: clamp(48px, 7vw, 76px);
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 10px; letter-spacing: -0.025em; }
.step p { color: var(--text-2); font-size: 16px; max-width: 34ch; margin-bottom: 36px; }
.step .phone { margin-top: auto; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .step p { margin-bottom: 28px; }
}

/* ---------- beats ---------- */
.beats { margin: 32px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.beats li {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--text-3); line-height: 1.25;
}
.beats li:nth-child(1) { color: var(--text); }
.beats li:nth-child(2) { color: rgba(247, 248, 252, 0.80); }
.beats li:nth-child(3) { color: rgba(247, 248, 252, 0.58); }
.beats-last { color: var(--accent) !important; }

/* ---------- emotion ---------- */
/* Typographic, not photographic — the same call the app makes in
   utils/categoryArt.ts. Six competing images read as noise; six lines in the
   category hues read as one set, and they're entirely ours to publish. */
.moments {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(44px, 6vw, 68px);
}
.moment {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 2.2vw, 26px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  /* The category gradients were tuned for small tiles in the app. Blown up to
     a 4:3 card they shout, so sit a scrim over the base and let only the
     bloom (a negative-z pseudo, painted above the scrim) stay bright. */
  box-shadow: inset 0 0 0 400px rgba(10, 13, 24, 0.52);
}
.moment::before { /* hue bloom, top-right */
  content: ""; position: absolute; z-index: -1;
  top: -30%; right: -30%; width: 95%; height: 110%; border-radius: 999px;
  background: radial-gradient(closest-side, var(--cat-accent), transparent);
}
.moment::after { /* raked band, echoes the mark's diagonal */
  content: ""; position: absolute; z-index: -1;
  top: -60%; left: 30%; width: 30%; height: 220%;
  background: rgba(255, 255, 255, 0.045); transform: rotate(22deg);
}
.moment:hover { transform: translateY(-3px); border-color: var(--hairline-2); }
.moment-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247, 248, 252, 0.62); margin-bottom: 8px;
}
.moment-line {
  font-size: clamp(20px, 2.3vw, 28px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.12; text-shadow: 0 0 18px var(--cat-accent);
  text-wrap: balance;
}
@media (max-width: 760px) { .moments { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 420px) { .moments { grid-template-columns: 1fr; } .moment { aspect-ratio: 16 / 7; } }

/* ---------- completion ---------- */
.finish { overflow: hidden; }
.odometer {
  font-size: clamp(72px, 17vw, 190px); font-weight: 700; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; line-height: 1;
  margin-block: clamp(20px, 3vw, 36px);
  color: var(--accent);
  text-shadow: 0 0 70px rgba(255, 106, 77, 0.32);
}

/* ---------- founder ---------- */
.founder {
  margin: 32px 0 0; padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 18px;
  font-size: 18px; color: var(--text-2); line-height: 1.6;
}
.founder p:first-child { color: var(--text); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; letter-spacing: -0.015em; }

/* ---------- beta ---------- */
.beta { position: relative; overflow: hidden; }
.beta-glow {
  position: absolute; left: 50%; bottom: -40%; transform: translateX(-50%);
  width: min(900px, 130vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 106, 77, 0.20), transparent 70%);
  pointer-events: none;
}
.beta .wrap { position: relative; }
.beta-form { margin: 36px auto 0; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.field {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-tile); padding: 16px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.field::placeholder { color: var(--text-3); }
.field:hover { border-color: var(--hairline-2); }
.field:focus { border-color: var(--accent); background: var(--surface-2); outline: none; }
.field-select {
  appearance: none; color: var(--text-2); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field-select option { background: var(--surface); color: var(--text); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; min-height: 1.4em; margin-top: 4px; color: var(--text-2); }
.form-status.ok { color: #48EB9E; }
.form-status.err { color: #FF8A52; }
/* Dim the inputs once submitted, but never the confirmation itself. */
.beta-form.sent .field,
.beta-form.sent button { opacity: 0.4; pointer-events: none; }
.form-status.ok { font-weight: 600; }

/* ---------- faq ---------- */
.faq { margin-top: 36px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: clamp(17px, 2vw, 20px); font-weight: 600; letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-a { padding-bottom: 24px; color: var(--text-2); font-size: 17px; max-width: 62ch; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline); background: var(--bg-deep);
  padding-block: 56px calc(48px + env(safe-area-inset-bottom));
}
.footer-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-line { color: var(--text-3); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--text-2); margin-bottom: 28px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--text-3); max-width: 68ch; }
.copyright { font-size: 13px; color: var(--text-3); margin-top: 20px; }

/* ---------- sticky mobile CTA ---------- */
/* Sits bottom-right rather than centred: the centred variant parks itself on
   top of the centred payoff lines, which are the best copy on the page. */
.sticky-cta {
  position: fixed; right: var(--gutter); z-index: 90;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateY(180%);
  background: var(--accent); color: #17070B;
  font-size: 16px; font-weight: 650; padding: 15px 30px; border-radius: var(--r-pill);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 6px 24px rgba(255, 106, 77, 0.32);
  transition: transform 0.45s var(--ease);
  display: none;
}
.sticky-cta.show { transform: translateY(0); }
@media (max-width: 900px) { .sticky-cta { display: block; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .scene { opacity: 1 !important; transform: none !important; }
  .phone-float { animation: none; }
  .stack-total { position: static; }
  .sticky-cta { transition: none; }
  /* Freeze the hero phone on the energy picker — the single frame that best
     explains the product — instead of running the loop. */
  #hero-phone .scr { opacity: 0 !important; transform: none !important; }
  #hero-phone .scr[data-scr="category"] { opacity: 1 !important; }
  #hero-phone .scr-ov, #hero-phone .tapdot { display: none; }
}
