/* restyle site. Direction: Redline (design/BRIEF.md section 5, tokens in design/directions/redline.json).
   The magenta "finding" colour marks findings only: outlines, chips, large counts. Never buttons,
   never links, never small body text. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap to the web fonts does not shift layout. */
@font-face {
  font-family: "Cabinet fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"), local("Liberation Sans Bold");
  font-weight: 700 800;
  /* Measured: Cabinet Grotesk 800 sets 79% as wide as Arial Bold; ascent 0.87em, descent 0.28em. */
  size-adjust: 79%;
  ascent-override: 110%;
  descent-override: 35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: oklch(0.965 0.006 250);
  --surface: oklch(0.988 0.004 250);
  --text: oklch(0.25 0.03 260);
  --muted: oklch(0.48 0.025 255);
  --accent: oklch(0.30 0.045 258);
  --accent-hover: oklch(0.38 0.055 258);
  --accent-text: oklch(0.975 0.005 250);
  --border: oklch(0.86 0.012 250);
  --border-strong: oklch(0.58 0.02 255);
  --finding: oklch(0.56 0.215 358);
  --finding-text: oklch(0.985 0.004 250);
  --finding-wash: oklch(0.56 0.215 358 / 0.10);
  --tint: oklch(0.935 0.01 250);

  --font-display: "Cabinet Grotesk", "Cabinet fallback", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson fallback", Arial, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* type scale (px): 13 15 17 21 28 40 60 84 */
  --t-13: 0.8125rem;
  --t-15: 0.9375rem;
  --t-17: 1.0625rem;
  --t-21: 1.3125rem;
  --t-28: 1.75rem;
  --t-40: 2.5rem;
  --t-60: 3.75rem;
  --t-84: 5.25rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 14px;
  --shadow-sm: 0 1px 0 oklch(0.25 0.03 260 / 0.06), 0 1px 3px oklch(0.25 0.03 260 / 0.08);
  --shadow-md: 0 2px 4px oklch(0.25 0.03 260 / 0.06), 0 14px 32px -10px oklch(0.25 0.03 260 / 0.22);

  --d-1: 120ms; --d-2: 200ms; --d-3: 320ms; --d-4: 700ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --gutter: 24px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--t-17);
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.04; margin: 0; font-weight: 800; }
h1, h2 { letter-spacing: -0.02em; }
h2 { font-size: var(--t-40); font-weight: 800; }
h3 { font-size: var(--t-21); font-weight: 700; line-height: 1.2; }
p, ul, ol, dl, figure, pre, blockquote { margin: 0; }
code, pre, kbd, samp { font-family: var(--font-mono); font-size: 0.94em; }
:not(pre) > code { background: var(--tint); border-radius: var(--r-sm); padding: 0.08em 0.32em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--d-1) var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 10px 16px; border-radius: var(--r-md); }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 20px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  font: 700 var(--t-17)/1.1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease), border-color var(--d-1) var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: var(--t-15); }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-row { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 var(--t-28)/1 var(--font-display); letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand .mark { color: var(--accent); flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s-1); list-style: none; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-size: var(--t-15); border-radius: var(--r-md); }
.site-nav a:hover { background: var(--tint); color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 0 var(--s-4); padding-top: var(--s-2); }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 0 0 -12px; }
  .site-nav ul { flex-wrap: wrap; gap: 0; }
  .site-nav a { padding: 0 10px; }
}

/* ---- sections ---- */
.section { padding: var(--s-9) 0; border-top: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head p { margin-top: var(--s-4); font-size: var(--t-21); line-height: 1.45; color: var(--text); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); font-size: var(--t-28); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s-2); }
.prose blockquote { background: var(--tint); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); color: var(--text); }

