:root {
  --primary: #174a7c;
  --primary-active: #0b5c83;
  --accent: #5aa7e8;
  --accent-medium: #2f80c0;
  --accent-soft: #94c4df;
  --ink: #07111f;
  --body: #3f5368;
  --mute: #5a6f85;
  --canvas: #f8fbfe;
  --card: #ffffff;
  --surface-soft: #eef5fb;
  --surface-muted: #e4eff8;
  --grid-light: #e7eaed;
  --hairline: #d6e4f0;
  --hairline-strong: #aac5da;
  --dark-panel: #0b1726;
  --dark-card: #0e1b2c;
  --on-dark: #f8fafc;
  --on-dark-muted: #c6dce8;
  --dark-grid: #24364d;
  --inverted-panel: #07111f;
  --on-primary: #ffffff;
  --header-background: rgba(248, 251, 254, .96);
  --card-shadow: rgba(23, 74, 124, .09);
  --wide: 1120px;
  --narrow: 760px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;

  /* Semantic status. Andrew Blue reserves these for real status only,
     never as palette alternatives. */
  --success: #1f7a5a;
  --warning: #b26c00;
  --risk: #b33a3a;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-section-sm: 48px;
  --space-section-md: 64px;
  --space-section-lg: 88px;
}

:root[data-theme="dark"] {
  --primary: #5aa7e8;
  --primary-active: #94c4df;
  --accent: #5aa7e8;
  --accent-medium: #2f80c0;
  --accent-soft: #94c4df;
  --ink: #f8fafc;
  --body: #e5eef8;
  --mute: #94a3b8;
  --canvas: #07111f;
  --card: #0e1b2c;
  --surface-soft: #0b1726;
  --surface-muted: #12263b;
  --grid-light: #2a2e33;
  --hairline: #24364d;
  --hairline-strong: #34516f;
  --dark-panel: #0b1726;
  --dark-card: #0e1b2c;
  --on-dark: #f8fafc;
  --on-dark-muted: #c6dce8;
  --dark-grid: #24364d;
  --inverted-panel: #020712;
  --on-primary: #07111f;
  --header-background: rgba(7, 17, 31, .94);
  --card-shadow: rgba(0, 0, 0, .28);
  --success: #4cbf95;
  --warning: #e0a34a;
  --risk: #e8807f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.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;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
  background: var(--header-background);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  width: min(calc(100% - 40px), var(--wide));
  min-height: 56px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}
nav { display: flex; gap: 22px; }
nav a {
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover { color: var(--primary); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  font: 650 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.theme-toggle:hover { border-color: var(--primary); background: var(--surface-soft); }
.theme-toggle-icon { width: 16px; color: var(--primary); font-size: 17px; line-height: 1; text-align: center; }

.button {
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover { border-color: var(--primary); }
.button.small { min-height: 40px; padding: 9px 15px; }
.button.primary { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.button.primary:hover { border-color: var(--primary-active); background: var(--primary-active); }
.button.secondary { background: transparent; }
.button.on-dark { border-color: var(--on-dark); background: var(--on-dark); color: var(--inverted-panel); }

.section-narrow {
  width: min(calc(100% - 40px), var(--narrow));
  margin: 0 auto;
  padding: 88px 0;
}
.section-wide {
  width: min(calc(100% - 40px), var(--wide));
  margin: 0 auto;
  padding: 88px 0;
}

.product-label,
.kicker,
.eyebrow,
.node-label,
.scope-label {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { text-wrap: pretty; }
h1,
h2,
h3 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.035em;
}
h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}
h3 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.35; }

.hero {
  padding-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 64px;
  align-items: end;
}
.hero-copy { max-width: 760px; margin: 26px 0 0; color: var(--body); font-size: 18px; line-height: 1.65; }
.actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-boundary {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--card);
}
.hero-boundary .eyebrow { color: var(--primary); }
.boundary-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.boundary-line div { display: grid; gap: 4px; }
.boundary-line span { color: var(--mute); font-size: 12px; }
.boundary-line strong { font-size: 15px; line-height: 1.35; }
.boundary-arrow { color: var(--accent-medium) !important; font-size: 22px !important; }
.hero-boundary > p:last-child { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--body); font-size: 14px; }

.section-heading { margin-bottom: 38px; }
.section-heading.centered { text-align: center; }
.section-heading > p:last-child,
.split-heading > p { margin: 18px 0 0; color: var(--body); }
.narrow-copy { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 70px; align-items: end; }

