/* otobru.dev landing page.

   Design spec (keep changes consistent with it):
   - Type: Geist (UI and prose) and Geist Mono (commands, labels), the same
     faces as the app. Scale, fluid between 360px and 1440px:
       display  clamp(2.6rem → 5rem), 620, -0.045em, 1.0
       h2       clamp(1.95rem → 3rem), 600, -0.035em, 1.08
       h3       1.125rem, 600, -0.01em
       lead     clamp(1.0625rem → 1.25rem), 1.55
       body     1rem, 1.6;  small .875rem;  micro (mono labels) .75rem
   - Color: the app's tokens (warm neutrals, otobru blue), light and dark.
     Terminals stay dark in both themes. Status colors only for status.
   - Space: 4px steps (--s-1 … --s-10). Sections are --section tall
     padding; within a section, heading → body 16, body → visual 48–64.
   - Grid: 1180px container, 24px gutters (16px under 600px). Feature
     sections are 5/7 splits that stack under 960px.
   - Components: 10px controls, 14px cards, 12px windows; hairline borders
     plus one soft shadow for floating surfaces only. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafaf9;
  --bg-band: #f3f3f1;
  --surface: #fff;
  --sunken: #f2f2f0;
  --ink: #0a0a0a;
  --ink-body: #3a3a38;
  --ink-muted: #63635f;
  --ink-faint: #8a8a85;
  --line: #0a0a0a12;
  --line-strong: #0a0a0a21;
  --accent: #2f5fd0;
  --accent-ink: #2552bd;
  --accent-soft: #2f5fd014;
  --on-accent: #fff;
  --ok: #167b4d;
  --ok-soft: #167b4d14;
  --warn: #a54b14;
  --warn-soft: #bf5a1e17;
  --bad: #b54141;
  --shadow: 0 1px 2px #0a0a0a0a, 0 12px 32px -12px #0a0a0a29, 0 40px 80px -40px #0a0a0a33;
  --glow: #2f5fd01f;

  /* Terminal, the same in both themes. */
  --term-bg: #0e0f12;
  --term-bar: #16171b;
  --term-line: #ffffff14;
  --term-ink: #e6e6e3;
  --term-dim: #8b8d93;
  --term-faint: #5f6168;
  --term-add: #4ad295;
  --term-chg: #f0a35e;
  --term-acc: #8fb0ff;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.32, .72, 0, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-band: #101012;
  --surface: #161618;
  --sunken: #111113;
  --ink: #f2f2f0;
  --ink-body: #c3c3bf;
  --ink-muted: #9a9a96;
  --ink-faint: #74746f;
  --line: #ffffff12;
  --line-strong: #ffffff21;
  --accent: #7d9df5;
  --accent-ink: #9ab4ff;
  --accent-soft: #7d9df51c;
  --on-accent: #0a1330;
  --ok: #34c486;
  --ok-soft: #34c4861a;
  --warn: #eb8a4f;
  --warn-soft: #e0783c1f;
  --bad: #e07a7a;
  --shadow: 0 1px 2px #0000004d, 0 16px 40px -16px #000000b3, 0 50px 90px -40px #000000cc;
  --glow: #7d9df51a;
  --term-bg: #0c0d10;
  --term-bar: #131418;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg-band: #101012;
    --surface: #161618;
    --sunken: #111113;
    --ink: #f2f2f0;
    --ink-body: #c3c3bf;
    --ink-muted: #9a9a96;
    --ink-faint: #74746f;
    --line: #ffffff12;
    --line-strong: #ffffff21;
    --accent: #7d9df5;
    --accent-ink: #9ab4ff;
    --accent-soft: #7d9df51c;
    --on-accent: #0a1330;
    --ok: #34c486;
    --ok-soft: #34c4861a;
    --warn: #eb8a4f;
    --warn-soft: #e0783c1f;
    --bad: #e07a7a;
    --shadow: 0 1px 2px #0000004d, 0 16px 40px -16px #000000b3, 0 50px 90px -40px #000000cc;
    --glow: #7d9df51a;
    --term-bg: #0c0d10;
    --term-bar: #131418;
    color-scheme: dark;
  }
}

