/* Vantage web pages (landing + legal). Tokens mirror src/ui/theme.ts so the site reads as the app. */
:root {
  --bg: #F4F7FA;
  --navy: #0A1E3D;
  --navy-deep: #061C34;
  --ink: #1D3350;
  --body: #65829C;
  --label: #728AA1;
  --muted: #8EA4BF;
  --primary: #1B3853;
  --track: #D8E3EC;
  --fill: #1B4478;
  --surface: #FFFFFF;
  --border: #E3E9F0;
  --hair: #E6ECF2;
  --icon-bg: #F1F5F8;
  --pill-bg: #DFE9F6;
  --mint: #7DD3AE;
  --mint-soft: #E3F4EC;
  --sky: #2F6FEB;
  --sky-soft: #E8EFFC;
  --good: #2F8F6B;
  --warn: #B7791F;
  --warn-bg: #FBF1E1;
  --radius: 18px;
  --radius-lg: 28px;
  --pad: 20px;
  --max: 1120px;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--fill); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: var(--pad); top: 12px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border-radius: 999px; padding: 12px 20px; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Store badges: until launch they open the waitlist, and say so underneath. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge { display: inline-block; border-radius: 10px; transition: transform .15s ease, opacity .15s ease; }
.badge:hover { opacity: .88; }
.badge:active { transform: scale(.98); }
.badge img { display: block; height: 52px; width: auto; }
.soon { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--label); }
.soon a { color: inherit; }

/* ───────── Waitlist ───────── */
.waitlist { padding-bottom: 96px; }
.wl-logo { width: 64px; height: 64px; }
.waitlist h1 { margin-top: 16px; font-size: clamp(40px, 6vw, 64px); }
.wl-card { max-width: 440px; margin: 32px auto 0; padding: 28px; text-align: left; box-shadow: 0 24px 48px -32px rgba(10, 30, 61, .35); }
.wl-platform { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-platform legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--navy); }
.wl-platform label { position: relative; }
.wl-platform input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl-platform span { display: block; text-align: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border); font-weight: 600; color: var(--ink); background: var(--surface); }
.wl-platform input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.wl-platform input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.wl-label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.wl-input { width: 100%; font: 500 16px var(--font); color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); }
.wl-input::placeholder { color: var(--muted); }
.wl-input:focus { outline: none; border-color: var(--fill); background: var(--surface); }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-turnstile { margin-top: 16px; min-height: 65px; }
.wl-submit { width: 100%; margin-top: 16px; padding: 15px 20px; font-size: 16px; }
.wl-submit:disabled { opacity: .6; cursor: progress; }
.wl-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #B42318; }
.wl-msg:empty { margin: 0; min-height: 0; }
.wl-done { text-align: center; }
.wl-done h2 { margin: 12px 0 6px; font-size: 24px; color: var(--navy); letter-spacing: -0.02em; }
.wl-done p { margin: 0 0 20px; color: var(--body); }
.wl-check { display: inline-block; width: 52px; height: 52px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 28px no-repeat; }
.wl-fine { max-width: 440px; margin: 20px auto 0; font-size: 13px; color: var(--muted); }
.wl-fine a { color: var(--label); }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 250, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(227, 233, 240, 0.8);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--surface); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }

/* ───────── Shared bits ───────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--pill-bg); color: var(--primary); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); margin: 0 0 12px; }

/* ───────── Landing: hero ───────── */
.hero { position: relative; text-align: center; padding: 72px 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 980px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 22% 46%, rgba(125, 211, 174, .42), transparent 70%),
    radial-gradient(34% 30% at 80% 40%, rgba(47, 111, 235, .22), transparent 70%),
    radial-gradient(30% 24% at 52% 70%, rgba(173, 239, 199, .5), transparent 70%),
    radial-gradient(40% 26% at 60% 20%, rgba(223, 233, 246, .9), transparent 70%);
  filter: blur(8px);
}
.beta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--primary); }
.beta i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); margin-left: 6px; }
.hero h1 {
  margin: 22px auto 0; max-width: 12ch; color: var(--navy); font-weight: 700;
  font-size: clamp(46px, 7.4vw, 88px); line-height: 0.98; letter-spacing: -0.045em;
}
.hero .lede { margin: 22px auto 0; max-width: 44ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--body); }
.hero .stores { margin-top: 32px; }

