@font-face {
  font-family: Geist; src: url('./fonts/geist-latin.woff2') format('woff2');
  font-style: normal; font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk'; src: url('./fonts/space-grotesk-latin.woff2') format('woff2');
  font-style: normal; font-weight: 300 700; font-display: swap;
}
:root {
  --ink: #19191d; --muted: #53514e; --line: #8d8980; --light-line: #c7c3b8;
  --panel: #fffdf6; --paper: #f8f5ea; --canvas: #fffdf8; --field: #eeebdf; --hover: #e9e3f6;
  --accent: #4d349b; --accent-soft: #e4dcff; --action: #19191d; --action-ink: #fffdf6;
  --stroke: #19191d; --shadow-ink: #19191d; --iris: #ad99ff; --signal: #ffe459;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --heading: 'Space Grotesk', Geist, sans-serif;
  --magic-grid-line: rgb(25 25 29 / 12%); --site-header-height: 4.25rem;
  font-family: Geist, sans-serif; color: var(--ink); background: var(--paper);
  color-scheme: light; font-synthesis: none; line-height: 1.5;
}
:root[data-theme="dark"] {
  color-scheme: dark; --ink: #f7f3e8; --muted: #c7c0b3; --line: #817c75; --light-line: #535052;
  --panel: #29282d; --paper: #1e1d21; --canvas: #252429; --field: #333137; --hover: #3a324d;
  --accent: #c8b6ff; --accent-soft: #3a304f; --action: #f7f3e8; --action-ink: #19191d;
  --stroke: #e1dccf; --shadow-ink: #0b0a0d; --magic-grid-line: rgb(247 243 232 / 12%);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
h1,h2,h3,h4,p,dl,dd { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
button,input,select { font: inherit; }
button,summary { cursor: pointer; }
button:disabled,input:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(calc(100% - clamp(2rem,6vw,7rem)), 86rem); margin-inline: auto; }
.skip { position: fixed; z-index: 90; top: .5rem; left: 1rem; transform: translateY(-200%); background: var(--panel); padding: .45rem .7rem; }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; height: 1px; width: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.ui-icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: sticky; top: 0; z-index: 12; background: var(--panel); border-bottom: 2px solid var(--stroke); }
.header-inner { position: relative; display: flex; gap: clamp(.8rem,2.6vw,2.8rem); align-items: center; min-height: calc(var(--site-header-height) - 2px); max-width: 90rem; margin-inline: auto; padding-inline: clamp(1.15rem,4.7vw,4.5rem); }
.brand { display: inline-flex; flex: none; align-items: center; gap: .56rem; color: var(--ink); font: 700 1.45rem/1 var(--heading); letter-spacing: -.065em; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 2rem; height: auto; }
.brand-suffix { color: var(--accent); }
.main-nav { display: flex; gap: .18rem; align-items: center; }
.main-nav a { padding: .38rem .56rem; border: 1.5px solid transparent; color: var(--ink); font: 600 .86rem/1.35 var(--heading); text-decoration: none; white-space: nowrap; }
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current] { color: #19191d; background: var(--signal); border-color: #19191d; }
.header-actions { display: flex; gap: .72rem; align-items: center; margin-left: auto; }
.header-scan,.filled-link,.plain-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.3rem; padding: .34rem .85rem; border: 1.5px solid var(--stroke); border-radius: 0; box-shadow: 2px 2px 0 var(--shadow-ink); color: #19191d; background: var(--iris); font: 700 .9rem/1.3 var(--heading); text-decoration: none; }
.plain-link { background: var(--panel); color: var(--ink); }
:is(.filled-link,.header-scan,.plain-link):hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--shadow-ink); }
:is(.filled-link,.header-scan,.plain-link):active { transform: translate(2px,2px); box-shadow: none; }
.appearance { display: flex; border: 1.5px solid var(--stroke); background: var(--panel); }
.appearance button,.nav-toggle { display: grid; place-items: center; border: 0; height: 2.05rem; width: 2.05rem; background: transparent; color: var(--ink); }
.appearance button + button { border-left: 1px solid var(--stroke); }
.appearance button[aria-pressed="true"] { background: var(--signal); color: #19191d; }
.appearance .ui-icon { width: 1rem; height: 1rem; stroke-width: 1.9; }
.nav-toggle { display: none; }
@media (max-width: 60rem) {
  :root { --site-header-height: 3.8rem; }
  .header-inner { padding-inline: clamp(.8rem,3vw,1.6rem); }
  .main-nav { display: none; }
  .header-inner:has(.nav-toggle[aria-expanded="true"]) .main-nav { display: grid; position: absolute; z-index: 2; inset: 100% .75rem auto; gap: .2rem; padding: .5rem; background: var(--panel); border: 2px solid var(--stroke); box-shadow: 4px 4px 0 var(--shadow-ink); }
  .main-nav a { padding: .62rem .75rem; }
  .nav-toggle { display: grid; align-content: center; gap: 4px; border: 1.5px solid var(--stroke); height: 2.3rem; width: 2.3rem; }
  .nav-toggle span { width: 1rem; height: 2px; background: currentColor; }
}
@media (max-width: 26rem) {
  .header-inner,.header-actions { gap: .4rem; }
  .brand { font-size: 1.13rem; gap: .35rem; }
  .brand-mark { width: 1.625rem; }
  .header-scan { padding-inline: .48rem; font-size: .8rem; }
  .appearance button { width: 1.65rem; }
}
.panel { min-width: 0; }
.notice { margin-top: .65rem; font-size: .89rem; }
.notice:empty { display: none; }
.error { color: #b03c2e; } [data-theme="dark"] .error { color: #ffada1; }
/* Scanner and scoring guide */
.scan-hero, .home-content { width: min(91%,82rem); margin-inline: auto; }
.scan-hero {
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr);
  align-items: center; gap: clamp(2rem,6vw,6.7rem);
  padding: clamp(2.6rem,6vw,6rem) 0 clamp(3.25rem,6.5vw,6.75rem);
}
.scan-intro { min-width: 0; }
#intro-title { font: 700 clamp(3rem,6.35vw,6.25rem)/.97 var(--heading); letter-spacing: -.068em; text-wrap: balance; }
#intro-title span { box-shadow: inset 0 -.11em var(--signal); }
[data-theme="dark"] #intro-title span { box-shadow: inset 0 -.11em #8d7a27; }
.intro-description { max-width: 43ch; margin-top: 1.55rem; color: var(--muted); font: 450 clamp(1rem,1.32vw,1.17rem)/1.55 Geist,sans-serif; }
.audit-form { margin-top: clamp(1.55rem,2.8vw,2.7rem); max-width: 35rem; }
.audit-form > label { display: block; margin-bottom: .52rem; font: 650 .76rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .065em; }
.form-fields { display: flex; align-items: center; border: 2px solid var(--stroke); background: var(--panel); box-shadow: 4px 4px var(--shadow-ink); }
.form-fields:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.field-globe { width: 1.18rem; height: 1.18rem; margin-left: 1rem; }
.form-fields input { flex: 1; width: 2rem; min-width: 0; padding: .9rem .65rem; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 1rem/1.4 var(--mono); }
.form-fields input::placeholder { color: var(--muted); opacity: 1; }
.form-fields .primary { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; align-self: stretch; min-width: 6.9rem; padding: .8rem 1rem; border: 0; border-left: 2px solid var(--stroke); border-radius: 0; background: var(--signal); color: #19191d; font: 700 1.04rem/1.25 var(--heading); }
.form-fields .primary::after { content: ''; width: .8rem; height: .8rem; background: currentColor; clip-path: polygon(0 40%,66% 40%,39% 12%,52% 0,100% 50%,52% 100%,39% 88%,66% 60%,0 60%); }
.form-fields .primary:hover:not(:disabled) { background: var(--iris); }
.scan-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem 1.1rem; margin-top: 1rem; }
.scan-links a, .example-sites summary { width: fit-content; color: var(--ink); font: 500 .82rem/1.5 var(--mono); text-decoration: underline; text-underline-offset: .22em; }
.scan-links a:hover, .example-sites summary:hover { color: var(--accent); }
.example-sites[open] { flex-basis: 100%; }
#example-domains { display: flex; flex-wrap: wrap; gap: .35rem .55rem; max-width: 35rem; margin-top: .5rem; }
#example-domains a { padding: .25rem .5rem; border: 1px solid var(--stroke); background: var(--panel); text-decoration: none; }
#example-domains a:hover { background: var(--hover); }
.weight-card {
  width: 100%; max-width: 29rem; justify-self: end; margin: 0 .4rem .4rem 0;
  border: 2px solid var(--stroke); background: var(--panel); box-shadow: 7px 7px var(--shadow-ink);
  --chart-ink: #19191d; --chart-paper: #fffaf0;
}
.weight-card figcaption { display: flex; gap: .65rem; align-items: center; padding: .8rem 1.05rem; border-bottom: 2px solid var(--stroke); font: 700 1.15rem/1.35 var(--heading); letter-spacing: -.03em; }
.weight-card figcaption .ui-icon { width: 1.2rem; height: 1.2rem; stroke-width: 2; }
.weight-plot {
  --magic-grid-line: rgb(34 25 53 / 21%);
  display: grid; place-items: center; overflow: hidden; padding: clamp(1rem,2.4vw,2rem);
  background: var(--iris); color: var(--chart-ink);
}
.weight-ring {
  display: grid; place-items: center; width: min(60%,14.25rem); aspect-ratio: 1; border: 2px solid var(--chart-ink); border-radius: 50%;
  background: conic-gradient(from -90deg, var(--signal) 0 31.8%, var(--chart-ink) 31.8% 80.2%, var(--chart-paper) 80.2% 99.8%, var(--chart-ink) 99.8% 100%);
  box-shadow: 5px 6px 0 var(--chart-ink);
}
.weight-total { display: grid; place-content: center; justify-items: center; width: 64%; aspect-ratio: 1; border: 2px solid var(--chart-ink); border-radius: 50%; background: var(--chart-paper); }
.weight-total b { font: 700 clamp(2.8rem,4.7vw,4.35rem)/.94 var(--heading); letter-spacing: -.09em; padding-right: .08em; }
.weight-total span { margin-top: .25rem; font: 650 .69rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.weight-key { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 2px solid var(--stroke); }
.weight-key > div { display: flex; flex-direction: column-reverse; padding: .65rem clamp(.4rem,1.2vw,1rem); }
.weight-key > div + div { border-left: 1px solid var(--stroke); }
.weight-key dt { display: flex; gap: .35rem; align-items: center; font: 500 .73rem/1.4 var(--mono); }
.weight-key dt::before { content: ''; width: .58rem; height: .58rem; flex: none; border: 1px solid var(--chart-ink); background: var(--signal); }
.weight-key > div:nth-child(2) dt::before { background: var(--chart-ink); }
.weight-key > div:nth-child(3) dt::before { background: var(--chart-paper); }
[data-theme="dark"] .weight-key dt::before { border-color: #ccc6b9; }
.weight-key dd { font: 700 clamp(1.5rem,2.5vw,2.15rem)/1 var(--heading); letter-spacing: -.07em; margin-bottom: .25rem; }
.weight-link { display: flex; align-items: center; justify-content: space-between; padding: .55rem 1.05rem; color: var(--ink); font: 600 .77rem/1.5 var(--mono); text-decoration: none; }
.weight-link:hover { background: var(--hover); text-decoration: underline; }
.weight-link span { font-size: 1.1rem; }

.home-content { padding-bottom: clamp(2.5rem,5vw,5rem); }
.home-content > section {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.45fr); gap: clamp(1.4rem,5vw,5rem);
  border-top: 3px solid var(--stroke); padding: clamp(1.6rem,3.8vw,3.65rem) 0;
}
.section-intro h2 { max-width: 15ch; color: var(--ink); font: 700 clamp(1.85rem,3.5vw,3.4rem)/1.01 var(--heading); letter-spacing: -.07em; }
.section-intro p { max-width: 37ch; margin-top: .85rem; color: var(--muted); font: 440 1rem/1.6 Geist,sans-serif; }
.parameter-list { border: 2px solid var(--stroke); background: var(--panel); }
.parameter-list > div { padding: 1.1rem clamp(.85rem,2vw,1.55rem); }
.parameter-list > div + div { border-top: 1px solid var(--stroke); }
.parameter-list dt { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem .8rem; font: 700 1.08rem/1.3 var(--heading); letter-spacing: -.025em; }
.parameter-list dt span { padding: .13rem .4rem; border: 1px solid var(--stroke); background: var(--accent-soft); font: 500 .72rem/1.45 var(--mono); letter-spacing: 0; }
.parameter-list dd { margin-top: .45rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.security-coverage { margin-top: .55rem; }
.security-coverage summary, .methodology summary, .history-detail summary { width: fit-content; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.security-coverage ul { margin: .5rem 0 0; padding-left: 1.35rem; }
.security-coverage li + li { margin-top: .35rem; }
.methodology { margin-top: .95rem; font-size: .9rem; }
.methodology p { max-width: 78ch; margin-top: .55rem; color: var(--muted); line-height: 1.6; }
#audit, #target, .home-content section, #methodology, #ai-parameters, #security-parameters { scroll-margin-top: calc(var(--site-header-height) + 1.1rem); }
.home-content > .history { display: block; }
.history .section-intro h2 { max-width: none; }
.history .section-intro p { max-width: 65ch; }
.rank-intro-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.ranking-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-top: 1.6rem; }
.ranking-group { min-width: 0; border: 2px solid var(--stroke); padding: .95rem; background: var(--panel); }
.ranking-group h3 { font: 700 1.1rem/1.25 var(--heading); letter-spacing: -.04em; }
.ranking-group ol { list-style: none; margin: .75rem 0 0; padding: 0; counter-reset: rank; }
.ranking-group li { display: flex; align-items: baseline; gap: .55rem; border-top: 1px solid var(--line); padding: .55rem 0; counter-increment: rank; }
.ranking-group li::before { content: counter(rank); color: var(--muted); font: .77rem/1 var(--mono); }
.ranking-group a { color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.rank-score { margin-left: auto; font: 600 .9rem var(--mono); }
.rank-empty { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .75rem; color: var(--muted); font-size: .85rem; }
.history-detail { margin-top: 1.25rem; font-size: .9rem; }
.history-detail[open] summary { margin-bottom: .9rem; }
.rank-board { min-width: 0; }
.rank-board table { width: 100%; border: 2px solid var(--stroke); border-collapse: collapse; text-align: left; background: var(--panel); }
.rank-board th,.rank-board td { padding: .7rem .9rem; font-size: .9rem; }
.rank-board thead { border-bottom: 2px solid var(--stroke); background: var(--accent-soft); }
.rank-board thead th { font: 600 .73rem/1.4 var(--mono); }
.rank-board tbody th { font-weight: 600; overflow-wrap: anywhere; }
.rank-board tbody a { color: var(--ink); }
.rank-board tbody tr + tr { border-top: 1px solid var(--line); }
.rank-board td { color: var(--muted); font-size: .83rem; }
.rank-board td:last-child { color: var(--ink); font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.rank-board tr > :last-child { text-align: right; }
.recent-scans .rank-board { align-self: start; }
.recent-scans-status { color: var(--muted); font-size: .9rem; }
.recent-scans-status:not(:empty), .history-empty { padding: .8rem 0; }
.sdk-preview { align-self: start; margin: 0; border: 2px solid var(--stroke); background: var(--panel); }
.sdk-preview figcaption { padding: .45rem .8rem; border-bottom: 1px solid var(--stroke); background: var(--accent-soft); font: 600 .78rem/1.4 var(--mono); }
.stack-marks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.stack-marks li { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 4rem; font: 650 .93rem var(--heading); }
.stack-marks li + li { border-left: 1px solid var(--stroke); }
.stack-marks svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
@media (max-width: 55rem) {
  .scan-hero { grid-template-columns: minmax(0,1.1fr) minmax(0,.85fr); gap: 1.65rem; }
  #intro-title { font-size: clamp(3rem,6.35vw,3.75rem); }
  .weight-key dt { gap: .2rem; font-size: .65rem; }
  .ranking-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-content > section { grid-template-columns: minmax(0,.75fr) minmax(0,1.3fr); gap: 1.55rem; }
}
@media (max-width: 45rem) {
  .scan-hero { grid-template-columns: 1fr; gap: 2rem; padding: 2.7rem 0 3rem; }
  #intro-title { font-size: clamp(2.85rem,10.5vw,4.5rem); }
  .intro-description { margin-top: 1.15rem; }
  .audit-form { margin-top: 1.35rem; }
  .weight-card { max-width: 35rem; justify-self: start; width: calc(100% - 6px); }
  .weight-plot { padding: 1.1rem; }
  .weight-ring { width: clamp(8.8rem,34vw,11rem); }
  .weight-key dt { font-size: .75rem; gap: .4rem; }
  .weight-key > div { padding: .65rem .75rem; }
  .home-content > section { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-intro h2 { max-width: 21ch; }
  .section-intro p { max-width: 54ch; margin-top: .55rem; }
}
@media (max-width: 32rem) {
  .ranking-groups { grid-template-columns: 1fr; }
  .weight-key dt { font-size: .69rem; }
  .form-fields .primary { min-width: 5.1rem; padding-inline: .75rem; }
  .field-globe { margin-left: .6rem; }
  .rank-board th, .rank-board td { padding: .6rem .45rem; }
  .history-detail .rank-board tr > :nth-child(3) { display: none; }
}
.site-footer { border-top: 2px solid var(--stroke); background: var(--panel); color: var(--muted); }
.footer-inner { display: flex; width: min(91%,82rem); min-height: 4.6rem; align-items: center; justify-content: space-between; gap: .8rem; font: .78rem/1.5 var(--mono); }
.footer-inner > span { color: var(--ink); font: 700 1.08rem/1 var(--heading); letter-spacing: -.05em; }
.footer-inner a { color: inherit; }