/* ---- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:where(p, li) code {
  font-size: .86em;
  padding: .1em .38em;
  border-radius: 6px;
  background: var(--sunken);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* ---- nav ----------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: var(--s-6); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 620; font-size: 1.0625rem; letter-spacing: -.02em;
}
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: var(--s-5); margin-right: auto; }
.nav-links a {
  color: var(--ink-muted); text-decoration: none; font-size: .9rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
@media (max-width: 880px) { .nav-links { display: none; } .nav-links + .nav-actions { margin-left: auto; } }
@media (max-width: 420px) { .nav .btn-primary { display: none; } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; color: var(--ink-muted);
  border: 1px solid transparent; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); background: var(--sunken); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: 500 .9375rem/1 var(--font); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 1rem; border-radius: 12px; }
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: inset 0 1px 0 #ffffff26, 0 1px 2px #0a0a0a29;
}
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-ghost { color: var(--ink-muted); }
.btn-ghost:hover { color: var(--ink); background: var(--sunken); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---- type helpers -------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow .num { color: var(--ink-faint); }
.h2 { font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--ink-muted); max-width: 40em; }
.lead strong, .prose strong { color: var(--ink); font-weight: 560; }
.section-head { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: var(--s-2); }
.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }

/* ---- hero ---------------------------------------------------------------- */

.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 0; overflow: clip; }
.hero::before {
  /* A faint grid that fades out: depth without decoration. */
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: 340px; width: 1100px; height: 700px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 860px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .8125rem; color: var(--ink-muted);
  box-shadow: 0 1px 2px #0a0a0a0d;
}
.pill b {
  font: 500 .6875rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 5px 8px; border-radius: 999px;
}
.display {
  margin-top: var(--s-5);
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  line-height: 1; letter-spacing: -.048em; font-weight: 620;
}
.display .soft { color: var(--ink-faint); }
.hero .lead { margin-top: var(--s-5); max-width: 36em; }

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
}
.hero-buttons { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.install { flex: 0 1 560px; min-width: 0; }
.install-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 10px;
}
.cmd {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  background: var(--term-bg); color: var(--term-ink);
  border-radius: 12px; padding: 14px 14px 14px 16px;
  box-shadow: inset 0 0 0 1px var(--term-line), 0 1px 2px #0a0a0a29;
}
.cmd pre {
  margin: 0; flex: 1; min-width: 0; overflow-x: auto;
  font-size: .8125rem; line-height: 1.75; scrollbar-width: none;
}
.cmd pre::-webkit-scrollbar { display: none; }
/* On a phone the whole command stays visible: the URL wraps instead of
   hiding under the copy button. */