/* ---- hero ---- */
.hero { padding: var(--s-8) 0 var(--s-8); }
.hero-grid { align-items: center; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); align-items: start; }
.hero-copy { grid-column: 1 / span 5; }
.hero-figure { grid-column: 6 / span 7; }
.hero h1 { font-size: clamp(var(--t-40), 1.2rem + 3.6vw, var(--t-60)); line-height: 1.02; }
.hero-sub { margin-top: var(--s-5); font-size: var(--t-21); line-height: 1.45; max-width: 34ch; }

.score-form { margin-top: var(--s-6); }
.score-form label { display: block; font-weight: 700; margin-bottom: var(--s-2); }
.field-row { display: flex; gap: var(--s-2); }
.field-row input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 12px 14px;
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
}
.field-row input::placeholder { color: var(--muted); opacity: 1; }
.field-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.field-row .btn { flex: none; min-height: 52px; }
.form-terms { margin-top: var(--s-3); font-size: var(--t-15); color: var(--muted); }
.form-error { margin-top: var(--s-2); font-size: var(--t-15); font-weight: 700; color: var(--text); }
.form-error:empty { display: none; }

.audit-frame { position: relative; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; }
.audit-frame img { width: 100%; aspect-ratio: 1440 / 900; }
.audit-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.audit-overlay .halo { fill: none; stroke: var(--surface); stroke-width: 9; opacity: 0.9; }
.audit-overlay .line { fill: none; stroke: var(--finding); stroke-width: 4.5; }
.audit-overlay .wash { fill: var(--finding-wash); }
.pin {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 7px 3px 4px; border-radius: var(--r-sm);
  background: var(--finding); color: var(--finding-text);
  font: 400 var(--t-13)/1.2 var(--font-mono); white-space: nowrap;
  box-shadow: 0 0 0 2px var(--surface);
}
.pin b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 3px; background: var(--finding-text); color: var(--finding); font-weight: 400; }
.figure-bar { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-2); font-size: var(--t-15); color: var(--muted); }
.tell-counter { display: flex; align-items: baseline; gap: 6px; }
.tell-counter strong { font: 800 var(--t-28)/1 var(--font-display); color: var(--finding); }
.tell-counter span { font-size: var(--t-15); color: var(--text); }
.hero-caption { margin-top: var(--s-3); font-size: var(--t-15); color: var(--muted); }
.hero-caption code { font-size: 0.92em; }

/* Findings list under the hero screenshot */
.findings { list-style: none; padding: var(--s-6) 0 0; margin-top: var(--s-7); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); }
@media (max-width: 1000px) { .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-6); } }
.finding { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-content: start; }
.finding-n { grid-row: span 3; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--finding); color: var(--finding-text); font: 400 var(--t-15)/1 var(--font-mono); }
.finding-rule { font: 400 var(--t-15)/1.35 var(--font-mono); color: var(--text); word-break: break-word; }
.finding-value { font-size: var(--t-15); color: var(--text); }
.finding-value code { font-size: 0.95em; }
.finding-msg { font-size: var(--t-15); color: var(--muted); }
.finding-crop { grid-column: 2; margin-top: var(--s-2); border-radius: var(--r-md); border: 2px solid var(--finding); max-width: 100%; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-figure { grid-column: 1; }
  .hero-sub { max-width: 46ch; }
}
@media (max-width: 720px) {
  .pin .pin-label { display: none; }
  .pin { padding: 2px; }
  .audit-overlay .line { stroke-width: 8; }
  .audit-overlay .halo { stroke-width: 15; }
  .findings { grid-template-columns: minmax(0, 1fr); }
  .tell-counter strong { font-size: var(--t-21); }
}

/* Draw-in, once, on load. Reduced motion shows the final state. */
@media (prefers-reduced-motion: no-preference) {
  .audit-overlay .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--d-4) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .audit-overlay .halo, .audit-overlay .wash { opacity: 0; animation: appear var(--d-2) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
  .pin { opacity: 0; transform: translateY(4px); animation: chip var(--d-2) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 900ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 0.9; } }
@keyframes chip { to { opacity: 1; transform: translateY(0); } }

