/* ============================================================
   repomon: bold editorial mockup
   Color story: graphite ink, brand orange, warm ground
   Type: Archivo Black (display) / Space Grotesk (text) / JetBrains Mono (code)
   ============================================================ */

:root {
  --ink: hsl(203 31% 21%);
  --paper: hsl(48 23% 95%);
  --paper-2: hsl(46 20% 91%);
  --signal: hsl(18 82% 37%);
  --signal-on-dark: hsl(18 90% 66%);
  --brand-swatch: hsl(18 84% 61%);
  --brand-ink: var(--ink);
  --attention: hsl(38 95% 29%);
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: hsl(204 14% 39%);
  --fg-faint: hsl(204 14% 39%);
  --surface: var(--ink);
  --on-surface: var(--paper);
  --on-surface-soft: hsl(200 16% 80%);
  --on-surface-line: hsl(203 20% 40%);
  --card: hsl(48 30% 99%);
  --border: var(--ink);
  --line: hsl(44 14% 83%);
  --accent-fg: hsl(48 30% 99%);
  --accent-fg-soft: hsl(48 23% 95%);
  /* 8px base: prose 16px, cards 24px, blocks 32px, sections 64-128px. */
  --space-small: 0.5rem;
  --prose-gap: 1rem;
  --card-gap: 1.5rem;
  --block-gap: 2rem;
  --section-gap: clamp(4rem, 9vw, 8rem);
  --page-gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1280px;
  --f-display: 'Archivo Black', system-ui, sans-serif;
  --f-text: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

:root[data-theme="dark"] {
  --bg: hsl(204 32% 8%);
  --fg: hsl(200 24% 94%);
  --fg-soft: hsl(205 14% 67%);
  --fg-faint: hsl(205 14% 67%);
  --surface: hsl(203 30% 11%);
  --on-surface: hsl(200 24% 94%);
  --on-surface-soft: hsl(205 14% 67%);
  --on-surface-line: hsl(203 20% 24%);
  --card: hsl(203 30% 11%);
  --border: hsl(203 20% 24%);
  --paper-2: hsl(203 26% 16%);
  --line: hsl(203 20% 24%);
  --signal: hsl(18 90% 66%);
  --brand-ink: hsl(204 22% 80%);
  --accent-fg: hsl(203 31% 21%);
  --accent-fg-soft: hsl(203 31% 21%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

kbd {
  font-family: var(--f-mono);
  font-size: 0.82em;
  background: var(--surface);
  color: var(--signal);
  border-radius: 5px;
  padding: 0.08em 0.42em;
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
  white-space: nowrap;
}

code { font-family: var(--f-mono); }

.icon {
  width: 0.95em;
  height: 0.95em;
  fill: currentColor;
  stroke: none;
  flex: 0 0 auto;
}
.theme-toggle .icon { width: 1.05rem; height: 1.05rem; }

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.4rem;
  display: inline-block;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 0.35rem;
}
.section-eyebrow.light { color: var(--signal); border-color: var(--signal); }

.hl { color: var(--signal); }
.hl-out {
  color: var(--accent-fg);
  background: var(--signal);
  padding: 0.04em 0.12em 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Display lines leave room for descenders and cloned highlight backgrounds. */
h1, h2, h3 { overflow: visible; text-wrap: balance; }
.features-head, .compare-head, .install-head { line-height: 1.1; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--surface);
  color: var(--on-surface);
  box-shadow: 6px 6px 0 var(--signal);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--signal); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: 6px 6px 0 var(--signal); }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--signal); background: var(--surface); color: var(--on-surface); }
.btn-star {
  background: var(--signal);
  color: var(--accent-fg);
  border-color: var(--border);
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  box-shadow: 3px 3px 0 var(--border);
}
.btn-star:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--border); }
.btn-lg { font-size: 1.15rem; padding: 1.1rem 2rem; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--border);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.theme-toggle:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--signal); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
/* in dark mode, show the sun (offer light) instead of the moon */
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===== TOP MARQUEE ===== */
.topbar {
  background: var(--surface);
  color: var(--signal);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}