.cmd .cl { display: block; }
@media (max-width: 600px) {
  .cmd { padding-right: 16px; }
  .cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .cmd .cl { padding-left: 2ch; text-indent: -2ch; }
  .cmd .copy { position: absolute; right: 0; top: -40px; background: var(--surface); color: var(--ink-muted); border-color: var(--line-strong); }
  .cmd .copy:hover { color: var(--ink); background: var(--sunken); }
  .cmd .copy.copied { color: var(--ok); }
}
.cmd .p { color: var(--term-faint); user-select: none; }
.cmd .u { color: var(--term-acc); }
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  background: #ffffff0f; color: var(--term-dim);
  border: 1px solid #ffffff1a; cursor: pointer;
  font: 500 .75rem/1 var(--font);
  transition: color .15s, background .15s;
}
.copy:hover { color: var(--term-ink); background: #ffffff1a; }
.copy svg { width: 14px; height: 14px; }
.copy .done { display: none; }
.copy.copied { color: var(--term-add); }
.copy.copied .idle { display: none; }
.copy.copied .done { display: inline; }
.install-note { margin-top: 10px; font-size: .8125rem; color: var(--ink-faint); line-height: 1.5; }

/* The product stage under the hero copy. */
.stage {
  position: relative; margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(64px, 9vw, 120px);
}
.stage .term { max-width: 820px; }
.stage .device {
  position: absolute; right: 0; top: 92px; width: 440px;
}
@media (max-width: 1180px) { .stage .device { width: 400px; } .stage .term { max-width: 760px; } }
@media (max-width: 1060px) {
  .stage .device { position: relative; top: 0; width: auto; max-width: 560px; margin: -48px 0 0 auto; }
  .stage .term { max-width: none; margin-right: 48px; }
}
@media (max-width: 640px) {
  .stage .term { margin-right: 0; }
  .stage .device { margin: 16px 0 0; max-width: none; }
}

/* ---- terminal window ----------------------------------------------------- */

.term {
  background: var(--term-bg); color: var(--term-ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--term-line), var(--shadow);
}
.term-bar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--term-bar); border-bottom: 1px solid var(--term-line);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff1f; }
.term-bar span {
  flex: 1; text-align: center; margin-right: 49px;
  font: 500 .75rem/1 var(--mono); color: var(--term-faint);
}
.term pre {
  margin: 0; padding: 18px 20px 22px; overflow-x: auto;
  font-size: .8125rem; line-height: 1.7; tab-size: 2;
  scrollbar-width: thin; scrollbar-color: #ffffff22 transparent;
}
@media (max-width: 600px) { .term pre { font-size: .71875rem; padding: 14px 14px 18px; } }
.term .p { color: var(--term-acc); user-select: none; }
.term .c { color: var(--term-ink); font-weight: 500; }
.term .d { color: var(--term-dim); }
.term .f { color: var(--term-faint); }
.term .a { color: var(--term-add); }
.term .w { color: var(--term-chg); }
.term .h { color: var(--term-ink); font-weight: 600; }
.term .b { color: var(--term-acc); }
.term .gap { display: block; height: .7em; }

/* Lines appear in order once, unless motion is reduced. */
/* Lines (and the blank gaps between them) appear in order, once. The
   delays are listed out because the CSP allows no inline styles. */
