/* ==========================================================================
   babygeslacht.nl, versie 3: inkt in zwart water

   BEELDTAAL
   Een donkere echowereld. Het enige licht komt uit de inkt: roze en blauw
   die elkaar raken zolang het een vraag is, en een van de twee die openbloeit
   bij de onthulling. Daaromheen de taal van een echoapparaat: monospace
   uitlezingen, kalipers als meetpunten, een waaiervormig scanvlak.

   KLEURREGEL
   Roze en blauw zijn betekenis, geen decoratie. De interface zelf (knoppen,
   links, focus, scores) is wit licht op zwart. Pas bij de uitslag krijgt een
   scherm de kleur van een geslacht.

   TYPE
   Display: Newsreader, licht (300). Tekst: Instrument Sans. Uitlezingen: de
   monospace van het systeem, zodat er geen derde lettertype hoeft te laden.
   ========================================================================== */

/* ============ 1. Fonts ============ */
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============ 2. Tokens ============ */
:root {
  color-scheme: dark;

  --bg: #07070b;
  --bg-2: #0d0d13;
  --bg-3: #14141c;
  --bg-4: #1c1c26;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.15);
  --line-3: rgb(255 255 255 / 0.28);

  --text: #f4f1f5;
  --text-2: #bcb7c3;
  --text-3: #8d8897;

  --rose: #f3a0b1;
  --rose-deep: #d86a83;
  --rose-glow: rgb(243 160 177 / 0.35);
  --blue: #9bb9f4;
  --blue-deep: #5f88d8;
  --blue-glow: rgb(155 185 244 / 0.35);
  --warn: #f2c879;

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --wrap: 1180px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============ 3. Basis ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--text); }

a { color: inherit; text-decoration-color: var(--line-3); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--rose-deep); color: #fff; }

.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;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { top: var(--s-4); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }

/* Cross-document view transitions: de navigatie voelt als een vloeiende
   overgang in plaats van een harde paginawissel. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
.nav { view-transition-name: site-nav; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ============ 4. Uitlezingen en kalipers ============ */
.readout {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.readout::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.06);
}
.readout.is-live::before { animation: pulse 2.4s var(--ease-in-out) infinite; }
.readout.no-dot::before { display: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Kalipers: de kleine plusjes waarmee een echoscopist meet, als hoeken van
   een kader. Vier lagen achtergrond, dus geen extra elementen nodig. */
.calipers {
  --c: var(--line-3);
  --len: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--len) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--len) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--len) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--len) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--len) no-repeat;
}

/* ============ 5. Knoppen ============ */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 220ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: 0 0 0 6px rgb(255 255 255 / 0.08), 0 10px 40px -10px rgb(255 255 255 / 0.35); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-lg { min-height: 56px; padding: 0.9em 1.7em; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.9375rem; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); box-shadow: none; border-color: var(--line-3); }
.btn-quiet {
  --btn-bg: transparent;
  --btn-fg: var(--text-2);
  padding-inline: 0.6em;
}
.btn-quiet:hover { color: var(--text); box-shadow: none; background: rgb(255 255 255 / 0.05); }
.btn-full { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .ico { width: 1em; height: 1em; transition: transform 200ms var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(3px); }

.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ============ 6. Navigatie ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(7 7 11 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 30px; }
.brand-mark .bm-rose { fill: var(--rose); opacity: 0.85; }
.brand-mark .bm-blue { fill: var(--blue); opacity: 0.85; mix-blend-mode: screen; }
.brand .tld { color: var(--text-3); font-weight: 500; }

.nav-links { display: flex; gap: var(--s-2); }
.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
}
.nav-toggle:hover { background: rgb(255 255 255 / 0.06); }

/* Mobiel menu met de Popover API: openen, sluiten met Escape en klikken
   buiten het menu werken zonder JavaScript. */
.menu {
  inset: 64px 0 auto auto;
  width: min(100vw, 360px);
  margin: 0;
  padding: var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: 0 0 0 var(--r-lg);
  background: var(--bg-3);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.8);
}
.menu:popover-open { display: grid; gap: var(--s-1); }
.menu a {
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.menu a:hover { background: rgb(255 255 255 / 0.06); }
.menu .btn { margin-top: var(--s-3); }
.menu::backdrop { background: rgb(0 0 0 / 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: opacity 200ms, translate 260ms var(--ease-out), display 260ms allow-discrete, overlay 260ms allow-discrete; }
  .menu:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 -8px; } }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 400px) {
  .nav-cta { display: none; }
}

