/* Certa – rustig, fris, goed leesbaar. Geen cookies, geen externe bronnen. */

@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --text: #1b1f1c;
  --muted: #4d574f;
  --primary: #4f7a5b;
  --primary-strong: #3c6147;
  --container: #d7e8da;
  --on-container: #12301c;
  --line: #dde5dd;
  --radius: 20px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --surface: #1a1d1a;
    --text: #e3e5e0;
    --muted: #b3bcb4;
    --primary: #a3cfae;
    --primary-strong: #bfe0c7;
    --container: #2e4d37;
    --on-container: #d7e8da;
    --line: #2c332d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.1875rem; /* 19px: comfortabel voor oudere lezers */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Kop en navigatie */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
nav a { color: var(--text); text-decoration: none; padding: 6px 2px; font-size: 1.05rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--primary-strong); text-decoration: underline; }

/* Secties */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 40em; }
.eyebrow { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 10px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; border: 0;
}
@media (prefers-color-scheme: dark) { .btn { color: #0e3519; } }
.btn:hover { background: var(--primary-strong); }
.btn.ghost { background: transparent; color: var(--primary-strong); border: 2px solid var(--primary); }
.btn.ghost:hover { background: var(--container); }
.soon { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }

/* Keuze op de startpagina */
.hero { padding: 72px 0 56px; }
.hero .logo-big { width: 88px; height: 88px; margin-bottom: 20px; }
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.choice {
  display: block; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.choice:hover { border-color: var(--primary); transform: translateY(-2px); }
.choice .icon { font-size: 2.2rem; }
.choice h2 { font-size: 1.5rem; margin: 10px 0 8px; }
.choice p { color: var(--muted); margin: 0 0 14px; }
.choice .go { font-weight: 700; color: var(--primary-strong); }

/* Kaarten en rasters */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.why { font-size: 1rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.why a { font-size: 0.95rem; }

/* Mini-voorbeelden van de app, zonder afbeeldingen */
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 16px; font-size: 1rem; }
.mock-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.mock-row + .mock-row { margin-top: 8px; }
.mock-row.done { background: var(--container); border-color: transparent; }
.mock-row .ic { font-size: 1.4rem; position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.mock-row .ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--primary); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.mock-row .t { flex: 1; }
.mock-row .t small { display: block; color: var(--muted); }
.mock-row .s { font-weight: 700; color: var(--primary-strong); }
.mock-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); margin: 4px 2px 8px; }
.toast { background: #2b312c; color: #f1f4f0; border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: 0.95rem; }

/* Stappen in de handleiding */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 14px; min-height: 36px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--container); color: var(--on-container); font-weight: 700;
}
.tip { background: var(--container); color: var(--on-container); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.toc { columns: 2 260px; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.chapter { padding-top: 36px; }
.chapter + .chapter { border-top: 1px solid var(--line); margin-top: 36px; }

/* Onderzoekstabel */
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--container); color: var(--on-container); white-space: nowrap; }
.refs { font-size: 1rem; padding-left: 22px; }
.refs li { margin-bottom: 10px; }
@media (max-width: 700px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  td { border: 0; padding: 4px 0; }
}

/* Voet */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 1rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Afdrukken / PDF van de handleiding */
@media print {
  :root { --bg: #fff; --surface: #fff; }
  body { font-size: 12pt; }
  .top, footer, .no-print, .skip { display: none !important; }
  section { padding: 0; border: 0 !important; }
  .chapter { break-inside: avoid-page; padding-top: 12pt; }
  .chapter + .chapter { border: 0; margin-top: 0; }
  h2 { break-after: avoid; }
  .mock, .tip, .card { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .print-cover { display: flex !important; }
  .print-cover + * { break-before: page; }
  /* Voettekst en paginanummers komen van tools/make-pdf.js, in de ondermarge. */
  @page { margin: 16mm 16mm 22mm; }
}
.print-cover { display: none; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 90vh; }