.reveal code > span { opacity: 0; animation: ln .38s var(--ease) forwards; }
.reveal code > span:nth-of-type(1) { animation-delay: 290ms; }
.reveal code > span:nth-of-type(2) { animation-delay: 330ms; }
.reveal code > span:nth-of-type(3) { animation-delay: 370ms; }
.reveal code > span:nth-of-type(4) { animation-delay: 410ms; }
.reveal code > span:nth-of-type(5) { animation-delay: 450ms; }
.reveal code > span:nth-of-type(6) { animation-delay: 490ms; }
.reveal code > span:nth-of-type(7) { animation-delay: 530ms; }
.reveal code > span:nth-of-type(8) { animation-delay: 570ms; }
.reveal code > span:nth-of-type(9) { animation-delay: 610ms; }
.reveal code > span:nth-of-type(10) { animation-delay: 650ms; }
.reveal code > span:nth-of-type(11) { animation-delay: 690ms; }
.reveal code > span:nth-of-type(12) { animation-delay: 730ms; }
.reveal code > span:nth-of-type(13) { animation-delay: 770ms; }
.reveal code > span:nth-of-type(14) { animation-delay: 810ms; }
.reveal code > span:nth-of-type(15) { animation-delay: 850ms; }
.reveal code > span:nth-of-type(16) { animation-delay: 890ms; }
.reveal code > span:nth-of-type(17) { animation-delay: 930ms; }
.reveal code > span:nth-of-type(18) { animation-delay: 970ms; }
.reveal code > span:nth-of-type(19) { animation-delay: 1010ms; }
.reveal code > span:nth-of-type(20) { animation-delay: 1050ms; }
.reveal code > span:nth-of-type(21) { animation-delay: 1090ms; }
.reveal code > span:nth-of-type(22) { animation-delay: 1130ms; }
.reveal code > span:nth-of-type(23) { animation-delay: 1170ms; }
.reveal code > span:nth-of-type(24) { animation-delay: 1210ms; }
.reveal code > span:nth-of-type(25) { animation-delay: 1250ms; }
.reveal code > span:nth-of-type(26) { animation-delay: 1290ms; }
.reveal code > span:nth-of-type(27) { animation-delay: 1330ms; }
.reveal code > span:nth-of-type(28) { animation-delay: 1370ms; }
.reveal code > span:nth-of-type(29) { animation-delay: 1410ms; }
.reveal code > span:nth-of-type(30) { animation-delay: 1450ms; }
.reveal code > span:nth-of-type(31) { animation-delay: 1490ms; }
.reveal code > span:nth-of-type(32) { animation-delay: 1530ms; }
.reveal code > span:nth-of-type(33) { animation-delay: 1570ms; }
.reveal code > span:nth-of-type(34) { animation-delay: 1610ms; }
.reveal code > span:nth-of-type(35) { animation-delay: 1650ms; }
.reveal code > span:nth-of-type(36) { animation-delay: 1690ms; }
.reveal code > span:nth-of-type(37) { animation-delay: 1730ms; }
.reveal code > span:nth-of-type(38) { animation-delay: 1770ms; }
.reveal code > span:nth-of-type(39) { animation-delay: 1810ms; }
.reveal code > span:nth-of-type(40) { animation-delay: 1850ms; }
@keyframes ln { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---- app windows (device page, review queue) ----------------------------- */

.app {
  background: var(--surface); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow);
  overflow: hidden; color: var(--ink-body); font-size: .8125rem;
}
.app-bar {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--sunken);
}
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.app-bar .url {
  flex: 1; display: flex; justify-content: center;
}
.app-bar .url span {
  font: 500 .6875rem/1 var(--mono); color: var(--ink-faint);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 7px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-body { padding: 18px; }
.dev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dev-name { font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.dev-sub { color: var(--ink-faint); font-size: .75rem; margin-top: 2px; font-family: var(--mono); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: .71875rem; font-weight: 500; line-height: 1;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge.plain { color: var(--ink-muted); background: var(--sunken); }
.badge.plain::before { display: none; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 16px; background: var(--line); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.kv div { background: var(--surface); padding: 10px 12px; min-width: 0; }
.kv dt { font-size: .6875rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; font-family: var(--mono); }
.kv dd { margin: 4px 0 0; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  font: 500 .6875rem/1 var(--mono); color: var(--ink-muted);
  padding: 6px 8px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line);
}
.chip.on { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.card-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 8px; font-size: .75rem; font-weight: 600; color: var(--ink);
}
.card-title small { font-weight: 400; color: var(--ink-faint); }
.checks li {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.checks li:first-child { border-top: 0; }
.checks .k { color: var(--ink-muted); }
.checks .v { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.warn { background: var(--warn); }

/* ---- sections ------------------------------------------------------------ */

.section { padding: var(--section) 0; position: relative; }
.band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.split.flip > :first-child { order: 2; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
}
.split .section-head { margin-bottom: 0; }
.points { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.points .ic {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--accent-ink);
}
.points .ic svg { width: 15px; height: 15px; }
.points h3 { font-size: 1rem; letter-spacing: -.01em; margin: 3px 0 4px; }
.points p { font-size: .9375rem; color: var(--ink-muted); }

/* How it works: layers + steps. */
.layers-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-5); }
@media (max-width: 960px) { .layers-grid { grid-template-columns: minmax(0, 1fr); } }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
}
.panel h3 { font-size: 1.0625rem; letter-spacing: -.015em; }
.panel > p { color: var(--ink-muted); margin-top: 6px; font-size: .9375rem; }
.stack { margin-top: 24px; display: grid; gap: 8px; }
.stack li {
  display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg);
  font-size: .875rem;
}
.stack li code { font-family: var(--mono); font-size: .8125rem; color: var(--ink); font-weight: 500; }
.stack li span { color: var(--ink-muted); min-width: 0; }
.stack li em {
  font-style: normal; font: 500 .6875rem/1 var(--mono); color: var(--ink-faint);
}
.stack li:last-child { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.stack li:last-child em { color: var(--accent-ink); }
.stack-note { margin-top: 14px; font-size: .8125rem; color: var(--ink-faint); }
@media (max-width: 520px) {
  .stack li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .stack li span { grid-column: 1 / -1; grid-row: 2; font-size: .8125rem; }
}
.tree {
  margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--sunken);
  border: 1px solid var(--line); font-size: .8125rem; line-height: 1.75; color: var(--ink-body);
  overflow-x: auto;
}
.tree .t { color: var(--ink-faint); }
.tree .dir { color: var(--ink); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.step .n { font: 500 .75rem/1 var(--mono); color: var(--accent-ink); }
.step h3 { font-size: 1.0625rem; margin: 14px 0 6px; letter-spacing: -.015em; }
.step p { font-size: .9375rem; color: var(--ink-muted); }
.step code { white-space: nowrap; }

.manages { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.manages > span:first-child {
  font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-faint); margin-right: 6px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .875rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
}
.tag small { color: var(--ink-faint); font-size: .75rem; }
.soon {
  font: 500 .625rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--sunken); border: 1px solid var(--line);
  padding: 3px 6px; border-radius: 5px; white-space: nowrap;
}

/* Managed mode: two modes, then the review queue. */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 760px) { .modes { grid-template-columns: minmax(0, 1fr); } }
.mode h3 { display: flex; align-items: center; gap: 10px; }
.mode .who { font: 500 .75rem/1 var(--mono); color: var(--ink-faint); margin-top: 8px; }
.mode ul { margin-top: 18px; display: grid; gap: 10px; }
.mode li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: .9375rem; color: var(--ink-body); }
.mode li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
.mode.featured { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); }

