/* Citation Ready: the only stylesheet. Dark-first, system fonts, mobile-first at 375px. */
:root {
  --bg: #0b0f14;
  --bg-2: #121820;
  --bg-3: #1a222c;
  --line: #273140;
  --text: #e6edf3;
  --muted: #9fb0c0;
  --accent: #c6f238;
  --accent-ink: #0b0f14;
  --pass: #3ddc97;
  --warn: #f5b942;
  --fail: #ff6b6b;
  --info: #7fb3ff;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8f4;
    --bg-2: #ffffff;
    --bg-3: #eef2ea;
    --line: #d5dccd;
    --text: #131a12;
    --muted: #4f5c4b;
    --accent: #3d7a00;
    --accent-ink: #ffffff;
    --pass: #1f8a5b;
    --warn: #a86a00;
    --fail: #c8322f;
    --info: #1f5fb8;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; background: var(--bg-3); padding: .1em .35em; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.logo-mark { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--accent) 0 72%, var(--line) 72% 100%); }
.nav { display: flex; gap: 1rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.footer-note { font-size: .85rem; }
main { padding: 1.5rem 0 0; }

/* hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero-small { padding: 1.5rem 0; }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.url-form { display: flex; flex-direction: column; gap: .6rem; margin: 1.25rem 0; }
.url-form input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.url-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.url-form-inline { margin: .5rem 0 1rem; }
@media (min-width: 640px) { .url-form { flex-direction: row; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; padding: .8rem 1.2rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-secondary { background: var(--bg-3); color: var(--text); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); }
.basis { color: var(--muted); font-size: .95rem; }
.sample-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .95rem; margin: 0 0 1rem; }
.notice { padding: .7rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.notice-ok { border-color: var(--pass); }
.notice-bad { border-color: var(--fail); }
.status { color: var(--muted); font-size: .95rem; min-height: 1.5em; }
.status.error { color: var(--fail); }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }

/* sections */
.section { padding: 2rem 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.three-up { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 720px) { .three-up { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.big-num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; line-height: 1; margin-bottom: .4rem; }
.answer-capsule { background: var(--bg-2); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.25rem 0; }
.answer-capsule .capsule-label { color: var(--accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.answer-capsule p:last-child { margin-bottom: 0; }
.dateline { color: var(--muted); font-size: .9rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .6rem 0 0; color: var(--muted); }
.check-doc { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.check-doc h3 { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.check-doc .weight { font-family: var(--mono); font-size: .8rem; color: var(--accent-ink); background: var(--accent); padding: .1em .5em; border-radius: 999px; }
.check-doc .weight-0 { background: var(--bg-3); color: var(--muted); }
.check-doc p { color: var(--muted); }
.check-doc p strong { color: var(--text); }
.group-doc { margin-top: 2.5rem; }
.group-doc > p { color: var(--muted); }
.weights-table td:last-child, .weights-table th:last-child { text-align: right; font-family: var(--mono); }

/* report */
.report { margin-top: 1rem; }
.report-head { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
@media (min-width: 640px) { .report-head { grid-template-columns: auto 1fr; } }
.report-ring { display: flex; justify-content: center; }
.ring .ring-track { stroke: var(--line); }
.ring .ring-fill { stroke: var(--fail); transition: stroke-dasharray .8s ease; }
.ring.mid .ring-fill { stroke: var(--warn); }
.ring.good .ring-fill { stroke: var(--pass); }
.ring-score { font: 800 34px var(--font); fill: var(--text); letter-spacing: -.02em; }
.ring-grade { font: 700 14px var(--font); fill: var(--muted); }
.report-label { color: var(--accent); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .3rem; }
.report-title { font-size: 1.3rem; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.report-url { margin: 0 0 .5rem; font-size: .9rem; overflow-wrap: anywhere; }
.report-url a { color: var(--muted); }
.report-counts { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 0 0 .4rem; font-size: .9rem; font-weight: 600; }
.cnt-pass { color: var(--pass); } .cnt-warn { color: var(--warn); } .cnt-fail { color: var(--fail); } .cnt-info { color: var(--info); }
.report-when { color: var(--muted); font-size: .85rem; margin: 0; }
.fetch-error { border: 1px solid var(--fail); background: color-mix(in srgb, var(--fail) 12%, var(--bg-2)); padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; }
.fixes-wrap, .share, .waitlist { margin-top: 2rem; }
.fixes { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; counter-reset: fix; }
.fix { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--fail); border-radius: var(--radius); padding: .9rem 1rem .9rem 1rem; }
.fix-warn { border-left-color: var(--warn); }
.fix-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.fix-evidence { color: var(--muted); font-size: .92rem; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.fix-how { margin: 0; }
.all-clear { color: var(--pass); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15em .55em; border-radius: 999px; border: 1px solid; }
.badge-pass { color: var(--pass); border-color: var(--pass); }
.badge-warn { color: var(--warn); border-color: var(--warn); }
.badge-fail { color: var(--fail); border-color: var(--fail); }
.badge-info { color: var(--info); border-color: var(--info); }
.share-snippet { font-family: var(--mono); font-size: .9rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; overflow-wrap: anywhere; }
.share-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.groups { margin-top: 2rem; display: grid; gap: 1.5rem; }
.group { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .5rem; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.group-head h3 { margin: 0; }
.group-score { font-family: var(--mono); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.group-blurb { color: var(--muted); font-size: .92rem; margin: .4rem 0 .6rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.check { border-top: 1px solid var(--line); padding: .75rem 0; }
.check-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.check-title { font-weight: 600; flex: 1; min-width: 12ch; }
.check-weight { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.check-evidence { color: var(--muted); font-size: .92rem; margin: .35rem 0 0; overflow-wrap: anywhere; }
.check-evidence .lbl { color: var(--text); font-weight: 600; }
.check-more { margin-top: .35rem; font-size: .92rem; }
.check-more summary { cursor: pointer; color: var(--accent); }
.check-more p { margin: .5rem 0 0; color: var(--muted); }
.check-fail .check-title { color: var(--text); }
.waitlist { background: var(--bg-2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; }
.waitlist p { color: var(--muted); }
.waitlist-form { display: flex; flex-direction: column; gap: .6rem; }
.waitlist-form input[type="email"] { font: inherit; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 0; flex: 1; }
@media (min-width: 560px) { .waitlist-form { flex-direction: row; } }
.waitlist-msg { margin: .6rem 0 0; min-height: 1.4em; color: var(--pass); }
.report-foot { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .ring .ring-fill { transition: none; } }

/* compare */
.compare { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.compare-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: start; }
.compare-col { text-align: center; min-width: 0; }
.compare-col .report-label { margin-bottom: .4rem; }
.compare-col .report-url { font-size: .85rem; }
.compare-host { font-weight: 700; margin: .4rem 0 .2rem; overflow-wrap: anywhere; }
.compare-vs { align-self: center; color: var(--muted); font-weight: 700; font-size: .9rem; padding: 0 .25rem; }
.compare-verdict { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .75rem; text-align: center; }
.compare-table th.num, .compare-table td.num { text-align: right; font-family: var(--mono); }
.compare-table tbody th { text-transform: none; color: var(--text); font-size: .95rem; }
.compare-note { color: var(--muted); font-size: .9rem; margin: 0; }
.compare-form-wrap { margin-top: 1.25rem; }
.compare-form-wrap p { color: var(--muted); margin-bottom: .25rem; }
.compare-hint { margin-top: -.25rem; }

/* badge embed */
.embed { margin-top: 2rem; }
.embed > p { color: var(--muted); }
.embed-preview img { vertical-align: middle; }
.embed-row { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.embed-code { display: block; font-size: .8rem; padding: .7rem .9rem; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 640px) { .embed-row { flex-direction: row; align-items: flex-start; } .embed-code { flex: 1; min-width: 0; } }

/* leaderboard */
.board td.rank, .board td.score { font-family: var(--mono); text-align: right; white-space: nowrap; }
.board th:first-child, .board th:nth-child(3) { text-align: right; }
.board td.score { font-weight: 700; }
.board .score-good { color: var(--pass); } .board .score-mid { color: var(--warn); } .board .score-bad { color: var(--fail); }
.board td.host { font-weight: 600; overflow-wrap: anywhere; }
.board td.path { color: var(--muted); font-family: var(--mono); font-size: .82rem; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board td.date { color: var(--muted); white-space: nowrap; font-size: .9rem; }
