/* Agilu page layout v2 (S5p v2, spec S5p section 9). Loaded after site.css on every page.
   Dark only (html data-theme="dark"). Colors: site.css tokens, or color-mix() of a token
   with transparent; no color literals. Two self-hosted OFL fonts (fonts/LICENSES.txt).
   Class and id names used by site.js and the checks are not renamed. */

/* ---------- 0. Fonts and local variables ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --v2-w: 1080px;
  --v2-gap: 96px;
  --v2-pad: var(--sp-3);
  --display: "Archivo", var(--font);
  --numf: "JetBrains Mono", var(--mono);
  --hair: color-mix(in oklab, var(--line), transparent 55%);
  --grid: color-mix(in oklab, var(--line), transparent 93%);
  --haze: color-mix(in oklab, var(--accent), transparent 88%);
  --track: color-mix(in oklab, var(--line), transparent 80%);
  --soft: color-mix(in oklab, var(--fg), transparent 94%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 1. Base type ---------- */
body {
  font-family: var(--display);
  font-stretch: 100%;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.num, .mono, code { font-family: var(--numf); }
h1, h2, h3 { font-family: var(--display); color: var(--fg); }
h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h3 { font-size: var(--fs-2); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
p, li { max-width: 65ch; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 62ch; }
.label, .eyebrow, .tags > li {
  font-family: var(--numf);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 2. Header, footer, widths ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg), transparent 8%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap, .site-footer .wrap { max-width: calc(var(--v2-w) + 2 * var(--v2-pad)); }
.site-header .wrap { min-height: 59px; flex-wrap: nowrap; gap: var(--sp-4); } /* + 1px border = 60px */
/* Brand: mark.svg + the name set as text (Archivo 700, wdth 112%) */
.brand { gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.wordmark {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}
.site-nav { gap: var(--sp-1) var(--sp-4); }
.site-nav a { color: var(--muted); font-size: var(--fs-5); transition: color 120ms ease-out; }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.site-footer { margin-top: 0; }
main.wrap.bands { max-width: none; padding: 0; }
.band { padding: 64px 0; }
.band-in { max-width: calc(var(--v2-w) + 2 * var(--v2-pad)); margin: 0 auto; padding: 0 var(--v2-pad); }
.band h1:first-child, .band h2:first-child { margin-top: 0; }
.band-panel { background: var(--panel); }
.page-top { padding: 88px 0 56px; border-bottom: 1px solid var(--hair); }
.page-top h1 { margin: 0 0 var(--sp-3); max-width: 20ch; }
.page-top p { max-width: 62ch; }
.page-top .lead { color: var(--muted); }

/* ---------- 3. Buttons (D13) ---------- */
.btn-primary, .btn-ghost, .actions #download-slot .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms ease-out, filter 120ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out;
}
.btn-primary, .actions #download-slot .button {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--accent);
}
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 600; }
.btn-primary:hover, .actions #download-slot .button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn-ghost:hover { background: var(--soft); border-color: var(--fg); text-decoration: none; transform: translateY(-1px); }
.btn-primary:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button.btn-primary[disabled], button.btn-primary[disabled]:hover {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 0.5;
  transform: none;
  filter: none;
}
.hdr-cta { min-height: 40px; padding: 0 16px; font-size: var(--fs-5); flex: none; }
/* Hero button: one size up from the D13 buttons (56px high, 1.125rem bold) */
.actions .btn-primary, .actions #download-slot .button { min-height: 56px; padding: 0 32px; font-size: 1.125rem; font-weight: 700; }

