
:root {
  /* brand & accent */
  --primary: #1e50e5;
  --primary-active: #1740b4;
  --navy: #16224a;
  --accent-teal: #34e0c2;
  --accent-sky: #5aa8ff;

  /* surface */
  --canvas: #faf9f5;
  --surface-soft: #f5f1e9;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #111c40;
  --surface-dark-elevated: #1b2a57;
  --surface-dark-soft: #0c1531;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --hairline-on-dark: #26325a;

  /* text */
  --ink: #131a2e;
  --body-strong: #232b42;
  --body: #3a4460;
  --muted: #6b7490;
  --muted-soft: #8d95ac;
  --on-primary: #ffffff;
  --on-dark: #f5f3ec;
  --on-dark-soft: #9aa6c6;

  /* semantic */
  --success: #2e9e6b;
  --warning: #c08a18;
  --error: #c24141;

  /* type */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue",
               Arial, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* spacing */
  --sp-xxs: 4px; --sp-xs: 8px; --sp-sm: 12px; --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-xxl: 48px; --sp-section: 96px;

  /* radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%; color-scheme: light;
  /* The nav is sticky, so an anchor jump would otherwise land its heading underneath it. */
  scroll-padding-top: 104px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

/* Display sizes: serif 400 with negative tracking. Bolding these is off-system. */
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.5px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1;  letter-spacing: -1px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.3px; }

p { margin: 0; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }

.band { padding: 0 0 var(--sp-section); }

.band-head { max-width: 64ch; margin-bottom: var(--sp-xxl); }
.band-head p { margin-top: var(--sp-md); color: var(--body); font-size: 18px; line-height: 1.5; }
.band-foot { margin-top: var(--sp-xl); max-width: 78ch; }
.band-foot p + p { margin-top: var(--sp-md); }

/* The small uppercase label above a section heading — it says which part of the argument
   this band is making, so a scroller can find their way without reading every headline. */
.eyebrow {
  margin-bottom: var(--sp-sm); color: var(--muted);
  font: 500 12px/1.4 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
}
.band-dark .eyebrow { color: var(--accent-sky); }
.eyebrow-on-primary { color: rgba(255, 255, 255, .72); }

/* ---------- top nav ---------- */
.skip-link {
  /* Fixed, not absolute: focus can reach it after the page has scrolled, and it has to
     be visible when it does. */
  position: fixed; left: -9999px; top: 0; z-index: 20;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 20px; border-radius: 0 0 var(--r-md) 0;
  font: 500 15px/1 var(--font-body); text-decoration: none;
}
.skip-link:focus { left: 0; }

.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 10;
}
.top-nav .wrap {
  min-height: 64px; display: flex; align-items: center; gap: var(--sp-md);
  flex-wrap: wrap; padding-block: var(--sp-sm);
}
.nav-lead { display: flex; align-items: center; gap: var(--sp-sm); min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { display: block; height: 28px; width: auto; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.brand-name em { font-style: normal; color: var(--primary); }

.nav-links {
  margin-left: auto; display: flex; align-items: center; gap: var(--sp-lg);
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; padding-block: var(--sp-sm);
}
.nav-links a:hover { color: var(--ink); }

/* ---------- the release badge ---------- */
/* Version, codename and the store's status light in one chip. The codename is the only
   place VolnOS gets to sound like something rather than a version string, so it is set in
   the display serif and takes the brand gradient. */
.release {
  display: inline-flex; align-items: center; gap: var(--sp-xs);
  padding: 5px 12px 5px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); white-space: nowrap;
  background: linear-gradient(100deg, rgba(30, 80, 229, .07), rgba(52, 224, 194, .10));
}
.release-version {
  color: var(--ink); font: 600 13px/1.4 var(--font-body); letter-spacing: .2px;
}
.release-sep { width: 1px; height: 13px; background: var(--hairline); }
.release-name {
  font: italic 400 15px/1.2 var(--font-display); letter-spacing: -.2px;
  color: var(--primary);
}
/* Gradient text only where it is supported — an unsupported clip would paint the
   codename transparent on transparent, i.e. invisible. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .release-name {
    background-image: linear-gradient(100deg, var(--navy), var(--primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* On navy the logo's own accents take over — DESIGN.md allows teal and sky there. */
.release-on-dark {
  border-color: var(--hairline-on-dark);
  background: linear-gradient(100deg, rgba(90, 168, 255, .12), rgba(52, 224, 194, .12));
}
.release-on-dark .release-version { color: var(--on-dark); }
.release-on-dark .release-sep { background: var(--hairline-on-dark); }
.release-on-dark .release-name { color: var(--accent-sky); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .release-on-dark .release-name {
    background-image: linear-gradient(100deg, var(--accent-teal), var(--accent-sky));
    color: transparent;
  }
}

/* Green while the listing is live, amber while it is a cached copy. */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--success); box-shadow: 0 0 0 3px rgba(46, 158, 107, .16);
}
.is-stale .status-dot {
  background: var(--warning); box-shadow: 0 0 0 3px rgba(192, 138, 24, .18);
}

