/* AEOLedger site styles. Brand tokens extend the "Field Notes" system. */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Core brand */
  --paper: #F1ECE2;
  --ink: #16161A;
  --signal: #E0451F;      /* dots, rules, large type only (3.5:1 on paper) */
  --mute: #7C776D;        /* decorative / large only */
  /* Accessible text variants (WCAG AA on paper) */
  --signal-text: #B53210; /* 5.2:1 */
  --mute-text: #66615A;   /* 5.2:1 */
  --rule: #CFC8BA;
  --dot-off: #D9D2C3;
  --sheet: #F7F3EB;       /* raised ledger card */
  --on-ink: #F1ECE2;
  --bg: var(--paper);
  --fg: var(--ink);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: 24px;
  --margin-rule: 56px;    /* distance of the ledger margin line from the content */
  --max: 1160px;
  --measure: 66ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16161A; --fg: #F1ECE2;
    --signal: #EE5A33; --signal-text: #F07250; --mute: #8F8A80; --mute-text: #A39E92;
    --rule: #3A3934; --dot-off: #34332F; --sheet: #1E1E23;
  }
}
:root[data-theme="dark"] {
  --bg: #16161A; --fg: #F1ECE2;
  --signal: #EE5A33; --signal-text: #F07250; --mute: #8F8A80; --mute-text: #A39E92;
  --rule: #3A3934; --dot-off: #34332F; --sheet: #1E1E23;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
  font-kerning: normal; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--signal-text); }
:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
.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 { position: absolute; left: 12px; top: -60px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.04; }
h3 { font-size: 1.65rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; max-width: 34em; }
.mono, .label { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0.01em; }
.label { color: var(--mute-text); display: block; margin-bottom: 14px; }
.muted { color: var(--mute-text); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--signal-text); }
strong { font-weight: 700; }