.marquee {
  display: inline-flex;
  padding: 0.5rem 0;
  animation: scroll 140s linear infinite;
}
.marquee span { padding-right: 1rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--signal); }
.version-badge {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.15em 0.55em;
  vertical-align: middle;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left;
  background: var(--signal); transition: transform 0.18s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== HERO ===== */
.hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  /* fill the viewport below the ticker + nav, content vertically centered */
  min-height: calc(100svh - 6.5rem);
  display: grid;
  align-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Grid items default to min-width:auto, which for a replaced element (the hero
   image, with its width="1200" HTML attribute) ignores `width:100%` and uses
   the image's intrinsic size as the track's content-based minimum, forcing the
   whole grid wider than the viewport. min-width:0 lets the track (and the
   image inside it) actually shrink to the assigned column width. */
.hero-copy,
.hero-figure { min-width: 0; }
.kicker {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.8rem;
}
.hero-title {
  font-family: var(--f-display);
  /* grows with both viewport width and height so the hero scales to fill big
     screens but still fits short ones */
  font-size: clamp(2rem, 2.3vw + 1.5vh, 4.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero-title em { font-style: italic; font-family: var(--f-text); font-weight: 700; }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 40ch;
  color: var(--fg-soft);
  margin-bottom: 1.2rem;
}

/* inline install on hero */
.install-cli {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 2px solid var(--border);
  margin-bottom: 1.2rem;
  max-width: 460px;
  box-shadow: 5px 5px 0 var(--signal);
}
.install-cli code {
  flex: 1;
  color: var(--on-surface);
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
}
.prompt { color: var(--signal); margin-right: 0.5rem; }
.copy-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--signal);
  color: var(--accent-fg);
  border: none;
  border-left: 2px solid var(--border);
  padding: 0 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.12s ease;
}
.copy-btn:hover { background: var(--signal); }
.copy-btn.copied { background: var(--signal); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-alt {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--fg-faint);
}
.hero-alt a { color: var(--signal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hero-alt a:hover { color: var(--signal); }

/* hero figure */
.hero-figure {
  position: relative;
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--signal);
  transform: rotate(0.6deg);
}
.hero-figure img,
.hero-figure video { width: 100%; height: auto; display: block; }
.figure-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--signal);
  color: var(--accent-fg);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--border);
  z-index: 2;
}

/* ===== STAT STRIP ===== */
.stats {
  background: var(--surface);
  color: var(--on-surface);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}
.stat {
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.25rem, 3vw, 2.2rem);
  border-right: 1px solid var(--on-surface-line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--signal);
  letter-spacing: -0.02em;
}
.stat-lbl { font-size: 0.92rem; color: var(--on-surface-soft); max-width: 22ch; }

/* ===== WEDGE ===== */
.wedge {
  background: var(--signal);
  color: var(--accent-fg);
  padding: var(--section-gap) var(--page-gutter);
  border-bottom: 2px solid var(--border);
}
.wedge .section-eyebrow { color: var(--accent-fg); border-color: var(--accent-fg); }
.wedge-head {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 6px;
  background: var(--accent-fg); transform: rotate(-2deg);
}
.wedge-body {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 42ch;
  margin: var(--block-gap) 0;
  font-weight: 500;
}
.wedge-punch {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.wedge-punch .hl-out { background: var(--accent-fg); color: var(--signal); }
.wedge-foot {
  margin-top: var(--block-gap);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 56ch;
  border-left: 5px solid var(--accent-fg);
  padding-left: 1.2rem;
  font-weight: 500;
}

/* ===== FOUR ZOOM LEVELS ===== */
.zoom {
  background: var(--surface);
  color: var(--on-surface);
  padding: var(--section-gap) var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.zoom-intro { position: sticky; top: 90px; }
.tui-media {
  margin-top: 2rem;
  width: 100%;
  height: auto;
  aspect-ratio: 1360 / 760;
  object-fit: cover;
  border: 2px solid var(--on-surface-line);
  box-shadow: 8px 8px 0 var(--signal);
}
.zoom-foot {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--on-surface-line);
  color: var(--on-surface-soft);
  font-size: 0.98rem;
  max-width: 52ch;
}
.zoom-foot code {
  background: rgba(0,0,0,0.28);
  color: var(--signal);
  padding: 0.08em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.zoom-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.zoom-lede { margin-top: 1.6rem; color: var(--on-surface-soft); font-size: 1.05rem; max-width: 30ch; }
.zoom-list { list-style: none; }
.zoom-step {
  display: flex;
  gap: var(--card-gap);
  align-items: baseline;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--on-surface-line);
}
.zoom-step:first-child { border-top: 1px solid var(--on-surface-line); }
.zoom-no {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--signal);
  line-height: 1;
  min-width: 2.4ch;
  letter-spacing: -0.04em;
}
.zoom-text h3 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.zoom-text p { color: var(--on-surface-soft); font-size: 1.02rem; max-width: 46ch; }