/* The size rides along with the CTA, so the primary action says what it costs. */
.btn-meta {
  padding-left: 10px; margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .78); font-weight: 400;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; min-height: 44px; border: 1px solid transparent;
  border-radius: var(--r-md); font: 500 15px/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:active { background: var(--surface-card); }
.btn-on-primary { background: var(--canvas); color: var(--primary); }
.btn-on-primary:active { background: var(--surface-card); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

/* ---------- badges & facts ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--surface-card); color: var(--ink);
  font-size: 13px; font-weight: 500; letter-spacing: 0;
}
.badge-on-dark { background: var(--surface-dark-elevated); color: var(--on-dark); }
.facts {
  display: flex; flex-wrap: wrap; gap: var(--sp-xs) 0;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.facts span + span::before { content: "·"; color: var(--hairline); padding: 0 10px; }

/* ---------- hero ---------- */
.hero { padding: var(--sp-section) 0; }
/* The copy and the artifact are the grid; the stat strip sits under both, so it is a
   sibling of the grid rather than a third column. */
.hero-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-xxl); align-items: center;
}
.hero-copy > * + * { margin-top: var(--sp-lg); }
.hero-copy .lede { font-size: 18px; line-height: 1.5; color: var(--body-strong); max-width: 46ch; }
.hero-artifact { box-shadow: 0 18px 48px rgba(19, 26, 46, .10); border-radius: var(--r-xl); }

/* ---------- the hero's proof bar ---------- */
/* Live figures, spanning the full hero width under a hairline. The numbers take the
   display serif: DESIGN.md's rule is bigger serif before bolder weight, and a stat set
   in the body sans at 700 is the house style of every SaaS page this one is not. */
.stat-strip {
  margin: var(--sp-xxl) 0 0; padding-top: var(--sp-xl);
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-lg) var(--sp-xl);
}
/* column-reverse: the value reads above its label, while the DOM keeps the term before
   its definition — a dl whose dt follows its dd is not one. (No angle brackets in this
   comment on purpose: the stylesheet is inlined, and markup-shaped text inside it makes
   a tag-balance check on the rendered page report a fault that is not there.) */
.stat { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.stat dt {
  color: var(--muted); font: 500 12px/1.4 var(--font-body);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.stat dd {
  margin: 0; color: var(--ink);
  font: 400 clamp(28px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.5px;
}

/* ---------- assistant card (the hero artifact) ---------- */
.assistant-card {
  background: var(--surface-dark); border-radius: var(--r-xl);
  padding: var(--sp-lg); color: var(--on-dark);
}
.turns > * + * { margin-top: var(--sp-md); }
.turn-you {
  background: var(--surface-dark-elevated); border-radius: var(--r-md);
  padding: 10px var(--sp-md); color: var(--on-dark); font-size: 15px;
}
.turn-tool { color: var(--on-dark-soft); font-size: 13px; font-family: var(--font-code); }
.tier {
  display: inline-block; margin-right: var(--sp-xs); padding: 2px 8px;
  border-radius: var(--r-pill); background: rgba(52, 224, 194, .14);
  color: var(--accent-teal); font: 500 11px/1.5 var(--font-body);
  letter-spacing: .5px; text-transform: uppercase;
}
.turn-model { color: var(--on-dark); font-size: 15px; line-height: 1.5; }
.approval {
  background: var(--surface-dark-soft); border: 1px solid var(--hairline-on-dark);
  border-radius: var(--r-md); padding: var(--sp-md);
}
.approval-head { color: var(--on-dark); font-weight: 600; font-size: 14px; }
.approval pre {
  margin: var(--sp-sm) 0; overflow-x: auto;
  font: 400 13px/1.6 var(--font-code); color: var(--on-dark); white-space: pre;
}
.approval pre .prompt { color: var(--accent-sky); }
.approval-actions { display: flex; gap: var(--sp-xs); }
.pill-approve, .pill-decline {
  padding: 6px 14px; border-radius: var(--r-sm); font: 500 13px/1 var(--font-body);
}
.pill-approve { background: var(--primary); color: var(--on-primary); }
.pill-decline { background: var(--surface-dark-elevated); color: var(--on-dark-soft); }

/* ---------- terminal card ---------- */
.terminal {
  background: var(--surface-dark); border-radius: var(--r-lg);
  padding: var(--sp-lg); color: var(--on-dark); overflow: hidden;
}
.terminal.xl { border-radius: var(--r-xl); }
.terminal-bar {
  display: flex; align-items: center; gap: var(--sp-xs);
  padding-bottom: var(--sp-sm); margin-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--hairline-on-dark);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-dark-elevated); }
.terminal-title {
  margin-left: var(--sp-xs); color: var(--on-dark-soft);
  font: 400 13px/1.4 var(--font-code);
}
.terminal-body { overflow-x: auto; }
.terminal pre {
  margin: 0; font: 400 14px/1.7 var(--font-code); white-space: pre; color: var(--on-dark);
}
.terminal .prompt { color: var(--accent-sky); }
.terminal .out { color: var(--on-dark-soft); }
.terminal .ok { color: var(--accent-teal); }
.terminal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
  margin-top: var(--sp-md); padding-top: var(--sp-sm);
  border-top: 1px solid var(--hairline-on-dark);
  color: var(--on-dark-soft); font-size: 13px;
}
.copy {
  background: var(--surface-dark-elevated); color: var(--on-dark);
  border: 0; border-radius: var(--r-sm); padding: 8px 12px; min-height: 32px;
  font: 500 13px/1 var(--font-body); cursor: pointer;
}
.copy:active { background: var(--navy); }

