/* The landing page (C82). Every colour is a var() from tokens.css, which is
   generated from the tool's app/globals.css; tints are color-mix() of those,
   so this file holds no colour of its own. scripts/site-check.mjs fails on a
   colour literal, a gradient, a blur, an animation or a face other than
   Archivo here. The handoff's teal, Bricolage/Manrope/Plex, pills, contour
   gradient, blurred nav, fade-up and ticker are DESIGN.md's banned list. */

/* The faces are served from site/fonts/ (SIL Open Font Licence, the licence
   files sit beside them), not from Google Fonts: a page that fetches its type
   from a third party hands that party every visitor's IP address, and the
   privacy notice says this site makes no third-party requests (C99). */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/archivo-narrow-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/archivo-narrow-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: var(--foreground);
  --muted-ink: color-mix(in srgb, var(--foreground) 72%, var(--background));
  --line-soft: color-mix(in srgb, var(--foreground) 14%, transparent);
  --line: color-mix(in srgb, var(--foreground) 28%, transparent);
  --tint: color-mix(in srgb, var(--accent) 9%, transparent);
  --on-dark: var(--background);
  --on-dark-muted: color-mix(in srgb, var(--background) 74%, var(--neutral-900));
  --on-dark-line: color-mix(in srgb, var(--background) 18%, transparent);
  --gutter: clamp(16px, 5vw, 56px);
  /* The content measure every band lines up on: a section's 1200px less its gutters. */
  --measure: calc(1200px - 2 * var(--gutter));
  --section: clamp(64px, 9vw, 120px);
  --ease: var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 15px/1.55 "Archivo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--background); box-shadow: var(--shadow-border); border-radius: var(--radius); z-index: 20; }
.skip:focus { top: 12px; }

/* ── type roles (DESIGN.md) ────────────────────────────────────────────── */
.eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.lead { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.5; color: var(--muted-ink); }
.label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-ink); }
.tbc {
  font-family: "Archivo Narrow", "Archivo", sans-serif; font-weight: 600; font-size: 0.82em;
  color: var(--interpreted); letter-spacing: 0;
}