/* ---------- 4. Home: hero (.perf.cmp.hero#proof) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  margin: 0;
  padding: 88px 0 var(--v2-gap);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(1100px, 100%);
  z-index: -2;
  background-image:
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, var(--bg) 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, var(--bg) 30%, transparent 85%);
  pointer-events: none;
}
.hero-in { max-width: calc(var(--v2-w) + 2 * var(--v2-pad)); margin: 0 auto; padding: 0 var(--v2-pad); }
.hero-text { text-align: center; }
.hero-text > * { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in oklab, var(--panel), transparent 30%);
  max-width: none;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 18ch;
  margin-top: 0;
  margin-bottom: 28px;
}
.hero .lead { margin-bottom: 0; color: color-mix(in oklab, var(--fg) 72%, var(--muted)); }
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin-top: 36px;
  max-width: none;
}
.actions > p { margin: 0; }

/* Proof chart panel (figure A) with the soft accent haze behind it (D12 e) */
.proof { position: relative; max-width: var(--v2-w); margin: 64px auto 0; }
.proof::before {
  content: "";
  position: absolute;
  inset: -22% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--haze), transparent);
  pointer-events: none;
}
.proof-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

/* Three pillar cards (figures B, C, D) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--v2-w);
  margin: 24px auto 0;
}
.pillar, .cards > .card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  transition: transform 120ms ease-out, border-color 120ms ease-out;
}
.pillar { padding: 24px; min-width: 0; }
.pillar:hover, .cards > .card:hover { transform: translateY(-1px); border-color: var(--line); }
.pillar h3 { margin: 0 0 18px; font-stretch: 108%; }
.stat { margin: 0 0 6px; line-height: 1; max-width: none; }
.stat .num {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  --count-ms: 600ms;
}
.stat .unit { font-size: 0.42em; font-weight: 600; letter-spacing: 0; }
.pillar .cmp-table.bars th[scope="row"] {
  padding-bottom: 18px;
  color: var(--muted);
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 400;
  line-height: 1.4;
}

/* Footnotes (round 8, S5p §9.21): the hero keeps one link line; the eight caveats sit in
   the notes band under the form, small type, two flowing columns on wide screens, one on phones */
.notes-link { max-width: var(--v2-w); margin: 12px auto 0; font-size: 0.8125rem; color: var(--muted); }
.notes-link a { color: var(--accent); }
.band.notes-band { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.notes-band h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.25; color: var(--fg); }
.notes {
  columns: 2 22rem;
  column-gap: 48px;
}
.notes .caveat {
  max-width: none;
  margin: 0 0 6px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  break-inside: avoid;
}
.notes a { color: var(--accent); }

/* ---------- 5. Cards ("Where it fits", download) ---------- */
.what { padding: var(--v2-gap) 0; }
.what h2 { margin: 0 0 12px; }
.what-sub { margin: 0 0 32px; font-size: var(--fs-4); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
ul.cards { margin: 0; padding: 0; list-style: none; }
ul.cards li { max-width: none; }
.cards > .card { margin: 0; padding: 28px 24px; display: flex; flex-direction: column; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin: 0 0 var(--sp-3); font-size: var(--fs-2); line-height: 1.25; }
.card h3 { margin: 0 0 10px; font-stretch: 108%; }
.cards .card p { margin: 0; font-size: var(--fs-5); }
/* Scene tags at the card foot: the .eyebrow pill, smaller, no dot; margin-top auto pins the row to the bottom */
.tags { list-style: none; margin: auto 0 0; padding: var(--sp-3) 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.tags > li { margin: 0; padding: 3px 9px; border: 1px solid var(--hair); border-radius: 999px; font-size: 0.7rem; line-height: 1.4; }
.card code { font-size: var(--fs-4); overflow-wrap: anywhere; }
/* Scene icons: solid shapes in the text color, one cell in the accent color (same family as mark.svg) */
.ico { display: block; width: 32px; height: 32px; margin-bottom: 18px; color: var(--fg); }
.ico .acc { fill: var(--accent); }
#chart-a, #chart-b, #chart-c, #chart-d { scroll-margin-top: 84px; }
/* Download notice: "What will be offered" card, then the smaller, muted "After you download" block */
.card.offer { padding: 28px 24px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); }
.after { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); }
.after h2 { margin: 0 0 16px; font-size: var(--fs-2); line-height: 1.25; color: var(--muted); }
.after h3 { margin: 0 0 8px; font-size: var(--fs-5); color: var(--muted); }
.after p, .after li { font-size: var(--fs-4); }
.after code { font-size: var(--fs-4); overflow-wrap: anywhere; }
.after-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 48px; }
.after-grid > div > :last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .after-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 6. Form bands ---------- */
.form-band { padding: var(--v2-gap) 0; border-top: 1px solid var(--hair); }
.form-band > .form-block {
  max-width: calc(var(--measure) + 2 * var(--v2-pad));
  margin: 0 auto;
  padding: 0 var(--v2-pad);
  border-top: 0;
  scroll-margin-top: 84px;
}
.form-band #key-closed, .form-band #key-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--display);
  font-size: var(--fs-1);
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.form-band form .btn-primary { margin-top: var(--sp-3); min-width: 14rem; }
input[type="email"], input[type="text"], textarea { min-height: 48px; }
.fb-intro h1 { margin-top: 0; }