/* ---------- grids ---------- */
.grid-2 { display: grid; gap: var(--sp-lg) var(--sp-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--sp-lg); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split {
  display: grid; gap: var(--sp-xl); grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center; margin-top: var(--sp-xxl);
}
.split h3 { margin-bottom: var(--sp-sm); }
.split p { color: var(--body); }

/* ---------- tier cards (inside the navy assistant band) ---------- */
.tier-card {
  background: var(--surface-dark-elevated); border-radius: var(--r-lg); padding: var(--sp-xl);
}
.tier-head { display: flex; align-items: baseline; gap: var(--sp-sm); margin-bottom: var(--sp-sm); flex-wrap: wrap; }
.tier-name { color: var(--on-dark); font: 400 22px/1.2 var(--font-display); letter-spacing: -.3px; }
.tier-rule {
  color: var(--accent-teal); font: 500 12px/1.4 var(--font-body);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.tier-card p:last-child { color: var(--on-dark-soft); font-size: 15px; }

/* ---------- per-OS command rows ---------- */
.cmd-list {
  background: var(--surface-dark-soft); border-radius: var(--r-md);
  padding: var(--sp-xs); display: grid; gap: 2px;
}
.cmd-row {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center; gap: var(--sp-sm);
  padding: 8px var(--sp-sm); border-radius: var(--r-sm);
}
.cmd-row + .cmd-row { border-top: 1px solid var(--hairline-on-dark); }
.cmd-os {
  color: var(--accent-sky); font: 500 12px/1.4 var(--font-body);
  letter-spacing: 1px; text-transform: uppercase;
}
.cmd-row code {
  overflow-x: auto; white-space: nowrap; color: var(--on-dark);
  font: 400 13px/1.7 var(--font-code);
}
.cmd-note { color: var(--on-dark-soft); font-size: 13px; line-height: 1.5; }
.cmd-note strong { color: var(--on-dark); font-weight: 600; }
.cmd-row .copy { padding: 6px 10px; min-height: 28px; font-size: 12px; }

/* ---------- requirements strip ---------- */
.req-list {
  display: flex; flex-wrap: wrap; gap: var(--sp-xs);
  list-style: none; margin: var(--sp-lg) 0 0; padding: 0;
}
.req-list li {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--surface-dark-elevated); color: var(--on-dark);
  font: 500 13px/1.4 var(--font-body);
}

/* ---------- choice cards (canvas + hairline) ---------- */
.choice-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--sp-xl);
}
.choice-note {
  margin-bottom: var(--sp-xs); color: var(--primary);
  font: 500 12px/1.4 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
}
.choice-card h3 { margin-bottom: var(--sp-sm); font-size: 22px; }
.choice-card p:last-child { color: var(--body); font-size: 15px; }

