/* RIDE central hub: one stylesheet for every public page.
   Tokens follow the retained website palette (cockpit colors from RideTheme.kt): Day = sand, warm white, ink, amber;
   Night = navy, panel, ink, amber. No animation beyond short color transitions; nothing autoplays or hijacks scroll. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #F1ECE2; --frame: #FFFDF8; --raise: #F6F1E7; --sunk: #EAE3D5;
  --ink: #1A1408; --ink-2: #5A4E3A;
  --line: #C8BFAF; --line-strong: #8E8678;
  --accent: #9C5A0E; --accent-text: #8A4B00; --accent-ground: #FBE9CF; --on-accent: #FFFDF8;
  --data: #005B41; --data-ground: #D8F5E8;
  --error: #A32017; --error-ground: #FBE3E0;
  --focus: #8A4B00;
  --shadow: 0 18px 40px -24px rgba(26, 20, 8, .5);
  --road-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 520' fill='none'%3E%3Cpath d='M-40 470C180 470 230 250 470 250S760 470 950 330 1130 100 1250 60' stroke='%23C8BFAF' stroke-opacity='.55' stroke-width='70' stroke-linecap='round'/%3E%3Cpath d='M-40 470C180 470 230 250 470 250S760 470 950 330 1130 100 1250 60' stroke='%239C5A0E' stroke-opacity='.85' stroke-width='3' stroke-dasharray='16 20' stroke-linecap='round'/%3E%3C/svg%3E");
  --header-h: 4.5rem;
  --radius: 1rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #080B10; --frame: #111923; --raise: #182332; --sunk: #0C121A;
  --ink: #EAF1F8; --ink-2: #D7E0E9;
  --line: #405163; --line-strong: #5B6E80;
  --accent: #E0962E; --accent-text: #FFC670; --accent-ground: #302719; --on-accent: #071015;
  --data: #B6F2D8; --data-ground: #20382F;
  --error: #FFDAD8; --error-ground: #3A1A1A;
  --focus: #FFC670;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .85);
  --road-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 520' fill='none'%3E%3Cpath d='M-40 470C180 470 230 250 470 250S760 470 950 330 1130 100 1250 60' stroke='%23182332' stroke-width='70' stroke-linecap='round'/%3E%3Cpath d='M-40 470C180 470 230 250 470 250S760 470 950 330 1130 100 1250 60' stroke='%23E0962E' stroke-opacity='.8' stroke-width='3' stroke-dasharray='16 20' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* A band that always uses the Night cockpit tokens (beta call to action, footer), whatever the page theme. */