/* ===== FEATURES ===== */
.features {
  background: var(--paper-2);
  padding: var(--section-gap) var(--page-gutter);
  border-bottom: 2px solid var(--border);
}
.features-head {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.features-lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-soft);
  max-width: 76ch;
  margin-bottom: var(--block-gap);
}
.features-lede code {
  background: var(--surface);
  color: var(--signal);
  padding: 0.08em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  max-width: var(--maxw);
}
.feat {
  background: var(--card);
  border: 2px solid var(--border);
  padding: 1.8rem;
  box-shadow: 5px 5px 0 var(--border);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.feat:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--signal); }
.feat h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.feat p { color: var(--fg-soft); font-size: 1rem; }
.kbd-pair { white-space: nowrap; display: inline-flex; align-items: center; }
.feat-big { grid-column: span 1; background: var(--signal); color: var(--accent-fg); }
.feat-big p { color: var(--accent-fg-soft); }
.feat-big:hover { box-shadow: 7px 7px 0 var(--border); }
.feat-remote { grid-column: span 2; background: var(--surface); color: var(--on-surface); }
.feat-remote p { color: var(--on-surface-soft); }
.feat-remote:hover { box-shadow: 7px 7px 0 var(--signal); }
.badge-soon {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--signal);
  color: var(--accent-fg);
  padding: 0.18em 0.5em;
  border-radius: 99px;
  font-weight: 700;
  align-self: center;
}

/* ===== COMPARISON ===== */
.compare {
  background: var(--signal);
  color: var(--accent-fg);
  padding: var(--section-gap) var(--page-gutter);
  border-bottom: 2px solid var(--border);
}
.compare .section-eyebrow.light { color: var(--accent-fg); border-color: var(--accent-fg); }
.compare-head {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--block-gap);
}
.table-wrap { overflow-x: auto; border: 2px solid var(--border); background: var(--card); }
.cmp {
  width: 100%;
  border-collapse: collapse;
  color: var(--fg);
  font-size: 0.95rem;
  min-width: 760px;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--f-text);
  font-weight: 700;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 0.9rem;
  position: sticky;
  top: 0;
}
.cmp thead th.me { background: var(--signal); color: var(--accent-fg); }
.cmp tbody th[scope="row"] {
  font-weight: 700;
  background: var(--paper-2);
  width: 14ch;
}
.cmp td.me {
  background: color-mix(in srgb, var(--signal) 12%, var(--card));
  font-weight: 600;
  border-left: 3px solid var(--signal);
  border-right: 3px solid var(--signal);
}
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: none; }
.cmp td.no { color: var(--fg-soft); font-style: italic; }
.cmp .badge-soon { font-size: 0.55rem; }
.compare-note {
  margin-top: 2rem;
  font-size: 1.1rem;
  max-width: 64ch;
  font-weight: 500;
}