/* ---------- what's inside: the components VolnOS builds (navy) ---------- */
/* Deliberately quieter than a tier-card: there are eight of them and they are an
   inventory, not an argument. The serif name does the work; no glyph, no icon tile —
   eight decorative glyphs on one band would read as a template. */
.app-card {
  background: var(--surface-dark-elevated); border-radius: var(--r-lg);
  padding: var(--sp-lg); display: flex; flex-direction: column; gap: 6px;
}
.app-card h3 {
  color: var(--on-dark); font-size: 19px; letter-spacing: -.3px;
}
/* The hairline under the name groups the eight cards into one list rather than eight
   separate claims. */
.app-card h3::after {
  content: ""; display: block; width: 24px; height: 2px; margin-top: 10px;
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-sky));
}
.app-card p { color: var(--on-dark-soft); font-size: 14px; line-height: 1.55; }

/* ---------- privacy checklist (navy) ---------- */
.check-item { padding-left: calc(var(--sp-lg) + 4px); position: relative; }
.check-item::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--accent-teal); font-size: 15px; font-weight: 700;
}
.check-item h3 {
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  letter-spacing: 0; color: var(--on-dark); margin-bottom: 6px;
}
.check-item p { color: var(--on-dark-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-item h3 { font-size: 20px; margin-bottom: var(--sp-xs); }
.faq-item p { color: var(--body); }


/* ---------- feature cards ---------- */
.grid-3 { display: grid; gap: var(--sp-lg); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card {
  background: var(--surface-card); border-radius: var(--r-lg); padding: var(--sp-xl);
}
.feature-card .glyph {
  width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  color: #fff; font: 500 13px/1 var(--font-code); letter-spacing: .5px;
  margin-bottom: var(--sp-md);
}
.feature-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.feature-card p { margin-top: var(--sp-sm); color: var(--body); }

/* ---------- dark install band ---------- */
.band-dark {
  width: min(1200px, 100% - 3rem); margin: 0 auto var(--sp-section);
  background: var(--surface-dark); color: var(--on-dark-soft);
  border-radius: var(--r-xl); padding: 64px var(--sp-xxl);
}
/* h1 as well as h2: on /install the band's heading IS the page heading. */
.band-dark h1, .band-dark h2 { color: var(--on-dark); }
/* Standing alone under the nav rather than following a cream band, it needs its own
   top margin — between bands the preceding section's padding supplied it. */
.band-dark.standalone { margin-top: var(--sp-xxl); }
.band-dark .band-head p { color: var(--on-dark-soft); }
.band-dark a { color: var(--accent-sky); }
.step-card {
  background: var(--surface-dark-elevated); border-radius: var(--r-lg); padding: var(--sp-xl);
  display: flex; flex-direction: column; gap: var(--sp-md);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-dark-soft); color: var(--accent-sky);
  font: 500 14px/1 var(--font-body);
}
.step-card h3 { color: var(--on-dark); }
.step-card p { color: var(--on-dark-soft); font-size: 15px; }
.step-card .terminal { background: var(--surface-dark-soft); padding: var(--sp-md); }
.step-card .terminal pre { font-size: 13px; }
/* Four steps sit 2x2, so the cards vary in height; the footnote pins to the bottom and
   keeps the grid from looking ragged. */
.steps-grid { gap: var(--sp-lg); }
.steps-grid .step-card { gap: var(--sp-sm); }
.steps-grid .step-card > p:first-of-type { margin-bottom: var(--sp-xs); }
.step-foot {
  margin-top: auto; padding-top: var(--sp-sm);
  border-top: 1px solid var(--hairline-on-dark);
  color: var(--on-dark-soft); font-size: 13px; line-height: 1.6;
}
.step-foot a { color: var(--accent-sky); }
.step-foot code.inline { background: var(--surface-dark-soft); color: var(--on-dark); }

/* The quiet line under a band that hands the reader on to a fuller page. */
.band-note {
  margin-top: var(--sp-xl); color: var(--muted); font-size: 15px; max-width: 74ch;
}

/* ---------- blue callout ---------- */
.callout {
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-xl); padding: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-xl); flex-wrap: wrap;
}
.callout-copy { max-width: 60ch; }
.callout h2 { color: var(--on-primary); font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.5px; }
.callout p { margin-top: var(--sp-sm); color: rgba(255, 255, 255, .82); }
.pledge-list {
  display: flex; flex-wrap: wrap; gap: var(--sp-xs);
  list-style: none; margin: var(--sp-lg) 0 0; padding: 0;
}
.pledge-list li {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14); color: var(--on-primary);
  font: 500 13px/1.4 var(--font-body);
}

