:root {
  --ink: #1c2541;
  --ink-2: #3a4566;
  --muted: #5b6478;
  --faint: #7a8296;
  --paper: #ffffff;
  --mist: #eef1f6;
  --line: #d5dbe5;
  --line-strong: #8a93a6;
  --mark: #ffe45c;
  --good: #1f7a4d;
  --act: #b23a2e;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1120px;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --stift: linear-gradient(transparent 16%, var(--mark) 16%, var(--mark) 90%, transparent 90%);
  --pijltje: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c2541' stroke-width='2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.4rem); font-weight: 720; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

mark {
  color: inherit;
  background: linear-gradient(transparent 14%, var(--mark) 14%, var(--mark) 88%, transparent 88%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Kop en voet ---------- */
header.site, footer.site, main > section {
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 20px;
}
.logo { display: block; line-height: 0; }
.logo img { display: block; width: auto; height: auto; max-height: 28px; max-width: 62vw; }
@media (max-width: 520px) { .logo img { max-height: 24px; } }
header.site nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: .95rem; }
header.site nav a { color: var(--ink-2); text-decoration: none; }
header.site nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 520px) { header.site nav a:not(:first-child) { display: none; } }

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: .9rem;
}
footer.site p { margin: 0; }
footer.site a { margin-right: 16px; }

/* ---------- De vraag als formulier ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 680; }
.intro { color: var(--ink-2); max-width: 54ch; margin-top: 10px; }

.ask { margin-top: clamp(24px, 4vw, 44px); }
.q-big {
  font-size: clamp(2.1rem, .9rem + 4.9vw, 4.75rem);
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 17em;
}
.q-small {
  font-size: clamp(1.2rem, .9rem + 1.3vw, 1.85rem);
  font-weight: 560;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: clamp(16px, 3vw, 32px) 0 0;
  max-width: 34em;
}

.blank {
  display: inline-flex;
  flex-direction: column;
  vertical-align: baseline;
  max-width: 100%;
}
.blank input,
.blank select {
  font: inherit;
  color: var(--ink);
  letter-spacing: inherit;
  background: transparent;
  border: 0;
  border-bottom: .07em solid var(--ink);
  border-radius: 0;
  padding: 0 .12em;
  margin: 0;
  min-width: 3ch;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.blank select {
  cursor: pointer;
  padding-right: .85em;
}
.blank input::placeholder { color: var(--faint); opacity: 1; }
/* Wat je invult, wordt gemarkeerd: zo zie je straks of het ook in het antwoord staat. */
.blank input:not(:placeholder-shown) {
  background-image: var(--stift);
  border-bottom-color: transparent;
}
.blank select {
  background-image: var(--pijltje), var(--stift);
  background-repeat: no-repeat, no-repeat;
  background-position: right .1em center, 0 0;
  background-size: .42em auto, 100% 100%;
  border-bottom-color: transparent;
}
.blank input:focus,
.blank select:focus { outline: none; border-bottom: .09em solid var(--ink); }
.blank input:focus-visible,
.blank select:focus-visible { box-shadow: 0 .09em 0 0 var(--ink); }
.blank input[aria-invalid='true'] { border-bottom-color: var(--act); }

.cap {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  align-self: flex-start;
  width: 0;
  overflow: visible;
}
.nw { white-space: nowrap; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 6px;
  font: inherit;
  color: var(--ink-2);
  text-decoration: underline;
  cursor: pointer;
}

.ts { margin-top: 20px; }
.ts:empty { margin: 0; }

.go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 4vw, 40px);
}
.hint { color: var(--muted); max-width: 46ch; margin: 0; font-size: .95rem; }

button[type='submit'],
.knop {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 15px 24px;
  font: inherit;
  font-weight: 660;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
button[type='submit']:hover,
.knop:hover { background: var(--ink-2); }
button[type='submit']:disabled { opacity: .65; cursor: progress; }

.fout { color: var(--act); font-weight: 600; margin: 18px 0 0; max-width: 60ch; }

/* ---------- Uitslag ---------- */
.uitslag { padding-block: 0 clamp(48px, 7vw, 88px); scroll-margin-top: 20px; }
.uitslag-in {
  background: var(--mist);
  border-radius: 10px;
  padding: clamp(22px, 4vw, 44px);
}
.uitslag h2 { max-width: 26em; outline: none; }
.antwoorden { list-style: none; padding: 0; margin: 28px 0 20px; }
.antwoorden li { padding: 18px 0; border-top: 1px solid var(--line); }
.antwoorden li:last-child { border-bottom: 1px solid var(--line); }
.vraag { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; margin: 0 0 6px; }
.uitkomst { margin: 0; color: var(--ink-2); max-width: 70ch; }
.uitkomst b { font-weight: 700; }
.uitkomst.ja b { color: var(--good); }
.uitkomst.nee b { color: var(--act); }
.uitkomst.wacht { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); animation: puls 1.2s ease-in-out infinite; }
.antwoorden li:nth-child(2) .dot { animation-delay: .2s; }
.antwoorden li:nth-child(3) .dot { animation-delay: .4s; }
@keyframes puls { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; opacity: .6; } }

