@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:        #0A0A0F;
  --surface:   #12121A;
  --surface-2: #1A1A24;
  --border:    #1E1E2E;
  --border-2:  #2A2A3E;
  --text:      #E2E8F0;
  --muted:     #64748B;
  --muted-2:   #94A3B8;

  --blue:   #4F8EF7;
  --teal:   #2DD4BF;
  --green:  #22C55E;
  --amber:  #F59E0B;
  --red:    #EF4444;
  --purple: #A78BFA;

  --blue-dim:   rgba(79,142,247,.12);
  --teal-dim:   rgba(45,212,191,.12);
  --green-dim:  rgba(34,197,94,.12);
  --amber-dim:  rgba(245,158,11,.12);
  --red-dim:    rgba(239,68,68,.12);
  --purple-dim: rgba(167,139,250,.12);

  --radius-card: 12px;
  --radius-el:   8px;
  --radius-pill: 999px;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Inter', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg:        #F8FAFC;
  --surface:   #FFFFFF;
  --surface-2: #F1F5F9;
  --border:    #E2E8F0;
  --border-2:  #CBD5E1;
  --text:      #0F172A;
  --muted:     #64748B;
  --muted-2:   #94A3B8;
  --blue:   #2563EB;
  --teal:   #0D9488;
  --green:  #16A34A;
  --amber:  #D97706;
  --red:    #DC2626;
  --purple: #7C3AED;
  --blue-dim:   rgba(37,99,235,.08);
  --teal-dim:   rgba(13,148,136,.08);
  --green-dim:  rgba(22,163,74,.08);
  --amber-dim:  rgba(217,119,6,.08);
  --red-dim:    rgba(220,38,38,.08);
  --purple-dim: rgba(124,58,237,.08);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Theme toggle ───────────────────────────────────────────── */
.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 200;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); }

/* ─── Top nav ────────────────────────────────────────────────── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--bg); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.top-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; max-width: 860px; margin: 0 auto;
}
.top-nav a {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
  transition: color 0.15s;
}
.top-nav a:hover { color: var(--text); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ─── Page header ────────────────────────────────────────────── */
.page-header {
  padding: 112px 0 48px;
}
.chapter-badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 12px;
}
.page-subtitle {
  font-size: 13px; color: var(--muted);
}
.page-subtitle a:hover { color: var(--text); text-decoration: underline; }

/* ─── Intro ──────────────────────────────────────────────────── */
.intro-section { padding: 0 0 56px; }
.intro-body {
  font-size: 16px; line-height: 1.75; color: var(--text);
  max-width: 680px; margin-bottom: 12px;
}
.intro-body:last-of-type { margin-bottom: 16px; }
.intro-attribution { font-size: 13px; color: var(--muted); }
.intro-attribution a:hover { color: var(--text); text-decoration: underline; }

/* ─── Concept sections ───────────────────────────────────────── */
.concept-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.section-header {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px;
}
.section-number {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 800;
  letter-spacing: -0.01em;
}
.section-quote {
  font-size: 13px; color: var(--muted); font-style: italic;
  margin-bottom: 10px; padding-left: 12px;
  border-left: 2px solid var(--border-2);
}
.section-body {
  font-size: 15px; line-height: 1.7; color: var(--text);
  max-width: 680px; margin-bottom: 24px;
}

