/* Swervo marketing site.
   Colours, radii and components mirror the app: src/theme/colors.ts (light),
   src/theme/colors.dark.ts (dark) and src/theme/radius.ts. */

:root {
  --primary: #0A84FF;
  --primary-dark: #005BBB;
  --primary-soft: #D6EDFF;
  --primary-tint: #EAF4FF;
  --bg: #F5F7FA;
  --bg-2: #EDF0F5;
  --surface: #FFFFFF;
  --text: #111111;
  --text-2: #5F6670;
  --muted: #9CA3AF;
  --border: #E5E7EB;
  --border-soft: #ECF0F3;
  --success: #34C759;
  --danger: #FF3B30;
  --warning: #FF9500;
  --chip-bg: #FFFFFF;
  --hero-fade: 245, 247, 250;
  --phone-bezel: #0B0E13;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.35), 0 12px 24px -12px rgba(15, 23, 42, 0.18);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --container: 1160px;
  --gutter: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

/* The dark band (Safety) and the whole site in dark mode use the app's dark palette.
   The site is light unless the header toggle picks dark (data-theme="dark"). */
.band-dark,
:root[data-theme="dark"] {
  --primary: #1DA1FF;
  --primary-dark: #0A74C9;
  --primary-soft: #153B57;
  --primary-tint: #16283A;
  --bg: #121820;
  --bg-2: #171E27;
  --surface: #1B222C;
  --text: #F4F7FA;
  --text-2: #B5BEC9;
  --muted: #7E8996;
  --border: #303A46;
  --border-soft: #26313D;
  --success: #30D158;
  --danger: #FF453A;
  --warning: #FFD60A;
  --chip-bg: #222A35;
  --hero-fade: 18, 24, 32;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
/* In dark mode the dark band steps one shade darker so it still reads as a band. */
:root[data-theme="dark"] .band-dark { --bg: #0D1117; --surface: #171E27; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #3DA0FF, var(--primary) 55%, #0066D6); color: #fff;
  box-shadow: 0 6px 14px -4px rgba(10, 132, 255, .6);
}
.logo-mark .icon { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-cta { margin-left: 8px; }
/* Light / dark toggle, like the app's Theme tiles in a compact pill */
.theme-toggle { display: inline-flex; gap: 2px; padding: 3px; margin-left: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); flex: none; }
.theme-toggle button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.theme-toggle .icon { width: 18px; height: 18px; }
.nav-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; place-items: center; }

/* ── Buttons (app: rounded blue primary, outlined secondary) ─ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(10, 132, 255, .8); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px;
  background: #0B0E13; color: #fff; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s, background-color .2s; cursor: pointer;
}
.store-btn:hover { background: #1B222C; }
.store-btn:active { transform: scale(.97); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; line-height: 1.1; opacity: .8; font-weight: 500; }
.store-btn strong { display: block; font-size: 18px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

/* ── Chips (app filter pills) ─────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text);
}
.chip .icon { width: 16px; height: 16px; }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
a.chip { transition: background-color .2s, border-color .2s; }
a.chip:not(.is-active):hover { border-color: var(--primary); color: var(--primary); }

/* ── Phone frames ─────────────────────────────────────────── */
/* Screenshots are 720×1396 with an 86px blank status strip; the frame draws a clean
   status bar and punch-hole camera over that strip. */
.phone {
  --w: 300px;
  --pad: calc(var(--w) * 0.03);
  --sb: calc((var(--w) - 2 * var(--pad)) * 86 / 720);
  position: relative; margin: 0; width: var(--w); flex: none;
  padding: var(--pad); border-radius: calc(var(--w) * 0.15);
  background: var(--phone-bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2A313B;
}
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1396; border-radius: calc(var(--w) * 0.12); background: #E8E6E2; }
.phone::before {
  content: "9:41"; position: absolute; z-index: 2; top: var(--pad); left: calc(var(--pad) + var(--w) * 0.075);
  height: var(--sb); display: flex; align-items: center;
  font: 600 calc(var(--w) * 0.043)/1 var(--font); color: #111; letter-spacing: 0;
}
.phone::after {
  content: ""; position: absolute; z-index: 2; top: var(--pad); left: var(--pad); right: var(--pad); height: var(--sb);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14'%3E%3Cpath d='M1 11h2v2H1zM5 8h2v5H5zM9 5h2v8H9zM13 2h2v11h-2z' fill='%23111'/%3E%3Cpath d='M26 12.5l-6.5-7a9.5 9.5 0 0 1 13 0z' fill='%23111'/%3E%3Crect x='37' y='3' width='16' height='9' rx='2.2' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3Crect x='38.6' y='4.6' width='12.8' height='5.8' rx='1.2' fill='%23111'/%3E%3Crect x='53.6' y='6' width='1.6' height='3' rx='.6' fill='%23111'/%3E%3C/svg%3E") no-repeat right calc(var(--w) * 0.07) center / calc(var(--w) * 0.17) auto,
    radial-gradient(circle at 50% 55%, #05070A 0 calc(var(--w) * 0.022), transparent calc(var(--w) * 0.024));
  pointer-events: none;
}
.phone.is-dark::before { color: #fff; }
.phone.is-dark::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14'%3E%3Cpath d='M1 11h2v2H1zM5 8h2v5H5zM9 5h2v8H9zM13 2h2v11h-2z' fill='%23fff'/%3E%3Cpath d='M26 12.5l-6.5-7a9.5 9.5 0 0 1 13 0z' fill='%23fff'/%3E%3Crect x='37' y='3' width='16' height='9' rx='2.2' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3Crect x='38.6' y='4.6' width='12.8' height='5.8' rx='1.2' fill='%23fff'/%3E%3Crect x='53.6' y='6' width='1.6' height='3' rx='.6' fill='%23fff'/%3E%3C/svg%3E") no-repeat right calc(var(--w) * 0.07) center / calc(var(--w) * 0.17) auto,
    radial-gradient(circle at 50% 55%, #05070A 0 calc(var(--w) * 0.022), transparent calc(var(--w) * 0.024));
}
/* Two stacked screenshots that cross-fade (day / night toggle). */
.phone .swap { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); opacity: 0; transition: opacity .45s ease; }
.phone.show-alt .swap { opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 132px 0 0; min-height: 100svh;
  background: var(--bg) url("images/hero-road.webp") center 88% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--hero-fade), .92) 0%, rgba(var(--hero-fade), .7) 38%, rgba(var(--hero-fade), 0) 62%),
    linear-gradient(180deg, rgba(var(--hero-fade), .85) 0%, rgba(var(--hero-fade), .25) 40%, rgba(var(--hero-fade), 0) 60%, rgba(var(--hero-fade), .9) 97%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 80px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin: 22px 0 22px; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 34em; margin-bottom: 32px; }
.hero .store-row { margin-bottom: 22px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.hero-note .icon { width: 16px; height: 16px; color: var(--success); }
.hero-visual { position: relative; height: 680px; display: flex; justify-content: center; align-items: flex-end; }
/* The back phone hangs off the front one, so it never drifts into the text column. */
.hero-phones { position: relative; transform: translate(22%, 30px); }
.hero-phones .phone.front { --w: 318px; z-index: 2; }
.hero-phones .phone.back { --w: 272px; position: absolute; right: 58%; bottom: 40px; transform: rotate(-7deg); z-index: 1; }

/* Floating app-style cards */
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md), 0 0 0 1px var(--border-soft);
  font-size: 14px; line-height: 1.3; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 700; font-size: 15px; }