/* ============ 7. Secties ============ */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }
.section-tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); }
.section-head p:not(.readout) { color: var(--text-2); font-size: 1.125rem; max-width: 40rem; }

.lede { color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }

/* Rustig opkomen bij scrollen, puur in CSS: geen JavaScript dat
   inhoud verbergt tot een observer vuurt (dat gaf eerder gaten). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

/* ============ 8. Hero ============ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 7 11 / 0.94) 0%, rgb(7 7 11 / 0.75) 40%, rgb(7 7 11 / 0) 66%),
    linear-gradient(0deg, var(--bg) 0%, rgb(7 7 11 / 0) 22%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: drift 28s var(--ease-in-out) infinite alternate; transform-origin: 75% 60%; }
}
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-copy { display: grid; gap: var(--s-5); max-width: 38rem; }
.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero h1 em, .is-meisje, .is-jongen { font-style: normal; }
.is-meisje { color: var(--rose); }
.is-jongen { color: var(--blue); }

@media (max-width: 760px) {
  .hero { align-items: start; min-height: calc(100svh - 64px); padding-top: var(--s-6); }
  .hero-art img { object-position: 50% 100%; }
  .hero-art::after {
    background: linear-gradient(180deg, rgb(7 7 11 / 0.55) 0%, rgb(7 7 11 / 0.2) 40%, rgb(7 7 11 / 0) 60%, var(--bg) 100%);
  }
}

/* De keuzeknop in de hero: een groot vlak met kalipers, zodat het voelt
   als het begin van een scan en niet als een formulierveld. */
.picker { display: grid; gap: var(--s-3); max-width: 30rem; margin-top: var(--s-3); }
.picker-drop {
  --c: rgb(255 255 255 / 0.5);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background-color: rgb(20 20 28 / 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms, transform 200ms var(--ease-out);
}
.picker-drop:hover, .picker-drop.is-over { border-color: var(--line-3); background-color: rgb(28 28 38 / 0.75); }
.picker-drop.is-over { transform: scale(1.01); }
.picker-drop:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.picker-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  flex: none;
}
.picker-icon .ico { width: 24px; height: 24px; }
.picker-text { display: grid; gap: 2px; }
.picker-title { font-size: 1.125rem; font-weight: 600; }
.picker-sub { color: var(--text-2); font-size: 0.9375rem; }
.picker-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: var(--text-3); font-size: 0.875rem; }
.picker-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2rem 0.65rem 0.2rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgb(7 7 11 / 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-2);
}
.picker-meta .ico { width: 1em; height: 1em; }
.picker-error { color: var(--warn); font-size: 0.9375rem; }

/* ============ 9. Stappen ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  counter-reset: stap;
}
.step {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--bg);
}
.step .readout { margin-bottom: var(--s-4); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; }
.step p { color: var(--text-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ 10. Nub-lab: de interactieve hoek ============ */
.nub-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.nub-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 50% 120%, rgb(255 255 255 / 0.06), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.nub-figure svg { width: 100%; height: 100%; }
.nub-figure .fan { fill: url(#fanGradient); }
.nub-figure .spine { stroke: var(--text-2); stroke-width: 3; stroke-linecap: round; fill: none; }
.nub-figure .spine-dots circle { fill: var(--text-3); }
.nub-figure .guide { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.nub-figure .nub { stroke: var(--text); stroke-width: 5; stroke-linecap: round; transition: stroke 300ms; }
.nub-figure .arc { fill: none; stroke: var(--text-2); stroke-width: 1.25; }
.nub-figure .label { fill: var(--text-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.nub-figure .angle-label { fill: var(--text); font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.nub-figure[data-zone="meisje"] .nub { stroke: var(--rose); }
.nub-figure[data-zone="jongen"] .nub { stroke: var(--blue); }

.nub-controls { display: grid; gap: var(--s-5); }
.nub-controls h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); }
.nub-controls > p { color: var(--text-2); }
.nub-range { display: grid; gap: var(--s-3); }
.nub-range label { font-weight: 600; }
.nub-range-ends { display: flex; justify-content: space-between; color: var(--text-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  background: transparent;
  cursor: pointer;
}
/* Spoor in drie zones, gelijk aan de lezing: tot 25 graden meisje,
   25 tot 35 twijfel, vanaf 36 jongen (op een schaal van 0 tot 60). */
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose) 0 41%, var(--line-2) 41% 59%, var(--blue) 59% 100%);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose) 0 41%, var(--line-2) 41% 59%, var(--blue) 59% 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-3);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-3);
}
input[type="range"]:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.nub-reading {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 9.5rem;
}
.nub-reading strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.nub-reading p { color: var(--text-2); }
.nub-note { color: var(--text-3); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .nub-lab { grid-template-columns: 1fr; }
}

