/* Shared by the landing pages (/, /how-it-works, /details): tokens, type, header, buttons,
   icons, cards and footer. verify.html and install.html keep their own copies of the tokens. */
:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efebe2;
  --ink: #1a1c20;
  --muted: #50535b;
  --line: #d9d4c9;
  --navy: #1b2a47;
  --navy-deep: #111c33;
  --gold: #b8912a;
  --gold-fill: #d4af37;
  --gold-soft: #f3e7bf;
  --gold-ink: #1f1a08;
  --rec: #d23a32;
  --good: #2e7d32;
  --good-soft: #e3f0e3;
  --ring: #1b2a47;
  --shadow: 0 1px 2px rgba(17, 28, 51, .06), 0 12px 32px -12px rgba(17, 28, 51, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1628; --surface: #151f37; --surface-2: #1b2743; --ink: #ebe8e1; --muted: #b5bccc;
    --line: #2b3858; --navy: #e9edf6; --navy-deep: #0a1120; --gold: #d4af37; --gold-fill: #d4af37;
    --gold-soft: #3a3320; --gold-ink: #1f1a08; --rec: #ff6b5e; --good: #81c784; --good-soft: #1d3324;
    --ring: #34466f; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1628; --surface: #151f37; --surface-2: #1b2743; --ink: #ebe8e1; --muted: #b5bccc;
  --line: #2b3858; --navy: #e9edf6; --navy-deep: #0a1120; --gold: #d4af37; --gold-fill: #d4af37;
  --gold-soft: #3a3320; --gold-ink: #1f1a08; --rec: #ff6b5e; --good: #81c784; --good-soft: #1d3324;
  --ring: #34466f; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); padding-inline: 20px; overflow-x: hidden; }
@media (max-width: 480px) { body { padding-inline: 16px; } }
.wrap { max-width: 1080px; margin: 0 auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Type scale: 13 / 15 / 17 / 21 / 28 / 40 / clamp(44–72) */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: clamp(42px, 7.5vw, 72px); line-height: 1.03; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4.6vw, 40px); line-height: 1.12; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 650; }
.lead { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 38ch; }
.prose { max-width: 62ch; color: var(--muted); }
.muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .86em; }
p code, li code { background: var(--surface-2); border-radius: 5px; padding: 1px 5px; }

/* A word that leads to the technical explanation, like a Wikipedia link. */
a.term { text-decoration: underline dotted; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; color: inherit; }
a.term:hover { color: var(--navy); text-decoration-style: solid; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px var(--serif); color: var(--navy); }
.brand img { width: 34px; height: 34px; display: block; }
nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 720px) { nav { gap: 10px; } nav a:not(.btn), nav .wide { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 16px var(--sans); text-decoration: none; padding: 13px 20px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); background: transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink); }
.btn.small { padding: 8px 14px; font-size: 15px; border-radius: 11px; }
.btn .ico { width: 18px; height: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Icons from icons.svg; stroked in currentColor. */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.badge.navy { background: var(--navy); color: var(--gold-fill); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge .ico { width: 26px; height: 26px; }

section.block { padding-block: 72px; display: grid; gap: 36px; }
.section-head { display: grid; gap: 12px; }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .prose { text-align: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* The legal note */
.law { border-block: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.law p:first-child { font: 600 19px/1.4 var(--serif); color: var(--navy); }
.law p:last-child { font-size: 14px; color: var(--muted); }

/* Example verification result */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 4px; box-shadow: var(--shadow); margin: 0; min-width: 0; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.report-head strong { font: 600 21px var(--serif); color: var(--good); display: flex; align-items: center; gap: 8px; }
.report-head span { font-size: 13px; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-block: 7px; border-top: 1px solid var(--line); font-size: 15px; }
.check:first-of-type { border-top: 0; }
.check i { font-style: normal; color: var(--good); font-weight: 700; }
.check.note i { color: var(--gold); }

/* Closing band */
.closing { background: var(--navy-deep); color: #f7f5f0; border-radius: 24px; padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; margin-block: 24px 40px; position: relative; overflow: hidden; }
.closing h2 { color: #f7f5f0; font-size: clamp(26px, 4vw, 34px); }
.closing p { color: #f7f5f0; opacity: .8; max-width: 46ch; margin-top: 8px; }
.closing .btn:not(.primary) { color: #f7f5f0; border-color: rgba(247, 245, 240, .3); }
footer { border-top: 1px solid var(--line); padding-block: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }

/* Gentle entrance as sections scroll in (only when JS marks the page). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
