/* WS11: home, How it works and Research. Colours come from the brand tokens at the end of flow.css, so both
   themes follow. Lavender tints are surfaces only; actions and links use --accent. */

/* ---------- Home ---------- */
.hero h1.hero-line {
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.06;
  max-width: 17ch;
}
/* The hero's right column: three measured results, set as type on rules. No picture, no icons. */
.hero-results {
  align-self: center;
  margin: 0;
  padding: 4px 0 4px 36px;
  border-left: 1px solid var(--line-strong);
}
.results-title {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.hero-results dl {
  margin: 0;
}
.hero-results dl > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.hero-results dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.hero-results dt {
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-results dd {
  margin: 8px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.results-note {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
}
.results-note .text-link {
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .sb-bar {
    animation: bar-grow 0.9s ease-out both;
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* A quiet line under the main action, not a banner. */
.hero .hero-actions {
  margin-bottom: 18px;
}
.hero .hero-time {
  flex: 1 1 240px;
  max-width: 340px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.partner-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.partner-line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 3px;
}
.partner-line a:hover {
  color: var(--text);
}
.partner-line a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Home sections ---------- */
.landing-section > h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 26ch;
}
.section-lede {
  margin: 0 0 28px;
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}
/* Plan, start and stop side by side, the same weight each. */
.piece-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0 0 48px;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.piece-grid li {
  max-width: none;
}
.piece-grid h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.piece-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.measured {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.measured figcaption h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.measured figcaption p {
  margin: 0 0 12px;
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.shortcut-note strong {
  color: var(--text);
  font-weight: 600;
}
.study-orders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 20px;
}
.study-order h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.study-order dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.sb-row dt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-2);
}
.sb-runs {
  flex: none;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.sb-row dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 0;
}
.sb-bar {
  display: block;
  flex: none;
  width: calc(var(--w) * 0.8);
  height: 14px;
  border-radius: 3px;
  background: var(--line-strong);
  transform-origin: left center;
}
.sb-shortcut .sb-bar {
  background: var(--line-strong);
  opacity: 0.6;
}
.sb-deltav .sb-bar {
  background: var(--accent);
}
.sb-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sb-deltav dt {
  color: var(--text);
  font-weight: 500;
}
.sb-share {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-2);
}
.sb-share strong {
  font-size: 18px;
  color: var(--text);
}
#study-bars > .flow-note {
  margin: 20px 0 0;
}

/* The race: one run, three starts. */
.race-figure {
  margin: 0;
}
.race-run {
  margin: 0 0 12px;
  max-width: 80ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.race-mount {
  min-height: 300px;
}
.race-svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.rc-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.rc-tick {
  fill: var(--text-3);
  font: 12px "IBM Plex Sans", sans-serif;
  font-variant-numeric: tabular-nums;
}
.rc-axis {
  fill: var(--text-2);
  font: 13px "IBM Plex Sans", sans-serif;
}
.rc-lane-bg {
  fill: var(--surface-2);
}
.rc-band {
  fill: var(--text);
  opacity: 0.14;
}
.rc-name {
  fill: var(--text);
  font: 600 15px "IBM Plex Sans", sans-serif;
}
.rc-status {
  fill: var(--text-3);
  font: 14px "IBM Plex Sans", sans-serif;
  font-variant-numeric: tabular-nums;
}
.rc-status.is-done {
  fill: var(--text);
  font-weight: 600;
}
.rc-deltav .rc-name,
.rc-deltav .rc-status.is-done {
  fill: var(--accent);
}
.rc-line {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.rc-line.rc-deltav {
  stroke: var(--accent);
  stroke-width: 2.4;
}
.rc-mark {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.rc-mark.is-on {
  opacity: 1;
}
.rc-settled {
  fill: var(--text-3);
  opacity: 0.13;
}
.rc-mark line {
  stroke: var(--text-2);
  stroke-width: 1.5;
}
.rc-mark.rc-deltav .rc-settled {
  fill: var(--accent);
  opacity: 0.14;
}
.rc-mark.rc-deltav line {
  stroke: var(--accent);
}
.race-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 16px;
}
.race-controls .btn {
  flex: none;
  min-width: 96px;
}
.race-controls input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--accent-deep);
}
.race-controls output {
  flex: none;
  min-width: 118px;
  font-size: 13.5px;
  text-align: right;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.race-figure figcaption p {
  margin: 0 0 10px;
  max-width: 76ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.race-figure figcaption .race-headline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.flows-title {
  margin: 48px 0 10px;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.flows-table th[scope="row"] {
  min-width: 200px;
  font-weight: 600;
  color: var(--text);
}
.fl-kind {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
}
.flows-table td strong {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.fl-airfoil td strong {
  font-size: 17px;
}

/* The loop in four steps: text only; what is live is said once, under the list. */
.flow-steps.loop-four li {
  padding-right: 24px;
}
.steps-note {
  max-width: 68ch;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* What is supported today. */
.support-table {
  margin: 0 0 28px;
}
.support-table th[scope="row"] {
  min-width: 170px;
}
.support-table td:last-child {
  color: var(--text-2);
}

.inbound {
  max-width: 68ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.supports .flow-strip-links {
  align-items: center;
}

@media (max-width: 1100px) {
  .study-orders {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 560px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-results {
    max-width: 560px;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}
@media (max-width: 700px) {
  .piece-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .measured {
    padding: 20px 16px;
  }
  .race-controls {
    flex-wrap: wrap;
  }
  .race-controls input[type="range"] {
    order: 3;
    flex-basis: 100%;
  }
  .race-controls output {
    margin-left: auto;
  }
  /* The three flows as cards: each number keeps its label beside it. */
  .flows-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .flows-table,
  .flows-table tbody,
  .flows-table tr,
  .flows-table th,
  .flows-table td {
    display: block;
    width: auto;
    min-width: 0;
  }
  .flows-table tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .flows-table th[scope="row"],
  .flows-table td {
    padding: 2px 0 !important;
    border: 0 !important;
  }
  .flows-table td::before {
    content: attr(data-label) ": ";
    color: var(--text-2);
  }
}
/* ---------- How it works: the way into a study ---------- */
.how-results {
  margin-bottom: 18px;
}
.how-results li {
  font-size: 16px;
  line-height: 1.65;
}
.how-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: none !important;
  margin-top: 18px;
}
.how-flow .text-link {
  white-space: nowrap;
}

/* ---------- Research: one question, one answer, details behind a click ---------- */
.q-section > h2 {
  margin-bottom: 10px;
}
.q-answer {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  max-width: 46ch !important;
}
.q-section > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}
.q-section > .ev-figure {
  color: var(--text);
  font-size: 20px;
}
.q-section > .ev-qual {
  font-size: 15px;
  margin-bottom: 8px;
}
.q-section > .findings {
  margin-bottom: 18px;
}
.q-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0;
}
.q-details {
  margin: 10px 0 0;
  border-top: 1px solid var(--line);
  padding: 12px 0 4px;
}
.q-details > summary {
  width: fit-content;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  border-radius: 4px;
}
.q-details > summary:hover {
  color: var(--text);
}
.q-details > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.q-details[open] > summary {
  margin-bottom: 12px;
}
.q-details > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 70ch;
}
.q-details .test-ledger {
  margin-top: 8px;
}
.q-details .test-ledger li {
  max-width: none;
  padding: 20px 0;
}
.q-details .test-ledger li:first-child {
  border-top: 0;
  padding-top: 12px;
}
.q-details .t-num {
  font-size: 22px;
}
.q-details .vision {
  margin: 8px 0 16px;
}
.q-details .ev-section {
  padding: 4px 0 8px;
  border-bottom: 0;
}
.q-details .ev-section h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

/* ---------- Site-wide type, shape and spacing ----------
   One scale for every public page. Headlines are a serif (Newsreader), large and quiet at weight 400; body text is
   IBM Plex Sans at 17px on a 68-character measure; figures are Plex Sans or Plex Mono, never the serif. One button shape: 8px radius, the primary action solid accent,
   every other link a text link. Content sits flat on the page; a border groups something or is not there. */
:root {
  --display: "Newsreader", Georgia, serif;
  --display-weight: 400;
  --display-track: -0.015em;
  --measure: 68ch;
  --gap-section: clamp(72px, 8.4vw, 120px);
}
body {
  font-size: 17px;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
}
h3,
h4 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.page p,
.page li,
.landing p,
.landing li,
.prose p,
.prose li,
.page-heading p,
.hero-description {
  max-width: var(--measure);
}
.btn,
.icon-btn,
.contact-menu summary {
  border-radius: 8px;
}
html[data-theme="light"] .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}
html[data-theme="light"] .btn.primary:hover,
html[data-theme="light"] .btn.primary:active {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.text-link {
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
/* The top bar: the mark, four links, and quiet controls. Its one call to action is a text link, so the page's
   primary button is the only filled thing on a screen. */
.topbar {
  height: 68px;
}
/* The mark and name in the header take the accent; in the footer they stay neutral. */
.topbar .brand,
.topbar .brand svg {
  color: var(--accent);
}
.site-footer .brand,
.site-footer .brand svg {
  color: var(--text);
}
.topnav {
  font-size: 15px;
}
.contact-menu summary,
.top-actions .icon-btn {
  border-color: transparent;
  background: none;
}
.top-actions > a.btn {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}
.top-actions > a.btn:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Home ---------- */
.landing {
  max-width: 1320px;
  padding: 0 clamp(20px, 5.5vw, 80px);
}
.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  min-height: 0;
  padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 64px);
}
.hero h1.hero-line {
  margin: 0 0 28px;
  max-width: 13ch;
  font-size: clamp(42px, 5.9vw, 80px);
  font-weight: var(--display-weight);
  line-height: 1.02;
  letter-spacing: var(--display-track);
}
.hero-description {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 34em;
  color: var(--text-2);
}
.hero-results {
  align-self: end;
}
.hero-results dt {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.hero-results dd,
.results-title {
  font-size: 16px;
}
.results-note {
  font-size: 14px;
}
.hero-fields {
  margin: 0;
}
.hf-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hf-pair img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--surface-2);
}
.hf-pair p {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.hero-fields figcaption {
  max-width: var(--measure);
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.proof-line {
  max-width: var(--measure);
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.landing-section {
  padding: 0;
  margin-top: var(--gap-section);
}
.landing-section > h2 {
  margin: 0 0 16px;
  max-width: 22ch;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: var(--display-track);
}
.section-lede {
  font-size: 18px;
}
.piece-grid h3 {
  font-size: 20px;
}
.piece-grid p,
.measured figcaption p,
.race-figure figcaption p,
.steps-note,
.partner-line {
  font-size: 16px;
}
/* The measured study sits flat on the page: a rule above it, no box. */
.measured {
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.measured figcaption h3,
.flows-title {
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
}
.sb-value,
.sb-runs,
.sb-share strong,
.rc-tick,
.rc-status,
.race-controls output {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: -0.02em;
}
.rc-tick {
  font-size: 12px;
}
.rc-status {
  font-size: 13px;
}
.site-footer {
  margin-top: var(--gap-section);
}
@media (max-width: 700px) {
  .hf-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .measured {
    padding: 24px 0 0;
  }
}

/* ---------- Inner pages: How it works, Research, Flow fields, Datasets, Model details, About ---------- */
.page-heading h1,
.guide-page h1,
.technical-page h1 {
  max-width: 18ch;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: var(--display-weight);
  line-height: 1.05;
  letter-spacing: var(--display-track);
}
.page-heading p:last-child,
.guide-lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}
#page-evidence h2,
#page-how h2,
#page-fields h2,
#page-datasets h2,
#page-models h2,
#page-about h2,
.technical-page h2,
.guide-page h2 {
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: var(--display-weight);
  line-height: 1.12;
  letter-spacing: var(--display-track);
}
/* The study page and the earlier example are tools: their headings stay at working size. */
#page-study .page-heading h1,
#page-starts .page-heading h1,
#page-kit .page-heading h1,
#page-plans .page-heading h1,
#page-workbench .page-heading h1,
#page-settings .page-heading h1,
#page-history .page-heading h1,
#page-simulator .page-heading h1,
#page-probe .page-heading h1 {
  font-size: clamp(30px, 3.2vw, 40px);
}
/* No eyebrow labels above headings on the reading pages. */
.guide-page > .eyebrow,
.technical-page > .eyebrow {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-3);
}
/* The current page in the top bar is marked by weight and a rule, not a tinted pill. */
.topnav a.active {
  color: var(--text);
  background: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 8px;
}
/* A headline figure is text, not a link: it takes the text colour. */
.ev-figure strong {
  color: var(--text);
}

/* ---------- Flat content on the reading pages ----------
   Datasets, Model details, About, Research and How it works: no boxes around prose, and one filled button at most.
   Every other link that was drawn as a button is a text link. */
#page-datasets .card,
#page-models .card,
#page-about .card,
#page-evidence .card,
#page-how .card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#page-datasets a.btn:not(.primary),
#page-models a.btn:not(.primary),
#page-about a.btn:not(.primary),
#page-evidence a.btn:not(.primary),
#page-how a.btn:not(.primary),
#page-fields a.btn:not(.primary) {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
/* Labels and openers are words, not pills. */
.chip,
.claim-chip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.st-details > summary {
  padding: 0;
  border-radius: 4px;
  background: none;
  font-size: 15px;
  font-weight: 500;
}
.st-details > summary:hover {
  background: none;
  color: var(--text);
}
/* Hover cards float above the page, so they keep a hairline and one soft neutral shadow. */
.map-tip,
.pic-tip,
.term::after,
.chip::after {
  border-color: var(--line-strong);
  box-shadow: 0 6px 20px rgb(26 25 23 / 0.12);
}
.map-tip::after {
  border-color: var(--line-strong);
}
/* Running text on the reading pages is 17px; notes and table cells keep their own smaller sizes. */
#page-how .doc-section > p,
#page-how .doc-section li,
#page-evidence .q-section > p,
#page-evidence .findings,
#page-about .prose p,
#page-about .prose li,
#page-models .prose p,
#page-datasets .prose p,
.technical-page > p,
.technical-page > ul li,
.technical-page > ol li,
.plain-list {
  font-size: 17px;
  line-height: 1.6;
}
.guide-page .guide-steps h2,
.guide-page .guide-more h2 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-results {
    align-self: start;
  }
}
/* Inside the tools (the study page, the earlier example, settings) headings are labels: the text face, not the serif. */
#study-root h2,
#study-root h3,
#page-workbench h2,
#page-workbench h3,
#page-settings h2,
#page-history h2,
#page-simulator h2,
#page-simulator h3,
#page-probe h2,
#page-probe h3 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Starting fields: two files in, a zip out ---------- */
.starts-form {
  display: grid;
  gap: 24px;
  max-width: var(--measure);
  margin-top: 32px;
}
.starts-file {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.starts-file label {
  font-weight: 600;
  color: var(--text);
}
.starts-file p,
.starts-needs,
.starts-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.starts-form code,
.starts-result code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
}
.starts-message {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
.starts-result {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin-top: 32px;
}
.starts-result h2 {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.starts-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
}
.issue-where {
  font-weight: 600;
.hero-result {
  max-width: 34em;
  margin: 16px 0 0;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text);
}
} /* closes .issue-where above, which was left open: .hero-result stays nested in it, so the home page looks as before */

/* ---------- Your study from the kit: the check, the ranges, the points ---------- */
.kit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.kit-num {
  width: 8em;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.kit-id {
  width: 10em;
  font: inherit;
}
#page-kit pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.kit-row select {
  width: auto;
  font: inherit;
}

/* ---------- Pricing: the two kits ---------- */
.plans { display: grid; gap: 20px; max-width: 980px; margin-top: 32px; }
.plans h2 { margin: 24px 0 0; font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.price-cards li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; }
.price-cards h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.price-cards p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.price-cards .price { margin-top: 6px; font-size: 28px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.plans-table td, .plans-table th { vertical-align: top; }

/* Six items in the top bar: keep each on one line, and leave the rest to the menu on narrower screens. */
.topnav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .topnav { gap: 16px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .topnav { gap: 12px; font-size: 13px; }
}
/* Up to 1,140 px the top bar holds the six links and the tools, not the button too: the same button opens the page
   just below it, and from 900 px down the menu takes over (app.css). */
@media (max-width: 1140px) {
  .top-actions > a.btn { display: none; }
}

/* The kit page: the video, the four commands, what was measured */
.kit-video { margin: 8px 0 28px; }
.kit-video video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line, #e4e1ec); background: #14121a; }
.kit-video figcaption { margin-top: 8px; font-size: 14px; opacity: .75; }
.kit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: 1fr; gap: 12px; } }
.kit-grid h2 { font-size: 20px; margin: 0 0 12px; }
.kit-steps { padding-left: 22px; margin: 0 0 10px; }
.kit-steps li { margin: 0 0 14px; }
.kit-steps code { font-size: 15px; font-weight: 600; }
.kit-steps span { display: block; margin-top: 3px; }
.kit-figure { margin: 0 0 10px; }
.kit-figure strong { display: block; font-size: 34px; line-height: 1.1; color: var(--accent, #6a4bc4); }
.kit-needs { padding-left: 20px; margin: 0 0 18px; }
.kit-pack { margin-top: 36px; border-top: 1px solid var(--line, #e4e1ec); padding-top: 16px; }
.kit-pack summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.kit-grid div > h2:not(:first-child) { margin-top: 26px; }
.kit-h2 { font-size: 24px; margin: 30px 0 14px; }
.kit-shared { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line, #e4e1ec); }
.kit-grid h3 { font-size: 18px; margin: 0 0 10px; }
.kit-grid div > h3:not(:first-child) { margin-top: 22px; }
.kit-lead { max-width: 760px; }
.kit-flow { padding-left: 22px; max-width: 860px; }
.kit-flow li { margin: 0 0 10px; }