/* ---------- 7. Release download, feedback ---------- */
.files { margin-top: 0; padding-top: 0; border-top: 0; }
.file-table { margin: var(--sp-3) 0; border-top: 1px solid var(--hair); }
.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--hair);
}
.file-row.file-head { padding: 0; border-bottom: 0; }
.file-row p { margin: 0; }
.file-row .button {
  margin: 0;
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.file-row .button:hover { background: transparent; border-color: var(--line); }
.slot { display: block; height: 1.75rem; border: 1px dashed var(--line); border-radius: var(--radius); }
@media (min-width: 720px) {
  .file-row { grid-template-columns: 18rem minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-3); }
}
@media (min-width: 860px) {
  .form-band #key-open {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 48px;
  }
  .form-band #key-open > h2, .form-band #key-open > p { grid-column: 1; }
  .form-band #key-open > form { grid-column: 2; grid-row: 1 / 4; }
  .form-band #key-open > form > label:first-child { margin-top: 0; }
  .fb-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .fb-grid > .form-block, .fb-grid #fb-open { display: contents; }
  .fb-intro { grid-column: 1; grid-row: 1; }
  .fb-grid #fb-open > h2 { grid-column: 1; grid-row: 2; margin: var(--sp-3) 0 0; }
  .fb-grid #fb-open > .warn { grid-column: 1; grid-row: 3; }
  .fb-grid #fb-closed, .fb-grid #fb-form { grid-column: 2; grid-row: 1 / 5; margin-top: 0; }
  .fb-grid #fb-form > fieldset:first-child { margin-top: 0; }
  .fb-grid #fb-open > .small { grid-column: 2; grid-row: 5; } /* the email line stays under the form */
}

/* ---------- 7b. Performance page (main.perfpage): Agilu only, in two separate parts:
   section.form-block-cli (command-line program) and section.f1 (embeddable core). Each part has
   four scene blocks (.perf, h3); the charts are column charts (table.cols, section 9b). ---------- */
