/* Anton's Paid Search Tools. Same family as antonhoelstad.dk (Version B: dark, cyan #38bdf8,
   Inter 15px/1.65 body text, JetBrains Mono eyebrows), plus a light theme. */

:root {
  color-scheme: dark;
  --bg: #0a0f1c;
  --bg-elevated: #111827;
  --bg-subtle: #0f1626;
  --bg-input: #0b1220;
  --border: #1f2937;
  --border-strong: #2d3748;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --text-muted: #94a3b8;
  --mono: #7dd3fc;
  --accent: #38bdf8;
  --accent-strong: #0066cc;
  --accent-ink: #38bdf8;
  --on-accent: #ffffff;
  --focus: #38bdf8;
  --fail: #f87171; --fail-bg: rgba(248, 113, 113, 0.10);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, 0.10);
  --tip: #7dd3fc;  --tip-bg: rgba(56, 189, 248, 0.10);
  --pass: #34d399; --pass-bg: rgba(52, 211, 153, 0.10);
  --hidden-text: #8391a7;
  --glow-1: rgba(46, 163, 242, 0.07);
  --glow-2: rgba(0, 102, 204, 0.05);
  --logo-filter: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.6);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-input: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-2: #334155;
    --text-muted: #475569;
    --mono: #0369a1;
    --accent: #0284c7;
    --accent-strong: #0066cc;
    --accent-ink: #0369a1;
    --on-accent: #ffffff;
    --focus: #0369a1;
    --fail: #b91c1c; --fail-bg: #fef2f2;
    --warn: #92400e; --warn-bg: #fffbeb;
    --tip: #075985;  --tip-bg: #f0f9ff;
    --pass: #047857; --pass-bg: #ecfdf5;
    --hidden-text: #556274;
    --glow-1: rgba(2, 132, 199, 0.06);
    --glow-2: rgba(0, 102, 204, 0.04);
    --logo-filter: invert(1);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.18);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #475569;
  --mono: #0369a1;
  --accent: #0284c7;
  --accent-strong: #0066cc;
  --accent-ink: #0369a1;
  --on-accent: #ffffff;
  --focus: #0369a1;
  --fail: #b91c1c; --fail-bg: #fef2f2;
  --warn: #92400e; --warn-bg: #fffbeb;
  --tip: #075985;  --tip-bg: #f0f9ff;
  --pass: #047857; --pass-bg: #ecfdf5;
  --hidden-text: #556274;
  --glow-1: rgba(2, 132, 199, 0.06);
  --glow-2: rgba(0, 102, 204, 0.04);
  --logo-filter: invert(1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.18);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; color: var(--text-2); }
ul, ol { color: var(--text-2); padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { color: var(--text); font-weight: 600; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code, kbd, .mono, .formula, textarea, input, .no-liga { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
code { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 0.05em 0.35em; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 0.5em; }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 0.35em; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 88%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { height: 24px; width: auto; filter: var(--logo-filter); }
.brand-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); border-left: 1px solid var(--border-strong); padding-left: 10px; white-space: nowrap;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 10px 10px; border-radius: var(--radius-sm); min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-subtle); }
.site-nav .ext { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
@media (max-width: 479px) { .brand-sub { display: none; } }
@media (min-width: 860px) { .site-nav .ext { display: inline-flex; } .brand img { height: 26px; } }

/* ── Type helpers ───────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mono); margin: 0 0 12px;
}
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 68ch; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { margin: 20px 0 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-muted); }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); }

/* ── Hero / page head ───────────────────────────────────────────────────── */
.hero { padding: 48px 0 28px; }
.hero h1 { max-width: 24ch; margin-bottom: 16px; }
.page-head { padding: 16px 0 20px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.page-head .lead { font-size: 16px; margin-bottom: 0; }

.privacy-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0 0; padding: 10px 12px; max-width: 760px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-subtle);
  font-size: 13px; line-height: 1.5; color: var(--text-2);
}
.privacy-note svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--pass); }
.privacy-note p { margin: 0; color: inherit; }