/* ============ 11. De eerlijke score ============ */
.bands { display: grid; gap: var(--s-3); }
.band-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.band-range { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.band-row h3 { font-size: 1.0625rem; }
.band-row p { color: var(--text-2); font-size: 0.9875rem; }
@media (max-width: 760px) {
  .band-row { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* De meter: positie draagt de betekenis, niet de tint. Vijf vakken van 50
   tot 100, het actieve vak licht op en een streep wijst de score aan. */
.meter {
  --score: 50;
  position: relative;
  display: grid;
  grid-template-columns: 5fr 15fr 15fr 7fr 8fr;
  gap: 4px;
  height: 10px;
  margin-block: var(--s-6) var(--s-3);
}
.meter span { border-radius: 3px; background: var(--line-2); }
.meter span:last-child { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); }
.meter span.is-on { background: var(--text); box-shadow: 0 0 18px rgb(255 255 255 / 0.35); }
.meter-pin {
  position: absolute;
  left: calc((var(--score) - 50) / 50 * 100%);
  top: -26px;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.meter-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 22px;
  margin-left: -1px;
  margin-top: 2px;
  background: var(--text);
  border-radius: 2px;
}
.meter-scale {
  display: grid;
  grid-template-columns: 5fr 15fr 15fr 7fr 8fr;
  gap: 4px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
@media (max-width: 520px) {
  .meter-scale { font-size: 0.625rem; }
  .meter-scale .long { display: none; }
}

/* ============ 12. Privacy-feiten ============ */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.fact {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.fact h3 { display: flex; align-items: center; gap: 0.55em; font-size: 1.0625rem; }
.fact h3 .ico { color: var(--text-2); }
.fact p { color: var(--text-2); font-size: 0.9875rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
}

/* ============ 13. Prijs ============ */
.price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.price-col { display: grid; align-content: start; gap: var(--s-3); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.price-col + .price-col { border-left: 1px solid var(--line-2); background: var(--bg-2); }
.price-amount { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; }
.price-later { color: var(--text-3); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; }
.price-col p { color: var(--text-2); }
.checks { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.checks li { display: flex; gap: 0.6em; align-items: baseline; color: var(--text-2); }
.checks .ico { width: 1em; height: 1em; color: var(--text); translate: 0 0.15em; }
@media (max-width: 760px) {
  .price { grid-template-columns: 1fr; }
  .price-col + .price-col { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ============ 14. Vragen ============ */
.faq { display: grid; border-top: 1px solid var(--line-2); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--text-3); transition: rotate 260ms var(--ease-out); }
.faq details[open] summary .ico { rotate: 45deg; }
.faq summary:hover { color: var(--text); }
.faq .answer { padding-bottom: var(--s-5); color: var(--text-2); max-width: 44rem; display: grid; gap: var(--s-3); }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}

/* ============ 15. Slot-CTA ============ */
.finale {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--s-5);
  border-radius: var(--r-lg);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 70% at 30% 110%, var(--rose-glow), transparent 70%),
    radial-gradient(40% 70% at 70% 110%, var(--blue-glow), transparent 70%),
    var(--bg-2);
}
.finale h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); max-width: 18ch; }
.finale p { color: var(--text-2); max-width: 36rem; }

/* ============ 16. Footer ============ */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); color: var(--text-2); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); }
.footer-about { margin-top: var(--s-3); max-width: 22rem; color: var(--text-3); }
.footer-col { display: grid; align-content: start; gap: var(--s-2); }
.footer-head { margin-bottom: var(--s-1); color: var(--text-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col a { text-decoration: none; padding-block: 2px; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}
.footer-legal { display: grid; gap: var(--s-1); }
.powered-by { display: inline-flex; align-items: center; gap: 0.45em; color: var(--text-3); text-decoration: none; }
.powered-by:hover { color: var(--text); }
.powered-by .ico { width: 1em; height: 1em; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ============ 17. Tekstpagina's ============ */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--s-6); }
.page-head .wrap-narrow { display: grid; gap: var(--s-4); }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); }
.page-head .lede { max-width: 40rem; }

.prose { padding-bottom: var(--s-9); color: var(--text-2); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); color: var(--text); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.prose h3 { margin-top: var(--s-6); color: var(--text); font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--text); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose .meta { color: var(--text-3); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { margin-top: var(--s-3); color: var(--text-3); font-size: 0.875rem; }

.callout {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-2);
}
.callout strong { color: var(--text); }
.callout-warn { border-color: rgb(242 200 121 / 0.35); }
.callout-warn strong { color: var(--warn); }

.toc { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line); }
.toc ol { padding-left: 1.25rem; }