.review { margin-top: var(--s-8); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .review { grid-template-columns: minmax(0, 1fr); } }
.queue .app-body { padding: 0; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.q-head b { color: var(--ink); font-size: .9375rem; letter-spacing: -.01em; }
.q-head small { color: var(--ink-faint); }
.q-machine { padding: 14px 18px 4px; font: 600 .6875rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; }
.q-machine .chip { text-transform: none; letter-spacing: 0; }
.q-row { padding: 12px 18px 14px; border-bottom: 1px solid var(--line); }
.q-row:last-child { border-bottom: 0; }
.q-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.q-top code { font-family: var(--mono); color: var(--ink); font-weight: 500; font-size: .8125rem; }
.q-top span { color: var(--ink-faint); font-size: .75rem; }
.risk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.risk span {
  font-size: .71875rem; padding: 3px 8px; border-radius: 6px;
  color: var(--warn); background: var(--warn-soft);
}
.risk span.none { color: var(--ink-faint); background: var(--sunken); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.opts span {
  font-size: .75rem; font-weight: 500; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-strong); color: var(--ink-body); background: var(--surface);
  white-space: nowrap;
}
.opts span.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lines { margin-top: 8px; font-family: var(--mono); font-size: .75rem; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 6px 10px; overflow-x: auto; white-space: pre; }
.commit {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--sunken); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .71875rem; color: var(--ink-muted);
  overflow: hidden; white-space: nowrap;
}
.commit b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.commit svg { width: 14px; height: 14px; flex: none; color: var(--ink-faint); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: var(--s-8); background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 860px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts > div { background: var(--surface); padding: 24px; }
.facts h3 { font-size: 1rem; letter-spacing: -.01em; }
.facts p { color: var(--ink-muted); font-size: .9375rem; margin-top: 6px; }

/* Secrets. */
.flow { display: grid; gap: 14px; }
.file { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; }
.file-head {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunken);
  font: 500 .75rem/1.2 var(--mono); color: var(--ink-muted);
}
.file-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file pre { margin: 0; padding: 14px 16px; font-size: .8125rem; line-height: 1.7; overflow-x: auto; color: var(--ink); }
.file .ref { color: var(--accent-ink); background: var(--accent-soft); border-radius: 4px; padding: 1px 3px; }
.file .mask { color: var(--ink-faint); }
.flow-arrow {
  display: flex; align-items: center; gap: 10px; padding-left: 16px;
  font: 500 .75rem/1 var(--mono); color: var(--ink-faint);
}
.flow-arrow svg { width: 16px; height: 16px; }
.never { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: var(--s-6); }
@media (max-width: 520px) { .never { grid-template-columns: minmax(0, 1fr); } }
.never li { display: flex; gap: 10px; font-size: .9375rem; color: var(--ink-body); }
.never svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--ink-faint); }