/* ── Tool cards (home) ──────────────────────────────────────────────────── */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 8px 0 48px; padding: 0; list-style: none; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards li + li { margin-top: 0; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elevated); box-shadow: var(--shadow);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card h3 a:focus-visible { outline: none; }
.card:hover h3 a { color: var(--accent-ink); }
.card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.card p { font-size: 14.5px; }
.card .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px;
}
.card .go { margin-top: 14px; font-weight: 600; color: var(--accent-ink); font-size: 14px; }
.card-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }

/* ── Content sections ───────────────────────────────────────────────────── */
.section { padding-top: 8px; padding-bottom: 40px; }
.section + .section { border-top: 1px solid var(--border); padding-top: 36px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 0.2em; }
.article .prose > h2:not(:first-child) { margin-top: 1.3em; }
.prose h3 { margin-top: 1.4em; }
.two-col { display: grid; gap: 32px; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── Tool layout ────────────────────────────────────────────────────────── */
.tool { display: grid; gap: 20px; align-items: start; margin-bottom: 40px; }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.panel {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.panel > h2 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 14px; }

/* Forms */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label, .label { display: block; font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.field .hint { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }
.input-row { display: flex; align-items: stretch; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
textarea.input { min-height: 88px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: color-mix(in oklab, var(--border-strong) 60%, var(--text-muted)); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--fail); }
.suffix {
  display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--text-muted);
  border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-subtle);
}
.input-row .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 420px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent-strong); flex: 0 0 auto; }
.check span { font-size: 14px; color: var(--text-2); }
.check strong { display: block; color: var(--text); }
.field-error { color: var(--fail); font-size: 13px; margin-top: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent-strong) 85%, white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.dropzone {
  display: block; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 18px;
  text-align: center; background: var(--bg-subtle); margin-bottom: 14px;
}
.dropzone.is-over { border-color: var(--accent); }
.dropzone p { margin: 0 0 10px; font-size: 14px; }
.dropzone input[type="file"] { max-width: 100%; font-size: 14px; color: var(--text-2); }
.dropzone input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; min-height: 40px; margin-right: 10px; padding: 8px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--accent-strong); background: var(--accent-strong); color: #fff; cursor: pointer;
}

/* Results */
[tabindex="-1"]:focus { outline: none; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
@media (min-width: 560px) { .stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.stat-value { font-size: clamp(19px, 5.2vw, 24px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 4px; }
.stat-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat.is-key { border-color: color-mix(in oklab, var(--accent) 50%, var(--border)); background: color-mix(in oklab, var(--accent) 8%, var(--bg-subtle)); }
.verdict { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin: 0 0 14px; border: 1px solid; }
.verdict.good { border-color: color-mix(in oklab, var(--pass) 45%, transparent); background: var(--pass-bg); color: var(--text); }
.verdict.bad { border-color: color-mix(in oklab, var(--fail) 45%, transparent); background: var(--fail-bg); color: var(--text); }
.verdict.neutral { border-color: var(--border); background: var(--bg-subtle); color: var(--text-2); }

.findings { list-style: none; padding: 0; margin: 0; }
.findings li + li { margin-top: 8px; }
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-subtle); }
.finding .badge { grid-row: span 2; align-self: start; }
.finding .f-title { font-weight: 600; color: var(--text); font-size: 14px; }
.finding .f-msg { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.finding .f-src { grid-column: 2; font-size: 12px; color: var(--text-muted); }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.badge.fail, .badge.error { color: var(--fail); background: var(--fail-bg); border-color: color-mix(in oklab, var(--fail) 40%, transparent); }
.badge.warn, .badge.warning { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in oklab, var(--warn) 40%, transparent); }
.badge.tip, .badge.info { color: var(--tip); background: var(--tip-bg); border-color: color-mix(in oklab, var(--tip) 40%, transparent); }
.badge.pass { color: var(--pass); background: var(--pass-bg); border-color: color-mix(in oklab, var(--pass) 40%, transparent); }

.formula {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: var(--text-2);
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 1em; overflow-x: auto; white-space: pre;
}
.empty-state { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Title preview */
.title-preview {
  font-size: 15px; line-height: 1.6; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-subtle); border: 1px solid var(--border); margin-bottom: 14px; word-break: break-word;
}
.title-preview .seen { color: var(--text); }
.title-preview .cut { color: var(--hidden-text); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--hidden-text) 60%, transparent); }
.counter { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text-muted); margin-top: 5px; display: flex; justify-content: space-between; gap: 10px; }
.counter .over { color: var(--fail); font-weight: 600; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); background: transparent;
  border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; min-height: 44px; cursor: pointer; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); max-width: 100%; }