/* ── buttons: primary / default (DESIGN.md Button) ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px;
  padding: 0 14px; border-radius: var(--radius); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  background: var(--panel); box-shadow: var(--shadow-border);
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow-border-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--background); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-quiet { background: transparent; box-shadow: none; }
.btn-quiet:hover { box-shadow: var(--shadow-border); }
.btn-lg { min-height: 44px; padding: 0 20px; font-size: 11.5px; }

/* ── nav: the handoff's blurred bar on the tool's surface (C101) ───────────
   Mark, 6 Oct 2026: "yes add the blurred header too". The page shows through
   the bar softly; where a browser cannot blur, the bar is solid surface, so
   its text never sits on a bare see-through strip. The only blur on the site. */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 12px var(--gutter); min-height: 54px;
  background: var(--panel); border-bottom: 1px solid var(--line-soft);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: color-mix(in srgb, var(--panel) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
/* The tool's own lockup (A331): the survey target of SurveyMark beside the
   STRATASCOPE wordmark, as Wordmark in app/components/PortalChrome.jsx draws
   it. One identity; the site never draws a mark of its own. */
.mark { width: 22px; height: 22px; flex: none; }
.mark-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.mark-ticks { stroke: var(--ink); stroke-width: 1.6; }
.mark-dot { fill: var(--ink); }
.wordmark { font-weight: 800; letter-spacing: 0.18em; white-space: nowrap; font-size: 14px; }
.brand-sm { font-size: 14px; }
.brand-sm .mark { width: 18px; height: 18px; }
.brand-sm .wordmark { font-size: 13px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--muted-ink); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── hero: flush on white; the product window is the only object ──────── */
/* The handoff's entrance (C101, Mark 6 Oct 2026: "bring back the nice
   features like motiotn fade etc"): each block rises 14px into place, one
   after another. CSS only, so nothing waits on a script; under reduced motion
   every block is simply there. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero > .eyebrow { animation: rise .6s .15s ease-out both; }
.hero > h1 { animation: rise .6s .3s ease-out both; }
.hero > .lead { animation: rise .6s .45s ease-out both; }
.hero > .hero-actions { animation: rise .6s .6s ease-out both; }
.hero > .fine { animation: rise .6s .7s ease-out both; }
.hero > .window { animation: rise .8s .8s ease-out both; }
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(48px, 8vw, 88px) var(--gutter) 0; border-bottom: 1px solid var(--line-soft);
}
.hero h1 {
  max-width: 900px; margin-bottom: 20px; font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.fine { font-size: 12px; color: var(--muted-ink); margin-bottom: 56px; }

.window {
  width: 100%; max-width: 1100px; text-align: left; background: var(--background);
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-dialog); overflow: hidden;
}
.window-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-300); }
.window-body { display: grid; grid-template-columns: 44px minmax(0, 196px) minmax(0, 1fr); height: 360px; }
.window-ruler {
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px 0;
  border-right: 1px solid var(--line-soft); background: var(--panel); text-align: center;
  font: 600 10px/1 "Archivo Narrow", sans-serif; color: var(--muted-ink);
}
.window-rail { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; background: var(--sidebar); border-right: 1px solid var(--line-soft); font-size: 13px; color: var(--muted-ink); }
.window-rail span { padding: 7px 10px; border-radius: var(--radius); }
.window-rail .on { background: var(--sidebar-accent); color: var(--ink); font-weight: 600; }
.window-main { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; min-width: 0; }
.window-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; }
.chip {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--tint); padding: 5px 10px; border-radius: var(--radius);
}

/* Framed empty state (DESIGN.md): a dashed frame and one sentence. */
.slot {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel);
  font: 600 12px/1.4 "Archivo Narrow", sans-serif; color: var(--interpreted);
}
.slot-sm { flex: none; height: 120px; margin-bottom: 20px; }
/* A filled slot shows its picture WHOLE (A330, Mark 6 Oct 2026: "show them
   whole"): the width of its box, the height from its own proportions, never
   cropped. Cover cut the register's Status column and left the logs and the
   chart as unreadable strips. */
img.slot {
  display: block; flex: none; width: 100%; height: auto; min-height: 0; padding: 0;
  border: 1px solid var(--line-soft); background: var(--background);
  object-fit: contain;
}
img.slot-sm { height: auto; }
/* One hole's log is tall and narrow (A330, Mark: "a clear single log"): on a
   wide screen it stands beside the card's words at a width where its values
   read, and on a narrow one it stacks above them, still whole. */