/* Security hygiene. */
.findings { display: grid; gap: 12px; }
.finding {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 14px;
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.finding .dot { margin-top: 8px; }
.finding h3 { font-size: .9375rem; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.finding h3 small { font: 500 .6875rem/1.6 var(--mono); color: var(--ink-faint); font-weight: 400; }
.finding p { font-size: .875rem; color: var(--ink-muted); margin-top: 4px; }
.fix {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--sunken);
  font-size: .8125rem; color: var(--ink-body); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
}
.fix b { font: 600 .6875rem/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ok); }
.signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-8); }
@media (max-width: 860px) { .signals { grid-template-columns: minmax(0, 1fr); } }
.signals h3 { font-size: 1.0625rem; letter-spacing: -.015em; }
.signals .panel > p { margin-bottom: 18px; }
.signals li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.signals li:first-of-type { border-top: 0; }
.signals li code { font-family: var(--mono); font-size: .75rem; color: var(--ink-muted); background: none; border: 0; padding: 0; white-space: normal; text-align: right; }
.notedr { margin-top: var(--s-6); font-size: .9375rem; color: var(--ink-muted); max-width: 62em; }

/* Transparency. */
.report-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }
.promises { display: grid; gap: 0; margin-top: var(--s-6); border-top: 1px solid var(--line); }
.promises li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
.promises .n { font: 500 .75rem/1.9 var(--mono); color: var(--ink-faint); }
.promises b { display: block; color: var(--ink); font-weight: 560; font-size: .9875rem; }
.promises span { color: var(--ink-muted); font-size: .9375rem; }