.callout { align-content: start; }
.callout ul { margin-top: var(--s-1); align-content: start; }
.callout p + p { margin-top: var(--s-2); }

/* Bronverwijzingen als klein mono-cijfer, zoals in een vakartikel */
.ref { font-size: 0.68em; line-height: 0; vertical-align: super; margin-left: 0.15em; font-family: var(--font-mono); color: var(--text-3); }
.prose .ref a { color: var(--text-3); text-decoration: none; padding-inline: 0.1em; }
.prose .ref a:hover, .prose .ref a:focus-visible { color: var(--text); text-decoration: underline; }
.sources { font-size: 0.9375rem; color: var(--text-3); gap: var(--s-3) !important; }
.sources li { scroll-margin-top: 96px; padding-left: 0.25rem; transition: color 300ms; }
.sources li:target { color: var(--text); }
.sources em { font-style: italic; }
.prose .sources a { color: var(--text-2); }

/* Drie schetsen van het nubje naast elkaar */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nub-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: var(--s-4); }
.prose .nub-examples figure { margin: 0; display: grid; gap: var(--s-3); align-content: start; }
.nub-examples figcaption { color: var(--text-3); font-size: 0.9375rem; line-height: 1.5; }
.nub-examples figcaption strong { display: block; margin-bottom: var(--s-1); color: var(--text); }
.nub-examples .angle-label { font-size: 22px; }

.ai-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--s-4); }
.table-scroll:focus-visible { outline: 2px solid var(--text-2); outline-offset: 4px; border-radius: 4px; }

/* Tijdlijn op de pagina "wanneer zie je het geslacht" */
.timeline { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; border-left: 1px solid var(--line-2); margin-left: 0.4rem; }
.timeline > li { position: relative; padding: 0 0 var(--s-6) var(--s-5); }
.timeline > li > * + * { margin-top: var(--s-3); }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45em;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-2);
}
.timeline .week { display: block; color: var(--text); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-1); }
.timeline h3 { margin: 0 0 var(--s-2) !important; }

/* ============ 18. Scanpagina ============ */
.scan-page main { min-height: calc(100dvh - 64px); }
.stage { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--s-8); }
.stage-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.stage-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); }

.scan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .scan-grid { grid-template-columns: 1fr; }
}

/* Het scanvlak: de foto's, of de uitnodiging om er een te kiezen */
.drop {
  --c: rgb(255 255 255 / 0.45);
  --len: 18px;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms;
}
.drop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(55% 45% at 28% 115%, rgb(243 160 177 / 0.16), transparent 70%),
    radial-gradient(55% 45% at 72% 115%, rgb(155 185 244 / 0.16), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 300ms;
}
.drop-inner { position: relative; }
.drop:hover, .drop.is-over { border-color: var(--line-3); background-color: var(--bg-3); }
.drop:hover::before, .drop.is-over::before { opacity: 1; }
@media (max-width: 900px) {
  .drop { min-height: 230px; }
}
.drop:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.drop-inner { display: grid; justify-items: center; gap: var(--s-3); max-width: 22rem; }
.drop-inner .picker-icon { width: 64px; height: 64px; }
.drop-title { font-size: 1.25rem; font-weight: 600; }
.drop-sub { color: var(--text-2); font-size: 0.9375rem; }