.float-card span { color: var(--text-2); font-size: 13px; }
.float-card .bubble { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.float-card .bubble.green { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); animation: pulse 2s infinite; vertical-align: 1px; }
.hero-visual .fc-1 { top: 36px; right: -10px; animation-delay: -2s; }
.hero-visual .fc-2 { bottom: 150px; left: -24px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* ── Feature ticker ───────────────────────────────────────── */
.ticker { position: relative; z-index: 2; background: var(--surface); border-block: 1px solid var(--border); overflow: hidden; }
.ticker-track { display: flex; width: max-content; padding: 18px 0; animation: marquee 48s linear infinite; }
.ticker .chips { flex-wrap: nowrap; list-style: none; margin: 0; padding: 0 12px 0 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker .chip { background: var(--bg); height: 40px; font-size: 15px; }
.ticker .chip .icon { color: var(--primary); width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Feature sections ─────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section + .section:not(.band-dark):not(.cta) { padding-top: 40px; }
.section.band-dark + .section:not(.cta) { padding-top: 112px; }
.band-dark { background: var(--bg); color: var(--text); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-grid.reverse .feature-copy { order: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.eyebrow .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); font-size: 13px; letter-spacing: 0; }
.section h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.section .lead { font-size: 18px; color: var(--text-2); max-width: 34em; margin-bottom: 30px; }

/* Settings-style rows, like the app's "Plan a Ride" sheet */
.rows { list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--r-md); }
.row + .row { border-top: 1px solid var(--border-soft); border-top-left-radius: 0; border-top-right-radius: 0; }
.row-icon { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); flex: none; }
.row-icon .icon { width: 21px; height: 21px; }
.row strong { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.row div span { display: block; color: var(--text-2); font-size: 14px; line-height: 1.4; }

.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.feature-visual::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: 0; border-radius: 44px;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
}
/* Front phone in flow, back phone hung off it; the pair is shifted to stay centred. */
.duo { position: relative; width: fit-content; margin-inline: auto; transform: translateX(-19%); }
.duo .phone { --w: 280px; }
.duo .phone.front { position: relative; z-index: 2; }
.duo .phone.back { --w: 252px; position: absolute; z-index: 1; top: 7%; left: 48%; transform: rotate(5deg); }
.reverse .duo { transform: translateX(19%); }
.reverse .duo .phone.back { left: auto; right: 48%; transform: rotate(-5deg); }

/* Day / night switcher, styled like the app's Theme tiles */
.theme-tiles { display: flex; gap: 12px; margin-top: 26px; }
.theme-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.theme-tile .tile { width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--primary-tint); border: 2px solid transparent; color: var(--text-2); transition: border-color .2s, color .2s; }
.theme-tile .tile .icon { width: 26px; height: 26px; }
.theme-tile[aria-pressed="true"] { color: var(--primary); }
.theme-tile[aria-pressed="true"] .tile { border-color: var(--primary); color: var(--primary); }
.tiles-label { font-size: 14px; color: var(--text-2); font-weight: 600; margin-top: 30px; }

