@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Registered so the score ring can animate its fill. */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --card: #fff;
  --panel: #fafaf8;
  --ink: #121417;
  --ink-hover: #2a2d31;
  --on-ink: #fff;
  --on-ink-muted: #b6bbc2;
  --muted: #50555c;
  --faint: #676c74;      /* 4.7:1 on --bg, the small-text minimum */
  --line: #e7e7e3;
  --line-soft: #eeeeea;
  --line-faint: #f2f2ee;
  --field: #d9d9d4;
  --pill-line: #e0e0db;
  --track: #ecece8;
  --code-bg: #f0f0ec;
  --hover: #ececea;
  --tile-hover: #c9c9c3;
  --ok: #15803d;
  --ok-bg: #e8f5ec;
  --ok-line: #cfe9d7;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --bad-line: #f6cdc8;
  --warn: #b54708;
  --warn-bg: #fdf3e7;
  --warn-line: #f5d9b8;
  --accent: #2456e6;
  --accent-hover: #1b45c4;
  --accent-ring: rgba(36, 86, 230, .18);
  --accent-bg: #edf1fd;
  --accent-line: #cdd8f8;
  --violet: #6d28d9;
  --violet-bg: #f1ebfd;
  --tint: #f3f5fb;
  --grid: rgba(18, 20, 23, .06);
  --idle-bg: #f4f4f1;
  --outside: #5b6068;
  --outside-bg: #f1f1ee;
  --outside-line: #dcdcd7;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --sheet-shadow: 0 -12px 40px rgba(0,0,0,.14);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: 48px;
}

@media (prefers-color-scheme: dark) {
  .finding.warn .finding-icon { background: #3a2410; }
  :root {
    --bg: #141517;
    --card: #1b1c1f;
    --panel: #18191c;
    --ink: #eceef0;
    --ink-hover: #d5d8dc;
    --on-ink: #121417;
    --on-ink-muted: #4d525a;
    --muted: #b4b9c0;
    --faint: #9a9fa7;
    --line: #2c2e33;
    --line-soft: #26282c;
    --line-faint: #212327;
    --field: #3a3d43;
    --pill-line: #34373d;
    --track: #2c2e33;
    --code-bg: #24262a;
    --hover: #2a2d31;
    --tile-hover: #4a4e55;
    --ok: #4ade80;
    --ok-bg: #12291a;
    --ok-line: #1f4a2c;
    --bad: #f87171;
    --bad-bg: #331615;
    --bad-line: #5a2320;
    --warn: #fb923c;
    --warn-bg: #33220f;
    --warn-line: #5c3a14;
    --accent: #6b93ff;
    --accent-hover: #86a8ff;
    --accent-ring: rgba(107, 147, 255, .28);
    --accent-bg: #1a2238;
    --accent-line: #2b3a63;
    --violet: #b794f6;
    --violet-bg: #251b3a;
    --tint: #17191e;
    --grid: rgba(236, 238, 240, .06);
    --idle-bg: #202226;
    --outside: #a3a8b0;
    --outside-bg: #1e2023;
    --outside-line: #34373d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --sheet-shadow: 0 -12px 40px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap; background: none; min-height: 40px;
  transition: background-color .15s, opacity .15s;
}
.btn-sm { padding: 8px 14px; min-height: 36px; }
.btn-lg { padding: 13px 22px; font-size: 15px; min-height: 48px; }
.btn-block { width: 100%; height: 52px; border-radius: 12px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-light { background: var(--on-ink); color: var(--ink); padding: 11px 18px; }
.btn-light:hover { background: var(--on-ink-muted); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(36, 86, 230, .25); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-line { border-color: var(--field); color: var(--ink); background: var(--card); }
.btn-line:hover { background: var(--panel); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { border: 0; background: none; padding: 6px 4px; min-height: 28px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- header / footer ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; padding: 6px 0; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font: 700 13px var(--mono);
}
.site-nav { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.site-nav a { text-decoration: none; padding: 8px 6px; border-radius: 6px; min-height: 36px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); background: var(--hover); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter) 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--faint);
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-footer a { color: var(--muted); padding: 6px 6px; min-height: 28px; display: inline-flex; align-items: center; border-radius: 6px; }
.site-footer a:hover { color: var(--ink); background: var(--hover); }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate;
  max-width: 1240px; margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px;
}
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(60% 55% at 78% 10%, var(--accent-ring), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pill {
  font: 500 12px var(--mono); color: var(--muted);
  padding: 5px 10px; border: 1px solid var(--pill-line); border-radius: 99px; background: var(--card);
}
.hero h1 {
  margin: 0; font-size: 56px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  max-width: 640px; text-wrap: balance;
}
.lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 560px; text-wrap: pretty; }

.check-form {
  display: flex; gap: 8px; width: 600px; max-width: 100%; padding: 6px; margin-top: 4px;
  background: var(--card); border: 1px solid var(--field); border-radius: 12px;
  box-shadow: var(--shadow);
}
.check-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow); }
.check-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; padding: 0 12px; cursor: text; }
.check-scheme { color: var(--faint); font: 400 14px var(--mono); }
.check-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 0 10px 6px; font-size: 16px;
}
.check-input input::placeholder { color: var(--faint); opacity: 1; }
.form-error { margin: 0; color: var(--bad); font-size: 14px; }