.vervolg { font-size: 1.1rem; max-width: 60ch; }
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}
.cta p { margin: 0; color: var(--ink-2); max-width: 48ch; }

/* ---------- Banden ---------- */
.band { background: var(--mist); padding-block: clamp(56px, 8vw, 96px); }
.split { display: grid; gap: 40px; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
}
.band h2 + p { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }

dl.inhoud { margin: 28px 0 28px; }
dl.inhoud dt { font-weight: 680; margin-top: 18px; }
dl.inhoud dd { margin: 3px 0 0; color: var(--ink-2); max-width: 52ch; }
.pijl { font-weight: 660; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.sheet {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  overflow-x: auto;
}
.sheet-title { font-weight: 720; font-size: 1.1rem; margin: 0 0 10px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheet thead th {
  font-size: .8rem;
  font-weight: 660;
  color: var(--ink-2);
  text-align: center;
  padding: 8px 6px;
  border-bottom: 1.5px solid var(--ink);
}
.sheet thead th:first-child { text-align: left; padding-left: 0; }
.sheet tbody th {
  font-family: var(--serif);
  font-weight: 400;
  text-align: left;
  padding: 11px 10px 11px 0;
  line-height: 1.35;
}
.sheet td { text-align: center; white-space: nowrap; padding: 11px 6px; }
.sheet tbody tr { border-bottom: 1px solid var(--line); }
.sheet td.ja { color: var(--good); font-weight: 720; }
.sheet td.nee { color: var(--line-strong); }
.sheet figcaption { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---------- Werkwijze ---------- */
.werkwijze { padding-block: clamp(56px, 8vw, 96px); }
.stappen { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; counter-reset: stap; }
@media (min-width: 820px) { .stappen { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.stappen li { counter-increment: stap; color: var(--ink-2); max-width: 36ch; }
.stappen li::before {
  content: counter(stap);
  display: block;
  font-size: 3.2rem;
  font-weight: 760;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
  font-variant-numeric: lining-nums;
}
.stappen b { color: var(--ink); font-weight: 680; }

/* ---------- Bestellen ---------- */
.bedrag { font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem); font-weight: 760; letter-spacing: -0.025em; line-height: 1; margin: 22px 0 10px; }
.band .bedrag { color: var(--ink); }
.bedrag small { font-size: 1rem; font-weight: 520; letter-spacing: 0; color: var(--muted); }
.prijs p { max-width: 44ch; }

.order {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(20px, 3.5vw, 36px);
}
.order fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.order legend { font-weight: 720; font-size: 1.15rem; padding: 0; margin-bottom: 4px; }
.order label { display: block; font-weight: 620; font-size: .95rem; margin-top: 14px; }
.order input:not([type='checkbox']),
.order select {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  padding: 11px 12px;
}
.order select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--paper) var(--pijltje) no-repeat right 14px center / 12px auto;
  padding-right: 36px;
}
.row2:has(> [data-anders][hidden]) > label:first-child { grid-column: 1 / -1; }
.order input:focus,
.order select:focus { outline: 3px solid var(--mark); outline-offset: 0; border-color: var(--ink); }
.order input[aria-invalid='true'],
.order select[aria-invalid='true'] { border-color: var(--act); }
.opt { font-weight: 400; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.order .akkoord { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin: 0 0 22px; }
.akkoord input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
#order-knop { width: 100%; }

/* ---------- Vragen ---------- */
.faq { padding-block: clamp(56px, 8vw, 96px); }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 660;
  font-size: 1.1rem;
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); max-width: 62ch; margin: 0 0 20px; }

/* Meetlat voor de invulvelden */
.meter { position: absolute; visibility: hidden; white-space: pre; left: -9999px; top: 0; }