.overview-section { padding-top: 40px; }
.light-on-dark .kicker { color: var(--accent); }
.light-on-dark > p { color: var(--on-dark-muted); }
.relationship-map {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
.relationship-node {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--dark-grid);
  border-radius: var(--radius-card);
  background: var(--dark-card);
  position: relative;
}
.relationship-node.core-node { border-color: var(--accent-medium); background: var(--dark-panel); }
.relationship-node.decision-node { border-color: var(--accent-soft); }
.node-step {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 750;
}
.decision-node .node-step { background: var(--accent-soft); color: var(--inverted-panel); }
.node-label { margin-top: 24px; color: var(--accent); }
.relationship-node h3 { font-size: 18px; }
.relationship-node ul { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--dark-grid); list-style: none; }
.relationship-node li { margin: 9px 0; color: var(--on-dark-muted); font-size: 14px; }
.flow-arrow {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-medium);
  color: var(--on-dark);
  font-size: 17px;
  z-index: 2;
}
.relationship-map > .flow-arrow:nth-of-type(1) { left: 25%; }
.relationship-map > .flow-arrow:nth-of-type(2) { left: 50%; }
.relationship-map > .flow-arrow:nth-of-type(3) { left: 75%; }
.relationship-note { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--dark-grid); color: var(--on-dark-muted); }

.work-section { border-top: 1px solid var(--hairline); }
.lifecycle-index { color: var(--primary); font: 650 13px ui-monospace, SFMono-Regular, Menlo, monospace; }

.demo-section { border-top: 1px solid var(--hairline); }
.demo-sequence {
  max-width: 980px;
  margin: 48px auto 0;
  display: grid;
  gap: 34px;
}
.demo-figure {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--card);
}
.demo-figure-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.demo-step {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font: 750 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.demo-app {
  margin: 0 0 3px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.demo-figure-heading h3 { font-size: 18px; }
.demo-image-link {
  margin-top: 18px;
  padding: 18px;
  display: block;
  border-radius: var(--radius-control);
  background: var(--grid-light);
  border: 1px solid var(--hairline);
}
.demo-image-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.demo-image-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-control);
  object-fit: cover;
}
.demo-figure figcaption {
  margin: 15px 2px 0;
  color: var(--body);
  font-size: 14px;
}
.demo-dialog {
  width: min(94vw, 1640px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--dark-grid);
  border-radius: var(--radius-card);
  background: var(--dark-panel);
  color: var(--on-dark);
  box-shadow: 0 28px 80px rgba(7, 17, 31, .48);
}
.demo-dialog::backdrop { background: rgba(7, 17, 31, .82); }
.demo-dialog-inner { padding: 16px; }
.demo-dialog-header {
  min-height: 44px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.demo-dialog-header p { margin: 0; font-weight: 650; }
.demo-dialog-close {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--dark-grid);
  border-radius: var(--radius-control);
  background: var(--dark-card);
  color: var(--on-dark);
  font: inherit;
  cursor: pointer;
}
.demo-dialog-close:hover { border-color: var(--accent); }
.demo-dialog-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.demo-dialog img { width: 100%; height: auto; max-height: calc(94vh - 92px); object-fit: contain; }
.component-table {
  width: 100%;
  margin-top: 44px;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid var(--hairline-strong);
}
.component-table th,
.component-table td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.component-table th:first-child { width: 220px; padding-left: 0; }
.component-table td { border-left: 1px solid var(--hairline); color: var(--body); font-weight: 400; }
.component-table thead { background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.component-table thead th { border-left: 1px solid rgba(255,255,255,.24); }
.component-table thead th:first-child { padding-left: 18px; border-left: 0; }
.product-figure { margin: 42px 0 0; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--card); }
.product-image-link { display: block; border-radius: var(--radius-control); cursor: zoom-in; }
.product-image-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.product-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-control); object-fit: contain; }
.product-figure figcaption { margin-top: 14px; color: var(--mute); font-size: 13px; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scope-grid article { padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--card); }
.scope-grid article.scope-emphasis { border-color: var(--primary); background: var(--surface-soft); }
.scope-grid ul { margin: 22px 0 0; padding: 0; list-style: none; }
.scope-grid li { position: relative; margin: 13px 0; padding-left: 18px; color: var(--body); font-size: 14px; }
.scope-grid li::before { content: ""; position: absolute; top: .7em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-medium); }