/* Frame: the ledger page */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sheet { position: relative; padding-left: var(--margin-rule); }
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--signal); opacity: 0.85;
}
.sheet::before { left: 18px; }
.sheet::after { left: 23px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-word { font-family: var(--serif); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; font-size: 1rem; color: var(--fg); border-radius: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; }
.nav a:hover { color: var(--signal-text); }
.nav a.btn { margin-left: 10px; color: var(--bg); text-decoration: none; }
.nav a.btn:hover { color: var(--bg); }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 700 1rem/1 var(--sans);
  padding: 15px 20px; text-decoration: none; border: 1.5px solid var(--fg);
  background: var(--fg); color: var(--bg); border-radius: 2px; cursor: pointer;
}
.btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
.btn:hover { color: var(--bg); background: color-mix(in srgb, var(--fg) 86%, var(--signal)); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { color: var(--signal-text); border-color: var(--signal-text); background: transparent; }
.nav .btn { padding: 11px 16px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
main { display: block; }
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.section.first { border-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 40px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { margin-bottom: 0.35em; }

/* Ledger specimen */
.ledger { background: var(--sheet); border: 1px solid var(--rule); box-shadow: 6px 6px 0 var(--rule); padding: 22px 22px 18px; margin: 14px 0 0;
}
.ledger-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ledger-prompt { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.2; margin: 6px 0 18px; min-height: 2.4em; }
.ledger table { width: 100%; border-collapse: collapse; margin: 0; }
.ledger th, .ledger td { text-align: left; font-weight: 400; padding: 0; height: 46px; vertical-align: middle; border-top: 1px solid var(--rule); }
.ledger thead th { border-top: 0; }
.ledger thead th { font-family: var(--mono); font-size: 0.75rem; color: var(--mute-text); height: 30px; }
.ledger tbody th { font-size: 1rem; }
.ledger .runs { white-space: nowrap; }
.ledger .tally { text-align: right; font-family: var(--mono); font-size: 0.875rem; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 10px; vertical-align: middle; border: 1.5px solid var(--mute); }
.dot.on { background: var(--signal); border-color: var(--signal); }
.ledger-sum { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; border-top: 1.5px solid var(--fg); margin-top: 6px; padding-top: 14px; }
.ledger-sum .big { font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.ledger-sum .big span { color: var(--signal); }
.ledger-foot { margin: 14px 0 0; font-family: var(--mono); font-size: 0.75rem; color: var(--mute-text); }

/* Source line (every data claim) */
.source { font-family: var(--mono); font-size: 0.78rem; color: var(--mute-text); display: block; margin-top: 18px; max-width: 60ch; padding-left: 24px; position: relative; }
.source::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--signal); }
.source a { color: var(--mute-text); }

/* Dot grid statistic */
.stat-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.dots100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, 1.2vw, 12px); max-width: 420px; margin: 0; padding: 0; list-style: none; }
.dots100 li { aspect-ratio: 1; border-radius: 50%; background: var(--dot-off); }
.dots100 li.was { background: var(--fg); }
.dots100 li.now { background: var(--signal); }
.stat-figure { font-family: var(--serif); font-size: clamp(5rem, 11vw, 8.5rem); line-height: 0.85; letter-spacing: -0.03em; margin: 0 0 18px; }
.stat-figure span { color: var(--signal); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Steps (true sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--fg); }
.steps li { padding: 20px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.step-n { font-family: var(--mono); font-size: 0.8125rem; color: var(--signal-text); display: block; margin-bottom: 18px; }
.steps h3 { margin-bottom: 0.4em; }
.steps p { font-size: 1rem; color: var(--fg); }

/* Fix list */
.fixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.fixes div { border-top: 1px solid var(--rule); padding: 18px 0 6px; }
.fixes dt { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; margin-bottom: 6px; }
.fixes dd { margin: 0 0 12px; font-size: 1rem; max-width: 34em; }

/* Offer ladder table */
.ladder { width: 100%; border-collapse: collapse; margin: 0; }
.ladder caption { text-align: left; }
.ladder th, .ladder td { text-align: left; vertical-align: top; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.ladder thead th { font-family: var(--mono); font-size: 0.78rem; color: var(--mute-text); padding-top: 0; padding-bottom: 12px; border-bottom: 1.5px solid var(--fg); }
.ladder tbody th { width: 25%; }
.ladder td:nth-child(2) { width: 45%; padding-right: 40px; }
.ladder td:nth-child(3) { width: 14%; }
.ladder thead th:last-child { text-align: right; padding-right: 0; }
.ladder .name { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; display: block; }
.ladder .step { font-family: var(--mono); font-size: 0.78rem; color: var(--signal-text); display: block; margin-bottom: 6px; }
.ladder .price { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; white-space: nowrap; }
.ladder .price small { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--mute-text); white-space: normal; margin-top: 6px; line-height: 1.45; }
.ladder td:last-child { text-align: right; padding-right: 0; width: 16%; min-width: 11rem; }
.ladder ul { margin: 0; padding-left: 1.1em; font-size: 1rem; }
.ladder li { margin-bottom: 4px; }
.ladder li::marker { color: var(--signal); }
.ladder .time { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.strike { text-decoration: line-through; text-decoration-color: var(--mute); color: var(--mute-text); font-size: 0.7em; margin-right: 6px; }

/* Two-column text block */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.split > :first-child h2 { margin-bottom: 0; }

/* Definitions (methodology) */
.defs { margin: 0 0 1.5em; }
.defs div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.defs dt { font-family: var(--mono); font-size: 0.875rem; padding-top: 3px; }
.defs dd { margin: 0; }

.data { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.data thead th { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--mute-text); border-bottom: 1.5px solid var(--fg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.formula { font-family: var(--mono); font-size: 0.95rem; background: var(--sheet); border-left: 3px solid var(--signal); padding: 14px 18px; margin: 0 0 1.2em; overflow-x: auto; }

.callout { border: 1.5px solid var(--fg); padding: 22px 24px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }

/* Page header */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 14em; }
.meta-line { font-family: var(--mono); font-size: 0.8125rem; color: var(--mute-text); }

/* Doc layout with side index */
.doc { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 96px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 0.95rem; padding-top: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--fg); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 9px 0; text-decoration: none; }
.toc a:hover { color: var(--signal-text); }
.doc section { scroll-margin-top: 24px; }
.doc section + section { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 8px; }

/* FAQ */
.faq { border-top: 1.5px solid var(--fg); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--mute); }
.faq details[open] summary::after { background: var(--signal); border-color: var(--signal); }
.faq .answer { padding: 0 0 18px; max-width: 42rem; }

/* Facts */
.facts { margin: 0; border-top: 1.5px solid var(--fg); max-width: 54rem; }
.facts div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.875rem; color: var(--mute-text); padding-top: 3px; }
.facts dd { margin: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); padding-bottom: 96px; }
form .field { margin-bottom: 22px; }
form label, form legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
form .hint { display: block; font-size: 0.9rem; color: var(--mute-text); margin: -2px 0 8px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: 1.0625rem/1.4 var(--sans); color: var(--fg); background: var(--sheet);
  border: 1.5px solid var(--mute); border-radius: 2px; padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 1px; border-color: var(--fg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--signal-text); flex: none; }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: 0.95rem; color: var(--mute-text); margin-top: 16px; }