/* ---- how it works ---- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-7); counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5) var(--gutter); align-items: start; }
.step-copy h3 { font-size: var(--t-28); display: flex; gap: var(--s-3); align-items: baseline; }
.step-copy h3 .step-n { font: 400 var(--t-17)/1 var(--font-mono); color: var(--muted); }
.step-copy p { margin-top: var(--s-3); max-width: 46ch; }
.step-copy .cmd { margin-top: var(--s-3); font-size: var(--t-15); color: var(--muted); }
.artefact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); min-width: 0; }
.artefact-label { font-size: var(--t-13); color: var(--muted); margin-bottom: var(--s-3); }
.artefact table { width: 100%; border-collapse: collapse; font-size: var(--t-15); }
.artefact th, .artefact td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); }
.artefact th { font-weight: 700; }
.artefact pre { font-size: var(--t-15); line-height: 1.5; }
.del { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--finding); text-decoration-thickness: 2px; }
.crop-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4) var(--s-5); }
.crop-row figure { max-width: 100%; }
.crop-row figure img { border-radius: var(--r-md); border: 2px solid var(--finding); width: auto; max-width: 100%; max-height: 150px; background: var(--tint); }
.crop-row figcaption { margin-top: 6px; font: 400 var(--t-13)/1.35 var(--font-mono); word-break: break-word; }
@media (max-width: 860px) {
  .step { grid-template-columns: minmax(0, 1fr); }
}


/* ---- slopbench contact sheet ---- */
.sheet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); list-style: none; padding: 0; }
.sheet li { position: relative; }
.sheet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--tint); }
.sheet li.hit img { outline: 2px solid var(--finding); outline-offset: 1px; }
.sheet .sheet-id { display: block; margin-top: 4px; font: 400 var(--t-13)/1.3 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tally { margin-top: var(--s-6); display: grid; gap: var(--s-3); max-width: 760px; }
.tally-row { display: grid; grid-template-columns: minmax(0, 15rem) 1fr auto; gap: var(--s-4); align-items: center; }
.tally-bar { height: 10px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.tally-bar span { display: block; height: 100%; background: var(--finding); border-radius: 999px; }
.tally-count { font: 400 var(--t-17)/1 var(--font-mono); min-width: 4.5ch; text-align: right; }
@media (max-width: 600px) {
  .tally-row { grid-template-columns: 1fr auto; }
  .tally-bar { grid-column: 1 / -1; grid-row: 2; }
}
.provisional { margin-top: var(--s-5); padding: var(--s-3) var(--s-4); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); font-size: var(--t-15); max-width: 760px; }
.pending { font-family: var(--font-mono); font-size: 0.9em; color: var(--muted); background: var(--tint); border-radius: var(--r-sm); padding: 0.05em 0.4em; }
.link-row { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---- before / after ---- */
.ba-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); }
.ba-slot { border: 2px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--s-6); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface); }
.ba-slot h3 { font-size: var(--t-21); }
.ba-slot p { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-15); }
.ba-list { display: grid; gap: var(--s-6); list-style: none; padding: 0; }
.ba-item { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.ba-item img { border-radius: var(--r-lg); border: 1px solid var(--border); }
@media (max-width: 700px) { .ba-empty, .ba-item { grid-template-columns: minmax(0, 1fr); } }

/* ---- tables (comparison, pricing details) ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table-scroll:focus-visible { outline-offset: 2px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--t-15); }
.compare caption { text-align: left; padding: var(--s-4) var(--s-4) 0; color: var(--muted); font-size: var(--t-13); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px var(--s-4); border-bottom: 1px solid var(--border); }
.compare thead th { font: 700 var(--t-17)/1.2 var(--font-display); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .us { background: var(--tint); }
.prose .table-scroll table { width: 100%; border-collapse: collapse; font-size: var(--t-15); }
.prose .table-scroll th, .prose .table-scroll td { text-align: left; padding: 10px var(--s-4); border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---- pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); list-style: none; padding: 0; }
.tier { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.tier h3 { font-size: var(--t-21); }
.tier .price { margin-top: var(--s-3); font: 800 var(--t-40)/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.tier .price small { font: 400 var(--t-15)/1 var(--font-text); letter-spacing: 0; color: var(--muted); }
.tier .tier-lede { margin-top: var(--s-3); font-size: var(--t-15); }
.tier ul { margin-top: var(--s-4); padding-left: 1.1em; font-size: var(--t-15); display: grid; gap: var(--s-2); }
.tier .tier-cta { margin-top: auto; padding-top: var(--s-5); }
.tier .tier-cta .btn { width: 100%; }
.tier .tier-next { margin-top: var(--s-2); font-size: var(--t-13); color: var(--muted); }
.tier-featured { border: 2px solid var(--accent); }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* ---- developers ---- */
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.dev-grid > div > * + * { margin-top: var(--s-4); }
.snippet { border-radius: var(--r-lg); background: var(--accent); color: var(--accent-text); overflow: hidden; }
.snippet-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 6px 6px 6px var(--s-4); border-bottom: 1px solid oklch(0.45 0.04 258); }
.snippet-label { min-width: 0; font-size: var(--t-13); color: oklch(0.86 0.015 250); }
.copy-btn { flex: none; white-space: nowrap; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid oklch(0.6 0.03 255); background: transparent; color: var(--accent-text); font: 700 var(--t-15)/1 var(--font-text); cursor: pointer; transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease); }
.copy-btn:hover { background: oklch(0.38 0.05 258); border-color: var(--accent-text); }
.copy-btn:focus-visible { outline-color: var(--accent-text); }
.snippet pre { padding: var(--s-4); overflow-x: auto; font-size: var(--t-15); line-height: 1.6; }
.terminal { background: var(--text); color: oklch(0.92 0.01 250); border-radius: var(--r-lg); padding: var(--s-4); font: 400 var(--t-13)/1.6 var(--font-mono); overflow-x: auto; white-space: pre; }
.terminal .t-hi { color: oklch(0.82 0.11 358); }
.terminal .t-dim { color: oklch(0.72 0.02 255); }
pre.code { background: var(--accent); color: var(--accent-text); border-radius: var(--r-md); padding: var(--s-4); overflow-x: auto; font-size: var(--t-15); line-height: 1.6; }
.snippet pre.code { border-radius: 0; }
@media (max-width: 860px) { .dev-grid { grid-template-columns: minmax(0, 1fr); } }
.dev-grid > div, .step > *, .hero-grid > *, .two-col > * { min-width: 0; }