.card-side { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.card-side img.slot { margin-bottom: 0; }
@media (max-width: 700px) { .card-side { grid-template-columns: minmax(0, 1fr); } }

/* ── the verify line: never off the page (CLAUDE.md framing) ───────────── */
.verify { padding: 0 var(--gutter); background: var(--tint); border-bottom: 1px solid var(--line-soft); }
.verify p {
  max-width: var(--measure); margin: 0 auto; padding: 16px 0 16px 16px;
  font-size: 14px; color: var(--ink); box-shadow: inset 3px 0 0 var(--accent);
}
.verify strong { font-weight: 800; margin-right: 6px; }

/* ── standards: the one moving element (C101) ───────────────────────────
   Mark, 6 Oct 2026: "this doesnt run how th claude design did, it had
   motion". The handoff's ticker: one line, the list twice, moved -50% over
   40s and looped, so the copy takes the first one's place without a jump.
   Hover or keyboard focus holds it still; reduced motion shows the list once,
   wrapped and still. The app itself has no motion (DESIGN.md). */
.standards { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 14px 0; overflow: hidden; }
.standards:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ticker { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.standards:hover .ticker, .standards:focus-within .ticker { animation-play-state: paused; }
.standards ul {
  display: flex; flex-wrap: nowrap; gap: 8px 28px; padding-right: 28px; white-space: nowrap;
  font: 400 13px/1.4 "Archivo Narrow", sans-serif; color: var(--muted-ink);
}
.standards li span:first-child { font-weight: 600; color: var(--ink); margin-right: 4px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── sections ──────────────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: var(--section) var(--gutter); }
.intro { max-width: 620px; margin-bottom: 48px; }
.intro h2, .section-split h2, .band h2, .contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 14px; }
.intro-centre { text-align: center; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
/* Three across on a desktop. The two cards with pictures take two columns,
   so the logs and the chart are wide enough to read (A330); the last card
   takes the whole row rather than standing beside an empty cell. */
@media (min-width: 1040px) { .card-span { grid-column: span 2; } .card-full { grid-column: 1 / -1; } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 960px; margin: 0 auto; align-items: stretch; }

.card { background: var(--background); border-radius: var(--radius); box-shadow: var(--shadow-border); padding: 28px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted-ink); }
.card-wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px; align-items: center; padding: 36px; border-top: 2px solid var(--accent);
}
.card-wide h3 { font-size: 22px; }
.checks { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius); padding: 8px 14px; font: 400 13px/1.4 "Archivo Narrow", sans-serif; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line-soft); }
.checks li:last-child { border-bottom: 0; }
.checks .query { box-shadow: inset 3px 0 0 var(--interpreted); }
.checks .query span:last-child { color: var(--interpreted); font-weight: 600; }
.checks .fault { box-shadow: inset 3px 0 0 var(--danger); }
.checks .fault span:last-child { color: var(--danger); font-weight: 600; }
.checks .pass { box-shadow: inset 3px 0 0 var(--accent-deep); }
.checks .pass span:last-child { color: var(--accent-deep); font-weight: 600; }

.card-dark { background: var(--neutral-900); color: var(--on-dark); }
.card-dark p { color: var(--on-dark-muted); }
.bars { height: 120px; margin-bottom: 20px; display: flex; align-items: flex-end; gap: 10px; padding: 0 6px; }
.bars span { flex: 1; height: 70%; background: var(--neutral-700); }
.bars span:nth-child(3) { height: 55%; }
.bars span:nth-child(4) { height: 100%; }
.bars .hi { height: 90%; background: var(--accent); }
.bars .hi2 { height: 80%; background: var(--accent-300); }
.card-tint { background: var(--panel); }

/* ── how it works: the report's dark fill ──────────────────────────────── */
.band { background: var(--neutral-900); color: var(--on-dark); padding: var(--section) var(--gutter); }
.band-inner { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: start; }
.band .eyebrow { color: var(--accent-300); }
.band .lead { color: var(--on-dark-muted); max-width: 460px; }
.band .tbc { color: var(--accent-300); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--on-dark-line); }
.steps li:last-child { border-bottom: 1px solid var(--on-dark-line); }
.steps .num { font: 600 13px/1 "Archivo Narrow", sans-serif; color: var(--accent-300); padding-top: 5px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--on-dark-muted); }