.perfpage .page-top { padding: 72px 0 40px; }
.perfpage .form-block-cli, .perfpage .f1 {
  max-width: calc(var(--v2-w) + 2 * var(--v2-pad));
  margin: 0 auto;
  padding: 56px var(--v2-pad) 8px;
}
.perfpage .f1 { border-top: 1px solid var(--line); }
.perfpage .form-block-cli > h2, .perfpage .f1 > h2 { margin: 0 0 12px; }
.perfpage .f1 > .muted { max-width: 72ch; margin: 0 0 12px; font-size: var(--fs-4); line-height: 1.5; }
.perfpage .perf { margin: 0; padding: 32px 0; border-top: 1px solid var(--hair); }
.perfpage .perf > h3 { margin: 0 0 20px; font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.perf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; }
.perf-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; }
.chart { min-width: 0; }
.chart h4 { margin: 0 0 10px; font-size: var(--fs-3); font-weight: 650; }
.chart-note { max-width: 64ch; margin: 12px 0 0; font-size: var(--fs-4); line-height: 1.5; }
.perfpage .fig { margin: 0; }
.cmp-table.bars thead th:first-child { width: auto; } /* site.css sets 32% (old table layout) */
.setup { max-width: 96ch; margin: 18px 0 6px; font-size: var(--fs-4); line-height: 1.5; color: var(--muted); }
.setup .term { font-weight: 650; color: var(--fg); }
.caveats .caveat { max-width: none; margin: 0 0 2px; font-size: 0.75rem; line-height: 1.45; }
.perfpage .stat { margin: 0; }
.stat.sm .num { font-size: clamp(1.5rem, 3vw, 2rem); }
.slope { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); }
.slope-lab { margin: 0; font-size: var(--fs-5); font-weight: 600; }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pair { padding: 24px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); }
.pair h4 { margin: 0 0 18px; font-size: var(--fs-3); font-weight: 650; }
.perfpage .method-s { padding: 40px 0; border-top: 1px solid var(--hair); }
.perfpage .method-s h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.method-list { margin: 0; padding-left: 1.1em; columns: 2 24rem; column-gap: 48px; }
.method-list li { max-width: none; margin: 0 0 8px; font-size: var(--fs-4); line-height: 1.5; color: var(--muted); break-inside: avoid; }
.method-list li::marker { color: var(--muted); }
@media (min-width: 860px) {
  .perf-grid, .pairs, .perf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 8. Documents and 404 ---------- */
.doc .band-in { display: grid; grid-template-columns: minmax(0, 72ch); }
.doc h1 { margin: 0 0 var(--sp-2); }
.doc .doc-version { max-width: none; margin: 0 0 var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--hair); font-size: var(--fs-4); }
.doc pre.legal {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--display);
  font-size: var(--fs-3);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* /docs: the five S6 pages in one (built by scripts/build_docs_page.py) */
.docs .doc-toc { margin: 0 0 var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--hair); }
.docs .doc-toc ol { margin: 0; }
.docs section + section { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--hair); }
.docs section:first-of-type { scroll-margin-top: 80px; } /* clears the sticky header on #overview */
.docs h4 { font-family: var(--display); font-size: var(--fs-3); font-weight: 650; margin: var(--sp-3) 0 var(--sp-2); }
.docs pre.terminal { margin: 0 0 var(--sp-3); }
.nf .band { padding: 120px 0; }
.nf-in { text-align: center; }
.nf-in h1 { margin: 0 auto var(--sp-3); }
.nf-in p { margin: 0 auto; }
.nf-mark { display: block; width: 64px; height: 64px; margin: 0 auto var(--sp-4); }

/* ---------- 9. Bar table v2: table.cmp-table.bars (figures A-K, J) ----------
   Still a table (th scope, data-src, .num, .nofit, .na) plus ARIA roles, because the rows are
   laid out as blocks and grids. One tbody row = one group; the row header sits on its own
   line, then one line per column in the fixed column order. Each line is a grid:
   column name (td::before, from data-col) | bar track | value. The value is the text of the
   cell; grid auto-placement puts it in the first free cell after the name and the bar.
   Bar length: .wNN sets --w: NN% of the track (linear from 0, minimum 2px).
   Container query on the table: below 30rem the name sits above the bar. */
