/* Layout: a quiet top bar, a fact-sheet hero, full-width bands with a 42rem text measure,
   and one wider two-panel band for the Allow / Block choice. System fonts only, so the
   page's "nothing loaded from third parties" claim stays true. */
:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --ink: #16211d;
  --ink-2: #4d5c56;
  --rule: #d9e0dc;
  --accent: #1f6b58;
  --accent-ink: #ffffff;
  --accent-soft: #e3efea;
  --code-bg: #eaf0ed;
  --field: #ffffff;
  --field-rule: #85938d;
  --err: #a33a2f;
  --ok: #1f6b58;
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-body: Charter, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121816;
    --surface: #1a2320;
    --ink: #e6ebe8;
    --ink-2: #a2aeaa;
    --rule: #2b3733;
    --accent: #6cc3a6;
    --accent-ink: #0d1a15;
    --accent-soft: #1d2f29;
    --code-bg: #202b27;
    --field: #141c19;
    --field-rule: #5d6f67;
    --err: #e38a7f;
    --ok: #6cc3a6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121816;
  --surface: #1a2320;
  --ink: #e6ebe8;
  --ink-2: #a2aeaa;
  --rule: #2b3733;
  --accent: #6cc3a6;
  --accent-ink: #0d1a15;
  --accent-soft: #1d2f29;
  --code-bg: #202b27;
  --field: #141c19;
  --field-rule: #5d6f67;
  --err: #e38a7f;
  --ok: #6cc3a6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
}
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2 { font-family: var(--font-display); letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
code {
  font: .88em/1.45 var(--font-mono);
  background: var(--code-bg);
  padding: .1em .4em;
  border-radius: 4px;
}
b { font-weight: 650; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 650 1rem/1 var(--font-display);
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.mark { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.topnav { display: flex; gap: 1.25rem; font: 500 .85rem/1 var(--font-display); }
.topnav a { color: var(--ink-2); text-decoration: none; padding: 1rem 0; }
.topnav a:hover, .topnav a:focus-visible { color: var(--accent); }

/* Hero */
.hero { padding-block: 3rem 2.5rem; }
.eyebrow {
  font: 600 .75rem/1 var(--font-display);
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.9rem); line-height: 1.1; font-weight: 700; }
.lede { font-size: 1.1rem; color: var(--ink-2); margin-top: 1rem; max-width: 38rem; }
.facts {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.facts > div { padding: .85rem 1.5rem .85rem 0; border-top: 1px solid var(--rule); min-width: 0; }
.facts dt { font: 600 .76rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .35rem; }
.facts dd { margin: 0; font-size: .98rem; line-height: 1.4; }
/* the real numbers carry the hero: display face, accent colour */
.facts dd [data-stat] { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.05em; }

/* Bands */
.band { padding-block: 2.25rem; border-top: 1px solid var(--rule); }
.prose h2, .panel h2, .contact h2 { font-size: 1.35rem; font-weight: 650; margin-bottom: .9rem; }
/* a little more hierarchy once there is room */
@media (min-width: 44rem) {
  .band { padding-block: 2.75rem; }
  .prose h2, .panel h2, .contact h2 { font-size: 1.5rem; }
}
.prose p + p { margin-top: .85rem; }
.note { font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: .9rem; margin-top: 1rem; }
.small { font-size: .92rem; color: var(--ink-2); }

.verify {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .75rem;
}
.verify > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .8rem 1rem; min-width: 0; }
.verify dt { font: 600 .72rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .35rem; }
.verify dd { margin: 0; }
.verify dd code { font-size: 1rem; background: none; padding: 0; word-break: break-all; }
.prose pre { margin: .75rem 0 1rem; padding: .9rem 1rem; background: var(--code-bg); border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: .9rem; }
.panel .small + pre { margin: 0; }
.ua {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin: 1rem 0;
  padding: .9rem 1rem;
  background: var(--code-bg);
  border-radius: 8px;
}
.ua code { background: none; padding: 0; font-size: .92rem; word-break: break-all; min-width: 0; flex: 1 1 16rem; }
.copy {
  font: 600 .8rem/1 var(--font-display);
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: .6rem 1rem; cursor: pointer; min-height: 44px;
}
.copy:hover, .copy:focus-visible { border-color: var(--accent); }

/* Allow / Keep away: one card with two tab buttons across its top. Without JavaScript
   the tab strip is hidden and both panels simply stack. */
.choices .wrap { max-width: 48rem; display: grid; gap: 1.25rem; }
.tabs { display: none; }
.tabbed .tabs { display: flex; margin-bottom: calc(-1.25rem - 1px); position: relative; z-index: 1; }
.tab {
  flex: 1 1 0; min-width: 0; min-height: 48px;
  font: 650 1rem/1.2 var(--font-display); letter-spacing: -.01em;
  color: var(--ink-2); background: transparent;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding: .85rem 1rem; cursor: pointer;
}
.tab::before {
  content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%;
  margin-right: .55rem; vertical-align: .1em; background: var(--accent);
}
#tab-block::before { background: var(--ink-2); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--surface); border-color: var(--rule); }
.tab:focus-visible { outline-offset: -4px; }
@media (max-width: 26rem) { .tab { padding: .85rem .5rem; font-size: .95rem; } }
.tabbed .panel { border-top-left-radius: 0; border-top-right-radius: 0; }
.tabbed .panel h2 { display: none; }
.panel[hidden] { display: none; }
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 0;
  display: grid;
  gap: .9rem;
  align-content: start;
}
.panel h2 { margin-bottom: 0; }
#allow h2::before, #block h2::before {
  content: "";
  display: inline-block; width: .6rem; height: .6rem; border-radius: 50%;
  margin-right: .55rem; vertical-align: .1em;
  background: var(--accent);
}
#block h2::before { background: var(--ink-2); }
.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .55rem; }
.steps li::marker { font: 650 .9rem var(--font-display); color: var(--accent); }
.panel pre {
  margin: 0;
  padding: .9rem 1rem;
  background: var(--code-bg);
  border-radius: 8px;
  overflow-x: auto;
}
.panel pre code { background: none; padding: 0; font-size: .92rem; }
.panel pre, .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel pre code, .prose pre code { white-space: inherit; }

