/* isquantumsafe.net — "Security lab": navy and mint, Inter. Navy for the product, light for reading. */
:root {
  --navy: #0b1b2e;
  --navy-2: #12263c;
  --navy-3: #1a3350;
  --navy-ink: #e8f0f7;
  --navy-muted: #9fb3c8;
  --mint: #3ddc97;
  --mint-ink: #062016;

  --bg: #ffffff;
  --paper: #f4f7fa;
  --line: #e3e9f0;
  --ink: #0b1b2e;
  --muted: #4a5d72;

  --good: #3ddc97;
  --good-text: #0b7a4b;
  --warn: #f5b942;
  --bad: #ff7a6b;

  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  --step-head: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
  --step-display: clamp(2.75rem, 1.2rem + 4.6vw, 5.25rem);

  --margin: clamp(1.25rem, 3.5vw, 3.5rem);
  --gutter: clamp(1rem, 2.2vw, 2.5rem);
  --section: clamp(6rem, 11vw, 10rem);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
pre, code { font-family: var(--mono); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
:target { scroll-margin-top: 5rem; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { max-width: 64ch; text-wrap: pretty; }
.wrap { padding-inline: var(--margin); }
.section { padding-block: calc(var(--section) / 2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.display { font-size: var(--step-display); line-height: 1.0; letter-spacing: -0.035em; }
.head { font-size: var(--step-head); line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.5; }
.mint { color: var(--mint); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 8px; background: var(--mint); color: var(--mint-ink); font-weight: 600; text-decoration: none; transition: transform 140ms var(--ease), background-color 180ms; white-space: nowrap; }
.btn:hover { background: #5be8aa; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: var(--step-small); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-block { width: 100%; min-height: 52px; }

/* navy surfaces */
.bar, .hero, .refs, .navy-band { background: var(--navy); color: var(--navy-ink); }
.bar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.wordmark { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 40px; width: auto; }
.foot .wordmark img { height: 32px; }
@media (max-width: 520px) { .bar .wordmark img { height: 32px; } }
.bar nav { display: flex; gap: 2rem; font-size: 15px; color: var(--navy-muted); }
.bar nav a, .foot a { text-decoration: none; transition: color 180ms; }
.bar nav a:hover, .foot a:hover { color: #fff; }
.bar .btn { justify-self: end; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: clamp(3rem, 8vh, 6rem); padding-bottom: 4rem; align-items: start; }
.hero-copy { grid-column: 1 / span 7; position: sticky; top: 96px; padding-top: clamp(1rem, 6vh, 4rem); }
.hero h1 { color: #fff; }
.hero-sub { margin-top: 1.75rem; color: #c3d2e0; max-width: 36ch; }
.checker { margin-top: 2.5rem; display: flex; gap: 8px; background: #fff; border-radius: var(--radius); padding: 8px; max-width: 600px; }
.checker input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: 19px; padding: 0 14px; }
.checker .btn { min-height: 52px; }
.checker:focus-within { box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.45); /* taste-skill-ignore: focus ring */ }
.hero-note { margin-top: 1rem; font-size: 14px; color: var(--navy-muted); }

.report { grid-column: 8 / -1; background: var(--navy-2); border-radius: 16px; padding: 28px; font-size: 15px; }
.rep-body { transition: opacity 240ms; }
.rep-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.rep-grade { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; background: var(--good); color: var(--mint-ink); }
.rep-grade[data-grade^="B"], .rep-grade[data-grade^="C"] { background: var(--warn); color: #2b1d00; }
.rep-grade[data-grade^="D"], .rep-grade[data-grade^="F"] { background: var(--bad); color: #2a0702; }
.rep-host { font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.rep-verdict { margin-top: 4px; color: var(--good); font-size: 15px; }
.report[data-verdict="partly"] .rep-verdict { color: var(--warn); }
.report[data-verdict="not-safe"] .rep-verdict, .report[data-verdict="broken"] .rep-verdict, .report[data-verdict="unreachable"] .rep-verdict { color: var(--bad); }
.rep-checks { margin-top: 22px; display: grid; gap: 2px; }
.rep-checks li { display: grid; grid-template-columns: 1fr auto; gap: 4px 1rem; align-items: baseline; padding: 11px 14px; background: #0f2135; border-radius: 6px; }
.rep-checks li:hover { background: var(--navy-3); }
.c-label::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); margin-right: 12px; vertical-align: 1px; }
.rep-checks .no .c-label::before { background: var(--bad); }
.rep-checks .info .c-label::before { background: var(--navy-muted); }
.c-detail { color: var(--navy-muted); text-align: right; }
.rep-checks .c-sub { grid-column: 1 / -1; color: var(--navy-muted); font-size: 14px; padding-left: 21px; }
.rep-foot { margin-top: 18px; font-size: 14px; color: var(--navy-muted); }
.rep-foot a { color: var(--mint); font-weight: 500; }
.rep-fixes { margin-top: 14px; display: grid; gap: 6px; }
.rep-fixes div { background: #0f2135; border-radius: 6px; padding: 12px 14px; font-size: 14px; color: #c3d2e0; }
.rep-fixes b { color: #fff; font-weight: 600; }
.rep-fixes pre { margin: 10px 0 0; font-size: 13px; color: var(--mint); white-space: pre-wrap; }
.rep-err { padding: 1rem 0; color: #c3d2e0; }
.steps { display: grid; gap: 10px; padding: 6px 0; color: var(--navy-muted); }
.steps li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--navy-3); margin-right: 12px; transition: background-color 200ms; }
.steps .on { color: #fff; }
.steps .on::before { background: var(--mint); }

.refs { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding-top: 1.75rem; padding-bottom: 2.25rem; }
.refs-title { font-size: 14px; font-weight: 500; color: var(--navy-muted); }
.refs-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.refs-list li { display: grid; font-size: 14px; padding: 14px 16px; background: var(--navy-2); border-radius: 10px; }
.refs-list b { color: #fff; font-weight: 600; font-size: 15px; }
.refs-list span { color: var(--navy-muted); }

/* why now */
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.why-head { grid-column: 1 / span 5; }
.why-copy { grid-column: 7 / -1; }
.why-copy > p:not(.lead) { margin-top: 1.1rem; color: var(--muted); }
.why-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.why-strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.why figcaption { margin-top: 0.6rem; font-size: 13px; color: var(--muted); }

/* explainer + timeline */
.explain { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.explain-head { grid-column: 1 / span 5; align-self: start; }
.facts { margin-top: 2rem; display: grid; gap: 2px; border-radius: 12px; overflow: hidden; }
.facts div { background: var(--paper); padding: 16px 20px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--good-text); text-transform: none; }
.facts dd { margin: 4px 0 0; font-size: 16px; }
.facts a, .explain-text .more { color: var(--good-text); font-weight: 600; }
.src-list { grid-column: 1 / -1; margin-top: 2rem; font-size: 14px; color: var(--muted); }
.src-list summary { cursor: pointer; font-weight: 600; }
.src-list ol { margin-top: 0.75rem; padding-left: 1.3em; columns: 2; column-gap: var(--gutter); }
.src-list li { margin-bottom: 6px; break-inside: avoid; }
.src-list a { color: var(--good-text); }
.explain-text { grid-column: 7 / -1; display: grid; gap: 1.1rem; align-content: start; }
.explain-text p { font-size: 18px; }
.explain-src { margin-top: 0.5rem; font-size: 14px; color: var(--muted); }
.explain-src a { color: var(--good-text); }
.timeline { grid-column: 1 / -1; margin-top: 4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.timeline li { background: var(--paper); border-radius: 10px; padding: 18px 16px 20px; display: grid; align-content: start; gap: 6px; transition: background-color 180ms; }
.timeline li:hover { background: #e9eff5; }
.timeline .yr { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.timeline li:last-child { background: var(--navy); color: #fff; }
.timeline li:last-child .yr { color: var(--mint); }
.timeline .tx { font-size: 15px; line-height: 1.45; }

/* methodology */
.method { background: var(--paper); }
.method-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.method-head .head { grid-column: 1 / span 5; }
.method-head .lead { grid-column: 7 / -1; color: var(--muted); }
.method-body { margin-top: 3rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.weights { grid-column: 1 / span 8; width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.weights th { text-align: left; font-weight: 500; font-size: 14px; color: var(--muted); padding: 14px 20px; }
.weights td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.weights td:first-child { font-weight: 500; }
.weights td:nth-child(2) { color: var(--muted); }
.weights .num { text-align: right; font-variant-numeric: tabular-nums; }
.weights tbody tr:first-child td:last-child { color: var(--good-text); font-weight: 700; }
.grades { grid-column: 9 / -1; display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.grades p { display: flex; align-items: center; gap: 14px; }
.gb { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--ink); }
.gb-a { background: var(--good); color: var(--mint-ink); }
.gb-b, .gb-c { background: var(--warn); }
.gb-d { background: var(--bad); }

/* handshake simulator */
.show { padding-block: calc(var(--section) / 2); }
.show-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.show-intro { grid-column: 1 / span 4; }
.show-intro .head { color: #fff; }
.show-intro p { margin-top: 1.25rem; color: #c3d2e0; }
.sim { grid-column: 6 / -1; display: grid; grid-template-columns: 62fr 38fr; border-radius: 16px; overflow: hidden; background: var(--navy-2); min-height: 500px; }
.sim-stage { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.sim-log { display: grid; gap: 6px; }
.sim-log li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 2px 14px; padding: 12px 14px; background: #0f2135; border-radius: 8px; font-size: 14.5px; transition: background-color 240ms; }
.sim-log .dir { font-weight: 600; color: #fff; grid-row: span 2; }
.sim-log .size { color: var(--navy-muted); font-size: 13px; }
.sim-log li.flash { background: var(--navy-3); }
.sim-out { padding: 20px; border-radius: 10px; background: var(--good); color: var(--mint-ink); transition: background-color 240ms; }
.sim-out[data-safe="false"] { background: var(--bad); color: #2a0702; }
.sim-out[data-safe="na"] { background: var(--navy-3); color: #fff; }
.sim-out-big { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.sim-out-small { margin-top: 6px; font-size: 15px; }
.sim-controls { background: #0f2135; padding: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.seg { margin-bottom: 1rem; display: grid; gap: 4px; }
.seg legend { font-weight: 600; margin-bottom: 8px; color: #fff; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 11px 12px; border-radius: 8px; background: var(--navy-2); color: #c3d2e0; transition: background-color 180ms; }
.seg label:hover span { background: var(--navy-3); }
.seg input:checked + span { background: var(--mint); color: var(--mint-ink); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.sw { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; position: relative; color: #c3d2e0; }
.sw input { position: absolute; opacity: 0; right: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.sw i { width: 44px; height: 26px; border-radius: 13px; background: var(--navy-3); position: relative; transition: background-color 240ms; flex: none; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 240ms var(--ease); }
.sw input:checked + i { background: var(--mint); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 2px solid var(--mint); outline-offset: 2px; }
.sim-link { margin-top: auto; padding-top: 1rem; color: var(--mint); font-weight: 500; }

/* api */
.api { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.api-copy { grid-column: 1 / span 5; }
.api-copy .lead { margin-top: 1.5rem; }
.api-copy > p:not(.lead) { margin-top: 1rem; color: var(--muted); }
.api-copy .btn { margin-top: 2rem; }
.api-code { grid-column: 7 / -1; display: grid; gap: 10px; min-width: 0; }
.api-code > * { min-width: 0; }
.call { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; }
.call pre { margin: 0; font-size: 14px; white-space: pre-wrap; padding-right: 4.5rem; }
.copy { position: absolute; top: 14px; right: 14px; font-size: 13px; padding: 6px 12px; border-radius: 6px; background: var(--navy-3); color: #fff; transition: background-color 180ms; }
.copy:hover { background: var(--mint); color: var(--mint-ink); }
.json { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 20px 22px; font-size: 13.5px; line-height: 1.6; color: var(--ink); overflow-x: auto; }

/* news */
.news { background: var(--paper); }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.news-sub { margin-top: 1rem; color: var(--muted); font-size: var(--step-lead); }
.news-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-top: 3rem; align-items: stretch; }
.nf { grid-column: 1 / span 7; background: var(--navy); color: #fff; border-radius: 16px; padding: clamp(24px, 3vw, 40px); text-decoration: none; display: grid; align-content: start; gap: 1rem; min-height: 360px; transition: background-color 200ms; }
.nf:hover { background: var(--navy-2); }
.nf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--navy-muted); }
.nf-new { background: var(--mint); color: var(--navy); font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.nf-title { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; max-width: 22ch; }
.nf-desc { color: #c3d2e0; font-size: 17px; max-width: 52ch; }
.nf-foot { margin-top: auto; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 14px; color: var(--navy-muted); }
.nf-go { color: var(--mint); font-weight: 600; font-size: 15px; }
.nf-go::after { content: " \2192"; display: inline-block; transition: transform 200ms var(--ease); }
.nf:hover .nf-go::after { transform: translateX(4px); }
.nl { grid-column: 8 / -1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.nl a { height: 100%; display: grid; align-content: center; gap: 6px; background: #fff; border-radius: 12px; padding: 16px 20px; text-decoration: none; transition: background-color 180ms; }
.nl a:hover { background: #eaf0f6; }
.nl-meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.nl-meta span { color: var(--good-text); font-weight: 600; }
.nl-title { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq-list { grid-column: 1 / span 5; }
.qs { display: grid; gap: 4px; margin-top: 2rem; }
.qs button { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; font-size: 17px; padding: 14px 16px; border-radius: 10px; color: var(--muted); transition: background-color 180ms, color 180ms; }
.qs button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #c3cfdb; transition: background-color 180ms; }
.qs button:hover { background: var(--paper); color: var(--ink); }
.qs button[aria-expanded="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }
.qs button[aria-expanded="true"]::before { background: var(--good-text); }
.qs .a { display: none; }
.faq-pane { grid-column: 7 / -1; position: sticky; top: 140px; align-self: start; margin-top: 5.5rem; }
.faq-pane p { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.4; letter-spacing: -0.01em; max-width: 32ch; transition: opacity 150ms; }
html:not(.js) .qs .a { display: block; margin: 0.25rem 0 0.75rem 2.4rem; color: var(--muted); }

/* cta */
.cta { padding-block: calc(var(--section) / 2); }
.cta-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.cta-copy { grid-column: 1 / span 6; }
.cta-title { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
.cta-copy p { margin-top: 1.25rem; color: #c3d2e0; font-size: var(--step-lead); max-width: 36ch; }
.dialog { grid-column: 8 / span 5; width: 100%; max-width: 460px; justify-self: end; background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; display: grid; gap: 10px; font-size: 15px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: data-ui dialog */ }
.dialog-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.dialog label[for] { font-weight: 500; font-size: 14px; }
.dialog input[type="text"] { background: var(--paper); border: 0; border-radius: 8px; padding: 13px 14px; font-size: 17px; outline: 0; }
.dialog input[type="text"]:focus { box-shadow: 0 0 0 2px var(--navy); /* taste-skill-ignore: focus */ }
.dialog .seg legend { color: var(--ink); font-size: 14px; }
.seg-sm { grid-template-columns: 1fr 1fr; margin: 4px 0 0; }
.seg-sm legend { grid-column: 1 / -1; }
.dialog .seg span { background: var(--paper); color: var(--ink); }
.dialog .seg label:hover span { background: #e6edf4; }
.dialog .seg input:checked + span { background: var(--navy); color: #fff; }
.badge-preview { padding: 16px; background: var(--paper); border-radius: 8px; display: grid; place-items: center; min-height: 76px; }
.badge-code { margin: 0; font-size: 12.5px; background: var(--navy); color: var(--mint); padding: 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; }

/* footer */
.foot { padding: 3rem 0 2rem; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.foot nav { display: flex; gap: 24px; color: var(--navy-muted); }
.foot-r { justify-self: end; color: var(--navy-muted); }
.credits { grid-column: 1 / -1; margin-top: 2rem; font-size: 13px; color: var(--navy-muted); max-width: none; }

/* phone and tablet */
@media (max-width: 960px) {
  .bar nav { display: none; }
  .bar { grid-template-columns: 1fr auto; height: 64px; }
  .hero-copy, .report, .why-head, .why-copy, .explain-head, .explain-text, .method-head .head, .method-head .lead, .weights, .grades, .show-intro, .sim, .api-copy, .api-code, .faq-list, .cta-copy, .dialog { grid-column: 1 / -1; }
  .report { margin-top: 2.5rem; }
  .hero-copy { position: static; padding-top: 0; }
  .refs { grid-template-columns: 1fr; gap: 1rem; }
  .refs-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .why { row-gap: 1.5rem; }
  .why-strip { grid-template-columns: 1fr 1fr; }
  .why-strip figure:last-child { display: none; }
  .explain-text { margin-top: 1.5rem; }
  .explain-head { position: static; }
  .src-list ol { columns: 1; }
  .method-head .lead { margin-top: 1rem; }
  .grades { margin-top: 2rem; grid-template-columns: 1fr 1fr; }
  .weights td:nth-child(2), .weights th:nth-child(2) { display: none; }
  .show-intro { margin-bottom: 2rem; }
  .sim { grid-template-columns: 1fr; }
  .api-code { margin-top: 2rem; }
  .news-head { flex-direction: column; align-items: start; }
  .news-body { gap: 12px; margin-top: 2rem; }
  .nf, .nl { grid-column: 1 / -1; }
  .nf { min-height: 0; }
  .faq-pane { display: none; }
  .qs button[aria-expanded="true"] + .a { display: block; padding: 4px 16px 16px 38px; color: var(--muted); }
  .dialog { justify-self: stretch; max-width: none; margin-top: 2rem; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { flex-wrap: wrap; gap: 16px; }
  .foot-r { justify-self: start; }
}
@media (max-width: 520px) {
  .checker { flex-direction: column; }
  .checker input { padding: 12px; }
  .rep-grade { width: 72px; height: 72px; font-size: 30px; }
  .refs-list { grid-template-columns: 1fr; }
  .grades { grid-template-columns: 1fr; }
}

/* motion: content stays visible without JS and with reduced motion */
.lines .line { display: block; overflow: clip; padding-bottom: 0.08em; }
.lines [data-line] { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .lines [data-line] { transform: translateY(105%); animation: rise 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 80ms); }
  html.js .hero-sub, html.js .checker, html.js .hero-note, html.js .hero .report { opacity: 0; animation: fadeup 700ms var(--ease) forwards; }
  html.js .hero-sub { animation-delay: 500ms; }
  html.js .checker { animation-delay: 600ms; }
  html.js .hero-note { animation-delay: 680ms; }
  html.js .hero .report { animation-delay: 420ms; }
  html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* subpages */
.page-head { background: var(--navy); color: var(--navy-ink); }
.page-head .wrap { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { color: #fff; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; }
.page-head p { margin-top: 1.25rem; color: #c3d2e0; max-width: 58ch; font-size: 19px; }
.crumbs { font-size: 14px; color: var(--navy-muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--mint); text-decoration: none; }
.faq-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq-side { grid-column: 1 / span 4; position: sticky; top: 100px; background: var(--navy); color: #fff; border-radius: 14px; padding: 28px; display: grid; gap: 14px; justify-items: start; }
.faq-side-t { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--mint); }
.faq-side p { color: #c3d2e0; }
.faq-side-s { font-size: 14px; }
.faq-side-s a { color: var(--mint); }
.faq-all { grid-column: 6 / -1; display: grid; gap: 10px; }
@media (max-width: 960px) { .faq-side, .faq-all { grid-column: 1 / -1; position: static; } .faq-all { margin-top: 1.5rem; } }
.faq-all details { background: var(--paper); border-radius: 12px; padding: 20px 24px; }
.faq-all summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq-all details p { margin-top: 0.75rem; }
.page-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.page-next a { background: var(--paper); border-radius: 12px; padding: 20px 22px; text-decoration: none; font-weight: 600; display: grid; gap: 4px; }
.page-next a small { font-weight: 400; color: var(--muted); font-size: 14px; }
.page-next a:hover { background: #e9eff5; }

.api-limits { margin-top: 1.1rem; font-size: 15px; color: var(--muted); }
.api-limits code { font-size: 0.9em; background: var(--paper); padding: 0.1em 0.35em; border-radius: 4px; }
.rep-link { margin-top: 0.75rem; font-size: 15px; } .rep-link a { color: var(--mint); font-weight: 600; }

/* report pages */
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.ck-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.ck-copy { grid-column: 1 / span 6; }
.ck-head .report { grid-column: 7 / -1; margin-top: 0.5rem; }
.ck-answer { font-size: 20px !important; color: #fff !important; }
.ck-answer[data-verdict="safe"] { color: var(--mint) !important; }
.ck-meta { font-size: 15px !important; color: var(--navy-muted) !important; }
.ck-meta a, .lnk { color: var(--mint); }
.ck-actions { margin-top: 1.75rem; display: flex; gap: 12px; flex-wrap: wrap; }
.ck-status { margin-top: 0.9rem !important; font-size: 15px !important; color: var(--warn) !important; min-height: 1.2em; }
.ck-h { font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem); }
.ck-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.ck-facts { grid-column: 1 / span 6; }
.ck-fix { grid-column: 8 / -1; }
.facts-table { margin-top: 1.5rem; display: grid; gap: 2px; border-radius: 12px; overflow: hidden; }
.facts-table div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; background: var(--paper); padding: 14px 18px; }
.facts-table dt { color: var(--muted); font-size: 15px; }
.facts-table dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts-table small { font-weight: 400; color: var(--muted); }
.tvs { display: flex; flex-wrap: wrap; gap: 6px; }
.tv { font-size: 13px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.tv-ok { background: #d9f6e8; color: var(--good-text); }
.tv-bad { background: #ffe1dc; color: #b3321f; }
.tv-off { background: #e6ecf2; color: var(--muted); font-weight: 500; }
.fix-list { margin-top: 1.5rem; padding-left: 1.2em; display: grid; gap: 1rem; }
.fix-list pre { margin-top: 0.5rem; background: var(--navy); color: #fff; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.ck-guide { margin-top: 1.25rem; }
.ck-guide a { color: var(--good-text); font-weight: 600; }
.ck-fix > p { margin-top: 1.25rem; }
.hist { margin-top: 1rem; width: 100%; border-collapse: collapse; font-size: 15px; }
.hist th, .hist td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.hist th { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.gchip { display: inline-grid; place-items: center; min-width: 2.4em; height: 1.8em; padding: 0 0.4em; border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.g-good { background: var(--mint); } .g-warn { background: var(--warn); } .g-bad { background: var(--bad); }
.ck-badge { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; background: var(--paper); border-radius: 16px; padding: 32px; }
.ck-badge > div:first-child { grid-column: 1 / span 5; }
.ck-badge-box { grid-column: 6 / -1; display: grid; gap: 12px; justify-items: start; }
.ck-badge-box pre { width: 100%; background: var(--navy); color: #cfe; border-radius: 10px; padding: 14px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ck-badge-box .copy { background: var(--navy); color: #fff; }
.rel { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; list-style: none; padding: 0; }
.rel a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--paper); border-radius: 10px; padding: 12px 14px; text-decoration: none; }
.rel a:hover { background: #e9eff5; }
.rel .gchip { grid-row: span 2; }
.rel span:not(.gchip) { font-weight: 600; overflow-wrap: anywhere; }
.rel small { color: var(--muted); }
.ck-more { margin-top: 1rem; } .ck-more a { color: var(--good-text); font-weight: 600; }

/* leaderboard */
.lb-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.lb-big { display: grid; justify-items: end; text-align: right; }
.lb-num { font-size: clamp(4rem, 2rem + 6vw, 7.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--mint); }
.lb-lab { color: #c3d2e0; font-size: 17px; max-width: 14ch; }
.lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--paper); border-radius: 12px; padding: 22px 24px; display: grid; gap: 4px; }
.stat b { font-size: 34px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 15px; }
.lb-split { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 2); padding-top: 0; }
.bars { margin-top: 1.5rem; display: grid; gap: 10px; list-style: none; padding: 0; }
.bars li { display: grid; grid-template-columns: 3rem 1fr 3rem; gap: 12px; align-items: center; }
.bt { height: 14px; background: var(--paper); border-radius: 7px; overflow: hidden; }
.bf { display: block; height: 100%; border-radius: 7px; }
.bn { text-align: right; font-weight: 600; }
.prov { margin-top: 1.5rem; width: 100%; border-collapse: collapse; font-size: 15px; }
.prov th, .prov td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.prov th { color: var(--muted); font-weight: 500; }
.pbar { display: inline-block; width: 80px; height: 8px; background: var(--paper); border-radius: 4px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--mint); }
.lb-no { padding-top: 0; }
.nolist { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; list-style: none; padding: 0; }
.nolist a { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 10px; background: var(--paper); border-radius: 10px; padding: 14px 16px; text-decoration: none; }
.nolist a:hover { background: #e9eff5; }
.nolist .rk { color: var(--muted); font-size: 14px; }
.nolist .h { font-weight: 600; overflow-wrap: anywhere; }
.lb-table { padding-top: 0; }
.lb-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.lb-tools .ck-h { margin-right: auto; }
.lb-filter { display: flex; background: var(--paper); border-radius: 10px; padding: 4px; }
.lb-filter button { padding: 8px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; }
.lb-filter button[aria-pressed="true"] { background: var(--navy); color: #fff; }
#lb-q { height: 42px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 14px; font: inherit; font-size: 15px; min-width: 200px; }
.lb-scroll { margin-top: 1.25rem; overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.board th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
.board td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.board td:first-child { color: var(--muted); width: 4rem; }
.board a { color: var(--ink, inherit); font-weight: 600; text-decoration: none; }
.board a:hover { color: var(--good-text); text-decoration: underline; }
.lb-note { margin-top: 1.25rem; font-size: 14px; }
.lb-note .lnk { color: var(--good-text); }
@media (max-width: 960px) {
  .ck-copy, .ck-head .report, .ck-facts, .ck-fix, .ck-badge > div:first-child, .ck-badge-box { grid-column: 1 / -1; }
  .ck-head .report { margin-top: 2rem; }
  .ck-badge { row-gap: 1.25rem; padding: 22px; }
  .lb-head { grid-template-columns: 1fr; } .lb-big { justify-items: start; text-align: left; }
  .lb-stats { grid-template-columns: 1fr 1fr; } .lb-split { grid-template-columns: 1fr; }
  .facts-table div { grid-template-columns: 1fr; gap: 2px; }
}

/* guides */
.gd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem !important; }
.gd-tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #c3d2e0; }
.gd-tag.gd-yes { background: var(--mint); color: var(--navy); }
.gd-tag.gd-partial { background: var(--warn); color: var(--navy); }
.gd-tag.gd-no { background: #ffe1dc; color: #b3321f; }
.gd-post { padding-top: clamp(2.5rem, 5vw, 4rem); }
.gd-more { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gd-group + .gd-group { padding-top: 0; }
.gd-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.gd-grid a { display: grid; gap: 8px; justify-items: start; background: var(--paper); border-radius: 12px; padding: 20px 22px; text-decoration: none; min-height: 120px; transition: background-color 180ms; }
.gd-grid a:hover { background: #e9eff5; }
.gd-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.gd-grid .gd-tag { background: #e6ecf2; color: var(--muted); }
.gd-grid .gd-tag.gd-yes { background: #d9f6e8; color: var(--good-text); }
.gd-grid .gd-tag.gd-partial { background: #fdf0d3; color: #8a5a00; }
.gd-grid .gd-tag.gd-no { background: #ffe1dc; color: #b3321f; }
.gd-min { font-size: 14px; color: var(--muted); }