/* The example report: draws itself in once, row by row. */
.hero-preview { display: flex; justify-content: flex-end; }
.preview-card {
  width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -20px rgba(18, 20, 23, .25);
  padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px;
  animation: cardIn .6s ease-out both;
}
.preview-head { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); color: var(--faint); }
.preview-demo { padding: 2px 8px; border: 1px solid var(--pill-line); border-radius: 99px; font-size: 11px; }
.preview-score { display: flex; align-items: center; gap: 14px; }
.preview-ring {
  --p: 0; --c: var(--warn);
  width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) 0 calc(var(--p) * 1%), var(--track) calc(var(--p) * 1%) 100%);
  animation: ringFill 1.2s ease-out 3.4s both;
}
.preview-ring-inner { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.preview-ring-inner b { font-size: 20px; letter-spacing: -0.03em; opacity: 0; animation: fadeIn .4s ease-out 3.6s forwards; }
.preview-ring-inner small { font-size: 9px; color: var(--faint); }
.preview-summary { display: flex; flex-direction: column; gap: 5px; min-width: 0; opacity: 0; animation: fadeIn .5s ease-out 3.8s forwards; }
.preview-summary strong { font-size: 15px; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.preview-summary span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.preview-summary .dot { display: inline-block; width: 7px; height: 7px; }
.dot.warn { background: var(--warn); }
.preview-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.preview-rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--idle-bg);
  font-size: 12px; opacity: 0; transform: translateY(4px);
  animation: rowIn .35s ease-out calc(.7s + var(--i, 0) * .42s) forwards;
}
.preview-rows li:nth-child(2) { --i: 1; }
.preview-rows li:nth-child(3) { --i: 2; }
.preview-rows li:nth-child(4) { --i: 3; }
.preview-rows li:nth-child(5) { --i: 4; }
.preview-rows li:nth-child(6) { --i: 5; }
.preview-rows code { font: 500 12px var(--mono); }
.preview-rows li.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.preview-rows li.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.preview-rows li.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.preview-rows li::after { content: '✓'; font-weight: 700; margin-left: 6px; }
.preview-rows li.bad::after { content: '✕'; }
.preview-checks { display: flex; gap: 6px; opacity: 0; animation: fadeIn .5s ease-out 3.4s forwards; }
.preview-checks span { flex: 1; padding: 6px 8px; border-radius: 8px; font-size: 11px; background: var(--ok-bg); color: var(--ok); }
.preview-checks span.bad { background: var(--bad-bg); color: var(--bad); }
.preview-checks b { font-weight: 700; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ringFill { from { --p: 0; } to { --p: 78; } }

/* The bots, as a slow ticker. */
.marquee { display: flex; align-items: center; gap: 14px; min-width: 0; }
.marquee-label { font: 500 12px var(--mono); color: var(--faint); flex: none; }
.marquee-track {
  flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.marquee-track ul { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; gap: 8px; flex: none; animation: ticker 70s linear infinite; }
.marquee:hover .marquee-track ul, .marquee:focus-within .marquee-track ul { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px;
  border: 1px solid var(--pill-line); background: var(--card); font: 500 12px var(--mono); color: var(--muted); text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--tile-hover); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip-search i { background: var(--accent); }
.chip-aisearch i { background: var(--violet); }
.chip-training i { background: var(--warn); }
.chip-fetch i { background: var(--ok); }
.chip-seo i { background: var(--faint); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  width: 100%; text-align: left;
}
.steps li {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  display: flex; flex-direction: column; gap: 6px;
}
.step-num { font: 500 12px var(--mono); color: var(--faint); }
.step-title { font-size: 15px; font-weight: 600; }

/* ---------- report ---------- */

.report {
  max-width: calc(1240px - 2 * var(--gutter)); margin: 0 auto 48px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  scroll-margin-top: 16px;
}
.report-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; align-items: center;
  padding: 28px 32px; border-bottom: 1px solid var(--line-soft);
}
.ring {
  --p: 0; --c: var(--ok);
  width: 112px; height: 112px; border-radius: 50%;
  background: conic-gradient(var(--c) 0 calc(var(--p) * 1%), var(--track) calc(var(--p) * 1%) 100%);
  display: grid; place-items: center; flex: none;
  transition: --p .6s ease-out;
}
.ring-inner {
  width: 90px; height: 90px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-score { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ring-max { font-size: 11px; color: var(--faint); }
.ring.is-none { background: var(--track); }
.ring.is-none .ring-score { color: var(--faint); }
.ring.is-scanning { background: conic-gradient(var(--ink) 0 20%, var(--track) 20% 100%); animation: spin 1s linear infinite; }
.ring.is-scanning .ring-inner { animation: spin 1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.report-summary { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.report-meta { font: 500 13px var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.meta-cached { color: var(--warn); }
.report-headline { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.bad { background: var(--bad); }
.dot.idle { background: var(--faint); }
.dot.outside { background: var(--outside-line); border: 1px solid var(--outside); width: 8px; height: 8px; }
.report-actions { display: flex; gap: 8px; }

.goal-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 32px; border-bottom: 1px solid var(--line-soft); background: var(--panel);
}
.goal { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.goal select {
  min-height: 36px; padding: 6px 32px 6px 10px; border: 1px solid var(--field); border-radius: 8px; background: var(--card);
  font-size: 14px; font-weight: 500; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.goal select:focus { outline: 0; border-color: var(--ink); }
.goal-blurb { margin: 0; font-size: 13px; color: var(--muted); flex: 1; min-width: 240px; text-wrap: pretty; }

.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.check { padding: 18px 24px; display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.check + .check { border-left: 1px solid var(--line-soft); }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--ok-bg); color: var(--ok);
}
.check-icon.bad { background: var(--bad-bg); color: var(--bad); }
.check-icon.idle { background: var(--idle-bg); color: var(--faint); }
.check-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.check-title { font-size: 14px; font-weight: 600; }
.check-title b { font-weight: inherit; }
.check-title a { font-weight: 500; color: var(--muted); }
.check-sub { font: 400 12px var(--mono); color: var(--faint); overflow-wrap: anywhere; }

.report-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.groups { padding: 28px 32px; display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--line-soft); min-width: 0; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit;
}
.group-label { margin: 0; font-size: 15px; font-weight: 600; }
.group-state { display: flex; align-items: center; gap: 12px; font: 500 12px var(--mono); color: var(--faint); }
.group-state.ok { color: var(--ok); }
.group-state.bad { color: var(--bad); }
.group-state.outside { color: var(--outside); }
.group-chev { display: none; font: 400 18px var(--sans); width: 16px; text-align: center; color: var(--ink); }
.group-count-short { display: none; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.tile {
  padding: 12px 14px; border-radius: 10px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  background: var(--idle-bg); border: 1px solid var(--line); color: var(--ink);
  transition: box-shadow .12s, background-color .2s, border-color .2s;
}
.tile:hover { border-color: var(--tile-hover); }
.tile.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.tile.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.tile.token { background: var(--warn-bg); border-color: var(--warn-line); }
.tile.token .tile-glyph, .tile.token .tile-status { color: var(--warn); }
.tile.outside { background: var(--outside-bg); border-color: var(--outside-line); border-style: dashed; }
.tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tile-name { font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-glyph { font-size: 13px; font-weight: 700; }
.tile-status { font-size: 12px; color: var(--faint); }
.tile.ok .tile-glyph, .tile.ok .tile-status { color: var(--ok); }
.tile.bad .tile-glyph, .tile.bad .tile-status { color: var(--bad); }
.tile.outside .tile-glyph, .tile.outside .tile-status { color: var(--outside); }
.tile.pending .tile-status::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.detail { padding: 28px; background: var(--panel); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-close { display: none; }
.detail-kicker { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.detail-name { display: flex; flex-direction: column; gap: 4px; }
.detail-name strong { font: 500 20px var(--mono); overflow-wrap: anywhere; }
.detail-name span { font-size: 14px; color: var(--muted); }
.detail-link { text-decoration: none; border-bottom: 1px dotted var(--faint); }
.detail-link:hover { border-bottom-style: solid; }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--idle-bg); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.token { background: var(--warn-bg); color: var(--warn); }
.badge.outside { background: var(--outside-bg); color: var(--outside); }
.detail-block { display: flex; flex-direction: column; gap: 6px; }
.detail-block h3 { margin: 0; font-size: 13px; font-weight: 600; }
.detail-block p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.detail-block.fix { padding-top: 16px; border-top: 1px solid var(--line); }
.detail-block.fix p { color: var(--ink); }
.detail-block .note { font-size: 13px; color: var(--faint); }
.rule-box {
  font: 400 13px/1.6 var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; overflow-x: auto; white-space: pre;
}
.rule-box .hit { color: var(--bad); }
.rule-box .hit.ok { color: var(--ok); }
.rule-box .ln { color: var(--faint); }
.rule-box .dim { color: var(--faint); }

.upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 32px; background: var(--ink); color: var(--on-ink);
}
.upsell div { display: flex; flex-direction: column; gap: 4px; }
.upsell strong { font-size: 16px; font-weight: 600; }
.upsell span { font-size: 14px; color: var(--on-ink-muted); }

.report-error { padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.report-error h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.report-error p { margin: 0; color: var(--muted); }

/* ---------- sections below the checker ---------- */

.section { max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter); border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 20px; font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; }
.section h3 { margin: 6px 0 6px; font-size: 17px; }
.section p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 62ch; }
.section code, .note-line code, .prose code, .facts code:not(.ua-string) { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.muted-tag { font-size: 13px; font-weight: 500; color: var(--muted); vertical-align: middle; padding: 3px 8px; border: 1px solid var(--pill-line); border-radius: 99px; margin-left: 6px; font-family: var(--mono); }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.code {
  margin: 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font: 400 13px/1.7 var(--mono); overflow-x: auto; color: var(--ink);
}
.code code { background: none; padding: 0; font-size: inherit; }

.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; }

.monitoring { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; scroll-margin-top: 16px; }
.monitoring p + p { margin-top: 12px; }
.monitor-form {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.monitor-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.monitor-form input {
  height: 46px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-size: 16px; font-weight: 400;
}
.monitor-form input::placeholder { color: var(--faint); opacity: 1; }
.monitor-form input:focus { outline: 0; border-color: var(--ink); }
.form-consent { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.45; }
.form-consent a { color: var(--muted); }
.form-note { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-note.bad { color: var(--bad); }
.form-note.ok { color: var(--ok); }

/* ---------- content pages ---------- */

.page { max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter) 32px; }
.page-narrow { max-width: 760px; }
.page h1 { margin: 16px 0 12px; font-size: 48px; line-height: 1.05; letter-spacing: -0.035em; }
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 24px; }
.page-head .lede { margin-bottom: 16px; }
.page-head .code { min-width: 280px; }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: inherit; }
.note-line { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 640px; line-height: 1.5; }
.group-blurb { margin: 0 0 14px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.bot-group { padding: 28px 0; border-top: 1px solid var(--line); }
.bot-group h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.bot-group h2 .muted { font-weight: 400; font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line-faint); vertical-align: middle; }
thead th { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); border-bottom-color: var(--line-soft); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 500; white-space: nowrap; }
tbody th a { text-decoration: none; border-bottom: 1px dotted var(--faint); padding: 4px 0; display: inline-block; }
tbody th a:hover { border-bottom-style: solid; }
td.ua code { font-size: 12px; color: var(--muted); word-break: break-all; }
td a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 4px; margin: 0 -4px; border-radius: 4px; }
td a:hover { background: var(--hover); }
/* Same column widths in every directory table. */
.bot-group table { table-layout: fixed; min-width: 760px; }
.bot-group th:nth-child(1) { width: 210px; }
.bot-group th:nth-child(2) { width: 130px; }
.bot-group th:nth-child(4) { width: 70px; }

.facts { margin: 0 0 8px; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-faint); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.5; min-width: 0; }
.ua-string { font-size: 13px; color: var(--muted); word-break: break-all; }
.bot-section { padding: 28px 0 0; }
.bot-section h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.bot-section p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; max-width: 62ch; }
.check-form-inline { width: 100%; margin-top: 4px; }

.prose h2 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.prose p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; max-width: 68ch; }
.prose .lede { margin-bottom: 8px; }

/* ---------- robots.txt generator ---------- */

.generator { display: flex; flex-direction: column; gap: 20px; }
.gen-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gen-presets-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.gen-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.gen-choices { display: flex; flex-direction: column; gap: 8px; }
.gen-group { padding: 20px 0 8px; border-top: 1px solid var(--line); }
.gen-group h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.gen-group h2 .muted { font-weight: 400; font-size: 14px; }
.gen-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gen-group-actions { display: flex; gap: 8px; }
.gen-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.gen-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-faint); }
.gen-row:last-child { border-bottom: 0; }
.gen-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 14px; }
.gen-name a { text-decoration: none; border-bottom: 1px dotted var(--faint); }
.gen-name a:hover { border-bottom-style: solid; }
.gen-vendor { font-size: 12px; color: var(--faint); white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; flex: none; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg label + label span { border-left: 1px solid var(--field); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input[value="block"]:checked + span { background: var(--bad); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }
.gen-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.gen-field input { height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-size: 15px; font-weight: 400; }
.gen-field input:focus { outline: 0; border-color: var(--ink); }
.gen-output { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.gen-output-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gen-output-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.gen-output .code { min-height: 180px; white-space: pre; }
.gen-output .note-line { margin-top: 0; }

/* ---------- section variants and tags ---------- */

.section-tint { max-width: none; padding-left: 0; padding-right: 0; background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint .section-inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section-tint + .section { border-top: 0; }
.section-tint .code { box-shadow: var(--shadow); }
.tag { display: inline-flex; align-items: center; align-self: flex-start; padding: 3px 9px; border-radius: 99px; font: 600 11px/1.4 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-accent { background: var(--accent-bg); color: var(--accent); }
.tag-violet { background: var(--violet-bg); color: var(--violet); }
.tag-ink { background: var(--idle-bg); color: var(--ink); }
.crumbs .tag { vertical-align: middle; }

/* ---------- guides ---------- */

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--tile-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card .step-num { margin-top: auto; }
.guide-card-title { font-size: 16px; font-weight: 600; }
.guide-card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.guide-row { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-row-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.guide-row:hover .guide-row-title { text-decoration: underline; text-underline-offset: 3px; }
.guide-row-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
.guide h1 { font-size: 40px; }
.guide-meta { margin: 0 0 20px; font: 500 13px var(--mono); color: var(--faint); }
.guide .lede { font-size: 19px; }
.guide h2 { margin: 36px 0 10px; font-size: 24px; }
.guide p, .guide li { color: var(--muted); line-height: 1.65; max-width: 68ch; }
.guide ul { padding-left: 22px; margin: 0 0 14px; }
.guide li { margin: 6px 0; }
.guide li strong, .guide p strong { color: var(--ink); font-weight: 600; }
.guide .code { margin: 12px 0 18px; }
.guide-table { margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; display: block; overflow-x: auto; }
.guide-table th, .guide-table td { vertical-align: top; font-size: 14px; line-height: 1.5; }
.guide-table td { color: var(--muted); }
.guide-tools { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide-tools h2 { margin-top: 0; }

/* ---------- let the checker through ---------- */

.unblock { padding: 22px 32px; border-bottom: 1px solid var(--line-soft); background: var(--warn-bg); display: flex; flex-direction: column; gap: 16px; }
.unblock-head { display: flex; gap: 14px; align-items: flex-start; }
.unblock-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--warn); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 1px; }
.unblock h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; }
.unblock p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 72ch; }
.unblock-steps { padding: 14px 16px; background: var(--card); border: 1px solid var(--warn-line); border-radius: 10px; }
.unblock-lead { font-weight: 600; color: var(--ink) !important; margin-bottom: 8px !important; }
.unblock-steps ol, .unblock-steps ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.unblock-steps li strong { color: var(--ink); font-weight: 600; }
.unblock-expr-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.unblock-expr-row .code { flex: 1; min-width: 0; padding: 8px 12px; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.unblock-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.unblock-facts div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.unblock-facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.unblock-facts dd { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.unblock-facts code { font-size: 12px; color: var(--ink); }

/* ---------- badge embed ---------- */

.embed { border-top: 1px solid var(--line-soft); }
.embed summary { cursor: pointer; list-style: none; padding: 14px 32px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.embed summary::-webkit-details-marker { display: none; }
.embed summary::after { content: '+'; font-weight: 400; font-size: 18px; line-height: 1; }
.embed[open] summary::after { content: '−'; }
.embed[open] summary { color: var(--ink); }
.embed-body { padding: 0 32px 20px; display: flex; flex-direction: column; gap: 10px; }
.embed-body p { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.embed-body .note-line { margin: 0; display: block; }
.embed-code-row { display: flex; gap: 8px; align-items: flex-start; }
.embed-code-row .code { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-all; font-size: 12px; padding: 10px 12px; }

/* ---------- llms.txt generator ---------- */

.llms-check { padding: 0 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.llms-check h2, .llms-generator > h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.llms-check .check-form { max-width: 640px; }
.llms-fields { gap: 14px; }
.llms-fields .gen-field { margin-top: 0; }
.gen-field textarea { padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-size: 15px; font-weight: 400; resize: vertical; font-family: inherit; }
.gen-field textarea:focus { outline: 0; border-color: var(--ink); }
.llms-section { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.llms-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.llms-section-head input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-size: 15px; font-weight: 600; }
.llms-section-head input:focus, .llms-link input:focus { outline: 0; border-color: var(--ink); }
.llms-links { display: flex; flex-direction: column; gap: 6px; }
.llms-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 6px; align-items: center; }
.llms-link input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--field); border-radius: 8px; background: var(--card); font-size: 14px; }
.icon-btn.small { width: 32px; height: 32px; font-size: 14px; color: var(--muted); margin: 0; }
.gen-output-actions { display: flex; gap: 8px; }
.findings { display: flex; flex-direction: column; gap: 6px; }
.finding { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.finding-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ok-bg); color: var(--ok); margin-top: 1px; }
.finding.warn .finding-icon { background: #fdf1e6; color: var(--warn); }
.finding.error .finding-icon { background: var(--bad-bg); color: var(--bad); }
.finding.error, .finding.warn { color: var(--ink); }
.finding-head { margin: 8px 0 4px; font-size: 15px; font-weight: 600; }
.finding-head.ok { color: var(--ok); }
.finding-head.bad { color: var(--bad); }

/* ---------- mobile chrome (hidden on desktop) ---------- */

.mobile-bar { display: none; }
.scrim { position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.35); }

/* ---------- tablet ---------- */

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 44px; }
  .hero-inner { gap: 32px; }
  .report-head { grid-template-columns: auto minmax(0, 1fr); }
  .report-actions { grid-column: 1 / -1; }
  .report-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check { padding: 16px 20px; }
  .check:nth-child(2n+1) { border-left: 0; }
  .check:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .gen-layout { grid-template-columns: 1fr; }
  .gen-output { position: static; }
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .site-header-inner { padding: 8px var(--gutter) 0; flex-wrap: wrap; gap: 0 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
  .header-cta { display: none; }
  .site-nav { order: 3; width: 100%; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 8px 10px; }

  .hero { padding: 28px var(--gutter) 8px; gap: 20px; }
  .hero::before { height: 420px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { gap: 16px; }
  .hero .pill { align-self: flex-start; font-size: 11px; padding: 4px 9px; }
  .hero h1 { font-size: 38px; line-height: 1.04; }
  .hero-preview { justify-content: stretch; }
  .preview-card { max-width: none; padding: 14px 14px 12px; }
  .marquee-label { display: none; }
  .marquee { margin: 0 calc(-1 * var(--gutter)); }
  .marquee-track { -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
  .lede { font-size: 16px; }
  .check-form { flex-direction: column; width: 100%; padding: 0; border: 0; background: none; box-shadow: none; margin-top: 4px; }
  .check-input { height: 52px; padding: 0 14px; background: var(--card); border: 1px solid var(--field); border-radius: 12px; }
  .check-form:focus-within { box-shadow: none; }
  .check-form:focus-within .check-input { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
  .check-form .btn-lg { height: 52px; border-radius: 12px; font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 0; border-top: 1px solid var(--line); width: 100%; }
  .steps li { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .steps .long { display: none; }
  .steps .short { display: inline; }

  /* With a report open, the phone shows it as its own screen. */
  body.has-report .hero,
  body.has-report .site-header { display: none; }
  body.has-report .mobile-bar {
    display: flex; align-items: center; gap: 4px; padding: 6px var(--gutter) 8px;
    border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5;
  }
  .icon-btn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; border: 0; background: none; cursor: pointer; border-radius: 10px; color: inherit; flex: none; }
  .icon-btn:hover { background: var(--hover); }
  #back-btn { margin-left: -12px; }
  .mobile-bar-host { flex: 1; font: 500 14px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .report { margin: 0 0 24px; border: 0; border-radius: 0; background: none; overflow: visible; }
  .report-head { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px var(--gutter) 12px; border: 0; }
  .ring { width: 84px; height: 84px; }
  .ring-inner { width: 66px; height: 66px; background: var(--bg); }
  .ring-score { font-size: 26px; }
  .ring-max, .report-actions { display: none; }
  .report-meta { font-size: 12px; }
  .legend { font-size: 13px; gap: 4px 14px; }
  .report-headline { font-size: 20px; }
  .goal-row { padding: 10px var(--gutter); gap: 6px; border-top: 1px solid var(--line); border-bottom: 0; background: none; }
  .goal { width: 100%; }
  .goal select { flex: 1; }
  .goal-blurb { font-size: 12px; }

  .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px var(--gutter) 0; border: 0; }
  .check { padding: 10px 8px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); flex-direction: column; gap: 2px; border: 0 !important; }
  .check.bad { background: var(--bad-bg); color: var(--bad); }
  .check.idle { background: var(--idle-bg); color: var(--faint); }
  .check-icon { display: none; }
  .check-title { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .check-title b { font-weight: 700; }
  .check-title .long, .check-title a { display: none; }
  .check-sub { display: none; }
  .check-short { font-size: 11px; }

  .report-body { grid-template-columns: 1fr; }
  .groups { padding: 16px var(--gutter) 0; gap: 0; border: 0; }
  .group { gap: 0; border-bottom: 1px solid var(--line); }
  .group:first-child { border-top: 1px solid var(--line); }
  .group-head { min-height: 48px; align-items: center; cursor: pointer; }
  .group-chev { display: inline; }
  .group-count-long { display: none; }
  .group-count-short { display: inline; }
  .group:not(.open) .tiles { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-bottom: 14px; }
  .tile { padding: 10px 12px; gap: 4px; }
  .tile-name { font-size: 12px; }
  .tile-glyph { display: none; }
  .tile-status { font-size: 11px; }

  /* The evidence panel becomes a bottom sheet over a scrim. */
  .detail {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-height: 82vh; overflow-y: auto;
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0; border-top: 1px solid var(--line);
    box-shadow: var(--sheet-shadow);
    transform: translateY(105%); transition: transform .22s ease-out;
  }
  .detail.open { transform: none; }
  .detail-close { display: grid; position: absolute; top: 10px; right: 10px; }

  .upsell { flex-direction: column; align-items: stretch; gap: 14px; margin: 8px var(--gutter) 0; border-radius: 14px; padding: 18px 20px; }
  .unblock { margin: 12px var(--gutter) 0; padding: 16px; border: 1px solid var(--warn-line); border-radius: 14px; }
  .unblock-facts { grid-template-columns: 1fr; }
  .embed { margin: 0 var(--gutter); }
  .embed summary { padding: 14px 0; }
  .embed-body { padding: 0 0 16px; }
  .llms-link { grid-template-columns: minmax(0, 1fr) auto; }
  .llms-link input:nth-child(2), .llms-link input:nth-child(3) { grid-column: 1 / -1; }
  .llms-link .icon-btn { grid-column: 2; grid-row: 1; }
  .upsell .btn { justify-content: center; }

  .section { padding: 36px var(--gutter); }
  .section h2 { font-size: 24px; }
  .how-grid, .split, .monitoring { grid-template-columns: 1fr; gap: 24px; }
  .guide-grid { grid-template-columns: 1fr; gap: 8px; }
  .guide h1 { font-size: 32px; }
  .guide-row-title { font-size: 18px; }

  .page { padding-top: 32px; }
  .page h1 { font-size: 36px; }
  .page-head .code { min-width: 0; width: 100%; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .gen-row { flex-wrap: wrap; }
  .gen-name { flex-wrap: wrap; gap: 2px 8px; }
}

@media (min-width: 761px) {
  .check-short, .steps .short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .detail, .guide-card { transition: none; }
  .ring.is-scanning, .ring.is-scanning .ring-inner, .tile.pending .tile-status::after, .marquee-track ul { animation: none; }
  .preview-card, .preview-rows li, .preview-summary, .preview-checks, .preview-ring-inner b { animation: none; opacity: 1; transform: none; }
  .preview-ring { animation: none; --p: 78; }
  .marquee-track { overflow-x: auto; }
}