/* Contact */
.contact { display: grid; gap: 1.5rem; }
.contact-intro { display: grid; gap: .6rem; }
.contact-intro h2 { margin-bottom: .2rem; }
form {
  display: grid; gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
}
.row { display: grid; gap: .4rem; }
label { font: 600 .85rem/1.3 var(--font-display); color: var(--ink); }
input, textarea {
  width: 100%;
  font: 1rem/1.4 var(--font-display);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-rule);
  border-radius: 8px;
  padding: .7rem .8rem;
}
input::placeholder { color: var(--ink-2); opacity: .7; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
textarea { resize: vertical; min-height: 8rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.actions { grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
button[type="submit"] {
  font: 600 1rem/1 var(--font-display);
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: .85rem 1.4rem;
  cursor: pointer;
  min-height: 44px;
}
button[type="submit"]:hover { filter: brightness(1.06); }
button[disabled] { opacity: .6; cursor: default; filter: none; }
.status { font: .92rem/1.4 var(--font-display); color: var(--ink-2); min-height: 1.4em; min-width: 0; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
@media (max-width: 30rem) { .actions { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--rule); padding-block: 1.75rem 2.5rem; color: var(--ink-2); font-size: .9rem; }
footer .wrap { display: grid; gap: .6rem; }
.footnav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footnav a { color: var(--ink-2); text-decoration: none; font: 600 .82rem/1 var(--font-display); letter-spacing: .04em; min-height: 44px; display: inline-flex; align-items: center; }
.footnav a:hover, .footnav a:focus-visible { color: var(--accent); }

/* Site-wide additions: splash + about */
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.total { margin-top: 1.25rem; font-size: 1.05rem; }
.total strong { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.three h3 { font: 650 1.05rem/1.3 var(--font-display); margin: 0 0 .4rem; }
.three p { font-size: .98rem; }
.prose .three { margin-top: .25rem; }
.row.two { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.1rem; }
.row.two .row { display: grid; gap: .4rem; }
form .small { margin: 0; }
form a { color: var(--accent); }