.shots { display: grid; gap: var(--s-3); }
.shot-main {
  --c: rgb(255 255 255 / 0.55);
  --len: 18px;
  position: relative;
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background-color: #000;
}
.shot-main img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--r-md); }
.shot-strip { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.shot-thumb-wrap { position: relative; }
.stage-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.shot-thumb {
  position: relative;
  width: 76px; height: 76px;
  padding: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: #000;
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumb[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.shot-remove {
  position: absolute;
  top: 4px; right: 4px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgb(0 0 0 / 0.72);
  color: #fff;
}
.shot-remove .ico { width: 14px; height: 14px; }
.shot-add {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-3);
  color: var(--text-2);
  background: transparent;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
}
.shot-add:hover { color: var(--text); border-color: var(--text-2); }
.shot-add:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.shot-hint { color: var(--text-3); font-size: 0.875rem; }

.panel {
  display: grid;
  gap: var(--s-5);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.field { display: grid; gap: var(--s-2); }
.field-label { font-weight: 600; }
.field-help { color: var(--text-3); font-size: 0.875rem; }
.select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 2.75rem 0.7rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%) right 1.3rem center / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--text-2) 50%) right calc(1.3rem - 6px) center / 6px 6px no-repeat,
    var(--bg-3);
  font-size: 1rem;
}
.select:hover { border-color: var(--line-3); }
.select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--r-sm); }
.select option { background: var(--bg-3); color: var(--text); }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.9375rem;
  cursor: pointer;
}
.consent:hover { border-color: var(--line-3); }
.consent:has(input:checked) { border-color: var(--text-2); background: rgb(255 255 255 / 0.03); }
.consent.is-invalid { border-color: var(--warn); }
.consent input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1.5px solid var(--text-2);
  background: transparent;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--bg);
  border-bottom: 2.5px solid var(--bg);
  rotate: -45deg;
  translate: 0 -1px;
  scale: 0;
  transition: scale 160ms var(--ease-out);
}
.consent input:checked { background: var(--text); border-color: var(--text); }
.consent input:checked::after { scale: 1; }
.consent input:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.consent button.inline-link { padding: 0; border: 0; background: none; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 0.2em; }

.form-error {
  display: flex;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid rgb(242 200 121 / 0.4);
  background: rgb(242 200 121 / 0.06);
  color: var(--text);
  font-size: 0.9375rem;
}
.form-error .ico { color: var(--warn); translate: 0 0.1em; }

.assure { list-style: none; display: grid; gap: var(--s-2); color: var(--text-3); font-size: 0.875rem; }
.assure li { display: flex; gap: 0.55em; align-items: baseline; }
.assure .ico { width: 1em; height: 1em; translate: 0 0.15em; }

/* Scannen: de foto in een waaiervormig scanvlak met een bundel die
   heen en weer zwaait, zoals op het scherm bij de echoscopist. */
.scanner {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 0.82;
  margin-inline: auto;
}
.scanner-fan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 72%, 92% 88%, 75% 97%, 50% 100%, 25% 97%, 8% 88%, 0 72%);
  background: #000;
}
.scanner-fan img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.9); opacity: 0.85; }
.scanner-beam {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  margin-left: -1.5px;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0));
  box-shadow: 0 0 24px 6px rgb(255 255 255 / 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .scanner-beam { animation: sweep 2.6s var(--ease-in-out) infinite alternate; }
}
@keyframes sweep {
  from { rotate: -38deg; }
  to { rotate: 38deg; }
}
.scanner-readout {
  position: absolute;
  inset: auto 0 -2.25rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.phases { list-style: none; display: grid; gap: var(--s-3); }
.phase { display: grid; grid-template-columns: 22px 1fr auto; gap: var(--s-3); align-items: center; color: var(--text-3); }
.phase-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; }
.phase-dot .ico { width: 12px; height: 12px; opacity: 0; }
.phase-meta { font-family: var(--font-mono); font-size: 0.8125rem; }
.phase.is-active { color: var(--text); }
.phase.is-active .phase-dot { border-color: var(--text); border-top-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .phase.is-active .phase-dot { animation: spin 900ms linear infinite; }
}
.phase.is-done { color: var(--text-2); }
.phase.is-done .phase-dot { background: var(--text); border-color: var(--text); color: var(--bg); }
.phase.is-done .phase-dot .ico { opacity: 1; }
@keyframes spin { to { rotate: 360deg; } }