/* ---- pricing ------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
@media (max-width: 1140px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
@media (max-width: 680px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong);
}
.plan.featured { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.plan .flag {
  position: absolute; top: -11px; left: 28px;
  font: 500 .6875rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); padding: 6px 9px; border-radius: 999px;
}
.plan h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.plan .for { color: var(--ink-muted); font-size: .9375rem; margin-top: 6px; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.price b { font-size: 2.75rem; line-height: 1; letter-spacing: -.045em; color: var(--ink); font-weight: 620; }
.price span { color: var(--ink-muted); font-size: .875rem; line-height: 1.35; }
.price-note { font-size: .8125rem; color: var(--ink-faint); margin-top: 8px; min-height: 1.4em; }
.plan .btn { margin-top: 22px; width: 100%; }
.plan .inc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan .inc > p { font-size: .8125rem; font-weight: 560; color: var(--ink); margin-bottom: 12px; }
.plan .inc ul { display: grid; gap: 10px; }
.plan .inc li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: .9rem; color: var(--ink-body); line-height: 1.5; }
.plan .inc li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-ink); }
.plan .inc li .soon { margin-left: 6px; vertical-align: 1px; }
.early {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 28px auto 0; text-align: center; font-size: .9375rem; color: var(--ink-muted);
}
.early b { color: var(--ink); font-weight: 560; }

.compare-wrap { margin-top: var(--s-9); }
.compare-wrap h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 18px; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 680px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .8125rem; color: var(--ink); font-weight: 600; background: var(--sunken); position: sticky; top: 0; }
.compare thead th:not(:first-child), .compare td { text-align: center; width: 15%; }
.compare tbody th { font-weight: 400; color: var(--ink-body); }
.compare tr.group th {
  font: 600 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 22px; background: var(--surface);
}
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td { color: var(--ink); }
.compare td svg { width: 16px; height: 16px; margin: 0 auto; color: var(--accent-ink); }
.compare td .no { color: var(--ink-faint); }
.compare td .soon { display: inline-block; }
/* The feature names stay in view while the table scrolls sideways. */
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { background: var(--sunken); z-index: 2; }
/* A group heading spans every column, so it can't stick: it would push
   the page wider than the screen. */
.compare tr.group th { position: static; }
@media (max-width: 600px) {
  /* Fixed columns: the feature names stay narrow and in view, and the four
     plans scroll under them. */
  .compare { font-size: .8125rem; min-width: 0; width: 616px; table-layout: fixed; }
  .compare thead th:first-child { width: 136px; }
  .compare thead th:not(:first-child) { width: 120px; }
  .compare th, .compare td { padding: 11px 8px; }
  .compare tbody th { padding-left: 14px; }
  .compare td .soon { font-size: .5625rem; padding: 3px 4px; }
}

.pfaq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8); margin-top: var(--s-9); }
@media (max-width: 860px) { .pfaq { grid-template-columns: minmax(0, 1fr); } }
.pfaq h3 { grid-column: 1 / -1; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 8px; }
.pfaq div { padding: 20px 0; border-top: 1px solid var(--line); }
.pfaq dt { color: var(--ink); font-weight: 560; }
.pfaq dd { margin: 6px 0 0; color: var(--ink-muted); font-size: .9375rem; }

/* ---- edge: the Devices page and the token install under it ------------- */

.edge-visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.fleet .app-body { padding: 0; }
.fleet-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.fleet-stats div { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.fleet-stats div:first-child { border-left: 0; }
.fleet-stats span { display: block; font: 500 .625rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-stats b { display: block; margin-top: 6px; font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.fleet-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.fleet-list li:first-child { border-top: 0; }
.fleet-list div { min-width: 0; }
.fleet-list b { display: block; color: var(--ink); font-weight: 560; font-family: var(--mono); font-size: .8125rem; }
.fleet-list div span { display: block; color: var(--ink-faint); font-size: .75rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edge-cmd pre { font-size: .78rem; }
.edge-cmd .f { color: var(--term-faint); }
.edge-foot { margin-top: var(--s-8); display: grid; gap: 12px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px 10px; }
@media (max-width: 600px) { .fleet-stats div { padding: 12px 10px; } }

/* ---- FAQ ----------------------------------------------------------------- */

.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  color: var(--ink); font-weight: 560; font-size: 1.0625rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--ink-faint); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 40px 24px 0; color: var(--ink-muted); display: grid; gap: 12px; }

/* ---- closing ------------------------------------------------------------- */

.closing { text-align: center; }
.closing .display { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); margin: 0 auto; max-width: 14em; }
.closing .lead { margin: 20px auto 0; }
.closing .hero-buttons { justify-content: center; margin-top: 36px; }
.closing .cmd { max-width: 560px; margin: 36px auto 0; text-align: left; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer p { color: var(--ink-muted); margin-top: 12px; max-width: 26em; }
.footer h4 { font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--ink-body); text-decoration: none; }
.footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal code > span { opacity: 1; }
}