/* ---- FAQ ---- */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) 0; cursor: pointer; list-style: none; font: 700 var(--t-21)/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 var(--t-28)/1 var(--font-mono); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 var(--s-5); max-width: 68ch; }
.faq .answer > * + * { margin-top: var(--s-3); }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-2) var(--ease), content-visibility var(--d-2) allow-discrete; }
  .faq details[open]::details-content { grid-template-rows: 1fr; }
  .faq details::details-content > * { overflow: hidden; }
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: var(--s-8) 0 var(--s-7); background: var(--surface); margin-top: var(--s-9); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--gutter); }
.footer-brand p { margin-top: var(--s-3); max-width: 40ch; color: var(--muted); font-size: var(--t-15); }
.footer-links { list-style: none; padding: 0; columns: 2; column-gap: var(--gutter); }
.footer-links li { break-inside: avoid; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer-note { grid-column: 1 / -1; font-size: var(--t-13); color: var(--muted); border-top: 1px solid var(--border); padding-top: var(--s-5); }
.todo-tag { font-size: var(--t-13); color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- inner pages ---- */
.page-head { padding: var(--s-8) 0 var(--s-6); }
.page-head h1 { font-size: clamp(var(--t-40), 1.6rem + 2.6vw, var(--t-60)); max-width: 20ch; }
.page-head p { margin-top: var(--s-4); font-size: var(--t-21); line-height: 1.45; max-width: 60ch; }
.page-body { padding-bottom: var(--s-8); }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-6) var(--gutter); align-items: start; }
.toc { position: sticky; top: var(--s-5); font-size: var(--t-15); }
.toc ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); }
.toc-title { font-weight: 700; margin-bottom: var(--s-2); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.callout > * + * { margin-top: var(--s-3); }
.owner-todo { border: 2px dashed var(--border-strong); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--t-15); background: var(--surface); }
.contact-email { font: 800 var(--t-28)/1.2 var(--font-display); word-break: break-all; }
.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); }
.dl-grid dt { font-weight: 700; }
.dl-grid dd { margin: 0; }
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dd { margin-bottom: var(--s-3); } }