/* De score */
.score-card { display: grid; gap: var(--s-5); }
.score-number {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 3rem + 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.score-number small { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.04em; color: var(--text-3); font-weight: 500; }
.score-basis { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.875rem;
}
.chip .ico { width: 1em; height: 1em; }
.score-explain { color: var(--text-2); }

.ask {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.ask h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.ask-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.ask-note { color: var(--text-3); font-size: 0.875rem; }

.echo-figure { position: relative; }
.echo-figure img { width: 100%; border-radius: var(--r-md); }
.echo-region {
  --c: var(--text);
  --len: 12px;
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgb(0 0 0 / 0.35);
}
.echo-region span {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.75);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* De onthulling: de inkt bloeit open, daarna komt de tekst */
.reveal {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.reveal-media { position: absolute; inset: 0; z-index: -1; background: #000; }
.reveal-media video, .reveal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reveal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(7 7 11 / 0.85) 75%, var(--bg) 100%);
}
@media (min-width: 900px) {
  /* Op een breed scherm is de staande video smaller dan het venster. Een
     ovaal masker laat de randen in de achtergrond oplossen, zodat je geen
     rechthoek ziet maar alleen inkt in het donker. */
  .reveal-media { background: var(--bg); display: grid; place-items: center; }
  .reveal-media video, .reveal-media img {
    width: auto;
    height: 100%;
    aspect-ratio: 720 / 1264;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  }
  .reveal-media::after { background: linear-gradient(180deg, rgb(7 7 11 / 0) 50%, rgb(7 7 11 / 0.7) 80%, var(--bg) 100%); }
}
.reveal-copy .readout, .reveal-copy .lede { text-shadow: 0 1px 14px rgb(0 0 0 / 0.9), 0 0 2px rgb(0 0 0 / 0.6); }
.reveal-copy .readout { color: var(--text); }
.reveal-copy {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-8);
  text-align: center;
  justify-items: center;
}
.reveal-copy h1 { font-size: clamp(3rem, 2rem + 6vw, 7rem); line-height: 0.95; letter-spacing: -0.03em; }
.reveal-copy .lede { max-width: 34rem; color: var(--text); }
.reveal[data-sex="meisje"] .reveal-copy h1 em { color: var(--rose); font-style: normal; }
.reveal[data-sex="jongen"] .reveal-copy h1 em { color: var(--blue); font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-copy.is-waiting > * { opacity: 0; translate: 0 18px; }
  .reveal-copy > * { transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out); }
  .reveal-copy > :nth-child(2) { transition-delay: 150ms; }
  .reveal-copy > :nth-child(3) { transition-delay: 300ms; }
  .reveal-copy > :nth-child(4) { transition-delay: 450ms; }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.result-card {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.result-card h3 { font-size: 1rem; }
.result-card p { color: var(--text-2); }
.result-card .meta { color: var(--text-3); font-family: var(--font-mono); font-size: 0.8125rem; }
.result-card.is-wide { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .result-grid { grid-template-columns: 1fr; }
}
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-6); }

.status-card {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  max-width: 40rem;
}
.status-card h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); }
.status-card p { color: var(--text-2); }
.tips { list-style: none; display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); width: 100%; }
.tips li { display: flex; gap: 0.6em; align-items: baseline; color: var(--text-2); }
.tips .ico { width: 1em; height: 1em; color: var(--text); translate: 0 0.15em; }

/* Deelkaart-voorbeeld */
.share-preview { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; border-radius: var(--r-md); border: 1px solid var(--line-2); background: #000; object-fit: cover; }

/* ============ 19. Dialoog ============ */
.dialog {
  width: min(100% - 2rem, 40rem);
  max-height: min(85dvh, 44rem);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-3);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / 0.9);
}
.dialog::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(4px); }
.dialog-inner { display: grid; gap: var(--s-4); padding: clamp(1.25rem, 1rem + 2vw, 2rem); color: var(--text-2); }
.dialog-inner h2 { color: var(--text); font-size: 1.75rem; }
.dialog-inner ul { padding-left: 1.2rem; display: grid; gap: var(--s-2); }
.dialog-close { justify-self: start; }
@media (prefers-reduced-motion: no-preference) {
  .dialog { transition: opacity 220ms, translate 280ms var(--ease-out), display 280ms allow-discrete, overlay 280ms allow-discrete; }
  .dialog[open] { opacity: 1; translate: 0 0; }
  @starting-style { .dialog[open] { opacity: 0; translate: 0 16px; } }
}

/* ============ 20. 404 ============ */
.lost {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-8);
}
.lost .readout { justify-self: center; }
.lost-inner { display: grid; gap: var(--s-5); justify-items: center; max-width: 34rem; }
.lost h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 5rem); }
.lost p { color: var(--text-2); }
.lost .ask-actions { justify-content: center; }
.lost-art { position: absolute; inset: 0; z-index: -1; opacity: 0.32; }
.lost-art img { width: 100%; height: 100%; object-fit: cover; }
.lost-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgb(7 7 11 / 0.55), var(--bg) 100%); }

/* ============ 21. Print ============ */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .nav, .footer, .result-actions, .ask-actions, .reveal-media, .skip-link { display: none !important; }
  .reveal { min-height: 0; }
  .result-card, .panel { border-color: #ccc; background: #fff; }
  .result-card p, .lede, .score-explain { color: #222; }
}