/* Style pills like the round-trip "Direct / Curvy / Supercurvy" picker */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.style-pill { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--border); font-weight: 600; font-size: 14px; }
.style-pill .icon { color: var(--text); }
.style-pill.is-active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.style-pill.is-active .icon { color: var(--primary); }

/* Live-page card in the Safety section */
.safety-pair { position: relative; width: fit-content; margin-inline: auto; transform: translateX(-24%); }
.live-card {
  position: absolute; z-index: 3; left: 64%; bottom: 12%; width: 260px; border-radius: var(--r-lg); overflow: hidden;
  background: #FFFFFF; color: #111; box-shadow: var(--shadow-lg); animation: bob 7s ease-in-out infinite;
}
.live-card .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #EDF0F5; font-size: 12px; color: #5F6670; }
.live-card .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D1D5DB; display: inline-block; }
.live-card .bar span { margin-left: 6px; background: #fff; border-radius: 6px; padding: 3px 8px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card svg.map { display: block; width: 100%; height: 150px; background: #EEF1F4; }
.live-card .body { padding: 12px 14px 14px; }
.live-card .pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #16A34A; background: #DCFCE7; border-radius: 999px; padding: 4px 10px; }
.live-card strong { display: block; margin-top: 8px; font-size: 16px; }
.live-card small { color: #5F6670; font-size: 13px; }
.safety-visual .phone { --w: 300px; }

/* ── Feature grid ─────────────────────────────────────────── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin-inline: auto; margin-bottom: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 0 1px var(--border-soft); }
.card .row-icon { margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.row-icon.green { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.row-icon.orange { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.row-icon.purple { background: color-mix(in srgb, #7C3AED 14%, transparent); color: #8B5CF6; }
.row-icon.red { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery { overflow: hidden; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.gallery-head h2 { margin-bottom: 10px; }
.gallery-head .lead { margin-bottom: 0; }
.gallery-nav { display: flex; gap: 10px; flex: none; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .2s, transform .15s; }
.round-btn:hover { background: var(--bg-2); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .4; cursor: default; }
.gallery-track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px max(var(--gutter), (100vw - var(--container)) / 2) 50px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.shot { flex: none; scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shot .phone { --w: 236px; box-shadow: var(--shadow-md), inset 0 0 0 1.5px #2A313B; }
.shot figcaption { text-align: center; font-size: 14px; color: var(--text-2); max-width: 236px; }
.shot figcaption strong { display: block; color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 2px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); }
.faq-list summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { margin-left: auto; color: var(--muted); transition: transform .25s; }
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq-list details p { padding: 0 22px 22px; color: var(--text-2); }

/* ── Download CTA ─────────────────────────────────────────── */
.cta { padding: 40px 0 120px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: 72px 64px; color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 55%),
    linear-gradient(135deg, #1DA1FF 0%, #0A84FF 45%, #005BBB 100%);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; min-height: 440px;
  box-shadow: 0 40px 80px -30px rgba(10, 132, 255, .55);
}
.cta-card h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-card p { font-size: 18px; opacity: .9; max-width: 28em; margin-bottom: 32px; }
.cta-card .store-btn { border-color: rgba(255, 255, 255, .25); }
.cta-phones { position: relative; height: 100%; }
.cta-phones .phone { --w: 250px; position: absolute; right: 4%; top: -10px; transform: rotate(8deg); }
.cta-phones .phone + .phone { --w: 230px; right: 46%; top: 60px; transform: rotate(-6deg); }
.cta-road {
  position: absolute; inset: auto -10% -40% -10%; height: 70%; opacity: .12; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 60px, transparent 60px 120px) center / 100% 6px no-repeat;
  transform: perspective(300px) rotateX(60deg);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: #0D1117; color: #B5BEC9; padding: 64px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #26313D; }
.site-footer .logo { color: #F4F7FA; margin-bottom: 14px; }
.site-footer h4 { color: #F4F7FA; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; color: #7E8996; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a[aria-current="page"] { color: #B5BEC9; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #1B222C; color: #F4F7FA; padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Above the fold: animate on load, never wait for scrolling. */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise-late { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .live-card, .ticker-track, .live-dot, .rise { animation: none; }
  .phone .swap { transition: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-phones .phone.front { --w: 290px; }
  .hero-phones .phone.back { --w: 246px; }
  .duo .phone { --w: 250px; }
  .duo .phone.back { --w: 225px; }
  .cta-phones .phone { --w: 220px; }
  .cta-phones .phone + .phone { --w: 200px; right: 44%; }
}
/* The header needs more room than the page layout: tighten it first, then fold
   the links into the menu button a little earlier than the rest of the layout. */
@media (max-width: 1200px) {
  .nav { gap: 14px; }
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; margin-left: 8px; }
  .theme-toggle { margin-left: auto; }
  .site-header.menu-open { background: var(--surface); box-shadow: 0 1px 0 var(--border); }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    padding: 8px var(--gutter) 20px; background: var(--surface); box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
  }
  .site-header.menu-open .nav-links a { padding: 14px 12px; font-size: 17px; border-radius: var(--r-md); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 104px; background-position: center bottom; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--hero-fade), .95) 0%, rgba(var(--hero-fade), .75) 42%, rgba(var(--hero-fade), .1) 70%, rgba(var(--hero-fade), .85) 96%, var(--bg) 100%); }
  .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-bottom: 0; text-align: left; }
  .hero-visual { height: 600px; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .feature-visual { min-height: 0; }
  .section { padding: 88px 0; }
  .section.band-dark + .section:not(.cta) { padding-top: 80px; }
  .cta-card { grid-template-columns: 1fr; padding: 48px 28px 0; }
  .cta-phones { height: 330px; }
  .cta-phones .phone { right: 50%; transform: translateX(80%) rotate(8deg); top: 10px; }
  .cta-phones .phone + .phone { right: 50%; transform: translateX(-10%) rotate(-6deg); top: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: 42px; }
  .hero-visual { height: 520px; }
  .hero-phones { transform: translate(24%, 20px); }
  .hero-phones .phone.front { --w: 244px; }
  .hero-phones .phone.back { --w: 200px; bottom: 36px; }
  .hero-visual .fc-1 { top: 8px; right: -4px; }
  .hero-visual .fc-2 { bottom: 110px; left: -4px; }
  .float-card { padding: 10px 12px 10px 10px; gap: 10px; }
  .float-card .bubble { width: 34px; height: 34px; }
  .float-card strong { font-size: 14px; }
  .duo .phone { --w: 208px; }
  .duo .phone.back { --w: 188px; }
  .safety-visual .phone { --w: 236px; }
  .safety-pair { transform: translateX(-22%); }
  .live-card { width: 196px; left: 60%; bottom: 8%; }
  .live-card svg.map { height: 110px; }
  .grid-cards { grid-template-columns: 1fr; }
  .section h2 { font-size: 34px; }
  .store-btn { height: 52px; padding: 0 16px 0 12px; }
  .store-btn strong { font-size: 16px; }
  .shot .phone { --w: 210px; }
  .cta-card { border-radius: 24px; }
  .cta-phones .phone { --w: 190px; }
  .cta-phones .phone + .phone { --w: 176px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══ Premium page ══════════════════════════════════════════
   Gold marks what's Premium, after the app's orange PREMIUM badge
   (src/components/settings/SelectablePreviewCard.tsx); selection stays app-blue. */
:root { --gold: #FF9F0A; --gold-2: #FFB340; --gold-ink: #1B1405; --gold-grad: linear-gradient(135deg, #FFC44D 0%, #FF9F0A 55%, #FF8A00 100%); }

.btn-gold { background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 10px 22px -10px rgba(255, 159, 10, .8); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #F4F7FA; border: 1px solid rgba(255, 255, 255, .2); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }

.premium-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  background: var(--gold-grad); color: var(--gold-ink);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.premium-badge.sm { padding: 5px 9px; font-size: 11px; border-radius: 6px; }
.gold-text { background: linear-gradient(100deg, #FFD27A 0%, #FFB340 45%, #FF9F0A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #B45309; background: #FEF3C7;
}
.band-dark .soon, :root[data-theme="dark"] .soon { color: #FBBF24; background: #3B2C0A; }

/* Premium link in the nav */
.nav-links a.nav-premium { display: inline-flex; align-items: center; gap: 6px; }
.nav-premium .icon { width: 16px; height: 16px; color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-2); }

/* Header over the dark hero, until it turns solid on scroll */
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .logo,
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .nav-links a { color: #F4F7FA; }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .nav-links a:hover,
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .menu-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .theme-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .theme-toggle button { color: rgba(255, 255, 255, .7); }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .theme-toggle button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

/* Hero */
.p-hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 0;
  background: #0D1117 url("images/hero-road.webp") center 82% / cover no-repeat;
}
.p-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 48% at 76% 46%, rgba(255, 159, 10, .2), transparent 70%),
    linear-gradient(90deg, rgba(13, 17, 23, .96) 0%, rgba(13, 17, 23, .82) 42%, rgba(13, 17, 23, .5) 100%),
    linear-gradient(180deg, rgba(13, 17, 23, .6) 0%, rgba(13, 17, 23, 0) 30%, rgba(13, 17, 23, .7) 100%);
}
.p-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.p-hero-copy { padding-bottom: 88px; }
.p-hero h1 { font-size: clamp(38px, 4.4vw, 58px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.03; margin: 22px 0 20px; color: #fff; text-wrap: balance; }
.p-hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 34em; margin-bottom: 26px; }
.p-checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.p-checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--text); }
.p-checks .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(255, 159, 10, .16); color: var(--gold-2); stroke-width: 3; margin-top: -1px; }
.p-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.p-hero-visual { position: relative; height: 700px; display: flex; justify-content: center; align-items: flex-end; }
.p-hero-visual .fc-1 { top: 70px; right: -12px; animation-delay: -2s; }
.p-hero-visual .fc-2 { bottom: 150px; left: -20px; animation-delay: -4s; }
.float-card .bubble.gold { background: rgba(255, 159, 10, .18); color: var(--gold-2); }

/* Plans, styled like the app's selectable tiles */
.plans { border: 0; margin: 0 auto; padding: 16px 0 0; max-width: 660px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.plan {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer;
  padding: 30px 24px 24px; border-radius: var(--r-xl); background: var(--surface); border: 2px solid var(--border);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 16px 34px -18px rgba(10, 132, 255, .6); }
.plan:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.plan-badge {
  position: absolute; top: -13px; left: 22px; padding: 6px 10px; border-radius: 8px; background: var(--gold-grad); color: var(--gold-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.plan-name { font-weight: 700; font-size: 17px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.plan-price strong { font-size: 42px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 15px; color: var(--text-2); font-weight: 600; }
.plan-billed { font-size: 14px; color: var(--text-2); }
.plan-save { margin-top: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #16A34A; background: #DCFCE7; }
.band-dark .plan-save, :root[data-theme="dark"] .plan-save { color: #4ADE80; background: #14371F; }
.plan-radio { position: absolute; top: 24px; right: 22px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.plan:has(input:checked) .plan-radio { border-color: var(--primary); box-shadow: inset 0 0 0 5px var(--surface); background: var(--primary); }
.plan-cta { text-align: center; margin-top: 36px; }
.fine { font-size: 13.5px; color: var(--text-2); max-width: 600px; margin: 14px auto 0; }

/* Free vs Premium */
.compare-wrap { max-width: 880px; margin: 0 auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 20px; }
.compare thead th { font-size: 15px; font-weight: 800; text-align: center; padding-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.compare thead th:first-child { text-align: left; }
.compare th:nth-child(3), .compare td:nth-child(3) { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.compare tbody th[scope="row"] { text-align: left; font-weight: 500; font-size: 15px; }
.compare td { text-align: center; width: 120px; }
.compare tbody tr + tr:not(.group) { border-top: 1px solid var(--border-soft); }
.compare tr.group th {
  text-align: left; padding: 26px 20px 10px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--primary);
  background: none;
}
.compare tr.group th .icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.compare .icon.yes { color: var(--primary); stroke-width: 3; }
.compare .icon.yes.gold { color: var(--gold); }
.compare .icon.no { color: var(--muted); }

/* Direct / Curvy / Supercurvy, like the route planner's style pills */
.segmented { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); font-weight: 700; font-size: 15px; color: var(--text);
  transition: background-color .2s, color .2s, border-color .2s;
}
.segmented button .icon { width: 18px; height: 18px; }
.segmented button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.route-readout { display: flex; gap: 12px; margin-top: 18px; }
.route-readout div { background: var(--surface); border-radius: var(--r-lg); padding: 14px 20px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); min-width: 140px; }
.route-readout strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.route-readout span { font-size: 13px; color: var(--text-2); }
.route-readout + .fine { margin: 14px 0 0; }
.style-phone { --w: 300px; }

.row-icon.gold { background: color-mix(in srgb, var(--gold) 15%, transparent); color: #F08C00; }

/* "And there's more": cards with a phone peeking out of the bottom */
.peek-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.peek-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); overflow: hidden; }
.peek-copy { padding: 28px 28px 8px; }
.peek-copy .row-icon { margin-bottom: 16px; }
.peek-copy h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.peek-copy p { color: var(--text-2); font-size: 15px; max-width: 30em; }
.peek-shot { position: relative; min-height: 300px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 22px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 9%, transparent)); }
.peek-shot .phone { --w: 250px; box-shadow: var(--shadow-md), inset 0 0 0 1.5px #2A313B; }
.peek-art { padding: 22px 28px 0; }
.peek-art svg { display: block; width: 100%; height: 100%; min-height: 278px; border-radius: 18px 18px 0 0; box-shadow: var(--shadow-md); }
/* Show the bottom of the screen instead (for sheets and bars at the bottom). */
.peek-shot.show-bottom { align-items: flex-end; padding: 0 0 26px; }

/* Dark download band for Premium */
.cta-gold {
  background:
    radial-gradient(80% 110% at 100% 0%, rgba(255, 179, 64, .28), transparent 55%),
    linear-gradient(135deg, #222A35 0%, #171E27 55%, #0D1117 100%);
  box-shadow: 0 40px 80px -30px rgba(13, 17, 23, .6);
}

@media (max-width: 1080px) {
  .p-hero-visual .phone.front { --w: 290px; }
}
@media (max-width: 900px) {
  .p-hero { padding-top: 104px; }
  .p-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .p-hero-copy { padding-bottom: 0; }
  .p-hero-visual { height: 600px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; gap: 22px; }
  .peek-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .p-hero h1 { font-size: 40px; }
  .p-checks li { font-size: 15px; }
  .p-hero-cta .btn { flex: 1; padding: 0 16px; }
  .p-hero-visual { height: 520px; }
  .p-hero-visual .fc-1 { top: 16px; right: -4px; }
  .p-hero-visual .fc-2 { bottom: 110px; left: -4px; }
  .compare th, .compare td { padding: 12px 12px; }
  .compare tbody th[scope="row"] { font-size: 14px; }
  .compare td { width: 72px; }
  .compare tr.group th { padding: 22px 12px 8px; }
  .segmented { gap: 8px; }
  .segmented button { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .segmented button .icon { display: none; }
  .route-readout div { flex: 1; min-width: 0; }
  .route-readout strong { font-size: 22px; }
  .style-phone { --w: 250px; }
  .peek-copy { padding: 24px 22px 6px; }
  .peek-shot { min-height: 260px; }
  .peek-shot .phone { --w: 220px; }
  .btn-lg { height: 54px; font-size: 16px; }
}

/* ══ Legal pages (terms/, privacy/, delete-account/) ═══════
   The text between the LEGAL markers is written by
   scripts/build-legal-pages.mjs from the app's src/config/legal.ts. */
.legal-hero {
  padding: 132px 0 44px;
  background: linear-gradient(180deg, var(--primary-tint), var(--bg));
  border-bottom: 1px solid var(--border-soft);
}
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(40px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.legal-updated { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.legal-switch {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft);
  font-weight: 600; font-size: 15px; color: var(--text); transition: color .2s, box-shadow .2s;
}
.legal-switch:hover { color: var(--primary); box-shadow: var(--shadow-md), 0 0 0 1px var(--border); }
.legal-switch .icon { width: 17px; height: 17px; color: var(--primary); }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 48px 0 112px; }
.legal-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 7px 12px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.35; color: var(--text-2); transition: color .2s, background-color .2s; }
.legal-toc a:hover { color: var(--text); background: var(--bg-2); }

.legal-article { max-width: 740px; font-size: 17px; line-height: 1.7; }
.legal-article p { margin: 0 0 16px; }
.legal-article ul { margin: 0 0 18px; padding-left: 22px; }
/* Numbered steps (delete-account/). */
.legal-article ol { margin: 0 0 18px; padding-left: 26px; }
.legal-article li { margin-bottom: 10px; }
.legal-article li::marker { color: var(--muted); }
.legal-article ol > li::marker { color: var(--primary); font-weight: 700; }
.legal-article strong { font-weight: 700; }
.legal-article a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-article section { scroll-margin-top: 24px; }
.legal-article section h2 { font-size: 26px; font-weight: 800; margin: 52px 0 14px; }

/* "The short version": the app's card, with its blue dots. */
.legal-summary { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); padding: 26px 28px 16px; margin-bottom: 36px; }
.legal-summary h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.legal-summary ul { list-style: none; padding: 0; }
.legal-summary li { position: relative; padding-left: 22px; }
.legal-summary li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

@media (max-width: 900px) {
  .legal-hero { padding: 112px 0 32px; }
  .legal-layout { grid-template-columns: 1fr; padding: 32px 0 80px; }
  .legal-toc { display: none; }
}
@media (max-width: 560px) {
  .legal-article { font-size: 16px; }
  .legal-article section h2 { font-size: 22px; margin-top: 40px; }
  .legal-summary { padding: 20px 20px 10px; }
}