.requirements-section { border-top: 1px solid var(--hairline); }
.requirement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.requirement-grid article { padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--card); }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 9999px; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.requirement-grid h3 { margin-top: 18px; }
.requirement-grid ul { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hairline); list-style: none; }
.requirement-grid li { position: relative; margin: 10px 0; padding-left: 18px; color: var(--body); font-size: 14px; }
.requirement-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 750; }

.contract-disclosure { margin-top: 52px; border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong); }
.contract-disclosure summary {
  min-height: 112px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  cursor: pointer;
  list-style: none;
}
.contract-disclosure summary::-webkit-details-marker { display: none; }
.contract-disclosure summary strong { display: block; font-size: 24px; }
.contract-disclosure summary .kicker { margin-bottom: 8px; }
.summary-action { color: var(--primary); font-size: 14px; font-weight: 650; }
.summary-action::after { content: "+"; margin-left: 10px; }
.contract-disclosure[open] .summary-action::after { content: "−"; }
.contract-content { padding: 0 0 34px; display: grid; grid-template-columns: 320px 1fr; gap: 70px; }
.contract-content > p { margin: 0; color: var(--body); }
.disclosure-list { margin: 0; border-top: 1px solid var(--hairline); }
.disclosure-list > div { padding: 16px 0; display: grid; grid-template-columns: 140px 1fr; gap: 22px; border-bottom: 1px solid var(--hairline); }
.disclosure-list dt { font-weight: 650; }
.disclosure-list dd { margin: 0; color: var(--body); }
.workspace-figure { margin-top: 52px; }