/* ── contractor and client: the handoff's pricing cards, without prices ── */
.plan { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .sub { font-size: 14px; }
.plan ul { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan ul li { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.plan-dark { background: var(--neutral-900); color: var(--on-dark); }
.plan-dark .sub { color: var(--on-dark-muted); }
.plan-dark ul li { border-bottom-color: var(--on-dark-line); }

/* ── FAQ: native <details name>, one open at a time, no script ─────────── */
.section-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: start; padding-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
  padding: 18px 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 20px 0; color: var(--muted-ink); }

/* ── contact ───────────────────────────────────────────────────────────── */
#contact { padding-top: 0; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-top: 2px solid var(--accent); }
.contact-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ── footer: Arup's shape (C102, Mark 6 Oct 2026: "i like the arup style
   footer") — the brand and one line about it, the site's sections, the legal
   links, the copyright. The company registration details live on legal.html.
   site-check fails when one page's footer differs from index.html's ─────── */
.foot {
  padding: 40px var(--gutter) 28px; border-top: 1px solid var(--line-soft); background: var(--panel);
  font-size: 13px; color: var(--muted-ink);
}
.foot-inner { max-width: var(--measure); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 24px 40px; align-items: start; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-about { max-width: 42ch; line-height: 1.55; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-col { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
.foot-links a { color: var(--ink); display: inline-block; padding: 4px 0; }
.foot-copy { padding-top: 16px; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }

/* The registration details on legal.html (C102): label beside value. */
.reg { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0 0 40px; }
.reg dt { font-weight: 600; color: var(--ink); }
.reg dd { margin: 0; overflow-wrap: anywhere; }
.policy-list { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }

/* ── legal pages (C99): one reading column on the same sheet ────────────── */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal .meta { font: 600 13px/1.4 "Archivo Narrow", sans-serif; color: var(--muted-ink); margin-bottom: 20px; }
.legal .lead { margin-bottom: 24px; }
.draft {
  margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel);
  box-shadow: inset 3px 0 0 var(--interpreted); font-size: 14px; color: var(--ink);
}
.draft strong { font-weight: 800; margin-right: 4px; }
.toc { margin: 0 0 40px; padding: 16px 20px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-border); }
.toc ol { list-style: decimal; padding-left: 20px; columns: 2 220px; column-gap: 32px; font-size: 14px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.legal section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line-soft); scroll-margin-top: 72px; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 12px; }
.legal h2 .n { color: var(--accent-deep); margin-right: 8px; font-variant-numeric: tabular-nums; }
.legal h3 { font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + .table-wrap, .legal .table-wrap + p { margin-top: 12px; }
.legal ul.list { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal ul.list ::marker { color: var(--accent); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .verify-line { margin-bottom: 28px; padding: 14px 16px; border-radius: var(--radius); background: var(--tint); box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); }
.legal .verify-line strong { font-weight: 800; }

/* Tables: hairlines inside, a surface header, zebra (DESIGN.md Table). */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-border); }
.legal table { width: 100%; border-collapse: collapse; font: 400 13.5px/1.45 "Archivo Narrow", "Archivo", sans-serif; }
.legal caption { text-align: left; padding: 10px 12px; font: 600 10.5px/1.3 "Archivo", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-ink); background: var(--panel); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.legal thead th { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.legal tbody tr:nth-child(even) { background: color-mix(in srgb, var(--foreground) 4%, transparent); }
.legal td code, .legal p code { font: 600 0.95em/1 ui-monospace, monospace; }

/* The 404: the framed empty state, as on every screen of the tool. */
.empty { margin: 24px 0; padding: 28px; border: 1px dashed var(--line-soft); border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty .glyph { width: 28px; height: 28px; }
.empty .glyph path { fill: none; stroke: var(--ink); stroke-width: 1.5; }

/* ── phone width (AGENTS.md A237: 760px and below) ─────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .window-body { grid-template-columns: 36px minmax(0, 1fr); height: 300px; }
  .window-rail { display: none; }
  .window-main { padding: 14px; }
  .faq details p { padding-right: 0; }
  /* Tables stack at phone width: each row a block, each value under its
     column's name (data-label), so nothing breaks mid-word or scrolls. */
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal table, .legal caption, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tbody tr { padding: 6px 0; border-top: 1px solid var(--line-soft); }
  .legal td { border-top: 0; padding: 4px 12px; overflow-wrap: break-word; }
  .legal td::before { content: attr(data-label); display: block; font: 600 10.5px/1.4 "Archivo", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-ink); }
  .legal td:first-child { font-weight: 600; }
}

/* Reduced motion: nothing moves, and everything is in its final place. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition-duration: 0ms; }
  .btn:hover { transform: none; }
  /* Each entrance selector by name: ".hero > *" lost to their higher specificity. */
  .hero > .eyebrow, .hero > h1, .hero > .lead, .hero > .hero-actions, .hero > .fine, .hero > .window { animation: none; }
  .standards { padding: 14px var(--gutter); }
  .ticker { animation: none; width: auto; display: block; }
  .standards ul { max-width: var(--measure); margin: 0 auto; flex-wrap: wrap; justify-content: center; white-space: normal; padding-right: 0; }
  .standards ul[aria-hidden="true"] { display: none; }
}