/* ---- score results ---- */
.score-page .score-form { margin-top: 0; max-width: 720px; }
.result { margin-top: var(--s-7); }
.result[hidden], .state[hidden] { display: none; }
.state { margin-top: var(--s-6); max-width: 760px; }
.state > * + * { margin-top: var(--s-4); }
.state h2 { font-size: var(--t-28); }
.loading-line { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-21); }
.loading-line::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--finding); flex: none; }
@media (prefers-reduced-motion: no-preference) { .loading-line::before { animation: pulse 1s ease-in-out infinite alternate; } }
@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }
.result-head { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-6); align-items: end; }
.big-count { font: 800 var(--t-84)/0.9 var(--font-display); color: var(--finding); letter-spacing: -0.03em; }
.result-url { font: 400 var(--t-15)/1.4 var(--font-mono); color: var(--muted); word-break: break-all; }
.stat-grid { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); }
.stat dt { font-size: var(--t-15); color: var(--muted); }
.stat dd { margin: var(--s-1) 0 0; font: 800 var(--t-28)/1.1 var(--font-display); }
.stat dd small { display: block; font: 400 var(--t-13)/1.4 var(--font-text); color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.worst { margin-top: var(--s-7); }
.worst h2 { font-size: var(--t-28); }
.worst-list { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; gap: var(--s-5); }
.worst-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4) var(--gutter); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.worst-item img { border-radius: var(--r-md); border: 2px solid var(--finding); width: 100%; }
.worst-item .no-crop { border: 2px dashed var(--border-strong); border-radius: var(--r-md); padding: var(--s-4); color: var(--muted); font-size: var(--t-15); }
.worst-item h3 { font: 400 var(--t-17)/1.35 var(--font-mono); word-break: break-word; }
.sev { display: inline-block; font: 700 var(--t-13)/1 var(--font-text); padding: 4px 8px; border-radius: var(--r-sm); background: var(--tint); color: var(--text); margin-bottom: var(--s-2); }
.sev-high { background: var(--finding); color: var(--finding-text); }
.worst-item dl { margin-top: var(--s-3); display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--s-3); font-size: var(--t-15); }
.worst-item dt { color: var(--muted); }
.worst-item dd { margin: 0; word-break: break-word; }
@media (max-width: 760px) { .worst-item { grid-template-columns: minmax(0, 1fr); } }
.upsell { margin-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-6); align-items: center; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
.upsell h2 { font-size: var(--t-28); }
.upsell p { margin-top: var(--s-2); }
@media (max-width: 760px) { .upsell { grid-template-columns: minmax(0, 1fr); } }
.axe-list { margin-top: var(--s-3); padding-left: 1.2em; font-size: var(--t-15); }
.note-box { margin-top: var(--s-5); font-size: var(--t-15); color: var(--muted); }

/* ---- gallery ---- */
.gallery-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.gallery-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.gallery-card a { color: var(--text); text-decoration: none; display: block; }
.gallery-card .gc-body { padding: var(--s-4); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.empty-state { border: 2px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--s-6); max-width: 760px; background: var(--surface); }
.empty-state > * + * { margin-top: var(--s-3); }

