/* verifa11y site. Self-hosted Geist (OFL-1.1); no third-party requests, no tracking.
   Every text/background pair meets WCAG AA. All motion is added by main.js (html.motion) and only when the
   visitor allows it; without JavaScript the page is complete and still. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #08090a;
  --bg-2: #0d0e10;
  --card: #111214;
  --card-2: #16171a;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --green: #4ade80;
  --red: #ff7b6b;
  --amber: #f5b84a;
  --green-bg: rgb(74 222 128 / 0.1);
  --red-bg: rgb(255 123 107 / 0.1);
  --amber-bg: rgb(245 184 74 / 0.1);
  --focus: #7aa7ff;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--text); text-underline-offset: 0.2em; text-decoration-color: rgb(255 255 255 / 0.3); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: 0.86em; background: var(--card-2); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; color: var(--text); overflow-wrap: anywhere; }
.defs { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--text); color: var(--bg); padding: 0.55rem 0.9rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 0.75rem; }
.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 2rem); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(8 9 10 / 0.72); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.link-quiet { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.link-quiet:hover { color: var(--text); }
@media (max-width: 820px) { .site-header nav { display: none; } }

/* ---------- Buttons, command ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 1.05rem; border-radius: 9px; font: 550 0.92rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn-sm { height: 32px; padding: 0 0.8rem; font-size: 0.85rem; border-radius: 8px; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgb(255 255 255 / 0.3); }
.cmd { display: inline-flex; align-items: center; gap: 0.6rem; height: 40px; background: var(--card); border: 1px solid var(--line-2); border-radius: 9px; padding: 0 0.3rem 0 0.9rem; max-width: 100%; }
.cmd code { font-size: 0.84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd .prompt { color: var(--muted); margin-right: 0.3rem; }
.copy { height: 30px; background: var(--card-2); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 0 0.65rem; font: 550 0.78rem var(--sans); cursor: pointer; flex: none; transition: background 0.15s, color 0.15s; }
.copy:hover { background: #1f2024; color: var(--text); }
.copy.done { color: var(--green); }

/* ---------- Type ---------- */
h1, h2 { color: var(--text); font-weight: 620; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.045em; background: linear-gradient(180deg, #fff 30%, #b9bec7); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 0.8rem; }
h3 { margin: 0 0 0.35rem; color: var(--text); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 1.02rem; max-width: 38rem; margin: 0; }
.small { color: var(--muted); font-size: 0.88rem; }
.small a { color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5.5rem 0 3.5rem; overflow: hidden; }
.glow { position: absolute; left: 50%; top: 300px; width: 1100px; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgb(74 222 128 / 0.16), transparent 70%), radial-gradient(closest-side at 70% 60%, rgb(122 167 255 / 0.12), transparent 70%); filter: blur(10px); }
.hero-head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.25rem 0.75rem 0.25rem 0.3rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--text-2); text-decoration: none; font-size: 0.82rem; margin-bottom: 1.8rem; transition: border-color 0.15s; }
.pill:hover { border-color: rgb(255 255 255 / 0.28); color: var(--text); }
.pill-tag { background: var(--green-bg); color: var(--green); border-radius: 999px; padding: 0.1rem 0.5rem; font-weight: 600; font-size: 0.74rem; }
.hero h1 { max-width: 15ch; }
.lede { max-width: 36rem; margin: 1.3rem auto 2rem; font-size: 1.1rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; }