.band-night {
  --ground: #080B10; --frame: #111923; --raise: #182332; --sunk: #0C121A;
  --ink: #EAF1F8; --ink-2: #D7E0E9;
  --line: #405163; --line-strong: #5B6E80;
  --accent: #E0962E; --accent-text: #FFC670; --accent-ground: #302719; --on-accent: #071015;
  --focus: #FFC670; --error: #FFDAD8; --error-ground: #3A1A1A;
  background: var(--ground); color: var(--ink); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + .75rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font: 400 1rem/1.65 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 760; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
h4 { font-size: 1rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: .3rem 0; }
dl { margin: 0; }
a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
em { font-style: normal; color: var(--accent-text); }
strong { font-weight: 700; }
small, .fine { font-size: .86rem; color: var(--ink-2); }
.fine { margin: 0 0 .6rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 100; padding: .7rem 1.1rem; background: var(--frame); color: var(--ink); border: 2px solid var(--accent); border-radius: .6rem; font-weight: 700; }
.skip-link:focus { top: .75rem; }

.eyebrow { margin: 0 0 .9rem; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.measure { max-width: 42rem; }
.muted { color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; border-radius: .6rem; }
.brand img { display: block; width: 3.5rem; height: 3.5rem; }
/* Day and Night wordmarks: Day shows by default, Night in the dark theme (the footer always uses Night). */
.brand .logo-night { display: none; }
:root[data-theme="dark"] .brand .logo-day { display: none; }
:root[data-theme="dark"] .brand .logo-night { display: block; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 .75rem; display: grid; gap: .15rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .7rem .85rem; border-radius: .7rem; color: var(--ink); text-decoration: none; font-weight: 650; }
.site-nav a:hover { background: var(--raise); }
.site-nav a[aria-current="page"] { background: var(--accent-ground); color: var(--accent-text); }
.site-nav .nav-cta { padding-top: .5rem; }
.site-nav .nav-cta .btn { display: flex; width: 100%; }
.js .site-nav { display: none; }
.js .nav-open .site-nav { display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.header-actions .header-cta { display: none; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }
.nav-toggle, .theme-toggle {
  align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .95rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; line-height: 1;
}
.theme-toggle { display: inline-flex; }
.nav-toggle:hover, .theme-toggle:hover { background: var(--raise); border-color: var(--ink); }
.theme-toggle svg { width: 1rem; height: 1rem; flex: none; }
@media (min-width: 60rem) {
  .header-row { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; order: 0; flex: 1 1 auto; flex-basis: auto; }
  .site-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem; padding: 0; }
  .site-nav a { padding: .5rem .8rem; border-radius: 999px; font-size: .95rem; }
  .site-nav .nav-cta { display: none; }
  .header-actions { margin-left: 0; }
  .header-actions .header-cta { display: inline-flex; min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .92rem; }
  .nav-toggle, .js .nav-toggle { display: none; }
}

/* ---------- Buttons, pills, notices ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem;
  padding: .65rem 1.3rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--on-accent); text-decoration: none; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--raise); border-color: var(--ink); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.text-link { font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; }

.pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .65rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); background: transparent; white-space: nowrap;
}
.pill--accent { border-color: var(--accent); color: var(--accent-text); background: var(--accent-ground); }
.pill--data { border-color: var(--data); color: var(--data); background: var(--data-ground); }

.notice {
  margin: 1.5rem 0; padding: 1rem 1.15rem; border: 1px solid var(--line-strong); border-left: 5px solid var(--accent);
  border-radius: .75rem; background: var(--frame);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong:first-child { display: block; margin-bottom: .2rem; }
.notice--caution { background: var(--accent-ground); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--raise { background: var(--raise); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding-block: clamp(2.25rem, 6vw, 4.75rem) clamp(2.75rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background: var(--road-art) right bottom / min(1300px, 150%) auto no-repeat;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-status {
  display: flex; align-items: flex-start; gap: .65rem; max-width: 36rem; margin: 1.6rem 0 0; padding: .75rem .95rem;
  border: 1px solid var(--line-strong); border-radius: .85rem; background: var(--frame); font-size: .93rem; line-height: 1.5;
}
.hero-status .dot { flex: none; width: .6rem; height: .6rem; margin-top: .5rem; border-radius: 50%; background: var(--accent); }
.hero-status p { margin: 0; }
.hero-visual { width: 100%; max-width: 34rem; margin-inline: auto; }
.hero-visual .fine { margin: 1rem 0 0; text-align: center; }
.hero-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; width: 100%; max-width: 17rem; margin-inline: auto; }
@media (min-width: 40rem) { .hero-media { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; } .hero-media .shot:nth-child(2) { margin-top: 3rem; } }
@media (max-width: 39.99rem) { .hero-media .shot:nth-child(2) { display: none; } }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } .hero-visual { justify-self: end; margin-inline: 0; } }

.fact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1px; margin-top: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line);
}
.fact-strip > * { margin: 0; padding: 1rem 1.15rem; background: var(--frame); font-size: .95rem; line-height: 1.5; }
.fact-strip strong { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .2rem; }

/* ---------- Overview pillars, cards, notes ---------- */
.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.pillar, .card { margin: 0; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--frame); }
.pillar .num { display: block; margin-bottom: .6rem; font-size: .78rem; font-weight: 750; letter-spacing: .14em; color: var(--accent-text); }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { margin: 0; color: var(--ink-2); }
.pillar a { text-decoration: none; color: inherit; display: block; }
.card h3 { margin-bottom: .5rem; }
.card > :last-child { margin-bottom: 0; }

.feature-grid { display: grid; gap: 2.5rem; align-items: start; }
.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy > p { max-width: 40rem; }
.feature-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; justify-items: center; align-items: start; }
@media (min-width: 30rem) {
  .feature-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-media > .shot--solo, .feature-media > .shot--land, .feature-media > .shot--wide, .feature-media > .watch-row { grid-column: 1 / -1; }
}
@media (min-width: 60rem) {
  .feature-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; }
  .feature--flip .feature-media { order: -1; }
}
.notes { display: grid; gap: .95rem; margin: 1.6rem 0 0; }
.notes > div { padding-left: 1rem; border-left: 3px solid var(--accent); }
.notes dt { font-weight: 700; }
.notes dd { margin: .1rem 0 0; color: var(--ink-2); }
.caveat { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.caveat p:last-child { margin-bottom: 0; }

.kit-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
.kit-grid .card ul { margin: .75rem 0 0; padding-left: 1.15rem; color: var(--ink-2); font-size: .95rem; }

/* ---------- Screenshots, rails, tabs ---------- */
.shot { margin: 0; min-width: 0; }
/* Positioned on purpose. The visually hidden "Open larger image" span is absolutely positioned; with no positioned ancestor its
   containing block is the page, so inside a scrolling .rail it sits at its static position in an off-screen column, is not clipped
   by the rail, and widens the whole document. Keep .shot-link (or .rail) positioned. */
.shot-link { display: block; position: relative; border-radius: 1.45rem; }
.shot img {
  display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 1.45rem;
  background: var(--raise); box-shadow: var(--shadow);
}
.shot figcaption { margin-top: .65rem; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.shot figcaption strong { display: block; color: var(--ink); font-size: .92rem; }
.shot-tag {
  display: inline-block; margin-right: .35rem; padding: .05rem .5rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); vertical-align: .05em; white-space: nowrap;
}
.shot--land img { border-radius: 1.1rem; }
.shot--watch { max-width: 11rem; }
.shot--watch img { border-radius: 50%; }
.feature-media .shot { width: 100%; max-width: 16rem; }
.feature-media .shot--land, .feature-media .shot--wide { max-width: 28rem; }
.feature-media .shot--watch { max-width: 9.5rem; }
.watch-row { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; align-items: flex-start; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(15rem, 72vw); gap: 1.1rem; align-items: start; padding: .35rem .35rem 1.1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: var(--line-strong) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail .shot--land { grid-column: span 2; }
.rail:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.gallery .tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.gallery:not(.is-tabbed) .tablist { display: none; }
.gallery.is-tabbed .panel-title { display: none; }
.panel-title { margin: 1.5rem 0 .75rem; font-size: 1.05rem; }
.tab {
  min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-weight: 650; font-size: .93rem; cursor: pointer;
}
.tab:hover { background: var(--raise); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.gallery [role="tabpanel"][hidden] { display: none; }

.scene-band { padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
.scene { margin: 0; }
.scene img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: calc(var(--radius) + .25rem); }
.scene figcaption { margin-top: .65rem; font-size: .86rem; color: var(--ink-2); }

.viewer { max-width: min(96vw, 60rem); max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; color: #EAF1F8; }
.viewer::backdrop { background: rgba(4, 7, 11, .86); }
.viewer-body { display: grid; gap: .8rem; justify-items: center; padding: .6rem; }
.viewer-close { justify-self: end; background: #111923; color: #EAF1F8; border-color: #5B6E80; }
.viewer-close:hover { background: #182332; color: #EAF1F8; border-color: #EAF1F8; }
.viewer-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 74vh; border-radius: 1.2rem; background: #111923; }
.viewer-cap { margin: 0; max-width: 40rem; text-align: center; font-size: .9rem; line-height: 1.5; color: #D7E0E9; }
.dialog-open { overflow: hidden; }

/* ---------- Status, steps, allowance, roadmap, FAQ, policy cards ---------- */
.stands { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stands > div { padding: 1rem 1.15rem; background: var(--frame); }
.stands dt { margin-bottom: .2rem; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.stands dd { margin: 0; font-size: .96rem; line-height: 1.5; }

.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); list-style: none; margin: 1.75rem 0; padding: 0; }
.steps li { counter-increment: step; margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--frame); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .5rem; font-size: .78rem; font-weight: 750; letter-spacing: .14em; color: var(--accent-text); }
.steps h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.allowance { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 1.5rem; }
.allowance .card .big { display: block; margin-bottom: .35rem; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent-text); }
.allowance .card p { margin: 0; color: var(--ink-2); }

.beta-band { padding-block: clamp(3.25rem, 8vw, 6rem); }
.beta-band .grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .beta-band .grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; } }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0; }
.checklist li { position: relative; margin: .55rem 0; padding-left: 1.5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }

.road-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.road-list li { margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--frame); }
.road-list h3 { margin: .65rem 0 .4rem; }
.road-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .25rem; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 600; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 .25rem 1.1rem; color: var(--ink-2); max-width: 46rem; }
.faq .answer p:last-child { margin-bottom: 0; }