table.results { width: 100%; border-collapse: collapse; font-size: 13px; }
table.results th, table.results td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.results th { color: var(--text-muted); font-weight: 600; background: var(--bg-subtle); white-space: nowrap; }
table.results td { color: var(--text-2); }
table.results td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.group-head { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 16px 0 8px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.group-head:first-child { margin-top: 0; }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); min-height: 32px; }

/* ── About (Wikipedia-style) ────────────────────────────────────────────── */
.article { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 900px) {
  .article { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head aside" "body aside"; align-items: start; gap: 0 40px; }
  .article > .page-head { grid-area: head; }
  .article > .infobox { grid-area: aside; position: sticky; top: 16px; margin-top: 16px; }
  .article > .prose { grid-area: body; }
}
.infobox { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated); padding: 18px; font-size: 14px; box-shadow: var(--shadow); }
.infobox h2 { font-size: 17px; margin-bottom: 4px; }
.infobox .caption { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }
.infobox dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; }
.infobox dt { color: var(--text-muted); font-weight: 500; }
.infobox dd { margin: 0; color: var(--text); }
.infobox img { border-radius: var(--radius); margin-bottom: 12px; width: 100%; max-width: 200px; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .infobox img { max-width: none; } }
.timeline { list-style: none; padding: 0; margin: 0 0 1.2em; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.timeline li + li { margin-top: 0; }
.timeline .yrs { font-family: var(--font-mono); font-size: 13px; color: var(--mono); padding-top: 2px; }
.disclosure { border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--bg-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1em; }
.disclosure p { margin: 0; }
.notes { font-size: 13px; }

/* ── Work with me / Contact: one column ─────────────────────────────────── */
.page-narrow { max-width: 760px; padding-bottom: 48px; }
.page-narrow > * + * { margin-top: 28px; }
.page-narrow .page-head .btn-row { margin-top: 18px; }
.page-narrow .prose > h2:not(:first-child) { margin-top: 1.3em; }
.terms, .cta-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated); padding: 20px; box-shadow: var(--shadow); }
.terms h2, .cta-box h2 { font-size: 20px; margin-bottom: 6px; }
.terms-list { margin: 16px 0; display: grid; gap: 0; }
.terms-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.terms-list > div:first-child { border-top: 1px solid var(--border); }
.terms-list dt { font-weight: 600; color: var(--text); }
.terms-list dd { margin: 0; color: var(--text-2); }
.terms > p:last-child, .cta-box > .btn-row { margin-bottom: 0; }
.cta-box p { color: var(--text-2); }
.form-status:target { display: block; }
.form-status p { margin: 0; }
.hp-field { display: none; }
.contact-form textarea.input { min-height: 160px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; font-size: 13.5px; color: var(--text-muted); }
.site-footer .wrap { display: grid; gap: 14px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer p { margin: 0; color: var(--text-muted); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav li + li { margin-top: 0; }
.site-footer a { color: var(--text-2); }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.notfound { padding: 64px 0 80px; }
.notfound ul { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .theme-toggle { display: none; } body { background: #fff; color: #000; } }
