/* Phronyn — strak en rustig: inkt op papier, haarlijnen, één lettertype, veel wit. */
@import url("/fonts/fonts.css?v=7");

:root {
  --bg: #fbfbfa;
  --fg: #111312;
  --muted: #6b6f6d;
  --faint: #a3a7a5;
  --line: #e4e5e3;
  --hover: #f2f3f1;
  --ink: #111312;
  --ink-fg: #fbfbfa;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1110; --fg: #ecedeb; --muted: #9a9e9c; --faint: #5f6361;
    --line: #262927; --hover: #181b19; --ink: #ecedeb; --ink-fg: #0f1110;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: none; margin: 0; padding-inline: clamp(20px, 5vw, 96px); }

/* Kop */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 1.8rem; align-items: center; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a.btn, .nav a.btn:hover { color: var(--ink-fg); }

/* Typografie */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.55; color: var(--fg); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow { font-size: 0.9rem; color: var(--muted); }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 0.98rem/1.2 var(--font); letter-spacing: -0.005em;
  padding: 0.85rem 1.35rem; border-radius: 6px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--ink-fg); text-decoration: none; cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; color: var(--ink-fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); opacity: 1; color: var(--fg); }
.btn.small { padding: 0.55rem 0.95rem; font-size: 0.92rem; }
.btn:disabled { opacity: 0.35; cursor: default; }
.linkbtn {
  font: 400 0.95rem var(--font); background: none; border: 0; padding: 0.4rem 0; cursor: pointer;
  color: var(--muted); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px;
}
.linkbtn:hover { color: var(--fg); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: end;
  padding-block: 5.5rem 5rem;
}
.hero h1 { max-width: 12em; margin-bottom: 2rem; }
.hero .lede { max-width: 33em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; margin-top: 2.2rem; }

.status-note {
  display: flex; gap: 0.7rem; align-items: baseline; margin: 1.6rem 0 0; max-width: 33em;
  padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--fg);
}
.status-note b { font-weight: 500; white-space: nowrap; }
.dot-live { display: none; }

.field-box { display: grid; gap: 0.9rem; width: 100%; max-width: 460px; justify-self: end; }
.field { display: block; width: 100%; aspect-ratio: 1; }
.field canvas { display: block; }
.field span { border-radius: 50%; background: var(--line); transition: background-color 2.4s ease; }
.field span.on { background: var(--fg); }
.field-cap { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* Secties */
.section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(3rem, 6vw, 8rem);
  padding-block: 4.5rem; border-top: 1px solid var(--line);
}
.section .content { max-width: 42rem; min-width: 0; }
.section h2 { position: sticky; top: 2rem; }

.rows { margin: 2rem 0; border-top: 1px solid var(--line); }
.rows > div {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.rows dt, .rows .k { font-weight: 500; }
.rows dd { margin: 0; color: var(--muted); }
.rows p { margin: 0; }

.values { margin: 1.6rem 0 1.4rem; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.values li { padding-block: 0.55rem; border-bottom: 1px solid var(--line); break-inside: avoid; }
.values li.top { font-weight: 500; }
.values li.top span { color: var(--muted); font-weight: 400; }

.closing {
  padding-block: 5rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end;
}
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 15em; margin-bottom: 0.8rem; }
.closing p { margin: 0; color: var(--muted); max-width: 32em; }

.site-foot {
  border-top: 1px solid var(--line); padding-block: 1.8rem 3rem;
  font-size: 0.88rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; justify-content: space-between;
}
.site-foot a { color: var(--muted); }

/* Doe mee */
.panel { padding-block: 4rem 5rem; }
.panel.prose { max-width: 760px; }
.panel > section:not(#v-intro) { max-width: 760px; margin-inline: auto; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 9rem); align-items: start; }
.intro-main { max-width: 640px; }
.intro-grid .notes { margin-top: 0.6rem; max-width: 36rem; }
.panel h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.4rem; }
.facts { margin: 2.2rem 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.notes { margin-top: 4rem; display: grid; gap: 2.2rem; }
.notes h3 { margin-bottom: 0.4rem; }
.notes p { color: var(--muted); margin: 0; }
.note-box { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.6rem; }
.note-box h3 { margin-bottom: 0.4rem; }
.note-box p { color: var(--muted); }
.note-box p:last-child { margin-bottom: 0; }

.progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress .bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }

.dilemma h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 1.2rem; }
.dilemma .situatie { font-size: 1.15rem; line-height: 1.6; }
.dilemma .vraag { font-weight: 500; margin-bottom: 2rem; }
.warning { border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.3rem; margin-bottom: 2rem; }
.warning p { margin: 0 0 0.4rem; }

.options { display: grid; gap: 0; margin: 0 0 2rem; padding: 0; border: 0; border-top: 1px solid var(--line); }
.options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.option {
  display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.9rem; align-items: start;
  padding: 1rem 0.2rem; border-bottom: 1px solid var(--line); cursor: pointer; line-height: 1.45;
  transition: background-color 0.15s ease;
}
.option:hover { background: var(--hover); }
.option input { margin: 0.2rem 0 0; accent-color: var(--ink); width: 1rem; height: 1rem; }
.option:has(input:checked) span { font-weight: 500; }

.extra { display: grid; gap: 1.6rem; margin: 0 0 2rem; }
.choice-row { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice-row legend { font-weight: 500; margin-bottom: 0.7rem; padding: 0; }
.choice-row legend .muted { font-weight: 400; margin-left: 0.3rem; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt span {
  display: inline-block; font-size: 0.92rem; line-height: 1.2; padding: 0.5rem 0.8rem;
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted); transition: border-color 0.15s ease, color 0.15s ease;
}
.chip-opt:hover span { border-color: var(--faint); color: var(--fg); }
.chip-opt input:checked + span { border-color: var(--fg); color: var(--fg); font-weight: 500; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.why label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.why .hint { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.7rem; }
textarea {
  width: 100%; min-height: 6rem; resize: vertical; font: inherit; font-size: 1rem; color: var(--fg);
  background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 0.8rem 0.9rem;
}
textarea:focus { border-color: var(--fg); outline: none; }

.actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; margin-top: 1.8rem; }

.results { display: grid; gap: 1.3rem; margin: 0.4rem 0 1.6rem; }
.res { display: grid; gap: 0.5rem; }
.res-top { display: flex; justify-content: space-between; gap: 1.2rem; line-height: 1.45; }
.res-top b { font-weight: 500; font-variant-numeric: tabular-nums; }
.res .track { height: 3px; background: var(--line); overflow: hidden; }
.res .track i { display: block; height: 100%; width: 100%; background: var(--faint); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease; }
.res.mine .track i { background: var(--fg); }
.res.mine .res-top span { font-weight: 500; }
.res.mine .res-top span::after { content: " (jouw keuze)"; font-weight: 400; color: var(--muted); }
.res-total { font-size: 0.9rem; color: var(--muted); }

.error { color: #b3261e; font-size: 0.92rem; }
@media (prefers-color-scheme: dark) { .error { color: #f2a097; } }

/* Mobiel */
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-grid .notes { margin-top: 3rem; }
  .field-box { justify-self: start; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-block: 3.5rem 3.5rem; }
  .field-box { max-width: 240px; }
  .section { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-block: 3.2rem; }
  .section h2 { position: static; }
  .closing { grid-template-columns: minmax(0, 1fr); padding-block: 3.5rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 20px; }
  .nav { gap: 1.2rem; }
  .nav a.hide-sm { display: none; }
  .rows > div, .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .values { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
