:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --text: #0f1c2e;
  --muted: #55657a;
  --border: #dfe6ee;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: #e6f5f3;
  --accent: #f59e0b;
  --navy: #0b1b33;
  --ok: #15803d;
  --bad: #c62828;
  --cool: #16a34a;
  --hot: #dc2626;
  --mid: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 30px rgb(15 28 46 / 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1420;
    --bg-alt: #111c2b;
    --surface: #152233;
    --text: #e7edf5;
    --muted: #9aaabd;
    --border: #243449;
    --brand: #2dd4bf;
    --brand-ink: #062a27;
    --brand-soft: #123532;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.fineprint { font-size: 0.85rem; color: var(--muted); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: var(--text); background: transparent; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); font-size: 1.2rem; }
.logo strong { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav .btn { white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.9rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 0.5rem; }

.hv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.hv-row { display: flex; justify-content: space-between; color: var(--muted); }
.hv-row strong { color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.hv-bars { position: relative; height: 220px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; margin: 22px 8px 14px; border-bottom: 2px solid var(--border); }
.hv-bars div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hv-bars span { display: block; width: 100%; height: var(--h); border-radius: 10px 10px 0 0; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 45%, transparent)); animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.hv-bars div:nth-child(2) span { animation-delay: .15s; } .hv-bars div:nth-child(3) span { animation-delay: .3s; }
.hv-bars em { position: absolute; bottom: -28px; font-style: normal; color: var(--muted); font-size: 0.85rem; }
.hv-line { position: absolute; left: -8px; right: -8px; bottom: var(--y); border-top: 2px dashed var(--ok); }
.hv-line.max { border-color: var(--bad); }
.hv-line b { position: absolute; right: 0; top: -1.4em; font-size: 0.8rem; color: var(--ok); }
.hv-line.max b { color: var(--bad); }
.hv-advice { margin-top: 38px; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; background: var(--brand-soft); border-radius: 14px; padding: 14px 18px; }
.hv-advice span { color: var(--muted); font-size: 0.85rem; grid-column: 1 / -1; }
.hv-advice strong { font-size: 1.8rem; font-family: ui-monospace, Consolas, monospace; }
.hv-advice em { font-style: normal; font-weight: 700; color: var(--brand); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Secties */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Video-speler */
.player { margin: 0; background: var(--navy); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.player:focus-visible { outline: 3px solid var(--accent); }
.stage { position: relative; aspect-ratio: 16 / 9; }
.stage-svg { display: block; width: 100%; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.t-dark { fill: #0f1c2e; } .t-light { fill: #e7edf5; } .t-bold { font-weight: 800; } .t-mono { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.scene { display: none; }
.scene.active { display: inline; animation: sceneIn .5s ease both; }
.scene .pop, .scene .slide-in, .scene .fade { opacity: 0; }
.scene.active .pop { animation: pop .6s cubic-bezier(.2,.9,.3,1.3) var(--d, 0s) both; transform-box: fill-box; transform-origin: center; }
.scene.active .slide-in { animation: slideIn .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
.scene.active .fade { animation: fadeIn 1s ease var(--d, 0s) both; }
.draw { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.scene.active .draw { animation: draw 2.4s ease var(--d, .2s) forwards; }
.draw.l1 { stroke: #60a5fa; } .draw.l2 { stroke: #fbbf24; } .draw.l3 { stroke: #34d399; }
.grow-x { stroke-dashoffset: 0; }
.scene.active .grow-x { animation: fadeIn .8s ease var(--d, 0s) both; }
.scene.active .waves path { animation: pulse 1.6s ease-in-out infinite; }
.scene.active .waves path:nth-child(2) { animation-delay: .2s; } .scene.active .waves path:nth-child(3) { animation-delay: .4s; }
.dbar { fill: color-mix(in oklab, var(--hot) calc(var(--f) * 100%), var(--cool)); opacity: 0; }
.scene.active .dbar { animation: fadeIn .4s ease calc(var(--i) * 60ms + .4s) both; }
@keyframes sceneIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.play-overlay { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: #0f1c2e; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 40px rgb(0 0 0 / 0.4); transition: transform .2s; }
.play-overlay:hover { transform: scale(1.06); }
.play-overlay[hidden] { display: none; }
.caption { color: #e7edf5; background: #0b1b33; padding: 14px 22px 4px; min-height: 4.6em; font-size: 1.05rem; margin: 0; }
.controls { display: flex; align-items: center; gap: 14px; padding: 10px 18px 16px; color: #e7edf5; }
.ctrl { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 4px; }
.ctrl .i-pause { display: none; }
.is-playing .ctrl .i-pause { display: inline; } .is-playing .ctrl .i-play { display: none; }
.progress { position: relative; flex: 1; height: 8px; background: #ffffff26; border-radius: 4px; cursor: pointer; }
.progress:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#progress-bar { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
#chapters i { position: absolute; top: -2px; width: 2px; height: 12px; background: #ffffff60; }
.time { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: #c3cfdd; min-width: 7ch; text-align: right; }

/* Stappen en kaarten */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 14px; }
.features, .audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features article, .audience article { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.features article h3::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: 14px; }
.features p, .audience p { color: var(--muted); margin: 0; }

/* Rekenvoorbeeld */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.calc-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.calc-form .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.75rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.year-toggle { display: inline-flex; margin: 24px 0 18px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.year-toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 0.55rem 1.2rem; border-radius: 999px; cursor: pointer; }
.year-toggle button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rc { border-radius: 16px; padding: 18px 20px; background: var(--bg-alt); display: flex; flex-direction: column; }
.rc span { color: var(--muted); font-size: 0.9rem; }
.rc strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.rc em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.rc.good { background: var(--brand-soft); }
.rc.save { background: var(--accent); color: #1c1305; }
.rc.save span, .rc.save em { color: #3b2a07; }
.compare, .breakdown { display: grid; gap: 6px; margin-top: 18px; }
.compare { grid-template-columns: 1fr 1fr; gap: 16px; }
.compare div, .breakdown div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--border); padding: 6px 0; }
.compare span, .breakdown span { color: var(--muted); }
.compare strong, .breakdown strong { font-variant-numeric: tabular-nums; }
.blocks { margin-top: 22px; }
.blocks h3 { font-size: 1rem; }
.block-row { display: grid; grid-template-columns: 120px 1fr 200px; gap: 12px; align-items: center; margin: 6px 0; }
.chip, .bar span, .hm-c, .legend i { background: color-mix(in oklab, var(--hot) calc(var(--f) * 100%), var(--cool)); }
.chip { color: #fff; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.6rem; text-align: center; }
.bar { height: 12px; background: var(--bg-alt); border-radius: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; transition: width .4s; }
.val { font-variant-numeric: tabular-nums; font-size: 0.9rem; text-align: right; }
.tip { margin-top: 14px; background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; }

/* 2029 */
.split-2029 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; background: var(--surface); }
.fact strong { font-size: 1.6rem; color: var(--brand); }
.fact span { color: var(--muted); }
.heatmap-card { border: 1px solid var(--border); border-radius: 18px; padding: 20px; background: var(--surface); }
.heatmap-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 10px; }
.legend { display: flex; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.heatmap { display: grid; gap: 3px; }
.hm-row { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 3px; align-items: center; }
.hm-head span { font-size: 0.7rem; color: var(--muted); text-align: left; }
.hm-m { font-size: 0.8rem; color: var(--muted); }
.hm-c { height: 18px; border-radius: 3px; }

/* FAQ en formulier */
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
details p { color: var(--muted); margin: 0.6rem 0 0; }
.cta-section { background: linear-gradient(180deg, var(--bg-alt), var(--brand-soft)); }
.lead-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.check input { width: auto; margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; }
.form-msg:empty { display: none; }
.form-msg { border-radius: 10px; padding: 12px 14px; }
.form-msg.ok { background: var(--brand-soft); color: var(--text); }
.form-msg.bad { background: #fdecec; color: var(--bad); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner p { margin: 0.3rem 0; }

@media (max-width: 960px) {
  .hero-grid, .split-2029 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features, .audience { grid-template-columns: 1fr 1fr; }
  .calc-form { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .steps, .features, .audience, .result-cards, .compare, .grid-2, .calc-form { grid-template-columns: 1fr; }
  .calc, .lead-form { padding: 20px; }
  .block-row { grid-template-columns: 96px 1fr; }
  .block-row .val { grid-column: 1 / -1; text-align: left; }
  .fact { grid-template-columns: 80px 1fr; }
  .hm-row { grid-template-columns: 26px repeat(24, 1fr); gap: 2px; }
  .hm-c { height: 14px; }
  .caption { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
}
.show-xs { display: none; }
@media (max-width: 440px) {
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .logo { font-size: 1.05rem; }
  .header-inner { gap: 0.5rem; }
}

/* Juridische pagina's */
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
mark.fill { background: #fde68a; color: #422006; padding: 0 0.2em; border-radius: 4px; }
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--border); padding: 0.6rem 0.5rem; text-align: left; vertical-align: top; }
.legal-table th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