/* ─── Component card ─────────────────────────────────────────── */
.component-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  overflow: hidden;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-el);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; cursor: pointer; border: none;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.btn-primary {
  background: var(--blue-dim); color: var(--blue);
  border: 1px solid rgba(79,142,247,.25);
}
.btn-primary:hover { background: rgba(79,142,247,.2); }
.btn-danger {
  background: var(--red-dim); color: var(--red);
  border: 1px solid rgba(239,68,68,.25);
}
.btn-danger:hover { background: rgba(239,68,68,.2); }
.btn-ghost {
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-2); }
.btn-success {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(34,197,94,.25);
}
.btn-success:hover { background: rgba(34,197,94,.2); }
.btn-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.toggle-btn {
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  transition: all 0.15s; cursor: pointer;
}
.toggle-btn.active {
  background: var(--blue-dim); color: var(--blue);
  border-color: rgba(79,142,247,.3);
}
.toggle-btn:hover:not(.active) { color: var(--text); border-color: var(--border-2); }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.badge-pass   { background: var(--green-dim); color: var(--green); }
.badge-fail   { background: var(--red-dim);   color: var(--red);   }
.badge-warn   { background: var(--amber-dim); color: var(--amber); }
.badge-info   { background: var(--blue-dim);  color: var(--blue);  }
.badge-muted  { background: var(--border);    color: var(--muted); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }

/* ─── Agent nodes (pipeline diagrams) ───────────────────────── */
.agent-node {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 12px 16px; min-width: 90px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-el);
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.agent-node.orchestrator { border-color: var(--blue); }
.agent-node.worker       { border-color: var(--teal); }
.agent-node.success      { border-color: var(--green); }
.agent-node.failed       { border-color: var(--red); background: var(--red-dim); }
.agent-node.warning      { border-color: var(--amber); }
.agent-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase;
}
.agent-name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--text);
}
.agent-task {
  font-size: 11px; color: var(--muted); line-height: 1.4;
  max-width: 100px; text-align: center;
}

/* ─── Pipeline layout helpers ────────────────────────────────── */
.pipeline-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }
.pipeline-arrow {
  width: 2px; height: 20px; background: var(--border-2);
  position: relative; flex-shrink: 0;
}
.pipeline-arrow::after {
  content: ''; position: absolute; bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--border-2);
}
.workers-row {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; justify-content: center;
}
.pipeline-branches {
  display: flex; gap: 8px; align-items: flex-start;
}
.branch-line {
  width: 2px; background: var(--border-2); align-self: stretch; min-height: 20px;
}

/* ─── Component 01 ───────────────────────────────────────────── */
.c01-result {
  margin-top: 16px; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-el);
  font-family: var(--font-mono); font-size: 12px;
}
.c01-result-label { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.c01-result-text  { color: var(--text); }
.c01-controls { margin-top: 16px; }
.c01-insight {
  margin-top: 12px; padding: 10px 14px;
  background: var(--amber-dim); border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius-el); font-size: 12px; color: var(--amber);
  font-family: var(--font-mono); display: none;
}
.c01-insight.visible { display: block; }

/* ─── Component 02 ───────────────────────────────────────────── */
.c02-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) { .c02-layout { grid-template-columns: 1fr; } }
.c02-col-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.c02-result {
  margin-top: 12px; padding: 8px 12px;
  border-radius: var(--radius-el); font-family: var(--font-mono); font-size: 11px;
}
.c02-result.ok     { background: var(--green-dim); color: var(--green); }
.c02-result.bad    { background: var(--red-dim);   color: var(--red);   }
.conflict-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px;
  background: var(--amber-dim); color: var(--amber);
  padding: 2px 6px; border-radius: var(--radius-pill); margin-left: 6px;
}