/* Stage: phone in the middle, the score's inputs floating around it. */
.stage { position: relative; max-width: 860px; height: 660px; margin: 56px auto 0; }
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; text-align: left;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(10, 30, 61, .35);
  animation: float 6s ease-in-out infinite;
}
.chip .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.2; }
.chip b { display: block; font-size: 16px; color: var(--navy); line-height: 1.3; letter-spacing: -0.01em; }
.chip.c1 { left: 0; top: 70px; }
.chip.c2 { left: 34px; top: 330px; animation-delay: -1.5s; }
.chip.c3 { right: 0; top: 120px; animation-delay: -3s; }
.chip.c4 { right: 30px; top: 380px; animation-delay: -4.5s; }
.ic.mint { background: var(--mint-soft); color: var(--good); }
.ic.sky { background: var(--sky-soft); color: var(--sky); }
.ic.navy { background: var(--pill-bg); color: var(--fill); }
.ic.warm { background: var(--warn-bg); color: var(--warn); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ───────── Phone mockup (drawn in CSS from the app's own components) ───────── */
.phone {
  width: 300px; height: 620px; padding: 10px; border-radius: 50px; flex: none;
  background: linear-gradient(160deg, #2C2E37, #111419);
  box-shadow: 0 0 0 1px #5C636D inset, 0 40px 80px -36px rgba(10, 30, 61, .55);
}
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 40px; background: var(--bg);
  padding: 14px 14px 0; text-align: left; font-size: 12px; line-height: 1.35; color: var(--ink);
}
.screen::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--bg)); }
.island { width: 92px; height: 26px; border-radius: 20px; background: #111419; margin: 0 auto 6px; }
.status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--navy); padding: 0 10px; margin: -28px 0 14px; }
.status span:last-child { letter-spacing: 2px; font-size: 10px; }
.s-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.s-head small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.s-head strong { display: block; font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pill-bg); color: var(--fill); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.s-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.s-card h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.s-card h4 .pill { font-size: 10px; padding: 4px 8px; }
.s-sub { color: var(--muted); font-size: 11px; }
.ring { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: 8px auto 4px; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .track { stroke: var(--track); }
.ring .arc { stroke: var(--fill); stroke-linecap: round; stroke-dasharray: 295.3; stroke-dashoffset: 295.3; animation: ring 1.6s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@keyframes ring { to { stroke-dashoffset: 65; } }
.ring b { font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; text-align: center; }
.ring b small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.verdict { text-align: center; }
.verdict strong { display: block; color: var(--navy); font-size: 13px; }
.rows { display: grid; gap: 8px; margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11px; }
.row > span:first-child { font-weight: 600; color: var(--ink); }
.row > span:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--fill); }
.bar i.ok { background: var(--good); }
.bar i.mint { background: var(--mint); }
.bar i.sky { background: var(--sky); }
.todo { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; border-top: 1px solid var(--hair); }
.todo:first-of-type { border-top: 0; }
.box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted); flex: none; }
.box.done { background: var(--primary); border-color: var(--primary); position: relative; }
.box.done::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.todo.is-done span { color: var(--muted); text-decoration: line-through; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--hair); font-size: 11.5px; }
.kv:first-of-type { border-top: 0; }
.kv span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.big { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 2px; }

/* Smaller phones inside feature cards: cropped, showing the top of the screen. */
.phone.mini { width: 232px; height: 400px; border-radius: 40px; padding: 8px; }
.phone.mini .screen { border-radius: 33px; }