/* ---- 404 ---- */
.notfound .big-count { font-size: clamp(var(--t-60), 10vw, 9rem); }

/* ---- small screens: comparison table as stacked rows, lighter brief table, shorter nav ---- */
@media (max-width: 900px) {
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { display: block; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; padding: 4px 0; border: 0; width: auto; }
  .compare tbody th { font: 700 var(--t-17)/1.3 var(--font-display); padding-bottom: var(--s-2); width: auto; }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--t-13); color: var(--muted); font-weight: 700; }
  .compare .us { background: none; }
  .compare td.us { background: var(--tint); border-radius: var(--r-md); padding: var(--s-2) var(--s-3); margin-top: var(--s-2); }
}
@media (max-width: 520px) {
  .brief-table th:nth-child(2), .brief-table td:nth-child(2) { display: none; }
  .nav-gh { display: none; }
}
pre.code.wrap { white-space: pre-wrap; }

/* Cards sit on the page by tone and a soft shadow, not a 1px outline. */
.tier, .artefact, .stat, .worst-item, .gallery-card { border: 0; box-shadow: var(--shadow-sm); }
.tier-featured { border: 2px solid var(--accent); }


/* ---- rhythm: three section weights, all on the spacing scale ----
   tight 64 (short supporting blocks), default 96, feature 128 (the slopbench evidence, pricing). */
.section-tight { padding: var(--s-8) 0; }
.section-feature { padding: var(--s-10) 0; }
.section-head { margin-bottom: var(--s-7); }
.section-tight .section-head { margin-bottom: var(--s-5); }
@media (max-width: 700px) {
  .section { padding: var(--s-8) 0; }
  .section-feature { padding: var(--s-9) 0; }
  .section-tight { padding: var(--s-7) 0; }
  .section-head { margin-bottom: var(--s-6); }
}

/* ---- score form stacks on phones ---- */
@media (max-width: 520px) {
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
}

/* ---- code: never silently clipped. Edge shadows appear only while there is more to scroll. ---- */
.snippet pre, pre.code, .terminal {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.62 0.03 255) transparent;
}
.snippet pre, pre.code {
  background:
    linear-gradient(to right, var(--accent) 40%, oklch(0.30 0.045 258 / 0)) 0 0 / 36px 100% no-repeat local,
    linear-gradient(to left, var(--accent) 40%, oklch(0.30 0.045 258 / 0)) 100% 0 / 36px 100% no-repeat local,
    linear-gradient(to right, oklch(0.98 0.005 250 / 0.28), oklch(0.98 0.005 250 / 0)) 0 0 / 14px 100% no-repeat scroll,
    linear-gradient(to left, oklch(0.98 0.005 250 / 0.28), oklch(0.98 0.005 250 / 0)) 100% 0 / 14px 100% no-repeat scroll,
    var(--accent);
}
.terminal {
  white-space: pre;
  background:
    linear-gradient(to right, var(--text) 40%, oklch(0.25 0.03 260 / 0)) 0 0 / 36px 100% no-repeat local,
    linear-gradient(to left, var(--text) 40%, oklch(0.25 0.03 260 / 0)) 100% 0 / 36px 100% no-repeat local,
    linear-gradient(to right, oklch(0.98 0.005 250 / 0.28), oklch(0.98 0.005 250 / 0)) 0 0 / 14px 100% no-repeat scroll,
    linear-gradient(to left, oklch(0.98 0.005 250 / 0.28), oklch(0.98 0.005 250 / 0)) 100% 0 / 14px 100% no-repeat scroll,
    var(--text);
}
@media (max-width: 520px) {
  .artefact { padding: var(--s-4); }
  .snippet pre, pre.code { font-size: var(--t-13); }
}

/* ---- what you can check ---- */
.check-list { max-width: 900px; }
.check-list > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s-2) var(--s-6); padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.check-list dt { font-weight: 700; }
.check-list dd { margin: 0; }
@media (max-width: 700px) { .check-list > div { grid-template-columns: minmax(0, 1fr); } }