/* ─── Component 03 ───────────────────────────────────────────── */
.c03-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .c03-layout { grid-template-columns: 1fr; } }
.c03-turns { display: flex; flex-direction: column; gap: 4px; }
.c03-turn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-el);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
  transition: border-color 0.2s;
}
.c03-turn.heavy { border-color: var(--amber); color: var(--text); }
.c03-turn-tokens { color: var(--muted); font-size: 10px; }
.c03-context-bar-wrap {
  margin-top: 12px;
}
.c03-context-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  margin-bottom: 6px;
}
.c03-context-bar {
  height: 8px; background: var(--border); border-radius: var(--radius-pill);
  overflow: hidden;
}
.c03-context-fill {
  height: 100%; border-radius: var(--radius-pill);
  background: var(--purple); transition: width 0.4s ease, background 0.3s;
}
.c03-quality {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.c03-quality-bar {
  flex: 1; height: 4px; background: var(--border); border-radius: var(--radius-pill);
  overflow: hidden;
}
.c03-quality-fill {
  height: 100%; background: var(--green); border-radius: var(--radius-pill);
  transition: width 0.4s ease, background 0.3s;
}
.c03-profile { margin-top: 12px; display: none; }
.c03-profile.visible { display: block; }
.c03-profile-title {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.c03-bar-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.c03-bar-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
  width: 120px; flex-shrink: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.c03-bar-track {
  flex: 1; height: 6px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden;
}
.c03-bar-fill {
  height: 100%; border-radius: var(--radius-pill); transition: width 0.4s ease;
}
.c03-bar-pct {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted); width: 32px; text-align: right;
}
.c03-airbyte-note {
  margin-top: 12px; padding: 10px 14px;
  background: var(--teal-dim); border: 1px solid rgba(45,212,191,.2);
  border-radius: var(--radius-el); font-size: 12px; color: var(--teal);
  font-family: var(--font-mono); display: none;
}
.c03-airbyte-note.visible { display: block; }

/* ─── Component 04 ───────────────────────────────────────────── */
.c04-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .c04-layout { grid-template-columns: 1fr; } }
.c04-col-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.c04-tasks { display: flex; flex-direction: column; gap: 6px; }
.c04-tasks.parallel { flex-direction: row; flex-wrap: wrap; }
.c04-task {
  padding: 8px 12px; border-radius: var(--radius-el);
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);
  transition: all 0.3s; min-width: 80px;
}
.c04-task.running  { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.c04-task.done     { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.c04-task.broken   { border-color: var(--red);   color: var(--red);   background: var(--red-dim);   }
.c04-task.skipped  { border-color: var(--border); color: var(--muted); opacity: 0.5; }
.c04-timer {
  margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.c04-timer span { color: var(--text); }

/* ─── Component 05 ───────────────────────────────────────────── */
.c05-actions { display: flex; flex-direction: column; gap: 8px; }
.c05-action {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-el);
  transition: all 0.2s;
}
.c05-action.executing { border-color: var(--green); background: var(--green-dim); }
.c05-action.paused    { border-color: var(--amber); background: var(--amber-dim); }
.c05-action-left { display: flex; align-items: center; gap: 12px; }
.c05-action-icon {
  font-family: var(--font-mono); font-size: 16px; width: 24px; text-align: center;
}
.c05-action-info {}
.c05-action-name {
  font-family: var(--font-mono); font-size: 12px; color: var(--text); font-weight: 500;
}
.c05-action-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.c05-action-right { display: flex; align-items: center; gap: 8px; }
.c05-reversible {
  font-family: var(--font-mono); font-size: 10px; padding: 3px 8px;
  border-radius: var(--radius-pill); letter-spacing: 0.04em;
}
.c05-reversible.yes     { background: var(--green-dim); color: var(--green); }
.c05-reversible.partial { background: var(--amber-dim); color: var(--amber); }
.c05-reversible.no      { background: var(--red-dim);   color: var(--red);   }
.c05-status {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  min-width: 80px; text-align: right;
}
.c05-confirm-dialog {
  margin-top: 12px; padding: 12px 16px;
  background: var(--amber-dim); border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-el); display: none;
}
.c05-confirm-dialog.visible { display: block; }
.c05-confirm-text {
  font-family: var(--font-mono); font-size: 12px; color: var(--amber); margin-bottom: 10px;
}
.c05-confirm-btns { display: flex; gap: 8px; }

/* ─── Component 06 ───────────────────────────────────────────── */
.c06-rail {
  display: flex; gap: 0; border-radius: var(--radius-card);
  overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px;
}
.c06-stage {
  flex: 1; padding: 14px 12px; cursor: pointer;
  background: var(--surface-2); border-right: 1px solid var(--border);
  transition: background 0.15s; text-align: center;
}
.c06-stage:last-child { border-right: none; }
.c06-stage:hover { background: var(--surface); }
.c06-stage.active { background: var(--blue-dim); }
.c06-stage-num {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;
}
.c06-stage.active .c06-stage-num { color: var(--blue); }
.c06-stage-name {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text);
}
.c06-detail {
  padding: 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-el);
}
.c06-detail-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 800; margin-bottom: 12px;
}
.c06-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .c06-cols { grid-template-columns: 1fr; } }
.c06-col-head {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.c06-col-head.failures { color: var(--red); }
.c06-col-head.solutions { color: var(--green); }
.c06-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; font-size: 12px; color: var(--text); line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.c06-item:last-child { border-bottom: none; }
.c06-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.c06-dot.red   { background: var(--red); }
.c06-dot.green { background: var(--green); }

/* ─── Outcomes section ───────────────────────────────────────── */
.outcomes-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.chain-diagram {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; margin-bottom: 24px;
}
@media (max-width: 640px) {
  .chain-diagram { flex-direction: column; }
}
.chain-node {
  flex: 1; padding: 16px 14px; background: var(--surface-2);
  border-right: 1px solid var(--border); cursor: pointer;
  transition: background 0.15s; position: relative;
}
.chain-node:last-child { border-right: none; }
.chain-node:hover { background: var(--surface); }
.chain-node.active { background: var(--blue-dim); }
.chain-node-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px;
}
.chain-node.active .chain-node-label { color: var(--blue); }
.chain-node-value {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  line-height: 1.2; margin-bottom: 4px;
}
.chain-node-sub { font-size: 11px; color: var(--muted); }
.chain-expand {
  margin-top: 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-el); font-size: 13px; color: var(--muted-2);
  line-height: 1.6; display: none;
}
.chain-expand.visible { display: block; }