/* ===== INSTALL ===== */
.install {
  background: var(--bg);
  padding: var(--section-gap) var(--page-gutter);
  border-bottom: 2px solid var(--border);
}
.install-head {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--block-gap);
}
/* ---- Desktop app download cards ---- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  max-width: var(--maxw);
  margin-bottom: 1.6rem;
}
.download-card {
  background: var(--card);
  border: 2px solid var(--border);
  padding: 1.6rem;
  box-shadow: 6px 6px 0 var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.download-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--signal); }
.download-os {
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.download-file { color: var(--fg-soft); font-size: 0.92rem; }
.download-btn {
  align-self: flex-start;
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
}
.download-note { font-size: 0.85rem; color: var(--fg-faint); }
.download-note code {
  background: var(--surface);
  color: var(--signal);
  padding: 0.06em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}

.install-sub {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: var(--section-gap) 0 var(--block-gap);
}

.install-cards { display: flex; flex-direction: column; gap: var(--card-gap); max-width: 920px; }
.install-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.cmd {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 5px 5px 0 var(--border);
}
.cmd code {
  flex: 1;
  color: var(--on-surface);
  font-size: 0.9rem;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  white-space: nowrap;
}
.install-fine {
  margin-top: var(--block-gap);
  font-size: 1rem;
  color: var(--fg-soft);
  max-width: 62ch;
}
.install-fine code {
  background: var(--surface);
  color: var(--signal);
  padding: 0.08em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}
.install-prereq { margin-top: var(--block-gap); }
.prereq-title { font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; }
.prereq-title code { background: var(--surface); color: var(--signal); padding: 0.08em 0.4em; border-radius: 4px; font-size: 0.85em; }
.prereq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  max-width: 820px;
}
.prereq-card { display: flex; flex-direction: column; gap: 0.5rem; }
.prereq-os {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal);
}
.prereq-cmd {
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 4px 4px 0 var(--signal);
  padding: 0.6rem 0.85rem;
  overflow-x: auto;
}
.prereq-cmd code { font-family: var(--f-mono); font-size: 0.85rem; color: var(--on-surface); white-space: nowrap; }
.prereq-cmd .prompt { color: var(--signal); margin-right: 0.45rem; }
@media (max-width: 600px) { .prereq-grid { grid-template-columns: 1fr; } }

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--surface);
  color: var(--on-surface);
  text-align: center;
  padding: var(--section-gap) var(--page-gutter);
}
.final-head {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--block-gap);
}
.final-head { color: var(--on-surface); }
.final-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-ghost { color: var(--on-surface); border-color: var(--on-surface); }
.final-cta .btn-ghost:hover { background: var(--on-surface); color: var(--surface); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: var(--card-gap);
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--f-display); font-size: 1.3rem; }
.footer-links { display: flex; gap: var(--card-gap); font-weight: 600; font-size: 0.95rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--signal); }
.footer-meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--fg-faint);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { transform: none; margin-top: 1rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--on-surface-line); }
  .zoom { grid-template-columns: 1fr; }
  .zoom-intro { position: static; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-remote, .feat-big { grid-column: span 2; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav { gap: var(--prose-gap); }
  .version-badge { display: none; }
  .star-full { display: none; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--on-surface-line); }
  .stat:last-child { border-bottom: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feat-remote, .feat-big { grid-column: span 1; }
  .download-grid { grid-template-columns: 1fr; }
  .hero-cta, .final-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .final-actions .btn { justify-content: center; }
  .install-cli { max-width: 100%; }
  .install-cli code { font-size: 0.78rem; }
  .footer-meta { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Approved mark follows the same geometry and theme roles as the desktop app. */
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand, .footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.version-badge { white-space: nowrap; }
kbd, .section-eyebrow.light, .zoom .prompt { color: var(--signal-on-dark); }
::selection { background: var(--signal); color: var(--accent-fg); }
:focus-visible { outline: 3px solid var(--focus, var(--fg)); outline-offset: 4px; }
.wedge, .compare, .feat-big { --focus: var(--accent-fg); }
.zoom, .final-cta, .feat-remote { --focus: var(--on-surface); }
@media (max-width: 600px) {
  .brand { gap: 0.3rem; }
  .brand-mark { width: 30px; height: 30px; }
  .version-badge { font-size: 0.55rem; }
}

.compare .section-eyebrow.light { color: var(--accent-fg); }
.topbar, .zoom .zoom-no, .prereq-title code, .prereq-cmd .prompt, .install-card .prompt { color: var(--signal-on-dark); }

.stat-num, .zoom-foot code, .features-lede code, .download-note code, .install-fine code { color: var(--signal-on-dark); }

/* Flow spacing keeps prose together and separates procedures, media and cards. */
:where(.features, .wedge, .install) > p:not(.section-eyebrow) { max-width: 72ch; }
:where(.features, .wedge, .install, .feat) > p + p { margin-top: var(--prose-gap); }
:where(.features, .install) > :is(ol, .feature-grid, .install-cards),
.compare > .table-wrap,
.zoom-right > .zoom-list { margin-top: var(--block-gap); }
main ol:not(.zoom-list) { padding-left: 1.5rem; line-height: 1.7; }
main ol:not(.zoom-list) li + li { margin-top: var(--space-small); }
main ol + p { margin-top: var(--block-gap); }
.download-card { gap: var(--prose-gap); }
.download-card > ol { margin-top: var(--prose-gap); }
.download-card > ol + p { margin-top: var(--prose-gap); }
.download-card > pre { margin: 0; }
main pre { overflow-x: auto; }

/* Allow code to scroll inside its track without widening the document. */
.feature-grid > *, .download-grid > *, .zoom > *, .zoom-text,
.install-card, .cmd code, .install-cli code, main pre { min-width: 0; }
.cmd, .install-cli, main pre { max-width: 100%; }
.copy-btn { flex-shrink: 0; min-height: 2.75rem; }
section[id] { scroll-margin-top: 6rem; }
.nav-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 1100px) {
  .nav, .nav-links { gap: var(--prose-gap); }
  .version-badge, .star-full { display: none; }
}

.table-wrap { --focus: var(--fg); }
.cmp thead { --focus: var(--on-surface); }