/* ───────── Built on ───────── */
.built { text-align: center; padding-top: 8px; padding-bottom: 96px; }
.built p { margin: 0 0 14px; font-size: 13px; color: var(--label); font-weight: 600; }
.built ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.built li { font-size: 17px; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.built li svg { width: 18px; height: 18px; fill: none; stroke: var(--fill); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Sections ───────── */
.section { padding-bottom: 112px; }
.s-title { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.s-title h2 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; color: var(--navy); letter-spacing: -0.04em; line-height: 1.05; }
.s-title p { margin: 16px auto 0; max-width: 52ch; color: var(--body); font-size: 17px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 28px 26px 0; display: flex; flex-direction: column;
}
.tile h3 { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; }
.tile p { margin: 0 0 36px; color: var(--body); font-size: 15.5px; max-width: 32ch; }
.tile .phone { margin: auto auto -130px; }
.tint-mint { background: linear-gradient(170deg, #FFFFFF 30%, #E3F4EC); }
.tint-sky { background: linear-gradient(170deg, #FFFFFF 30%, #E8EFFC); }
.tint-cool { background: linear-gradient(170deg, #FFFFFF 30%, #DFE9F6); }

.wide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 0; margin-top: 16px; padding: 44px 44px 0; }
.wide .copy { align-self: center; padding-bottom: 44px; }
.wide h3 { font-size: clamp(30px, 3.6vw, 42px); }
.wide p { font-size: 17px; max-width: 38ch; }
.wide .phone { margin: 0 auto -150px; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.methods span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--primary); }
.methods svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.source { font-size: 10px; color: var(--muted); margin-top: 4px; }

.weights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.weight { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.weight b { display: block; font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: 1; }
.weight b small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.weight span { display: block; margin-top: 8px; font-weight: 700; color: var(--ink); }
.weight p { margin: 4px 0 0; font-size: 14px; color: var(--body); }
.note-line { text-align: center; color: var(--body); margin: 24px 0 0; font-size: 15px; }
.note-line strong { color: var(--navy); }

/* ───────── Dark AI section ───────── */
.dark { background: radial-gradient(60% 50% at 50% 0%, #163256, var(--navy-deep) 70%); color: #fff; padding: 112px 0; margin-bottom: 112px; position: relative; overflow: hidden; }
.dark .s-title h2 { color: #fff; }
.dark .s-title p { color: #A9BBD1; }
.orbs { display: flex; justify-content: center; gap: 22px; margin-bottom: 28px; }
.orbs i { width: 54px; height: 54px; border-radius: 50%; display: block; }
.orbs i:nth-child(1) { background: radial-gradient(circle at 35% 30%, #ADEFC7, #3E8E6E 70%); opacity: .55; }
.orbs i:nth-child(2) { width: 70px; height: 70px; margin-top: -8px; background: radial-gradient(circle at 35% 30%, #F6F6F7, #7DD3AE 55%, #1B4478); box-shadow: 0 0 60px 6px rgba(125, 211, 174, .35); }
.orbs i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #BFD3FA, #2F6FEB 70%); opacity: .55; }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ai-card { padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); min-height: 240px; display: flex; flex-direction: column; }
.ai-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); margin-bottom: auto; }
.ai-card h3 { margin: 40px 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.ai-card p { margin: 0; color: #A9BBD1; font-size: 15.5px; max-width: 40ch; }
.ai-card q { color: #fff; quotes: "“" "”"; }
.confirm { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px auto 0; color: #D6E2F0; font-weight: 600; text-align: center; }
.confirm svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Compare ───────── */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 700; color: var(--navy); background: var(--icon-bg); }
.compare thead th.us { background: var(--navy); color: #fff; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.compare td.us { background: #F5FBF8; color: var(--navy); font-weight: 600; }
.compare td { color: var(--body); }
.yes { display: inline-flex; align-items: center; gap: 6px; }
.yes::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.no { color: var(--muted); }
.ahead { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: 16px; padding: 20px 22px; }
.ahead svg { width: 22px; height: 22px; fill: none; stroke: var(--fill); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.ahead p { margin: 0; color: var(--ink); }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.fine a { color: var(--label); }

/* ───────── Download CTA ───────── */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 36px;
  background: radial-gradient(50% 80% at 15% 100%, rgba(125, 211, 174, .45), transparent 70%),
              radial-gradient(50% 80% at 90% 0%, rgba(47, 111, 235, .35), transparent 70%), var(--navy);
  color: #fff;
}
.cta svg.logo { width: 64px; height: 64px; margin-bottom: 20px; }
.cta h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.cta p { margin: 16px auto 32px; color: #C7D4E4; max-width: 44ch; font-size: 17px; }
.cta .fine { color: #93A8C2; margin-top: 22px; }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--hair); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer .brand { margin-right: 0; }
.footer .brand svg { width: 24px; height: 24px; }
.footer .brand span { font-size: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--navy); text-decoration: underline; }
.footer p { margin: 0; }

/* ───────── Legal document ───────── */
.doc-head { padding: 56px 0 32px; }
.doc-head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--navy); letter-spacing: -0.04em; line-height: 1.05; }
.doc-head .meta { margin: 14px 0 0; color: var(--body); font-size: 15px; }
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; padding: 4px 0; }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 5px 10px; border-radius: 10px; color: var(--body); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a::before { content: counter(toc); min-width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--surface); color: var(--navy); }

.summary { padding: 24px 28px; margin-bottom: 40px; }
.summary h2 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.article .summary h2::before { content: none; }
.summary .note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }

.article { counter-reset: sec; max-width: 72ch; }
.article section { counter-increment: sec; padding-top: 8px; margin-bottom: 36px; }
.article h2 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; line-height: 1.3; }
.article h2::before { content: counter(sec); flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--icon-bg); color: var(--primary); font-size: 14px; font-weight: 700; transform: translateY(-2px); }
.article h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.article p, .article li { color: var(--ink); }
.article p { margin: 0 0 12px; }
.article ul, .article ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.article strong { color: var(--navy); }
.caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.01em; }
.callout { padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--fill); margin: 0 0 14px; }
.callout p:last-child { margin-bottom: 0; }
table.limits { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
table.limits th, table.limits td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.limits th { font-size: 13px; color: var(--label); font-weight: 700; background: var(--icon-bg); }
table.limits tr:last-child td { border-bottom: 0; }
table.limits td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Unconfirmed values: easy to find before publishing. */
.ph { background: var(--warn-bg); color: var(--warn); font-weight: 600; padding: 1px 5px; border-radius: 5px; }

/* Reviewer notes: internal only, delete before publishing. */
.review { margin-top: 56px; padding: 24px 28px; border-radius: var(--radius); border: 2px dashed var(--warn); background: var(--warn-bg); }
.review h2 { margin: 0 0 4px; font-size: 20px; color: var(--warn); }
.review h2::before { content: none; }
.review > p:first-of-type { font-weight: 600; color: var(--warn); }
.review li, .review p { color: var(--ink); }
.review ol { display: grid; gap: 10px; }
.review code { font-size: 13.5px; overflow-wrap: anywhere; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .weights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 32px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
}
@media (max-width: 860px) {
  .stage { height: 660px; }
  .chip { display: none; }
  .wide { grid-template-columns: 1fr; padding: 32px 26px 0; }
  .wide .copy { padding-bottom: 8px; }
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links .opt { display: none; }
  .nav .wrap { gap: 8px; }
  .nav-links a { padding: 8px; font-size: 14px; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .brand span { font-size: 18px; }
  .nav .brand span { display: none; }
  .hero { padding-top: 48px; }
  .stage { height: 570px; margin-top: 44px; }
  .stage .phone { transform: translateX(-50%) scale(.86); transform-origin: top center; }
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 24px 22px 0; }
  .weights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .weight { padding: 16px; }
  .weight b { font-size: 32px; }
  .dark { padding: 80px 0; margin-bottom: 80px; }
  .section { padding-bottom: 80px; }
  .ai-card { padding: 24px; min-height: 0; }
  .ai-card h3 { margin-top: 28px; }
  .cta { padding: 56px 20px; border-radius: 28px; }
  .badge img { height: 46px; }
  .wl-card { padding: 22px; }
  .summary, .review { padding: 20px; }
  .article h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .ring .arc { animation: none; stroke-dashoffset: 65; }
}