.fig { margin: 0 0 var(--sp-4); }
.proof .fig, .pillar .fig { margin: 0; }
.cmp-table.bars {
  --lab: 160px;
  --val: 96px;
  --bar-h: 8px;
  --row: 22px;
  container-type: inline-size;
  display: block;
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: var(--fs-5);
}
.cmp-table.bars thead, .cmp-table.bars thead tr { display: block; }
.cmp-table.bars thead th {
  display: block;
  width: auto;
  padding: 0 0 12px;
  border: 0;
  font-family: var(--numf);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmp-table.bars thead th + th {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cmp-table.bars tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 48px; }
.cmp-table.bars tr { display: block; }
.cmp-table.bars th, .cmp-table.bars td { border: 0; padding: 0; }
.cmp-table.bars th[scope="row"] {
  display: block;
  width: auto;
  padding: 0 0 8px;
  font-size: var(--fs-5);
  font-weight: 600;
  line-height: 1.35;
}
.cmp-table.bars tr > :nth-child(2) { border-left: 0; }
.cmp-table.bars td {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: minmax(var(--row), auto);
  align-items: center;
  column-gap: 12px;
  padding: 2px 0;
  text-align: right;
  font-family: var(--numf);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  white-space: nowrap;
}
.cmp-table.bars td::before {
  content: attr(data-col);
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: left;
  text-indent: 0;
  white-space: normal;
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 400;
  color: var(--muted);
}
.cmp-table.bars .bar {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  display: block;
  height: var(--bar-h);
  margin: 0;
  background: var(--bar);
  box-shadow: none;
  border-radius: 1px;
  transform-origin: left center;
}
.cmp-table.bars td.num::after {
  content: "";
  grid-column: 1;
  grid-row: 2;
  z-index: 0;
  height: var(--bar-h);
  border-radius: 1px;
  background: var(--track);
}
.cmp-table.bars td.self { color: var(--accent); font-weight: 700; }
.cmp-table.bars td.self::before { color: var(--fg); font-weight: 700; }
.cmp-table.bars td.self .bar { background: var(--accent); }
.cmp-table.bars td.nofit, .cmp-table.bars td.na {
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
  white-space: normal;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 400;
}
.cmp-table.bars td.nofit { text-indent: 10px; grid-auto-rows: auto minmax(26px, auto); }
.cmp-table.bars td.nofit .bar.nofit-box {
  position: absolute;
  inset: 0;
  grid-column: 1;
  grid-row: 2;
  z-index: 0;
  width: auto;
  height: auto;
  background: transparent;
  border: 1px dashed var(--nofit-line);
  border-radius: var(--radius);
}
.cmp-table.bars td.nofit > .cfg { display: contents; white-space: nowrap; } /* one text run, not a separate grid item */
@container (min-width: 30rem) {
  .cmp-table.bars td { grid-template-columns: var(--lab) minmax(0, 1fr) var(--val); }
  .cmp-table.bars td::before { grid-column: 1; }
  .cmp-table.bars .bar, .cmp-table.bars td.num::after { grid-column: 2; grid-row: 1; }
  .cmp-table.bars td.nofit, .cmp-table.bars td.na { grid-template-columns: var(--lab) minmax(0, 1fr); }
  .cmp-table.bars td.nofit { grid-auto-rows: minmax(26px, auto); }
  .cmp-table.bars td.nofit .bar.nofit-box { grid-column: 2; grid-row: 1; }
}
/* Figure A on the home page: 12px bars, groups in two columns when there is room */
.fig-a .cmp-table.bars { --bar-h: 12px; --row: 20px; --lab: 176px; } /* "Agilu (embeddable core)" bold = 164px */
.fig-a .cmp-table.bars tbody { gap: 20px 48px; }
.fig-a .cmp-table.bars td { padding: 1px 0; }
.fig-a .cmp-table.bars th[scope="row"] {
  font-family: var(--numf);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
@container (min-width: 56rem) {
  .fig-a .cmp-table.bars tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* .nofit text can wrap: pad every line instead of indenting the first; label and box reach back over the padding */
.cmp-table.bars td.nofit { text-indent: 0; padding: 5px 10px; row-gap: 6px; grid-auto-rows: auto minmax(16px, auto); }
.cmp-table.bars td.nofit::before { margin: -4px -10px 0; }
.cmp-table.bars td.nofit .bar.nofit-box { inset: -4px 0 0 -10px; } /* end lines are auto = padding edge */
@container (min-width: 30rem) {
  .cmp-table.bars td.nofit { grid-auto-rows: minmax(16px, auto); }
  .cmp-table.bars td.nofit::before { margin: 0 0 0 -10px; }
  .cmp-table.bars td.nofit .bar.nofit-box { inset: -4px 0 1px -10px; }
}

/* ---------- 9b. Column chart: table.cols (performance page) ----------
   Still a table (th scope, data-src, .num) plus ARIA roles. thead = the x values; only its first
   cell (the x-axis name) is shown, the others are visually hidden. One tbody row = one series;
   its row header is visually hidden (the chart title names it). The cells of the row stand side
   by side as columns: the value text on top, then the bar, whose height is --w (.wNN) of the
   track (--col-h), linear from 0, minimum 2px; the x label under the base line is data-x.
   td.over: a dashed, full-height empty column for a run that was not made (not a .nofit cell). */
.cols {
  --col-h: 160px;
  --val-h: 34px;
  --col-w: min(calc(100% - 16px), 56px);
  display: block;
  width: 100%;
  min-width: 0;
  font-size: var(--fs-5);
}
.cols thead, .cols thead tr, .cols tbody { display: block; }
.cols thead th {
  display: block;
  padding: 0 0 4px;
  border: 0;
  text-align: left;
  font-family: var(--numf);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cols thead th + th, .cols tbody th {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cols tbody tr {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 128px);
  padding-bottom: 28px;
}
.cols td {
  position: relative;
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: var(--col-h);
  padding: var(--val-h) 2px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--numf);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  color: var(--fg);
}
.cols td::after {
  content: attr(data-x);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
}
.cols .bar {
  flex: none;
  display: block;
  width: var(--col-w);
  height: max(2px, var(--w));
  margin: 0;
  background: var(--accent);
  box-shadow: none;
  border-radius: 1px 1px 0 0;
  transform-origin: center bottom;
}
.cols td.over { justify-content: center; color: var(--muted); }
.cols td.over > .cfg { position: relative; z-index: 1; }
.cols td.over .bar.over-box {
  position: absolute;
  top: var(--val-h);
  bottom: 0;
  left: 0;
  right: 0;
  width: var(--col-w);
  height: auto;
  margin: 0 auto;
  background: transparent;
  border: 1px dashed var(--accent);
  border-bottom: 0;
}

/* ---------- 10. Motion (D12 a, b, d; c is page.js). Off unless the reader allows motion. ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: none; }
}
@keyframes col-grow {
  from { transform: scaleY(0); }
  to { transform: none; }
}
@keyframes cta-in {
  from { opacity: 0; visibility: hidden; transform: translateY(-4px); }
  to { opacity: 1; visibility: visible; transform: none; }
}
@keyframes cta-out {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 320ms var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: 50ms; }
  .hero-text > :nth-child(3) { animation-delay: 100ms; }
  .hero-text > :nth-child(4) { animation-delay: 150ms; }
  .cmp-table.bars .bar:not(.nofit-box) { animation: bar-grow 600ms var(--ease) both; }
  .cols .bar:not(.over-box) { animation: col-grow 600ms var(--ease) both; }
  @supports (animation-timeline: view()) {
    .fig:not(.fig-a) .cmp-table.bars .bar:not(.nofit-box) {
      animation: bar-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    .cols .bar:not(.over-box) {
      animation: col-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
  /* Header button: hidden while the hero button is on screen (D13), then shown. */
  @supports (animation-timeline: scroll()) {
    .pg-home .hdr-cta {
      animation: cta-in linear both;
      animation-timeline: scroll(root);
      animation-range: 360px 460px;
    }
  }
  /* ... and hidden again while the form band (which has its own button) is on screen. */
  @supports (animation-timeline: view()) and (timeline-scope: --x) {
    .pg-home { timeline-scope: --form; }
    .pg-home .form-band { view-timeline: --form block; }
    .pg-home .hdr-cta {
      animation: cta-in linear both, cta-out linear forwards;
      animation-timeline: scroll(root), --form;
      animation-range: 360px 460px, entry 20% entry 50%;
    }
  }
}

/* ---------- 11. Narrow screens ---------- */
@media (max-width: 860px) {
  .pillars, .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --v2-gap: 56px; }
  /* R44 (S5p §9.21): the nav stays, as a second header row under the mark and the button */
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 2px; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 0 20px; }
  .site-nav a { padding: 6px 0; font-size: 0.8125rem; }
  .hdr-cta { margin-left: auto; }
  .hero { padding-top: 48px; }
  .eyebrow { border-radius: 14px; text-align: left; }
  .hero .lead { font-size: 1.125rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn-ghost { width: 100%; min-height: 52px; }
  .actions .btn-primary, .actions #download-slot .button { width: 100%; min-height: 56px; }
  .form-band form .btn-primary { width: 100%; min-height: 52px; }
  .proof { margin-top: 48px; }
  .proof-panel { padding: 20px 16px 16px; }
  .notes { columns: 1; }
  .page-top { padding: 48px 0 40px; }
  .band { padding: 48px 0; }
  .perfpage .form-block-cli, .perfpage .f1 { padding-top: 48px; }
  .cols { --col-h: 120px; }
  .cols td, .cols td::after { font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-ghost, .pillar, .cards > .card { transition: none; }
  .btn-primary:hover, .btn-ghost:hover, .pillar:hover, .cards > .card:hover { transform: none; }
}

/* ---------- 12. Bar widths: --w = NN% of the track ---------- */
.w0{--w:0%}.w1{--w:1%}.w2{--w:2%}.w3{--w:3%}.w4{--w:4%}.w5{--w:5%}.w6{--w:6%}.w7{--w:7%}.w8{--w:8%}.w9{--w:9%}
.w10{--w:10%}.w11{--w:11%}.w12{--w:12%}.w13{--w:13%}.w14{--w:14%}.w15{--w:15%}.w16{--w:16%}.w17{--w:17%}.w18{--w:18%}.w19{--w:19%}
.w20{--w:20%}.w21{--w:21%}.w22{--w:22%}.w23{--w:23%}.w24{--w:24%}.w25{--w:25%}.w26{--w:26%}.w27{--w:27%}.w28{--w:28%}.w29{--w:29%}
.w30{--w:30%}.w31{--w:31%}.w32{--w:32%}.w33{--w:33%}.w34{--w:34%}.w35{--w:35%}.w36{--w:36%}.w37{--w:37%}.w38{--w:38%}.w39{--w:39%}
.w40{--w:40%}.w41{--w:41%}.w42{--w:42%}.w43{--w:43%}.w44{--w:44%}.w45{--w:45%}.w46{--w:46%}.w47{--w:47%}.w48{--w:48%}.w49{--w:49%}
.w50{--w:50%}.w51{--w:51%}.w52{--w:52%}.w53{--w:53%}.w54{--w:54%}.w55{--w:55%}.w56{--w:56%}.w57{--w:57%}.w58{--w:58%}.w59{--w:59%}
.w60{--w:60%}.w61{--w:61%}.w62{--w:62%}.w63{--w:63%}.w64{--w:64%}.w65{--w:65%}.w66{--w:66%}.w67{--w:67%}.w68{--w:68%}.w69{--w:69%}
.w70{--w:70%}.w71{--w:71%}.w72{--w:72%}.w73{--w:73%}.w74{--w:74%}.w75{--w:75%}.w76{--w:76%}.w77{--w:77%}.w78{--w:78%}.w79{--w:79%}
.w80{--w:80%}.w81{--w:81%}.w82{--w:82%}.w83{--w:83%}.w84{--w:84%}.w85{--w:85%}.w86{--w:86%}.w87{--w:87%}.w88{--w:88%}.w89{--w:89%}
.w90{--w:90%}.w91{--w:91%}.w92{--w:92%}.w93{--w:93%}.w94{--w:94%}.w95{--w:95%}.w96{--w:96%}.w97{--w:97%}.w98{--w:98%}.w99{--w:99%}
.w100{--w:100%}

/* R24 follow-up (T1): with the Home link the header nav wraps between 560 and ~720px when the scrolling CTA is shown; hide the CTA there (hero button and form stay). */
@media (min-width: 560px) and (max-width: 759px) { .hdr-cta { display: none; } }