.doc-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.doc-cards li { margin: 0; }
.doc-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--frame); color: var(--ink); text-decoration: none; }
.doc-card:hover { border-color: var(--accent); }
.doc-card strong { font-size: 1.05rem; }
.doc-card span { font-size: .9rem; color: var(--ink-2); }
.doc-card .pill { align-self: flex-start; margin-top: .25rem; }

/* ---------- Documents (policies, safety, support) ---------- */
.doc-head { padding-block: clamp(2.25rem, 6vw, 4rem) 0; }
.doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.doc-meta { margin: 0 0 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.doc-layout { display: grid; gap: 1.5rem; padding-block: 1.5rem clamp(3rem, 7vw, 5rem); }
.toc { font-size: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.toc p { margin: 0 0 .5rem; font-weight: 750; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.toc li { margin: 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
@media (min-width: 60rem) {
  .doc-layout { grid-template-columns: 14rem minmax(0, 46rem); gap: 3.5rem; }
  .toc { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; padding-bottom: 0; border-bottom: 0; }
  .toc ul { display: block; }
  .toc li { margin: .5rem 0; }
}
.prose { min-width: 0; overflow-wrap: anywhere; }
.prose section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.25rem; line-height: 1.3; letter-spacing: .005em; font-weight: 750; }
.prose section:first-of-type h2 { margin-top: 0; }
.prose h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.prose li { margin: .5rem 0; }
.prose .callout { margin: 0 0 1.75rem; }
.page-links { list-style: none; padding: 0; margin: 1rem 0; }
.page-links li { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.page-links a { font-size: 1.2rem; font-weight: 700; }
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.related li { margin: 0; }
.draft-note { margin: 0 0 1.5rem; padding: .85rem 1rem; border: 1px solid var(--accent); border-radius: .75rem; background: var(--accent-ground); font-size: .95rem; }
.draft-note p { margin: 0; }

/* ---------- Forms ---------- */
.service-main { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.service-main h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.service-main .lead { margin-bottom: 1.5rem; }
.narrow { max-width: 44rem; }
.eyebrow-h { margin: 1.75rem 0 .5rem; font-size: 1.15rem; letter-spacing: -.01em; }
.beta-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .beta-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 4rem; } }
.signup { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + .25rem); background: var(--frame); box-shadow: var(--shadow); }
.signup h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
form { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset:disabled { opacity: .65; }
label { display: block; margin: 1.1rem 0 .35rem; font-weight: 650; }
.field-note, .field-error { margin: .35rem 0 0; font-size: .88rem; }
.field-note { color: var(--ink-2); }
.field-error { color: var(--error); font-weight: 600; }
.field-error:empty { display: none; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  display: block; width: 100%; min-height: 2.9rem; padding: .65rem .85rem; border: 1px solid var(--line-strong); border-radius: .65rem;
  background: var(--ground); color: var(--ink); font: inherit; line-height: 1.4;
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: .75; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.check { display: flex; align-items: flex-start; gap: .75rem; margin: 1.1rem 0 0; font-weight: 400; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--accent); }
details.optional { margin: 1.25rem 0 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--raise); }
details.optional summary { padding: .85rem 1rem; font-weight: 700; cursor: pointer; }
details.optional summary span { margin-left: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
details.optional .optional-fields { padding: 0 1rem 1.1rem; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.form-message { margin: 0 0 1rem; padding: 0; }
.form-message:empty { display: none; }
.form-message:not(:empty) { padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: .75rem; background: var(--raise); }
.form-message.is-error { border-color: var(--error); background: var(--error-ground); color: var(--error); font-weight: 600; }
.form-message.is-success { border-color: var(--data); background: var(--data-ground); color: var(--data); }
.form-message a { color: inherit; font-weight: 700; }
.form-message p { margin: 0 0 .5rem; }
.form-init, .form-error { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: .75rem; background: var(--raise); font-size: .93rem; }
.form-error { border-color: var(--error); background: var(--error-ground); color: var(--error); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.play-link { margin-top: 1rem; }
.config-retry { margin-top: .75rem; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid .footer-brand { grid-column: 1 / -1; max-width: 32rem; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } .footer-grid .footer-brand { grid-column: auto; } }
.brand--footer img { width: 5rem; height: 5rem; }
.brand--footer .logo-day { display: none; }
.brand--footer .logo-night { display: block; }
.footer-tagline { margin: .5rem 0 .75rem; font-size: 1.15rem; font-weight: 700; }
.footer-h { margin: 0 0 .75rem; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .45rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer .fine { color: var(--ink-2); }
.site-footer .fine a { color: var(--accent-text); text-decoration: underline; }
.footer-fine { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-fine .fine { font-size: .8rem; max-width: 62rem; }

/* ---------- Not found / forwarding ---------- */
.center-page { max-width: 40rem; padding-block: clamp(3rem, 10vw, 7rem); }
.center-page h1 { margin-bottom: 1rem; }

/* ---------- Print, forced colors, reduced motion ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .toc, .skip-link, .actions, .related { display: none !important; }
  .doc-layout { display: block; padding: 0; }
  a { color: #000; }
  .prose h2 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
@media (forced-colors: active) {
  .btn, .tab, .nav-toggle, .theme-toggle, .pill { border: 1px solid ButtonText; }
  .tab[aria-selected="true"] { outline: 2px solid Highlight; }
  .hero::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