.aside-box { border-top: 1.5px solid var(--fg); padding-top: 18px; }
.aside-box ol { padding-left: 1.2em; }
.aside-box li { margin-bottom: 10px; }
.aside-box li::marker { color: var(--signal-text); font-family: var(--mono); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .sheet::before, .cta-band .sheet::after { background: #EE5A33; }
.cta-band h2 { max-width: 16em; }
.cta-band p { max-width: 36em; color: #D8D2C6; }
.cta-band .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.cta-band .btn:hover { background: #fff; color: var(--ink); }
.cta-band .btn.ghost { background: transparent; color: var(--on-ink); border-color: #8F8A80; }
.cta-band .btn.ghost:hover { color: #fff; border-color: #fff; }
.cta-band a:not(.btn) { color: var(--on-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* 404 */
.notfound { min-height: 56vh; display: grid; align-content: center; padding: 72px 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .stat-grid, .split, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --margin-rule: 22px; }
  .sheet::before { left: 3px; }
  .sheet::after { left: 7px; }
  body { font-size: 1.0625rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--fg); color: var(--fg); font: 700 0.95rem/1 var(--sans); padding: 10px 14px; border-radius: 2px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--bg); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .site-header .wrap { position: relative; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
  .fixes { grid-template-columns: minmax(0, 1fr); }
  .ladder thead { display: none; }
  .ladder, .ladder tbody, .ladder tr, .ladder th, .ladder td { display: block; width: 100% !important; }
  .ladder tr { border-bottom: 1px solid var(--rule); padding: 18px 0; }
  .ladder th, .ladder td { border: 0; padding: 4px 0; text-align: left !important; }
  .ladder .time::before { content: "Timeline: "; color: var(--mute-text); }
  .ladder .price { margin-top: 8px; display: block; }
  .defs div, .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ledger { padding: 18px 16px 14px; }
  .dot { width: 14px; height: 14px; margin-right: 7px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid > :first-child { order: 2; }
  .ledger-top { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .ledger .dot.on { animation: ink-in 420ms ease-out both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  @keyframes ink-in { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

@media print {
  .site-header, .site-footer, .cta-band, .toc { display: none; }
  .sheet::before, .sheet::after { display: none; }
  .sheet { padding-left: 0; }
  body { background: #fff; color: #000; }
}

/* No-JS fallbacks and theme toggle */
.no-js .menu-toggle, .no-js .theme-toggle { display: none !important; }
.theme-toggle { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
:root[data-theme="dark"] .cta-band, .cta-band { border-top: 1px solid var(--rule); }
.example-tag { font-family: var(--mono); font-size: 0.75rem; color: var(--mute-text); border: 1px solid var(--rule); padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
.mark-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.monogram { width: 120px; height: 120px; flex: none; }
.about-grid { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .monogram { width: 88px; height: 88px; } }
.doc .prose section > h2:first-child { margin-top: 0.9em; }
.doc .prose section:first-child > h2:first-child { margin-top: 0; }
.doc .prose section:first-child { margin-top: 0; }
.ladder tbody tr:last-child > th, .ladder tbody tr:last-child > td { border-bottom: 0; }
@media (max-width: 760px) { .ladder tbody tr:last-child { border-bottom: 0; } }

/* ---- v1.1 additions (same tokens, no new colours) ---- */
.nav a { white-space: nowrap; }
.samples { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 28px 0 0; font-size: 1rem; }
.samples .example-tag { margin-left: 4px; }
.samples-box { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 24px; font-size: 1rem; line-height: 1.9; }
.samples-box .label { margin-bottom: 4px; }
.cta-alt { margin: 18px 0 0; font-size: 1rem; }
.site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

/* Who this is for / not for */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1.5px solid var(--fg); }
.fit > div { padding-top: 20px; }
.fit h3 { margin-bottom: 0.5em; }
.fit ul { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.fit li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); }
.fit li:first-child { border-top: 0; }
.fit li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.fit ul.not li::before { background: transparent; border: 1.5px solid var(--mute); }

/* Free tool */
.beta-tag { display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 0.75rem; color: var(--signal-text); border: 1px solid var(--signal-text); padding: 1px 8px; border-radius: 2px; vertical-align: 1px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 80px); padding-bottom: 96px; align-items: start; }
.tool-row { display: flex; gap: 10px; }
.tool-row input { flex: 1 1 auto; min-width: 0; }
.tool-row .btn { flex: none; }
.tool-status:not(:empty) { margin: 4px 0 20px; padding: 16px 18px; border-left: 3px solid var(--signal); background: var(--sheet); font-size: 1rem; }
.tool-status p { margin: 0 0 0.6em; }
.tool-status p:last-child { margin-bottom: 0; }
.tool-status .actions { margin-top: 14px; }
.tool-results { border-top: 1.5px solid var(--fg); padding-top: 20px; }
.tool-results:focus { outline: none; }
.tool-results h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tool-results h3 { margin-top: 1.4em; }
.tool-results .data td, .tool-results .data th { font-size: 0.95rem; }
.tool-results .data tbody th { font-weight: 700; text-align: left; }
.verdict { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--mono); font-size: 0.85rem; }
.verdict::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid var(--mute); }
.verdict.ok::before { background: var(--signal); border-color: var(--signal); }
.verdict.warn::before { background: linear-gradient(90deg, var(--signal) 50%, transparent 50%); border-color: var(--signal); }
.tool-results pre { font-family: var(--mono); font-size: 0.8rem; background: var(--sheet); padding: 14px; overflow-x: auto; }
@media (max-width: 960px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .fit { grid-template-columns: minmax(0, 1fr); }
  .tool-row { flex-direction: column; }
  .tool-row .btn { justify-content: center; }
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
