:root {
  --bg: #09090b;
  --border: rgba(255, 255, 255, 0.10);
  /* One accent, used sparingly (live dot, hairline highlights) — everything
     else is white/zinc. Risk-band colors in the chart are functional data
     encoding, not chrome, and stay defined in app.js next to the data they
     represent rather than here. */
  --accent: #4ade80;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* Monospace only — no separate display face for headings/wordmark. Every
   heading, label, and number is set at the exact size/weight/color of the
   Quickstart section's code block (text-sm, zinc-300, regular weight) —
   one uniform "terminal output" register for the whole page, no separate
   type scale for "titles" vs body copy. */
body {
  background: var(--bg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  color: #d4d4d8;
  -webkit-font-smoothing: antialiased;
}

.font-mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.eyebrow {
  font-size: 0.875rem;
}

/* Section headings: same size/weight/color as the Quickstart code block —
   a "> " prompt prefix marks it as a heading instead of bold/oversized type. */
.section-title {
  font-size: 0.875rem;
  font-weight: 400;
  color: #d4d4d8;
  letter-spacing: 0;
}

/* A "panel" is a plain bordered section, not a filled card: no background
   fill, no border-radius, no shadow — just a hairline frame so content
   stays legible without reading as a UI "widget". */
.panel {
  border: 1px solid var(--border);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .panel { padding: 1.5rem; }
}

.term-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  color: #e4e4e7;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.term-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.term-btn-active {
  border-color: #d4d4d8;
  color: #fff;
}

/* Live pulse dot — the one place motion + the accent color are used to
   draw attention, since it's a genuine liveness signal, not decoration. */
.live-dot {
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Nav — stays a scrollable row of real links rather than collapsing
   behind a hamburger, so the mobile experience keeps full information
   density instead of hiding it a tap away. Below 640px it wraps to its
   own full-width row (see .nav-links-wrap) instead of being squeezed
   into whatever thin sliver is left next to the logo and status pill. */
.nav-links {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { white-space: nowrap; }

.nav-links-wrap {
  flex-basis: 100%;
  order: 3;
}
@media (min-width: 640px) {
  .nav-links-wrap {
    flex-basis: auto;
    order: 2;
  }
}

/* Live stat readout: a single wrapping status line (label + tabular-nums
   value pairs), not a grid of boxed tiles — reads as a terminal status
   bar rather than a dashboard of "widgets". */
.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.stat-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.stat-label {
  color: #71717a;
}
.stat-value {
  color: #d4d4d8;
  font-variant-numeric: tabular-nums;
}

/* "How the score is built" rows — a plain tag + description, no bullet
   dot or per-row color coding. */
.score-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}
.score-tag {
  color: #a1a1aa;
  white-space: nowrap;
}

/* Differentiators list — a plain stacked list divided by hairlines,
   never individually-boxed cards, and no numbered eyebrow before each
   title (the title alone is the label). */
.diff-list {
  border-top: 1px solid var(--border);
}
.diff-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.step-cell {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.step-num {
  color: #52525b;
  margin-bottom: 0.375rem;
}

/* Chart containers keep a substantial, desktop-like height across all
   breakpoints — Chart.js is told maintainAspectRatio:false and fills this. */
.chart-shell {
  position: relative;
  height: clamp(260px, 40vw, 380px);
  width: 100%;
}
.chart-shell-sm {
  position: relative;
  height: clamp(200px, 26vw, 260px);
  width: 100%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
}

code, pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

::selection {
  background: rgba(74, 222, 128, 0.25);
}