/* ---------- Demo (verdict window) ---------- */
.demo-wrap { position: relative; margin-top: 4rem; }
.va-tabs, .ca-tabs { display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.22rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; }
.va-tabs[hidden], .ca-tabs[hidden] { display: none; }
.va-tabs { margin: 0 auto 1rem; }
.va-tabs button, .ca-tabs button { font: 500 0.82rem var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 0.4rem 0.75rem; cursor: pointer; transition: color 0.15s, background 0.15s; }
.va-tabs button:hover, .ca-tabs button:hover { color: var(--text); }
.va-tabs button[aria-selected="true"], .ca-tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.va-window {
  border-radius: 16px; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.04) 60%) border-box;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(0 0 0 / 0.4);
}
.va-bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.015); }
.va-bar .dots { display: flex; gap: 0.38rem; }
.va-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2c31; }
.va-cmd { font-size: 0.8rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-cmd > span:first-child { color: var(--muted); }
.caret { display: inline-block; width: 7px; height: 1em; vertical-align: -0.15em; margin-left: 2px; background: var(--text-2); opacity: 0; }
.motion .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.replay { margin-left: auto; flex: none; height: 26px; padding: 0 0.6rem; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 0.76rem var(--sans); cursor: pointer; }
.replay:hover { color: var(--text); }
.replay[hidden] { display: none; }
.va-panel { padding: 1.3rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem 1.3rem; align-items: start; }
@media (max-width: 860px) { .va-panel { grid-template-columns: 1fr; } }
.va-panel[hidden] { display: none; }
.va-file { margin: 0 0 0.55rem; font: 0.74rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.va-code pre { margin: 0; background: #0a0b0c; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.8rem; line-height: 1.75; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.va-code .ln { color: #8a8f98; margin-right: 0.9rem; user-select: none; }
.va-code .del { color: #ff9a8d; }
.va-code .add { color: #7ee2a3; }
.va-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.va-checks li { position: relative; display: grid; grid-template-columns: 16px 1fr; column-gap: 0.6rem; align-items: start; padding: 0.45rem 0.65rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 0.84rem; line-height: 1.35; transition: opacity 0.35s var(--ease), border-color 0.35s, background 0.35s; }
.va-checks li small { grid-column: 2; display: block; font-weight: 400; color: var(--muted); font-size: 0.76rem; }
.va-checks li svg { width: 16px; height: 16px; margin-top: 0.06rem; }
.va-checks li.ok svg { color: var(--green); }
.va-checks li.no { background: var(--red-bg); border-color: rgb(255 123 107 / 0.3); }
.va-checks li.no svg { color: var(--red); }
.va-verdict { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: center; border-radius: 10px; padding: 0.8rem 1rem; border: 1px solid; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.va-verdict svg { width: 20px; height: 20px; flex: none; }
.va-verdict p { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.va-verdict strong { color: var(--text); }
.va-verdict q { font: 0.78rem/1.5 var(--mono); quotes: none; display: block; margin-top: 0.15rem; overflow-wrap: anywhere; color: var(--text-2); }
.va-verdict.no { background: var(--red-bg); border-color: rgb(255 123 107 / 0.35); } .va-verdict.no svg, .va-verdict.no strong { color: var(--red); }
.va-verdict.ok { background: var(--green-bg); border-color: rgb(74 222 128 / 0.35); } .va-verdict.ok svg, .va-verdict.ok strong { color: var(--green); }
.va-verdict.warn { background: var(--amber-bg); border-color: rgb(245 184 74 / 0.35); } .va-verdict.warn svg, .va-verdict.warn strong { color: var(--amber); }
/* Run animation */
.running .va-checks li { opacity: 0.35; }
.running .va-checks li svg { visibility: hidden; }
.running .va-checks li.active { opacity: 1; border-color: var(--line-2); }
.running .va-checks li.active::before { content: ""; position: absolute; left: 0.65rem; top: 0.55rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.15); border-top-color: var(--text); animation: spin 0.6s linear infinite; }
.running .va-checks li.shown { opacity: 1; }
.running .va-checks li.shown svg { visibility: visible; animation: pop 0.3s var(--ease); }
.running .va-verdict { opacity: 0; transform: translateY(8px); }
.running.done .va-verdict { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.4); } }
.demo-note { text-align: center; margin: 1rem 0 0; font-size: 0.82rem; color: var(--muted); }
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.works span { width: 100%; text-align: center; font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.works b { color: var(--text-2); font-weight: 550; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2.6rem; max-width: 44rem; }

/* Facts */

/* Pipeline with a line that fills as you scroll */
.track { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 1.6rem; overflow: hidden; }
.track-fill { display: block; height: 100%; width: calc(var(--p, 1) * 100%); background: linear-gradient(90deg, var(--green), #7aa7ff); }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr 1fr; } }
.pipeline li { min-width: 0; }
.pipeline .n { display: block; font: 500 0.76rem var(--mono); color: var(--muted); margin-bottom: 0.6rem; }
.pipeline li:nth-child(5) .n { color: var(--green); }
.pipeline p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* Bento */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
@media (max-width: 920px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.card { position: relative; min-width: 0; padding: 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--bg-2)); transition: border-color 0.2s; }
.card:hover { border-color: var(--line-2); }
.card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.viz { position: relative; height: 96px; margin-bottom: 1.1rem; border-radius: 10px; background: #0a0b0c; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; padding: 0 0.9rem; font: 0.76rem var(--mono); color: var(--text-2); overflow: hidden; }
.viz code { background: none; border: 0; padding: 0; font-size: 0.78rem; color: var(--text-2); }
.viz-axe .row { display: flex; justify-content: space-between; }
.viz-axe s { color: var(--red); text-decoration-thickness: 2px; }
.viz-axe b { color: var(--green); font-weight: 600; }
.viz-axe .gone b { margin-left: auto; padding-left: 0.4rem; }
.viz-axe .gone s { margin-left: auto; }
.viz .bad { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; }
.viz .tag, .viz .eq { align-self: flex-start; font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--red-bg); color: var(--red); }
.viz-tree { gap: 0.2rem; }
.viz-tree span { color: var(--muted); }
.viz-tree .in { padding-left: 1rem; color: var(--text-2); }
.viz-tree .in:nth-child(3) { color: var(--red); }
.viz-focus { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 1.4rem; }
.viz-focus i { font-style: normal; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; z-index: 1; }
.viz-focus .ring { position: absolute; top: 50%; left: calc(1.4rem - 4px); width: 42px; height: 42px; margin-top: -21px; border-radius: 12px; border: 2px solid var(--focus); box-shadow: 0 0 0 4px rgb(122 167 255 / 0.18); }
.viz-px { flex-direction: row; align-items: center; gap: 1rem; }
.viz-px .grid { display: grid; grid-template-columns: repeat(6, 14px); gap: 4px; }
.viz-px .grid i { width: 14px; height: 14px; border-radius: 3px; background: var(--card-2); border: 1px solid var(--line); }
.viz-px .grid i.hit { background: var(--green); border-color: var(--green); }
.viz-px .pct { color: var(--green); }
.limits { margin: 1.4rem 0 0; font-size: 0.9rem; color: var(--muted); max-width: 52rem; }
.limits strong { color: var(--text); font-weight: 600; }

/* Results */
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 1.4rem; margin-bottom: 1.2rem; }
.panel-head { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 1.5rem; margin-bottom: 1.2rem; }
@media (max-width: 760px) { .panel-head { grid-template-columns: 1fr; gap: 0.3rem; } }
.panel-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bars li { display: grid; grid-template-columns: 8rem 1fr 12.5rem; gap: 1rem; align-items: center; }
@media (max-width: 760px) { .bars li { grid-template-columns: 1fr; gap: 0.3rem; } }
.b-label { font-size: 0.86rem; color: var(--text-2); }
.b-track { display: flex; height: 18px; background: var(--card); border-radius: 5px; overflow: hidden; }
.b-ok, .b-bad { display: block; height: 100%; width: calc(var(--v) / 653 * 100%); transition: width 1s var(--ease); }
.b-ok { background: var(--green); }
.b-bad { background: repeating-linear-gradient(-45deg, var(--red) 0 3px, rgb(255 123 107 / 0.55) 3px 6px); }
.b-num { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-num b { color: var(--text); font-weight: 600; }
.b-num .bad { color: var(--red); }
.fine { margin: 1rem 0 0; color: var(--muted); font-size: 0.8rem; }
.results-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.8rem; align-items: start; }
@media (max-width: 880px) { .results-grid { grid-template-columns: 1fr; } }
.table-wrap { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
caption { text-align: left; padding: 1rem 1.1rem 0.3rem; color: var(--text); font-weight: 600; }
th, td { padding: 0.65rem 1.1rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
thead th { border-top: 0; font: 600 0.8rem var(--sans); color: var(--muted); }
th[scope="row"] { color: var(--text); font-weight: 550; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ci { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.note { min-width: 0; padding: 1.3rem; border-radius: var(--r); border: 1px solid rgb(245 184 74 / 0.3); background: var(--amber-bg); }
.note h3 { color: var(--amber); }
.note p { margin: 0 0 0.7rem; font-size: 0.88rem; color: var(--text-2); }
.note p:last-child { margin: 0; }
.note a { color: var(--amber); text-decoration: none; font-weight: 550; }

/* Install */
.install { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; gap: 1.8rem; } }
.install > * { min-width: 0; }
.install .small { margin-top: 1rem; }
.code-app { border-radius: 16px; padding: 0.7rem; border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04)) border-box; }
.ca-tabs { margin-bottom: 0.7rem; }
.ca-panel { padding: 0.5rem 0.6rem 0.6rem; }
.ca-panel + .ca-panel { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.code-app.tabbed .ca-panel + .ca-panel { margin-top: 0; border-top: 0; padding-top: 0.5rem; }
.ca-panel[hidden] { display: none; }
.ca-title { margin: 0 0 0.5rem; font: 500 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.code { position: relative; }
.code pre { margin: 0; color: var(--text-2); font-size: 0.82rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 4.2rem; }
.code .c { color: #8a8f98; }
.code .copy { position: absolute; top: 0; right: 0; }

/* Compare */
.compare thead th { text-transform: none; letter-spacing: -0.01em; font: 600 0.88rem var(--sans); color: var(--text); vertical-align: bottom; }
.compare thead small { display: block; font: 0.72rem var(--mono); color: var(--muted); }
.compare .us { background: rgb(74 222 128 / 0.05); }
.compare small { color: var(--muted); font-size: 0.76rem; }
.y, .n, .p { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.y::before, .n::before, .p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.y { color: var(--green); } .y::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.n { color: var(--muted); } .n::before { background: #4b4f56; }
.p { color: var(--amber); } .p::before { background: var(--amber); }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 3rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 1.5rem; } }
.faq > * { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0; color: var(--text); font-weight: 550; font-size: 0.96rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq-list details p { margin: 0 0 1.1rem; font-size: 0.92rem; color: var(--muted); }

/* CTA */
.cta { position: relative; padding: 6rem 0; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(74 222 128 / 0.14), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.82rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 2rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.foot ul { display: flex; gap: 1.3rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-note { width: 100%; margin: 0; }

/* ---------- Scroll reveals and micro-animations (only with html.motion) ---------- */
.motion .card.in .viz-focus .ring { animation: hop 4s var(--ease) infinite; }
@keyframes hop { 0%, 18% { transform: translateX(0); } 25%, 43% { transform: translateX(calc((100cqw - 2.8rem - 34px) / 3)); } 50%, 68% { transform: translateX(calc((100cqw - 2.8rem - 34px) / 3 * 2)); } 75%, 93% { transform: translateX(calc(100cqw - 2.8rem - 34px)); } 100% { transform: translateX(0); } }
.viz-focus { container-type: inline-size; }
.motion .card.in .viz-axe s { animation: fadein 0.4s 0.6s both; }
.motion .card.in .viz-axe .gone b { animation: fadein 0.4s 1.1s both; }
.motion .card.in .viz-hide .bad { animation: strike 0.6s 0.6s both; }
.motion .card.in .viz-hide .tag, .motion .card.in .viz-name .eq { animation: fadein 0.4s 1.1s both; }
.motion .card.in .viz-tree .in { animation: fadein 0.35s both; }
.motion .card.in .viz-tree .in:nth-child(2) { animation-delay: 0.4s; }
.motion .card.in .viz-tree .in:nth-child(3) { animation-delay: 0.7s; }
.motion .card.in .viz-tree .in:nth-child(4) { animation-delay: 1s; }
.motion .card.in .viz-px .hit { animation: pulse 2s 0.6s infinite; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
@keyframes strike { from { text-decoration-color: transparent; color: var(--text-2); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.5); } 50% { box-shadow: 0 0 0 6px rgb(74 222 128 / 0); } }

/* ===================== Brand: the dashed focus ring ===================== */
:focus-visible { outline: 2px dashed var(--green); outline-offset: 4px; border-radius: 8px; }
.brand b { color: var(--green); font-weight: 600; }
.brand-mark { color: var(--green); flex: none; }
.hero-mark { color: var(--green); margin-bottom: 1.6rem; overflow: visible; filter: drop-shadow(0 0 24px rgb(74 222 128 / 0.35)); }
.motion .hero-mark .m-ring { animation: march 2.4s linear infinite, ring-in 0.6s var(--ease) both; transform-origin: center; }
.motion .hero-mark .m-check { stroke-dasharray: 1; animation: draw 0.6s var(--ease) 0.45s both; }
@keyframes march { to { stroke-dashoffset: -27.2; } }
@keyframes ring-in { from { transform: scale(1.35); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.card:hover { border-color: transparent; outline: 1.5px dashed rgb(74 222 128 / 0.55); outline-offset: -1px; }

/* Hero */
.hero-meta { margin: 1.4rem 0 0; font-size: 0.82rem; color: var(--muted); }
.try { gap: 0.4em; }
.try-rot { display: inline-grid; }
.try-rot > span { display: none; align-items: center; gap: 0.35em; white-space: nowrap; }
.try-rot > span:first-child { display: inline-flex; }
.try-rot.js > span { display: none; }
.try-rot.js > span.on { display: inline-flex; animation: fadein 0.35s var(--ease); }
.try-rot svg, .works svg, .ca-tabs svg { width: 16px; height: 16px; flex: none; }
.demo-label { text-align: center; margin: 0 0 0.9rem; font-size: 0.85rem; color: var(--muted); }
.works b { display: inline-flex; align-items: center; gap: 0.4rem; }
.works svg { color: var(--muted); }

/* ===================== Install guide ===================== */
.guide { border-radius: 18px; padding: 1rem; border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04)) border-box; }
.guide .ca-tabs { margin-bottom: 1rem; }
.guide .ca-tabs button { display: inline-flex; align-items: center; gap: 0.45rem; }
.guide .ca-panel { padding: 0.6rem 0.8rem 0.8rem; }
.guide .ca-panel + .ca-panel { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.guide.tabbed .ca-panel + .ca-panel { margin-top: 0; border-top: 0; padding-top: 0.6rem; }
.guide .ca-title { font: 600 1rem var(--sans); letter-spacing: -0.01em; text-transform: none; color: var(--text); margin: 0 0 1rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 1.1rem; }
.steps > li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; column-gap: 0.9rem; }
.steps > li::before { content: counter(st); grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 0.78rem var(--mono); color: var(--green); border: 1.5px dashed rgb(74 222 128 / 0.6); }
.steps > li > * { grid-column: 2; min-width: 0; }
.steps p { margin: 0.15rem 0 0.55rem; font-size: 0.92rem; color: var(--text-2); }
.steps .code { background: #0a0b0c; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; }
.steps .code pre { padding-right: 4.2rem; }
.steps .code .copy { top: 0.45rem; right: 0.45rem; }

/* ===================== Footer ===================== */
.site-footer { padding: 4rem 0 0; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { font-size: 1.05rem; }
.foot-brand p { margin: 0.8rem 0 1.2rem; color: var(--muted); font-size: 0.9rem; }
.foot-col h2 { margin: 0 0 0.9rem; font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-col a { color: var(--text-2); text-decoration: none; font-size: 0.88rem; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.foot-bottom p { margin: 0; }
.foot-check { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-word { margin: 1.5rem 0 -0.18em; font-weight: 700; font-size: clamp(4rem, 19vw, 15rem); line-height: 1; letter-spacing: -0.06em; text-align: center; user-select: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-top .foot-brand { display: block; }

/* ===================== v5: header, hero tour, everywhere strip, pinned scene ===================== */

/* Floating header */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; background: none; border: 0; backdrop-filter: none; pointer-events: none; }
.site-header .bar { pointer-events: auto; width: min(1100px, calc(100% - 24px)); margin-inline: auto; height: 54px; display: flex; align-items: center; gap: 1.5rem; padding: 0 0.5rem 0 1rem;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgb(13 14 16 / 0.72); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6); transition: background 0.25s, box-shadow 0.25s; }
.site-header.scrolled .bar { background: rgb(13 14 16 / 0.9); }
.site-header nav { margin-inline: auto; }
.nav-links { gap: 0.2rem; }
.nav-links a { display: block; padding: 0.4rem 0.75rem; border-radius: 8px; color: var(--muted); font-size: 0.87rem; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-links a[aria-current="true"] { color: var(--text); background: rgb(255 255 255 / 0.07); }
.header-actions { margin-left: 0; gap: 0.5rem; }
.gh { display: inline-flex; align-items: center; gap: 0.45rem; height: 32px; padding: 0 0.7rem; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.85rem; }
.gh:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.gh svg { width: 16px; height: 16px; }
.btn-green { background: var(--green); color: #052e16; font-weight: 600; }
.btn-green:hover { background: #6ff0a2; transform: translateY(-1px); }
@media (max-width: 860px) { .site-header nav { display: none; } .header-actions { margin-left: auto; } .gh span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Hero */
.hero { padding: 8.5rem 0 4.5rem; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }
.hero-copy { min-width: 0; }
.hero h1 { max-width: none; font-size: clamp(2.6rem, 5.4vw, 4.3rem); text-align: left; }
.hero .lede { margin: 1.3rem 0 2rem; text-align: left; max-width: 33rem; }
.hero .actions { justify-content: flex-start; }
.try-rot svg { width: 17px; height: 17px; }

/* The tour: a mock page tabbed through by a focus ring */
.tour { margin: 0; min-width: 0; }
.tour-win { border-radius: 16px; overflow: hidden; border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.04)) border-box; box-shadow: 0 50px 100px -40px rgb(0 0 0 / 0.85); }
.tour-chrome, .st-chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); font: 0.74rem var(--mono); color: var(--muted); }
.tour-chrome i, .st-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c31; }
.tour-chrome span, .st-chrome span { margin-left: 0.6rem; padding: 0.15rem 0.7rem; border-radius: 6px; background: var(--card); }
.tour-page { position: relative; padding: 1.3rem 1.4rem 1.6rem; display: grid; gap: 0.9rem; background: #f4f5f2; color: #1d2120; }
.t-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: #4b5150; }
.t-logo { width: 34px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #2f8f5b, #82c99a); }
.t-h1 { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.15; letter-spacing: -0.02em; color: #141716; }
.t-h2 { font-weight: 650; font-size: 1rem; width: fit-content; }
.t-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; align-items: center; }
.t-img { height: 92px; border-radius: 10px; background: repeating-linear-gradient(0deg, #cfe3d4 0 14px, #e3efe6 14px 28px), #cfe3d4; background-blend-mode: multiply; position: relative; }
.t-img::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 22px, rgb(47 143 91 / 0.25) 22px 24px); }
.t-lines { display: grid; gap: 7px; }
.t-lines i { height: 8px; border-radius: 4px; background: #d9dcd7; }
.t-lines i.short { width: 60%; }
.t-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.t-input { flex: 1 1 10rem; height: 34px; border: 1px solid #c9ceca; border-radius: 8px; background: #fff; font-size: 0.78rem; color: #6a706d; display: flex; align-items: center; padding: 0 0.7rem; }
.t-btn { height: 34px; border-radius: 8px; background: #1d6b45; color: #fff; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; padding: 0 0.9rem; }
.t-el { position: relative; }
.t-chip { position: absolute; z-index: 2; top: -11px; right: -8px; white-space: nowrap; font: 600 0.66rem var(--mono); padding: 0.18rem 0.5rem; border-radius: 999px; color: #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 0.25); }
.t-chip.ok { background: #15803d; }
.t-chip.no { background: #c0392b; }
.t-chip.warn { background: #92580a; }
.t-logo .t-chip { right: auto; left: -4px; top: -24px; }
.t-ring { position: absolute; z-index: 1; display: none; pointer-events: none; border: 2.5px dashed #2563eb; border-radius: 10px; box-shadow: 0 0 0 4px rgb(37 99 235 / 0.15); transition: left 0.55s var(--ease), top 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease); }
.tour.js .t-chip { opacity: 0; transform: translateY(4px) scale(0.9); transition: opacity 0.3s, transform 0.3s var(--ease); }
.tour.js .t-chip.on { opacity: 1; transform: none; }
.tour.js .t-ring { display: block; }
.tour figcaption { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* Works everywhere */
.everywhere { padding: 2.5rem 0 4rem; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.mq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2.2rem; }
.mq-list li { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text-2); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.mq-list svg { width: 22px; height: 22px; color: var(--text); opacity: 0.85; }
.ew-note { margin: 1.4rem auto 0; max-width: 46rem; font-size: 0.82rem; color: var(--muted); padding: 0 1rem; }

/* Examples and compare */
#examples .verdict-app { margin-top: 0.5rem; }
.compare-block { margin-top: 4rem; }
.compare-title { margin: 0 0 1.2rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.hosts { margin: -0.4rem 0 1.2rem; font-size: 0.88rem; color: var(--muted); }

/* Tour chips sit beside their element instead of on top of it */
.t-chip { top: 50%; right: auto; left: calc(100% + 8px); transform: translateY(-50%); }
.tour.js .t-chip { transform: translateY(-50%) scale(0.9); }
.tour.js .t-chip.on { transform: translateY(-50%); }
.t-logo .t-chip { top: 50%; left: calc(100% + 8px); }
.t-links .t-chip, .t-btn .t-chip { left: auto; right: 0; top: calc(100% + 8px); transform: none; }
.tour.js .t-links .t-chip, .tour.js .t-btn .t-chip { transform: translateY(-4px) scale(0.9); }
.tour.js .t-links .t-chip.on, .tour.js .t-btn .t-chip.on { transform: none; }
.t-img .t-chip { left: 8px; top: 8px; transform: none; }
.tour.js .t-img .t-chip { transform: scale(0.9); }
.tour.js .t-img .t-chip.on { transform: none; }
.tour-page { padding-bottom: 2.2rem; }
.t-nav { padding-bottom: 0.4rem; }

/* ===================== v6 fixes ===================== */
/* Axe card: before → after */
.viz-axe .row { display: flex; justify-content: space-between; align-items: center; }
.viz-axe .cnt { display: inline-flex; align-items: center; gap: 0.5rem; }
.viz-axe .cnt s { color: var(--red); text-decoration-thickness: 2px; margin: 0; }
.viz-axe .cnt i { font-style: normal; color: var(--muted); }
.viz-axe .cnt b { color: var(--green); margin: 0; padding: 0; }
.viz .bad { color: var(--text-2); text-decoration-color: var(--red); }

/* Focus card: four equal columns; the ring is one column wide and steps by its own width */
.viz-focus { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; padding: 0 1.4rem; }
.viz-focus i { z-index: 1; }
.viz-focus .ring { position: absolute; left: 1.4rem; top: 50%; width: calc((100% - 2.8rem) / 4); height: 46px; margin-top: -23px; display: grid; place-items: center; border: 0; box-shadow: none; border-radius: 0; }
.viz-focus .ring::before { content: ""; width: 46px; height: 46px; border-radius: 12px; border: 2px dashed var(--green); box-shadow: 0 0 0 4px rgb(74 222 128 / 0.14); }
.motion .card.in .viz-focus .ring { animation: hop4 4s var(--ease) infinite; }
@keyframes hop4 { 0%, 18% { transform: translateX(0); } 25%, 43% { transform: translateX(100%); } 50%, 68% { transform: translateX(200%); } 75%, 93% { transform: translateX(300%); } 100% { transform: translateX(0); } }


.steps em { color: var(--text); font-style: normal; }

/* Background: a faint dot grid, and now and then a focus ring lands on one of its cells */
body { background-image: radial-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1.2px); background-size: 28px 28px; background-attachment: fixed; }
main, .site-footer { position: relative; z-index: 1; }

.no-match { margin: 0 0 1rem; font-size: 0.86rem; color: var(--muted); }

/* ===================== v8 ===================== */
/* Boxes side by side end at the same height */
.results-grid { align-items: stretch; }
.results-grid > * { height: 100%; }

.everywhere { position: relative; z-index: 1; background: #030304; border-bottom: 1px solid var(--line); }

/* The verifier: six gates, two real fixes going through them */
.gates { position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: rgb(13 14 16 / 0.7); overflow: hidden; }
.gate-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gate { position: relative; padding: 1.3rem 1.1rem 1.4rem; border-left: 1px dashed var(--line-2); display: flex; flex-direction: column; transition: background 0.4s; }
.gate:first-child { border-left: 0; }
.g-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 0.9rem; border-radius: 8px; border: 1.5px dashed var(--line-2); font: 600 0.8rem var(--mono); color: var(--muted); transition: color 0.35s, border-color 0.35s, background-color 0.35s; }
.gate h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.gate p { margin: 0 0 1rem; font-size: 0.82rem; color: var(--muted); }
.g-ex { margin-top: auto; display: block; font-size: 0.72rem; color: #9ee6b8; background: #0a0b0c; border: 1px solid var(--line); border-radius: 7px; padding: 0.4rem 0.5rem; overflow-wrap: anywhere; }
.g-ex.bad { color: #ffb0a5; }
.g-ex s { color: var(--red); text-decoration-thickness: 2px; }
.lanes { display: grid; gap: 0.45rem; padding: 1.1rem 0 1rem; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.015); }
.lane { position: relative; height: 34px; }
.lane::before { content: ""; position: absolute; left: 2%; right: 2%; top: 50%; border-top: 1px dashed var(--line-2); }
.token { position: absolute; top: 50%; left: calc((var(--pos, 6) - 0.5) / 6 * 100%); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); transition: left 0.55s var(--ease), border-color 0.3s, background 0.3s; }
.token code { background: none; border: 0; padding: 0; font-size: 0.74rem; }
.lane-end { display: none; }
.token::after { font: 700 0.7rem var(--mono); }
.lane-ok .token { --pos: var(--a, 6); }
.lane-no .token { --pos: var(--b, 3); }
.gates.g-end .lane-ok .token { border-color: rgb(74 222 128 / 0.6); background: rgb(74 222 128 / 0.12); }
.gates.g-end .lane-ok .token::after { content: "✓ verified"; color: var(--green); }
.gates.g-stop .lane-no .token { border-color: rgb(255 123 107 / 0.6); background: rgb(255 123 107 / 0.12); }
.gates.g-stop .lane-no .token::after { content: "✕ rejected"; color: var(--red); }
.gates.g-stop .lane-no .token code { color: #ffb0a5; }
.gate.lit .g-n { border-style: solid; border-color: var(--green); color: var(--green); }
.gate.lit { background: rgb(74 222 128 / 0.03); }
.gate.stop .g-n { border-style: solid; border-color: var(--red); color: var(--red); background: rgb(255 123 107 / 0.1); }
.motion .gates.g-stop .gate.stop { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (max-width: 960px) {
  .lanes { display: none; }
  .gate-list { grid-template-columns: 1fr 1fr; }
  .gate { border-left: 0; border-top: 1px dashed var(--line-2); }
  .gate:nth-child(-n+2) { border-top: 0; }
  .gate:nth-child(even) { border-left: 1px dashed var(--line-2); }
}
@media (max-width: 560px) { .gate-list { grid-template-columns: 1fr; } .gate:nth-child(even) { border-left: 0; } .gate:nth-child(2) { border-top: 1px dashed var(--line-2); } }

/* Comparison: the verifa11y column is framed by a dashed focus ring */
.compare { overflow-x: auto; background: rgb(13 14 16 / 0.7); }
.compare table { border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.compare th, .compare td { padding: 0.95rem 1.2rem; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th { border-top: 0; padding-top: 1.3rem; padding-bottom: 1.1rem; vertical-align: bottom; }
.compare .c-name { display: flex; align-items: center; gap: 0.45rem; font: 600 1rem var(--sans); color: var(--text); letter-spacing: -0.01em; text-transform: none; }
.compare .c-sub { display: block; margin-top: 0.15rem; font: 0.72rem var(--mono); color: var(--muted); text-transform: none; letter-spacing: 0; }
.compare th[scope="row"] { color: var(--text-2); font-weight: 500; width: 34%; }
.compare .us { background: rgb(74 222 128 / 0.05); border-left: 1.5px dashed rgb(74 222 128 / 0.55); border-right: 1.5px dashed rgb(74 222 128 / 0.55); }
.compare thead .us { border-top: 1.5px dashed rgb(74 222 128 / 0.55); border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child .us { border-bottom: 1.5px dashed rgb(74 222 128 / 0.55); border-radius: 0 0 12px 12px; }
.compare tbody tr:hover th, .compare tbody tr:hover td { background-color: rgb(255 255 255 / 0.02); }
.compare tbody tr:hover td.us { background-color: rgb(74 222 128 / 0.08); }
.y, .n, .p { gap: 0.5rem; font-weight: 500; }
.y::before, .n::before, .p::before { width: 18px; height: 18px; border-radius: 50%; box-shadow: none; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.y { color: var(--text); } .y::before { background-color: rgb(74 222 128 / 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='%234ade80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.n { color: var(--muted); } .n::before { background-color: rgb(255 255 255 / 0.06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.p { color: var(--text-2); } .p::before { background-color: rgb(245 184 74 / 0.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23f5b84a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.compare td.us .y { color: var(--text); font-weight: 600; }

/* Keep the tokens inside the panel at the first and last gate */
.token { left: clamp(13%, calc((var(--pos, 6) - 0.5) / 6 * 100%), 87%); }

/* ===================== v9: install guide as a docs page ===================== */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); padding: 0; overflow: hidden; }
.docs-nav { padding: 1rem 0.8rem 1.2rem; border-right: 1px solid var(--line); background: rgb(255 255 255 / 0.012); }
.docs-search { position: relative; margin-bottom: 0.9rem; }
.docs-search[hidden] { display: none; }
.docs-search svg { position: absolute; left: 0.65rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.docs-search input { width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 0.7rem 0 2rem; font: 0.86rem var(--sans); }
.docs-search input::placeholder { color: #8a8f98; }
.docs .no-match { margin: 0 0.4rem 0.6rem; font-size: 0.8rem; }
.docs .no-match:empty { display: none; }
.tool-group { border: 0; margin: 0 0 0.9rem; padding: 0; min-width: 0; }
.tool-group[hidden] { display: none; }
.tool-group legend { padding: 0 0.6rem; margin-bottom: 0.3rem; font: 500 0.68rem var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.tool { position: relative; display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.6rem; border-radius: 7px; color: var(--text-2); font-size: 0.88rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.tool[hidden] { display: none; }
.tool input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tool svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: color 0.15s; }
.tool:hover { background: rgb(255 255 255 / 0.04); color: var(--text); }
.tool:has(input:checked) { background: rgb(74 222 128 / 0.08); color: var(--text); box-shadow: inset 0 0 0 1px rgb(74 222 128 / 0.45); }
.tool:has(input:checked) svg { color: var(--text); }
.tool:has(input:focus-visible) { outline: 2px dashed var(--green); outline-offset: 1px; }
.docs-body { min-width: 0; }
.tool-panel { display: none; padding: 1.5rem 1.7rem 1.7rem; }
.tp-title { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1.2rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.tp-title svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .docs { grid-template-columns: 1fr; }
  .docs-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0.9rem; }
  .tool-group { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.3rem; }
  .tool-group legend { grid-column: 1 / -1; }
  .tool { font-size: 0.84rem; }
  .tool-panel { padding: 1.2rem 1rem 1.3rem; }
}

/* Install guide: show the chosen tool's panel (generated with the guide) */
.docs:has(#tool-claude:checked) #p-claude,
.docs:has(#tool-codex:checked) #p-codex,
.docs:has(#tool-cursor:checked) #p-cursor,
.docs:has(#tool-windsurf:checked) #p-windsurf,
.docs:has(#tool-copilot:checked) #p-copilot,
.docs:has(#tool-gemini:checked) #p-gemini,
.docs:has(#tool-desktop:checked) #p-desktop,
.docs:has(#tool-zed:checked) #p-zed,
.docs:has(#tool-cline:checked) #p-cline,
.docs:has(#tool-opencode:checked) #p-opencode,
.docs:has(#tool-openclaw:checked) #p-openclaw,
.docs:has(#tool-ollama:checked) #p-ollama,
.docs:has(#tool-cli:checked) #p-cli,
.docs:has(#tool-gha:checked) #p-gha,
.docs:has(#tool-mcp:checked) #p-mcp { display: block; }

/* ===================== v10: scanner, mobile ===================== */
/* How it works: the demo page on the left, verifa11y's report on the right */
.scan { border-top: 1px solid var(--line); padding-top: 5.5rem; }
.scan-head { margin-bottom: 2rem; max-width: 46rem; }
.scan-pin { padding-bottom: 5rem; }
.scan-frame { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: 0 50px 100px -40px rgb(0 0 0 / 0.85); }
.sf-bar { height: 42px; display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem; }
.sf-site { display: flex; flex-direction: column; min-width: 0; background: #fbfaf6; border-right: 1px solid var(--line-2); }
.sp-chrome { background: #e4e7e2; border-bottom: 1px solid #d3d7d1; font: 0.72rem var(--mono); color: #464d49; }
.sp-chrome i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #c4c9c2; }
.sp-chrome span { flex: 1; min-width: 0; max-width: 17rem; margin-left: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 6px; background: #f6f7f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The demo site itself: a small community-garden page */
.site { position: relative; flex: 1; display: flex; flex-direction: column; color: #1d2120; font-family: var(--sans); }
.site p { margin: 0; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.4rem; background: #eef4ec; }
.site-logo { display: flex; align-items: center; gap: 0.45rem; font-weight: 650; font-size: 0.9rem; letter-spacing: -0.01em; color: #1d3b26; }
.site-links { display: flex; gap: 1.1rem; padding: 0.15rem 0.45rem; font-size: 0.84rem; color: #34423a; }
.site-hero { padding: 1.8rem 1.4rem 1.5rem; }
.site .site-kicker { margin-bottom: 0.4rem; font: 600 0.66rem var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: #2f6f3e; }
.site .site-h1 { max-width: 17ch; margin-bottom: 0.45rem; font: 600 clamp(1.3rem, 2.3vw, 1.7rem)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; color: #13201a; }
.site-lede { font-size: 0.88rem; color: #535e57; }
.site-body { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 0.95rem; padding: 0.4rem 1.4rem 1.5rem; border-top: 1px solid #e6e9e3; }
.site .site-h2 { align-self: flex-start; margin-left: -0.35rem; padding: 0.05rem 0.35rem; font: 600 1.06rem Georgia, "Times New Roman", serif; color: #13201a; }
.site-media { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 1rem; align-items: center; }
.site-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px; aspect-ratio: 4 / 3; border-radius: 10px; background: #dde8da; }
.site-map i { border-radius: 3px; background: #bfd3bb; }
.site-map i.free { background: #2f6f3e; }
.site-text { font-size: 0.82rem; line-height: 1.5; color: #3a443e; }
.site-form { display: flex; gap: 0.5rem; }
.site-input { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; padding: 0 0.75rem; border: 1px solid #c3c9c2; border-radius: 8px; background: #fff; font-size: 0.8rem; color: #5f6862; }
.site-btn { height: 36px; display: flex; align-items: center; padding: 0 0.9rem; border-radius: 8px; background: #2f6f3e; color: #fff; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

/* Marks on the demo page: dashed while flagged, solid once judged, with the finding's number */
.sp-el { position: relative; border-radius: 8px; outline: 2px dashed transparent; outline-offset: 4px; transition: outline-color 0.35s; }
.sp-el::after { content: attr(data-n); position: absolute; top: -14px; right: -14px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 700 0.66rem/1 var(--mono); color: #fff; background: #c8321f; box-shadow: 0 0 0 2px #fbfaf6; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.3s var(--ease), background 0.3s; }
.scan.done .sp-el, .sp-el[data-phase] { outline-color: #d93a2b; }
.scan.done .sp-el::after, .sp-el[data-phase]::after { opacity: 1; transform: none; }
.scan.done .sp-el[data-ok="1"], .sp-el[data-phase="3"][data-ok="1"] { outline-color: #1f9a52; outline-style: solid; }
.scan.done .sp-el[data-ok="1"]::after, .sp-el[data-phase="3"][data-ok="1"]::after { background: #157a3e; }
.scan.done .sp-el[data-ok="0"], .sp-el[data-phase="3"][data-ok="0"] { outline-style: solid; }

/* The report */
.sf-report { display: flex; flex-direction: column; min-width: 0; }
.sf-title { border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.88rem; font-weight: 600; }
.sf-count { margin-left: auto; font: 500 0.74rem var(--mono); color: var(--muted); white-space: nowrap; }
.sf-count b { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-count b.no { color: var(--red); }
.hud-bar { height: 2px; background: var(--line); }
.hud-bar span { display: block; height: 100%; width: calc(var(--sp, 1) * 100%); background: linear-gradient(90deg, var(--green), #7aa2ff); }
.findings { flex: 1; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.finding { flex: 1; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 0.8rem; align-content: center; padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--line); transition: background 0.35s; }
.finding:last-child { border-bottom: 0; }
.finding > p { grid-column: 2; margin: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.f-n { grid-row: 1 / span 4; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px dashed var(--line-2); font: 700 0.7rem/1 var(--mono); color: var(--muted); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.finding .n-rule { color: var(--text); font: 600 0.88rem/1.35 var(--sans); }
.n-rule em { display: block; margin-top: 0.15rem; font: 500 0.68rem var(--mono); font-style: normal; color: var(--muted); }
.finding .n-why { margin-top: 0.2rem; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.finding .n-diff { margin-top: 0.45rem; font: 0.74rem/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.n-diff .d-del { color: #ff9a8d; text-decoration: line-through; text-decoration-color: rgb(255 154 141 / 0.6); }
.n-diff .d-add { color: #7ee2a3; }
.n-diff .d-add.bad { color: #ffb0a5; }
.n-diff .arr { color: var(--muted); }
.finding .n-verdict { margin-top: 0.2rem; font: 600 0.72rem var(--mono); }
.n-verdict.ok { color: var(--green); }
.n-verdict.no { color: var(--red); }
.scan.done .finding[data-ok="1"] .f-n, .finding[data-phase="3"][data-ok="1"] .f-n { border: 1.5px solid rgb(74 222 128 / 0.55); background: var(--green-bg); color: var(--green); }
.scan.done .finding[data-ok="0"] .f-n, .finding[data-phase="3"][data-ok="0"] .f-n,
.finding[data-phase="1"] .f-n, .finding[data-phase="2"] .f-n { border: 1.5px solid rgb(255 123 107 / 0.55); background: var(--red-bg); color: var(--red); }
.finding[data-phase="1"], .finding[data-phase="2"] { background: rgb(255 255 255 / 0.03); }
/* While it plays: findings not reached yet are faint, and each one fills in step by step */
.scan.live .finding:not([data-phase]) .n-rule { opacity: 0.3; }
.scan.live .finding:not([data-phase]) :is(.n-why, .n-diff, .n-verdict),
.scan.live .finding[data-phase="1"] :is(.n-diff, .n-verdict),
.scan.live .finding[data-phase="2"] .n-verdict { opacity: 0; transform: translateX(-6px); }

/* The scan line */
.scan-line { display: none; position: absolute; left: 0; right: 0; top: calc(var(--sp, 0) * 100%); border-top: 2px dashed #2563eb; pointer-events: none; transition: opacity 0.4s; }
.scan-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(180deg, transparent, rgb(37 99 235 / 0.12)); }
.scan-line span { position: absolute; right: 8px; top: -22px; padding: 0.15rem 0.45rem; border-radius: 999px; background: #2563eb; color: #fff; font: 600 0.62rem var(--mono); }
.scan.live .scan-line { display: block; }
.scan.end .scan-line { opacity: 0; }

/* Pinned on wide screens */
.scan.pinned .scan-track { height: 280vh; }
.scan.pinned .scan-pin { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 4.5rem 0 1.5rem; }
.scan.pinned .scan-pin > .wrap { width: min(1080px, 100% - 3rem); }
@media (max-width: 860px) {
  .scan { padding-top: 4rem; }
  .scan-pin { padding-bottom: 3.5rem; }
  .scan-frame { grid-template-columns: minmax(0, 1fr); }
  .sf-site { border-right: 0; border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 480px) {
  .scan-frame { border-radius: 14px; }
  .sp-chrome span { max-width: none; }
  .site-nav { padding: 0.7rem 1rem; }
  .site-logo { font-size: 0.84rem; }
  .site-links { gap: 0.75rem; font-size: 0.78rem; }
  .site-hero { padding: 1.15rem 1rem 1rem; }
  .site-body { gap: 0.85rem; padding: 0 1rem 1.2rem; }
  .site-media { grid-template-columns: 104px minmax(0, 1fr); gap: 0.8rem; }
  .site-text { font-size: 0.76rem; }
  .site-btn { padding: 0 0.7rem; font-size: 0.76rem; }
  .finding { padding: 0.85rem 1rem; column-gap: 0.7rem; }
}

/* ===================== v10: phones ===================== */
/* Comparison: a card per row on phones, verifa11y first and framed */
.compare-cards { display: none; }
@media (max-width: 640px) {
  .compare { display: none; }
  .compare-cards { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
  .compare-cards li { padding: 0.9rem 0.9rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; background: rgb(13 14 16 / 0.7); }
  .cc-q { margin: 0 0 0.7rem; color: var(--text); font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
  .compare-cards dl { margin: 0; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0.4rem; }
  .compare-cards dl > div { min-width: 0; padding: 0.5rem 0.55rem 0.55rem; border-radius: 9px; background: rgb(255 255 255 / 0.03); }
  .compare-cards .cc-us { background: rgb(74 222 128 / 0.06); outline: 1.5px dashed rgb(74 222 128 / 0.55); outline-offset: -1.5px; }
  .compare-cards dt { margin-bottom: 0.35rem; font: 500 0.6rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .compare-cards .cc-us dt { color: var(--green); }
  .compare-cards dd { margin: 0; font-size: 0.78rem; line-height: 1.3; }
  .compare-cards :is(.y, .n, .p) { align-items: flex-start; gap: 0.35rem; }
  .compare-cards :is(.y, .n, .p)::before { flex: none; width: 15px; height: 15px; margin-top: 1px; background-size: 10px; }
  .compare-cards .cc-us .y { font-weight: 600; }
  .compare-cards code { font-size: 0.72rem; }
}

/* Results table: four columns that fit a phone */
@media (max-width: 560px) {
  .results-grid .table-wrap table { font-size: 0.8rem; }
  .results-grid .table-wrap :is(th, td) { padding: 0.6rem 0.5rem; }
  .results-grid .table-wrap :is(th, td):first-child { padding-left: 0.85rem; }
  .results-grid .table-wrap caption { padding-inline: 0.85rem; }
  .results-grid .ci { display: block; font-size: 0.68rem; }
}

/* The six gates: compact rows on phones */
@media (max-width: 560px) {
  .gate { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 0.85rem; padding: 0.95rem 1rem; }
  .gate .g-n { grid-row: 1 / span 3; margin: 0; }
  .gate h3 { margin: 0.2rem 0 0.15rem; }
  .gate p { margin: 0 0 0.55rem; }
  .gate .g-ex { margin-top: 0; justify-self: start; }
}

/* Install: commands sized for a phone */
@media (max-width: 480px) {
  .steps .code pre { font-size: 0.76rem; line-height: 1.7; }
}

/* Install: config files keep their shape on phones and scroll sideways instead of breaking lines */
.steps .code pre.multi { white-space: pre; overflow-wrap: normal; overflow-x: auto; padding-right: 0; }

/* ===================== v11: less template, more product ===================== */
/* The parts of the browser nobody draws carry the palette too */
::selection { background: rgb(74 222 128 / 0.3); color: #fff; }
html { scrollbar-color: #2b2e34 var(--bg); accent-color: var(--green); }
input, textarea { caret-color: var(--green); }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
table, .num, .b-num, .sf-count, .results-lead { font-variant-numeric: tabular-nums; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Hero: the brand's dashed focus ring lands on the claim, instead of gradient text */
.hero-copy > .hero-mark { display: block; margin: 0 0 1.6rem; }
.hero h1 .hl { color: var(--green); }
.hero-meta { margin: 1.3rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* Works with: a plain list of logos that stays still */
.ew-title { margin: 0 0 1.6rem; font: 500 0.95rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.logos { max-width: 940px; margin: 0 auto; padding: 0 1rem; }
.logos .mq-list { gap: 1rem 2.1rem; }

/* Why: sourced sentences instead of big-number cards; the chart without a box */
.context { list-style: none; margin: 2.2rem 0 2.8rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.2rem; }
.context li { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.context p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.context b { color: var(--text); font-weight: 650; }
.context .src { margin-top: auto; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 820px) { .context { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; } }
.panel { padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: none; }

/* Results: the numbers live in a sentence */
.results-lead { max-width: 48rem; margin: 0 0 2rem; font-size: 1.02rem; color: var(--text-2); }
.results-lead [data-metric] { color: var(--text); font-weight: 600; }

/* Monospace only for code and data */
.compare .c-sub { font: 0.8rem var(--sans); }
.foot-col h2 { font: 600 0.85rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); }
.tool-group legend { font: 600 0.8rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.compare-cards dt { font: 600 0.7rem var(--sans); letter-spacing: 0; text-transform: none; }
.limits strong { display: block; margin-bottom: 0.25rem; }


/* ===================== v12 ===================== */
/* Logo strip: one line that loops, with its pause button beside the title */
.ew-head { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0 0 1.5rem; padding: 0 1rem; }
.ew-head .ew-title { margin: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.motion .mq-list { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0 2.4rem; padding-right: 2.4rem; animation: marquee 52s linear infinite; }
.motion .marquee:hover .mq-list, .motion .marquee:focus-within .mq-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Scanner: three steps in plain words above the frame */
.scan-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; counter-reset: st; }
.scan-steps li { counter-increment: st; position: relative; padding-left: 2rem; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.scan-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px dashed rgb(74 222 128 / 0.6); font-size: 0.72rem; font-weight: 650; line-height: 1; color: var(--green); }
.scan-steps b { color: var(--text); font-weight: 600; }
.scan-head { max-width: 52rem; }

/* The demo site: an illustration and a footer, so it reads like a real page */
.site-art { display: block; width: calc(100% + 2.8rem); height: 92px; margin: -1.8rem -1.4rem 1.2rem; }
.site-foot { padding: 0.75rem 1.4rem; border-top: 1px solid #e3e6e0; background: #f1f3ee; font-size: 0.74rem; color: #535e57; }
.site .site-kicker { font-family: var(--sans); letter-spacing: 0.06em; }
.site-links { gap: 1.2rem; }

/* The report, in plain words first and code second */
.finding .n-rule { font-size: 0.92rem; }
.finding .n-why { font-size: 0.82rem; color: var(--text-2); opacity: 0.85; }
.finding .n-diff { font: 0.8rem/1.5 var(--sans); color: var(--muted); }
.finding .n-diff .d-del, .finding .n-diff .d-add { font: 0.76rem var(--mono); }
.finding .n-diff em { margin-left: 0.4rem; font: 0.7rem var(--sans); font-style: normal; color: var(--muted); white-space: nowrap; }
.finding .n-verdict { font: 600 0.8rem var(--sans); }
@media (max-width: 480px) {
  .site-art { width: calc(100% + 2rem); margin: -1.15rem -1rem 1rem; height: 78px; }
  .site-foot { padding: 0.7rem 1rem; }
  .scan-steps { flex-direction: column; }
}

/* ===================== v13: the glow, in a quieter material ===================== */
/* Three soft lights in muted sage and grey (no electric blue), moved by main.js: they drift with the scroll,
   split and join, and gather behind the footer word. A fine grain over them removes the plastic smoothness. */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; transform: translate3d(var(--x), var(--y), 0);
  background: radial-gradient(closest-side, var(--c), rgb(0 0 0 / 0) 100%); mix-blend-mode: screen; }
.ambient.live i { will-change: transform; }
.ambient .b1 { --s: 78vmax; --c: rgb(120 186 148 / 0.11); --x: 20vw; --y: 18vh; }
.ambient .b2 { --s: 62vmax; --c: rgb(150 166 158 / 0.07); --x: 82vw; --y: 62vh; }
.ambient .b3 { --s: 46vmax; --c: rgb(98 160 124 / 0.07); --x: 50vw; --y: 40vh; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.foot-word { --glow: 0;
  background:
    radial-gradient(36% 130% at var(--ga, 30%) 62%, rgb(140 205 165 / calc(0.42 * var(--glow))), transparent 72%),
    radial-gradient(36% 130% at var(--gb, 70%) 62%, rgb(170 185 178 / calc(0.3 * var(--glow))), transparent 72%),
    linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0));
  -webkit-background-clip: text; background-clip: text; }

/* The logo band: a solid dark strip */
.everywhere { background: #030304; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===================== v13: phones ===================== */
@media (max-width: 760px) {
  /* The scanner below shows the same demo page in full, so the hero keeps to the message */
  .hero .tour { display: none; }
  .hero-grid { gap: 0; }

  /* Example tabs: one row that scrolls sideways, the chosen one underlined */
  .va-tabs { display: flex; flex-wrap: nowrap; width: auto; margin: 0 -1rem 1rem; padding: 0 1rem; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .va-tabs::-webkit-scrollbar { display: none; }
  .va-tabs button { flex: none; padding: 0.6rem 0 0.7rem; border-radius: 0; white-space: nowrap; }
  .va-tabs button[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--green); }

  /* Comparison cards: tighter */
  .compare-cards { gap: 0.5rem; }
  .compare-cards li { padding: 0.8rem 0.8rem 0.85rem; }
  .cc-q { margin-bottom: 0.55rem; }

  /* Install list: tighter rows */
  .docs-nav { padding: 0.8rem 0.7rem; }
  .tool { padding: 0.34rem 0.5rem; font-size: 0.82rem; }
  .tool-group { margin-bottom: 0.6rem; }
}
@media (max-width: 560px) {
  /* The six checks: the description is enough on a phone */
  .gate .g-ex { display: none; }
  .gate p { margin-bottom: 0; }
  .gate { padding: 0.85rem 1rem; }
  /* Results table */
  .results-grid .table-wrap td:nth-child(2), .results-grid .table-wrap tr > td:first-child { white-space: nowrap; }
}

/* ===================== v14: light through the dot grid ===================== */
/* The page's dot grid is the surface. Two soft lights move over it (main.js) and only the dots catch them,
   so the light reads as texture instead of a coloured blob. A faint wash of the same light stays underneath. */
.dotlight { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgb(160 238 192 / 0.85) 1.15px, transparent 1.5px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle 30vmax at var(--x1, 24vw) var(--y1, 22vh), rgb(0 0 0 / var(--a1, 1)), rgb(0 0 0 / calc(0.4 * var(--a1, 1))) 40%, transparent 72%), radial-gradient(circle 24vmax at var(--x2, 78vw) var(--y2, 66vh), rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.25) 40%, transparent 72%);
  mask-image: radial-gradient(circle 30vmax at var(--x1, 24vw) var(--y1, 22vh), rgb(0 0 0 / var(--a1, 1)), rgb(0 0 0 / calc(0.4 * var(--a1, 1))) 40%, transparent 72%), radial-gradient(circle 24vmax at var(--x2, 78vw) var(--y2, 66vh), rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.25) 40%, transparent 72%); }
.ambient i { opacity: 0.35; }
@media (max-width: 760px) {
  /* Phones: bigger lights, so the effect is there on a narrow screen */
  .dotlight { opacity: 0.45;
    -webkit-mask-image: radial-gradient(circle 55vmax at var(--x1, 30vw) var(--y1, 25vh), rgb(0 0 0 / var(--a1, 1)), rgb(0 0 0 / calc(0.4 * var(--a1, 1))) 40%, transparent 72%), radial-gradient(circle 42vmax at var(--x2, 75vw) var(--y2, 70vh), rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.25) 40%, transparent 72%);
    mask-image: radial-gradient(circle 55vmax at var(--x1, 30vw) var(--y1, 25vh), rgb(0 0 0 / var(--a1, 1)), rgb(0 0 0 / calc(0.4 * var(--a1, 1))) 40%, transparent 72%), radial-gradient(circle 42vmax at var(--x2, 75vw) var(--y2, 70vh), rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.25) 40%, transparent 72%); }
}

/* ===================== v14: phones ===================== */
@media (max-width: 860px) {
  /* Report: findings not reached yet show only their title, so no empty boxes wait below the demo */
  .scan.live .finding:not([data-phase]) :is(.n-why, .n-diff, .n-verdict),
  .scan.live .finding[data-phase="1"] :is(.n-diff, .n-verdict),
  .scan.live .finding[data-phase="2"] .n-verdict { display: none; }
  .finding { flex: none; }
}
@media (max-width: 760px) {
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 1.8rem; }
  .hero { padding-bottom: 2.5rem; }
  /* Footer: the three link columns side by side */
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col a { font-size: 0.84rem; }
  .foot-bottom { margin-top: 2.2rem; }
}