/* ---- refinements --------------------------------------------------------- */
ol { margin: 0; padding: 0; list-style: none; }
.stack li code { background: none; border: 0; padding: 0; white-space: nowrap; }
.stack li span code { font-size: .8125rem; color: var(--ink-muted); font-weight: 400; }
.fix code { font-size: .92em; padding: .05em .3em; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.finding .fix { margin-top: 10px; }
.points { margin-top: var(--s-6); }
@media (min-width: 1141px) {
  .plan .for { min-height: 4.8em; }
  .price-note { min-height: 2.9em; }
}
.kinds-label {
  font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-faint); margin-right: 6px; align-self: center; min-width: 5.5em;
}

/* ---- small utilities ----------------------------------------------------- */
figure { margin: 0; }
code.bare { background: none; border: 0; padding: 0; font-size: .875rem; }
.points.flush { margin-top: 0; }
/* Line the hero's buttons up with the command box, not its label. */
@media (min-width: 1000px) { .hero-actions .hero-buttons { margin-top: 23px; } }
.flow .install-note { margin-top: 4px; }
.split.top { align-items: start; }
.notfound { min-height: calc(100vh - 72px); display: grid; place-items: center; }
.notfound .hero-buttons { justify-content: center; margin-top: 16px; }
.footer.slim { padding: 0 0 32px; border-top: 0; }
.footer.slim .legal { margin-top: 0; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- documents: /privacy/, /security/, /terms/ --------------------------
   One reading column (68ch) beside a sticky contents list, which moves
   above the text under 960px. Tables scroll inside .table-scroll on narrow
   screens rather than squeezing their columns. */

/* The draft notice: one element per page, removed when the placeholders
   are filled in. */
.draft { border-bottom: 1px solid var(--line); background: var(--warn-soft); color: var(--ink); font-size: .875rem; }
.draft .wrap { padding-top: 10px; padding-bottom: 10px; }
.draft b { color: var(--warn); font-weight: 600; }

.doc-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.doc-head .h2 { margin-top: var(--s-4); }
.doc-head .lead { margin-top: var(--s-4); }
.doc-meta { margin-top: var(--s-5); font: 500 .75rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }

.doc {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: start;
  padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section);
}
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.toc { position: sticky; top: 88px; font-size: .875rem; }
@media (max-width: 960px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 18px 20px; }
}
.toc h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.toc ol { counter-reset: toc; display: grid; gap: 7px; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); }
.toc li::before { content: counter(toc, decimal-leading-zero); font: 500 .75rem/1.75 var(--mono); color: var(--ink-faint); }
.toc a { color: var(--ink-muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.prose { max-width: 68ch; min-width: 0; }
.prose > section + section { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); line-height: 1.2; letter-spacing: -.025em; margin-bottom: var(--s-4); }
.prose h3 { font-size: 1.0625rem; letter-spacing: -.01em; margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose ul, .prose ol, .prose .table-scroll { margin-top: var(--s-4); }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul { margin-top: 0; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose :where(p, li, td) code { white-space: normal; overflow-wrap: anywhere; }
.prose .caps { text-transform: uppercase; font-size: .875rem; letter-spacing: .01em; }

.short { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 28px); }
.short h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.prose > .short + section { margin-top: var(--s-7); border-top: 0; padding-top: 0; }

/* A blank the owner fills in before the draft notice comes off. */
.ph { font: 500 .8125em/1.4 var(--mono); color: var(--warn); background: var(--warn-soft); padding: .1em .4em; border-radius: 5px; }

.doc-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 640px; }
.doc-table th, .doc-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table thead th { font-size: .8125rem; font-weight: 600; color: var(--ink); background: var(--sunken); }
.doc-table tbody th { font-weight: 560; color: var(--ink); }
.doc-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) { .doc-table th, .doc-table td { padding: 10px 12px; } }
