/* Tokens from apps/mobile/src/constants/theme.ts. Dark only, one red accent, green for positive signals only. */
:root {
  color-scheme: dark;
  --background: #000000;
  --surface: #121212;
  --surface-raised: #1c1c1e;
  --border: #2a2a2a;
  --primary: #e50914;
  --primary-pressed: #b80710;
  --primary-tint: rgba(229, 9, 20, 0.14);
  --primary-glow: rgba(229, 9, 20, 0.35);
  /* Small red text only: the brand red is just under 4.5:1 on black at 12px. Within DESIGN.md's red range. */
  --primary-text: #ff1a1a;
  --text: #ffffff;
  --text-secondary: #9a9aa0;
  --success: #34c759;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--surface-raised); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { width: min(760px, 100%); }
.center { text-align: center; }
.section { padding: 72px 0; }

h1 { font-size: clamp(44px, 11vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -1.5px; }
h1 span { color: var(--primary); display: block; }
h2 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-secondary); }
.overline { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--primary-text); margin-bottom: 12px; }
.muted, .note { color: var(--text-secondary); }
.note { font-size: 14px; margin-top: 16px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: var(--background); border-bottom: 1px solid var(--border); }
.nav-inner { width: min(1160px, 100%); margin: 0 auto; padding: 4px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand img { width: 84px; }
.nav nav { display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.nav nav a { display: inline-block; padding: 12px 0; text-decoration: none; color: var(--text-secondary); white-space: nowrap; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 0; background: radial-gradient(70% 55% at 80% 58%, var(--primary-glow), transparent 70%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--background)); pointer-events: none; }
.hero-grid { display: grid; gap: 48px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.hero .lead { margin-top: 20px; max-width: 34em; }
.actions { display: grid; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: 16px; background: var(--primary); color: var(--text); font-weight: 600; text-decoration: none; transition: background 0.15s; }
.button:hover { background: var(--primary-pressed); }
.button.secondary { background: var(--surface-raised); }
.button.secondary:hover { background: var(--border); }

/* Phones */
.phone { position: relative; border-radius: 34px; padding: 6px; background: #1a1a1c; border: 1px solid #3a3a3e; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(229, 9, 20, 0.12); }
.phone img { width: 100%; border-radius: 28px; }
.hero-phones { position: relative; height: 560px; max-width: 420px; width: 100%; margin: 0 auto; }
.hero-phones .phone { position: absolute; width: 62%; }
.hero-phones .front { left: 0; top: 0; z-index: 2; }
.hero-phones .back { right: 0; top: 56px; opacity: 0.9; }

/* The idea */
.question { padding-top: 56px; }
.question .lead { margin-top: 16px; }
.equity { margin-top: 32px; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.equity-cars { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 24px; }
.tile { padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised); min-width: 0; }
.tile span { display: block; font-size: 13px; color: var(--text-secondary); }
.tile strong { display: block; font-size: 17px; line-height: 1.25; margin: 2px 0; }
.tile em { font-style: normal; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.swap-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); font-weight: 700; }
.equity .overline { color: var(--text-secondary); margin-bottom: 4px; }
.money { text-align: center; color: var(--primary); font-size: clamp(36px, 8vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }

/* Steps */
#how h2, #features h2, #next h2 { margin-bottom: 40px; }
.steps { display: grid; gap: 44px; }
.steps .phone { max-width: 270px; margin: 0 auto 22px; }
.steps h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.steps b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); font-size: 15px; }
.steps p { color: var(--text-secondary); }

/* Feature spotlights */
.spot { display: grid; gap: 28px; align-items: center; margin-bottom: 64px; }
.spot:last-child { margin-bottom: 0; }
.spot .phone { max-width: 290px; width: 100%; margin: 0 auto; }
.spot h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.3px; margin-bottom: 12px; }
.spot p { color: var(--text-secondary); font-size: 18px; }
.spot p strong { color: var(--text); }
.spot ul { margin-top: 18px; display: grid; gap: 10px; }
.spot li { display: flex; gap: 10px; }
.spot li::before { content: "✓"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font-size: 13px; font-weight: 700; margin-top: 2px; }

/* Band */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.two { display: grid; gap: 56px; }
.band h2 { font-size: clamp(28px, 4.4vw, 38px); margin-bottom: 16px; }
.band p { color: var(--text-secondary); }
.band .overline { color: var(--primary-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--surface-raised); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.plain { display: grid; gap: 14px; }
.plain li { color: var(--text-secondary); }
.plain strong { color: var(--text); }

/* Roadmap */
.road { display: grid; gap: 16px; }
.road-col { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.road-col:first-child { border-color: var(--primary); background: linear-gradient(var(--primary-tint), var(--surface) 60%); }
.road-col h3 { margin-bottom: 16px; }
.road-col li { padding: 9px 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 16px; }
.tag { display: block; width: fit-content; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--surface-raised); color: var(--text-secondary); font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.tag.now { background: var(--primary); color: var(--text); }

/* Closing and footer */
.closing { padding: 40px 0 88px; background: radial-gradient(60% 70% at 50% 100%, var(--primary-glow), transparent 75%); }
.closing img { width: 120px; margin: 0 auto 8px; }
.closing .lead { margin-top: 12px; }
.footer { padding: 28px 0 36px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }

@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .nav nav { gap: 28px; font-size: 15px; }
  .actions { display: flex; flex-wrap: wrap; }
  .brand img { width: 96px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-copy { padding-bottom: 72px; }
  .hero-phones { height: 680px; max-width: 520px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .spot { grid-template-columns: 340px 1fr; gap: 72px; }
  .spot.flip { grid-template-columns: 1fr 340px; }
  .spot.flip .phone { order: 2; }
  .spot .phone { max-width: 320px; }
  .two { grid-template-columns: 1fr 1fr; gap: 72px; }
  .road { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; align-content: center; }
.notfound h1 { font-size: clamp(36px, 8vw, 56px); }
.actions-center { margin-top: 28px; }