.small { font-size: var(--t-15); }
.footer-plain { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ---- line breaking: balanced headings, no one-word last lines ---- */
h1, h2, h3, h4, .faq summary { text-wrap: balance; }
p, li, dd, figcaption, .finding-msg, .finding-value { text-wrap: pretty; }
.artefact pre.terminal { font-size: var(--t-13); }
.gate-table td:nth-child(n+2) { white-space: nowrap; }
.figure-bar { flex-wrap: wrap; }
.tell-counter { white-space: nowrap; }
@media (max-width: 520px) { .terminal { padding: var(--s-3); } }

/* ---- pricing extras and hire line ---- */
.launch-note { margin-top: var(--s-3); font-size: var(--t-15); color: var(--text); }
.hourly { margin-top: var(--s-6); font-size: var(--t-17); }
.hire { margin-top: var(--s-3); font-size: var(--t-17); }
.hire a { white-space: nowrap; }
.footer-hire { font-size: var(--t-15); color: var(--text); }

/* ---- run report card (featured) and gallery cards ---- */
.run-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: var(--s-6); }
.run-head h2, .run-head h3 { font-size: var(--t-28); line-height: 1.15; }
.run-why { margin-top: var(--s-3); font-weight: 700; }
.run-head .small { margin-top: var(--s-2); }
.run-pair { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); }
.run-pair figcaption { font-weight: 700; margin-bottom: var(--s-2); }
.run-shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.run-shots img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--tint); }
.run-stats { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); }
.run-stat { background: var(--bg); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.run-stat dt { font-size: var(--t-13); color: var(--muted); }
.run-stat dd { margin: 2px 0 0; font: 800 var(--t-21)/1.2 var(--font-display); white-space: nowrap; }
.run-stat dd small { display: block; font: 400 var(--t-13)/1.4 var(--font-text); color: var(--muted); white-space: normal; margin-top: 2px; }
.run-sub { margin-top: var(--s-7); font-size: var(--t-21); }
.run-findings { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); }
.run-finding { display: grid; gap: var(--s-3); align-content: start; }
.run-finding img { width: auto; max-width: 100%; max-height: 200px; border-radius: var(--r-md); border: 2px solid var(--finding); background: var(--tint); }
.run-rule { font-size: var(--t-15); }
.run-rule code { font-size: 0.95em; word-break: break-word; }
.run-msg { margin-top: var(--s-1); font-size: var(--t-15); color: var(--muted); }
.run-fix { margin-top: var(--s-1); font-size: var(--t-15); }
@media (max-width: 860px) {
  .run-pair, .run-findings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .run-card { padding: var(--s-4); }
  .run-head h2, .run-head h3 { font-size: var(--t-21); }
  .run-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-stat dd { white-space: normal; font-size: var(--t-17); }
}

.gallery-progress { font-size: var(--t-17); max-width: 70ch; }
.gallery-honesty { margin-top: var(--s-3); max-width: 70ch; color: var(--text); font-size: var(--t-15); }
.gallery-featured { margin-top: var(--s-7); }
.gallery-all { margin: var(--s-8) 0 var(--s-5); font-size: var(--t-28); }
.gc-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.gc-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gallery-card h3 { font-size: var(--t-21); }
.gc-stats { margin-top: var(--s-3); display: grid; gap: var(--s-1); font-size: var(--t-15); }
.gc-stats > div { display: flex; justify-content: space-between; gap: var(--s-3); }
.gc-stats dt { color: var(--muted); }
.gc-stats dd { margin: 0; text-align: right; }
.gc-worse { margin-top: var(--s-3); font-size: var(--t-15); }
.gallery-card .gc-body > p:last-child { margin-top: var(--s-3); }
.gallery-card a { display: inline; color: var(--accent); text-decoration: underline; }