.roi-scaler {
  padding: 20px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  margin-bottom: 12px;
}
.roi-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}
.roi-slider-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.roi-slider-row label {
  font-size: 13px; color: var(--text); white-space: nowrap;
}
.roi-slider-row input[type=range] {
  flex: 1; accent-color: var(--blue);
}
.roi-slider-row .roi-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--blue);
  min-width: 32px; text-align: right;
}
.roi-outputs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 560px) { .roi-outputs { grid-template-columns: 1fr 1fr; } }
.roi-stat {
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-el);
}
.roi-stat-num {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.roi-stat-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px;
}
.roi-disclaimer {
  font-size: 11px; color: var(--muted); margin-top: 8px; font-style: italic;
}

/* ─── Stat chips ─────────────────────────────────────────────── */
.stat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0 24px;
}
.stat-chip {
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-el);
}
.stat-chip-value {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
  line-height: 1.1; color: var(--text);
}
.stat-chip-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.04em; margin-top: 3px;
}
.stat-chip.accent {
  border-color: rgba(79,142,247,.3); background: var(--blue-dim);
}
.stat-chip.accent .stat-chip-value { color: var(--blue); }
.stat-chip.warn {
  border-color: rgba(239,68,68,.2); background: var(--red-dim);
}
.stat-chip.warn .stat-chip-value { color: var(--red); }
.stat-chip.good {
  border-color: rgba(34,197,94,.2); background: var(--green-dim);
}
.stat-chip.good .stat-chip-value { color: var(--green); }

/* ─── Component setup + key insight ─────────────────────────── */
.component-setup {
  font-size: 14px; line-height: 1.75; color: var(--text);
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  max-width: 680px;
}
.key-insight { display: none; }
.key-insight.visible {
  display: block; margin-top: 16px; padding: 14px 16px;
  background: var(--blue-dim); border: 1px solid rgba(79,142,247,.2);
  border-radius: var(--radius-el);
}
.key-insight-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--blue);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.key-insight-text { font-size: 13px; color: var(--text); line-height: 1.65; }

/* ─── Footer ─────────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.footer-inner a:hover { color: var(--text); }
.footer-sources { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.footer-sources a { color: var(--muted); }
.footer-sources a:hover { color: var(--text); text-decoration: underline; }