/* ---------- notices ---------- */
.notice {
  background: var(--surface-cream-strong); border-left: 3px solid var(--warning);
  border-radius: var(--r-lg); padding: var(--sp-md) var(--sp-lg);
  color: var(--body-strong); font-size: 14px; margin-top: var(--sp-lg);
}
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------- inline code ---------- */
code.inline {
  font: 400 .9em/1.4 var(--font-code);
  background: var(--surface-card); border-radius: var(--r-xs); padding: 2px 6px;
  color: var(--body-strong);
}
.band-dark code.inline { background: var(--surface-dark-soft); color: var(--on-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-dark); color: var(--on-dark-soft); padding: 64px 0; }
.site-footer .brand { color: var(--on-dark); }
.footer-lead { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }
.site-footer .brand-name em { color: var(--accent-sky); }
/* Four cells: the brand block is the first one, not a header floating above the grid. */
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: var(--sp-xxl) var(--sp-xl);
}
.footer-grid h4 {
  margin: 0 0 var(--sp-md); color: var(--on-dark);
  font: 500 12px/1.4 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--on-dark-soft); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-blurb { color: var(--on-dark-soft); font-size: 14px; max-width: 34ch; margin-top: var(--sp-md); }
.footer-spec {
  margin-top: var(--sp-md); color: var(--muted-soft);
  font: 400 13px/1.6 var(--font-code);
}
.footer-rule {
  margin-top: var(--sp-xxl); padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline-on-dark);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs) var(--sp-lg);
  font-size: 13px; color: var(--on-dark-soft);
}
.store-status { display: inline-flex; align-items: center; gap: var(--sp-xs); }
.footer-rule .push { margin-left: auto; }

/* ---------- project pages (/about, /privacy, /support) ---------- */
.doc-head { padding: var(--sp-section) 0 var(--sp-xxl); }
.doc-head h1 { max-width: 20ch; }
.doc-head .lede {
  margin-top: var(--sp-lg); max-width: 62ch;
  font-size: 18px; line-height: 1.55; color: var(--body-strong);
}

/* One column, one measure. A document is read, not scanned. */
.doc { max-width: 74ch; }
.doc-section + .doc-section { margin-top: var(--sp-xxl); }
.doc h2 {
  font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.5px;
  padding-bottom: var(--sp-sm); border-bottom: 1px solid var(--hairline);
}
.doc h3 {
  margin-top: var(--sp-lg); font-family: var(--font-body);
  font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--ink);
}
.doc p { margin-top: var(--sp-md); color: var(--body); }
.doc ul { margin: var(--sp-md) 0 0; padding-left: var(--sp-lg); }
.doc li { margin-top: var(--sp-sm); color: var(--body); }
.doc li strong, .doc p strong { color: var(--ink); font-weight: 600; }

/* The summary a reader can stop after. */
.doc-note {
  margin-top: var(--sp-lg); padding: var(--sp-lg);
  background: var(--surface-card); border-radius: var(--r-lg);
}
.doc-note p { margin-top: 0; color: var(--body-strong); }
.doc-note p + p { margin-top: var(--sp-md); }

/* ---------- error page ---------- */
.center { padding: 140px 0; text-align: center; }
.center p { margin-top: var(--sp-md); color: var(--body); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  /* Eight app cards go 4-up only where four columns still leave a readable measure. */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-dark .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .band-dark .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --sp-section: 64px; }
  .wrap { width: min(1200px, 100% - 2rem); }
  /* The links move to a second row rather than vanishing; the CTA stays on the first. */
  .top-nav .wrap { row-gap: 0; }
  .nav-links {
    order: 3; width: 100%; margin-left: 0; gap: var(--sp-lg);
    overflow-x: auto; padding-bottom: var(--sp-xs);
    border-top: 1px solid var(--hairline-soft); margin-top: var(--sp-xs);
  }
  .nav-links a { padding-block: 10px; white-space: nowrap; }
  .top-nav .btn { margin-left: auto; }
  .btn-meta { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  /* Two-up rather than one: four stats in a single column is a list, not a bar. */
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The command still must not wrap, so the label moves above it and the row scrolls. */
  .cmd-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cmd-os { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-xl); }
  .footer-rule .push { margin-left: 0; }
  .callout { padding: var(--sp-xl); }
  .band-dark { width: min(1200px, 100% - 2rem); padding: var(--sp-xl) var(--sp-lg); }
}