.faq-section { border-top: 1px solid var(--hairline); }
.faq-list { margin: 0; border-top: 1px solid var(--hairline-strong); }
.faq-list > div { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.faq-list dt { font-size: 17px; font-weight: 650; }
.faq-list dd { margin: 6px 0 0; color: var(--body); }

.final-cta {
  margin-bottom: 88px;
  padding: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-radius: var(--radius-card);
  background: var(--inverted-panel);
  color: var(--on-dark);
}
.final-cta h2 { max-width: 820px; }
.final-cta .kicker { color: var(--accent); }

footer { border-top: 1px solid var(--hairline); }
.footer-wrap {
  width: min(calc(100% - 40px), var(--wide));
  margin: 0 auto;
  padding: 34px 0 46px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  color: var(--mute);
  font-size: 12px;
}
.footer-wrap p { margin: 0; }
.footer-wrap a { color: var(--primary); }
.footer-wrap strong { color: var(--ink); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-boundary { max-width: 680px; }
  .relationship-map { grid-template-columns: repeat(2, 1fr); }
  .relationship-map > .flow-arrow { display: none; }
  .demo-sequence { max-width: 900px; }
}

@media (max-width: 820px) {
  .nav-wrap { grid-template-columns: 1fr auto; padding-top: 8px; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 0 10px;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; }
  .scope-grid { grid-template-columns: 1fr; }
  .split-heading,
.contract-content { grid-template-columns: 1fr; gap: 30px; }
  .component-table { border-top: 0; table-layout: auto; }
  .component-table thead { display: none; }
  .component-table tbody,
.component-table tr,
.component-table th,
.component-table td { display: block; width: 100%; }
  .component-table tr { margin-bottom: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--card); overflow: hidden; }
  .component-table th,
.component-table td { padding: 16px 18px; border: 0; }
  .component-table th:first-child { width: 100%; padding-left: 18px; }
  .component-table td { border-top: 1px solid var(--hairline); }
  .component-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .footer-wrap p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { position: static; }
  nav { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .section-narrow,
.section-wide { width: min(calc(100% - 28px), var(--wide)); padding: 64px 0; }
  .hero { padding-top: 72px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .boundary-line { grid-template-columns: 1fr; }
  .boundary-arrow { transform: rotate(90deg); justify-self: start; }
  .relationship-map { grid-template-columns: 1fr; }
  .demo-figure { padding: 14px; }
  .demo-image-link { margin-top: 15px; padding: 5px; }
  .demo-dialog-inner { padding: 10px; }
  .requirement-grid { grid-template-columns: 1fr; }
  .contract-disclosure summary { align-items: flex-start; }
  .summary-action { white-space: nowrap; }
  .disclosure-list > div { grid-template-columns: 1fr; gap: 4px; }
  .final-cta { margin-bottom: 64px; padding: 28px; align-items: flex-start; flex-direction: column; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-wrap p:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
.theme-toggle { transition: none; }
}

/* ---------------------------------------------------------------------------
   Restructured page sections: problem framing,
walkthrough narrative,
authority controls and setup. Reuses the existing token set throughout.
   --------------------------------------------------------------------------- */

.support-section,
.controls-section,
.setup-section {
  border-top: 1px solid var(--hairline);
}

.support-section > p {
  margin: 0 0 20px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.problem-requirement {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.problem-requirement em {
  color: var(--primary);
  font-style: normal;
}

/* Dark model panel: the four-part operating model reads on the inverted surface. */
.model-panel {
  margin-top: 44px;
  padding: 44px;
  border-radius: var(--radius-card);
  background: var(--inverted-panel);
  color: var(--on-dark);
}

.model-panel .relationship-map {
  margin-top: 0;
}

.section-note {
  max-width: var(--narrow);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--mute);
}

/* Walkthrough narrative */
.story-lead {
  max-width: var(--narrow);
  margin: 34px 0 0;
  color: var(--body);
}

.story-outcome {
  max-width: 980px;
  margin: 44px auto 0;
  padding: 34px 38px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.story-outcome p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.story-outcome p:last-child {
  margin-bottom: 0;
}

@media (min-width: 821px) {
  .lifecycle-table th:nth-child(1) { width: 24%; }
  .lifecycle-table th:nth-child(2) { width: 40%; }
  .lifecycle-table th:nth-child(3) { width: 36%; }
}

/* The five distinctions that keep the work reviewable */
.distinction-list {
  max-width: var(--narrow);
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: distinction;
}

.distinction-list li {
  position: relative;
  padding: 18px 0 18px 46px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.distinction-list li:first-child {
  border-top: 1px solid var(--hairline);
}

.distinction-list li::before {
  counter-increment: distinction;
  content: counter(distinction);
  position: absolute;
  top: 17px;
  left: 0;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font: 650 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.controls-section .scope-grid {
  margin-top: 44px;
}

/* Setup path */
.setup-path {
  margin-top: 52px;
}

.setup-steps {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline-strong);
  list-style: none;
}

.setup-steps li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid var(--hairline);
}

.setup-steps h3 {
  font-size: 17px;
}

.setup-steps p {
  margin: 5px 0 0;
  color: var(--body);
}

@media (max-width: 820px) {
  .model-panel {
    padding: 34px 22px;
  }

  .story-outcome {
    padding: 26px 24px;
  }

}

@media (max-width: 640px) {
  .setup-steps li {
    grid-template-columns: 34px 1fr;
    gap: 16px;
  }

  .problem-requirement {
    font-size: 17px;
  }
}

/* Three-beat fieldwork span: evidence review, testing, reporting. */
.support-beats {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: beat;
}

.support-beats li {
  position: relative;
  padding: 22px 0 22px 46px;
  border-top: 1px solid var(--hairline);
}

.support-beats li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.support-beats li::before {
  counter-increment: beat;
  content: counter(beat);
  position: absolute;
  top: 24px;
  left: 0;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font: 650 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.support-beats h3 {
  font-size: 18px;
}

.support-beats p {
  margin: 6px 0 0;
  color: var(--body);
}

/* ---------------------------------------------------------------------------
   Andrew Blue status pills and terminal panel.

   The contract reserves success/warning/risk for real status, never as palette
   variety. Note there is no green on this page: a success pill would read as
   "passed", and nothing here has been concluded. States that carry no judgement
   stay neutral, which is itself the point the section is making.
   --------------------------------------------------------------------------- */

.state-legend {
  max-width: var(--narrow);
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-md);
}

.state-legend li {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: baseline;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--hairline);
}

.state-legend li:first-child {
  border-top: 1px solid var(--hairline);
}

.state-legend p {
  margin: 0;
  color: var(--body);
}

.state-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 6px var(--space-md);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --card flips with the theme, so risk keeps readable contrast in both. */
.state-pill.is-risk {
  background: var(--risk);
  color: var(--card);
}

/* Both warning tones are mid-weight and take dark text in either theme. */
.state-pill.is-warning {
  background: var(--warning);
  color: #07111f;
}

.state-pill.is-neutral {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--mute);
}

.terminal-panel {
  margin: var(--space-xxl) 0 0;
  padding: var(--space-xl);
  border: 1px solid var(--dark-grid);
  border-radius: var(--radius-card);
  background: var(--dark-panel);
  color: var(--on-dark-muted);
  overflow-x: auto;
}

.terminal-panel .kicker {
  color: var(--accent);
}

.terminal-panel pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.terminal-panel b {
  color: var(--on-dark);
  font-weight: 650;
}

@media (max-width: 640px) {
  .state-legend li {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .terminal-panel pre {
    font-size: 12px;
  }
}
