/* ==========================================================================
   FinanceCalc — design system
   Licht, rustig en overzichtelijk. Eén merkkleur, veel witruimte,
   cijfers altijd met vaste breedte (tabular numbers).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Neutrale tinten */
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;

  /* Merkkleur */
  --brand: #2346c9;
  --brand-hover: #1c39a8;
  --brand-ink: #14287a;
  --brand-50: #eff3ff;
  --brand-100: #dfe7ff;
  --brand-200: #c3d1fd;

  /* Signaalkleuren (enkel voor status, nooit decoratief) */
  --positive: #0f7b55;
  --positive-50: #e8f6ef;
  --negative: #b42318;
  --warning-50: #fff7e6;
  --warning: #9a5b00;

  /* Data (uitsplitsingsbalk) */
  --data-netto: #2346c9;
  --data-rsz: #94a3b8;
  --data-bv: #475569;
  --data-bbsz: #cbd5e1;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 16px 40px -12px rgba(15, 23, 42, 0.18);
  --ring: 0 0 0 3px rgba(35, 70, 201, 0.22);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --container: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
main { flex: 1; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header & navigatie ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo {
  display: inline-flex; align-items: baseline; gap: 0; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.035em; color: var(--text);
}
.logo:hover { color: var(--text); }
.logo .logo-mark { width: 28px; height: 28px; margin-right: 9px; align-self: center; }
.logo .logo-accent { color: var(--brand); }
.logo .logo-dot { color: #e8a317; margin-left: 1px; }
.logo-tag {
  margin-left: 10px; padding: 2px 8px; border-radius: 999px; font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); background: var(--surface-3);
  align-self: center;
}

.main-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; margin-left: auto; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color 0.2s;
}
.main-nav a svg { width: 18px; height: 18px; color: var(--text-3); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0;
  background: var(--brand); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.main-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.main-nav a[aria-current="page"] svg { color: var(--brand); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Menuknop en uitklapmenu: onder 1100px vervangt het menu de navigatiebalk */
.menu-knop {
  display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.menu-knop svg { width: 20px; height: 20px; }
.menu-knop:hover { border-color: var(--border-strong); }
@media (max-width: 1099px) {
  .main-nav { display: none; }
  .menu-knop { display: inline-flex; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .main-nav a { padding: 0 10px; font-size: 0.88rem; }
  .main-nav a svg { display: none; }
}
.menu-paneel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 16px 0 24px;
}
.menu-paneel[hidden] { display: none; }
.menu-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.menu-groep-titel, .rail-titel { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.menu-tool, .rail-tools a { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 12px; color: var(--text); }
.menu-tool:hover, .rail-tools a:hover { background: var(--surface-2); color: var(--text); }
.menu-tool[aria-current="page"] { background: var(--brand-50); }
.menu-tool b, .rail-tools b { display: block; font-size: 0.92rem; font-weight: 600; }
.menu-tool small, .rail-tools small { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 1px; }
.menu-icoon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-50); color: var(--brand); }
.menu-icoon svg { width: 20px; height: 20px; }
.menu-info { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.9rem; }
.menu-info a { color: var(--text-2); }
body.menu-open { overflow: hidden; }
@media (min-width: 1100px) { body.menu-open { overflow: auto; } }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 0.94rem;
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(20, 40, 122, 0.3); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-3); color: var(--text); }
.btn-ghost { color: var(--text-2); padding: 0 12px; }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Kaarten ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
@media (min-width: 768px) { .card-pad { padding: 28px; } }

.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 700; }
.section-title .step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-50); color: var(--brand); font-size: 0.8rem; font-weight: 700; font-family: var(--font-sans);
}
.section-sub { color: var(--text-3); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Formulierelementen ---------- */
.field + .field { margin-top: 20px; }
.field-row > .field + .field { margin-top: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field-row > * { min-width: 0; }
.label { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.label .optional { font-weight: 400; color: var(--text-3); }
.hint { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }

.input-group {
  display: flex; align-items: center; height: 48px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border-strong); transition: border-color 0.15s, box-shadow 0.15s;
}
.input-group:hover { border-color: var(--text-3); }
.input-group:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.input-group.is-invalid { border-color: var(--negative); }
.input-affix { padding: 0 4px 0 14px; color: var(--text-3); font-weight: 500; }
.input-affix.suffix { padding: 0 14px 0 4px; font-size: 0.88rem; }
.input {
  flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 6px; border: 0; outline: none; background: transparent;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.input-group.lg { height: 60px; border-radius: 12px; }
.input-group.lg .input { font-size: 1.5rem; font-family: var(--font-display); letter-spacing: -0.02em; }
.input-group.lg .input-affix { font-size: 1.25rem; padding-left: 18px; }
select.input { cursor: pointer; padding-right: 36px; appearance: none; -webkit-appearance: none; }

/* Segmented control (radio's) */
.segmented {
  display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px;
  padding: 4px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 10px;
  border-radius: 9px; font-size: 0.9rem; font-weight: 500; color: var(--text-2); text-align: center; line-height: 1.25;
  cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; user-select: none;
}
.segmented label:hover { color: var(--text); }
.segmented input:checked + label { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04); }
.segmented input:focus-visible + label { box-shadow: var(--ring); }
.segmented.stack { grid-auto-flow: row; }
.segmented.lg label { min-height: 48px; font-size: 0.98rem; }
.segmented.brand input:checked + label { background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(20, 40, 122, 0.35); }

/* Keuzekaarten (radio als kaart) */
.choice-cards { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice-cards input { position: absolute; opacity: 0; pointer-events: none; }
.choice-cards label {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.choice-cards label strong { font-size: 0.9rem; font-weight: 600; }
.choice-cards label span { font-size: 0.78rem; color: var(--text-3); line-height: 1.35; }
.choice-cards label:hover { border-color: var(--text-3); }
.choice-cards input:checked + label { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-cards input:focus-visible + label { box-shadow: var(--ring), inset 0 0 0 1px var(--brand); }

/* Stepper */
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--border); }
.stepper-row .stepper-label { font-size: 0.92rem; font-weight: 500; }
.stepper-row .stepper-label small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-3); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); flex-shrink: 0; }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text-2); border-radius: 9px; transition: background 0.15s, color 0.15s; }
.stepper button:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.stepper button:disabled { color: var(--border-strong); cursor: default; }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Schakelaar (checkbox) */
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.switch-row + .switch-row, .stepper-row + .switch-row, .switch-row + .stepper-row { border-top: 1px solid var(--border); }
.switch-row .switch-text { font-size: 0.92rem; font-weight: 500; }
.switch-row .switch-text small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; margin-top: 1px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background 0.2s; }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3); transition: transform 0.25s var(--ease);
}
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

/* Slider */
.range { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 10px 0 0; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--border) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brand); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff;
  border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2); transition: transform 0.15s;
}
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-3); }

/* Snelkeuze-chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums; transition: all 0.15s;
}
.chip:hover { border-color: var(--brand-200); color: var(--brand); background: var(--brand-50); }
.chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

/* Uitklapbare sectie */
.disclosure > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .chev { width: 20px; height: 20px; color: var(--text-3); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure .disclosure-body { margin-top: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: var(--brand-50); color: var(--brand); font-family: var(--font-sans); letter-spacing: 0;
}
.badge.neutral { background: var(--surface-3); color: var(--text-2); }

/* Info-knopje + popover */
.info {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  color: var(--text-3); transition: color 0.15s, background 0.15s;
}
.info svg { width: 16px; height: 16px; }
.info:hover, .info:focus-visible, .info[aria-expanded="true"] { color: var(--brand); background: var(--brand-50); }
.popover {
  position: fixed; z-index: 80; max-width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 12px;
  background: var(--text); color: #e2e8f0; font-size: 0.82rem; line-height: 1.5; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.15s, transform 0.15s var(--ease);
}
.popover.is-open { opacity: 1; transform: none; }
.popover strong { display: block; color: #fff; font-size: 0.84rem; margin-bottom: 2px; }

/* ---------- Paginakop ---------- */
.page-head { padding: 40px 0 28px; }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.page-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 800; }
.page-head p { color: var(--text-2); margin-top: 10px; max-width: 680px; font-size: 1.02rem; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.82rem; color: var(--text-3); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--text-2); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-note { color: var(--text-2); font-size: 0.9rem; max-width: 260px; }
.footer-about p { color: var(--text-2); font-size: 0.9rem; margin-top: 12px; max-width: 340px; }
.footer-about .footer-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; font-size: 0.8rem; color: var(--text-3); }
.footer-about .footer-meta a { font-size: inherit; color: var(--text-3); }
.footer-about .footer-meta a:hover { color: var(--brand); }
.footer-meta .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--positive); box-shadow: 0 0 0 3px var(--positive-50); transform: translateY(-1px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px;
  border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-3);
}
.footer-disclaimer { max-width: 760px; }
.be-mark { display: inline-flex; align-items: center; gap: 8px; }
.be-mark i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, #1f2937 0 33.3%, #f4c430 33.3% 66.6%, #e03c31 66.6%); }

/* ---------- Homepage ---------- */
.hero { padding-top: 64px; padding-bottom: 40px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100);
}
.hero h1 { margin: 20px auto 0; max-width: 820px; font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.hero h1 .accent { color: var(--brand); }
.hero p { margin: 18px auto 0; max-width: 620px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-2); }

.quick-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 580px; margin: 32px auto 0; }
.quick-calc .input-group { min-width: 0; background: var(--surface); box-shadow: var(--shadow); }
.quick-calc .input { width: 100%; }
.quick-calc .input-group .input { font-size: 1.15rem; }
.quick-calc .input::placeholder { color: var(--text-3); font-weight: 500; font-family: var(--font-sans); letter-spacing: 0; }
.quick-calc .btn { min-height: 60px; padding: 0 22px; border-radius: 12px; }
@media (max-width: 520px) { .quick-calc { grid-template-columns: 1fr; } }
.quick-note { margin-top: 12px !important; font-size: 0.84rem !important; color: var(--text-3) !important; }
.tool-example { margin-top: 18px !important; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.86rem !important; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tool-example b { color: var(--text); }
.tool-example span { color: var(--text-3); }
.tool-grid { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 20px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); color: var(--text); }
.tool-card .tool-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: var(--brand-50);
  transition: background 0.3s, color 0.3s;
}
.tool-card:hover .tool-icon { background: var(--brand); color: #fff; }
.tool-card .tool-icon svg { width: 26px; height: 26px; }
.tool-card h2 { font-size: 1.3rem; font-weight: 700; margin-top: 22px; }
.tool-card p { color: var(--text-2); margin-top: 8px; font-size: 0.95rem; }
.tool-card ul { margin-top: 18px; display: grid; gap: 8px; }
.tool-card li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-2); }
.tool-card li svg { width: 18px; height: 18px; color: var(--positive); flex-shrink: 0; margin-top: 2px; }
.tool-card .tool-cta { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.tool-card .tool-cta svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.tool-card:hover .tool-cta svg { transform: translateX(4px); }
.tool-card .soon { position: absolute; top: 24px; right: 24px; }

.usp-grid { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 640px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } }
.usp { display: flex; gap: 14px; padding: 4px; }
.usp .usp-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); flex-shrink: 0; }
.usp .usp-icon svg { width: 20px; height: 20px; }
.usp h3 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.usp p { color: var(--text-3); font-size: 0.86rem; margin-top: 2px; }

/* ---------- "Binnenkort"-pagina ---------- */
.coming-soon { max-width: 640px; margin: 24px auto 0; text-align: center; padding: 56px 28px; }
.coming-soon .tool-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; color: var(--brand); background: var(--brand-50); }
.coming-soon .tool-icon svg { width: 30px; height: 30px; }
.coming-soon h1 { font-size: 1.8rem; font-weight: 800; margin-top: 20px; }
.coming-soon p { color: var(--text-2); margin-top: 10px; }
.coming-soon ul { margin: 24px auto 0; display: inline-grid; gap: 10px; text-align: left; }
.coming-soon li { display: flex; gap: 10px; color: var(--text-2); font-size: 0.94rem; }
.coming-soon li svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.coming-soon .actions { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Toegankelijkheid & beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .no-print, #rwToast, .skip-link { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------- Grafieken (assets/js/charts.js) ---------- */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap svg { display: block; overflow: visible; }
.chart-grid line { stroke: var(--border); stroke-width: 1; }
.chart-axis { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; font-family: var(--font-sans); }
.chart-cross { stroke: var(--border-strong); stroke-width: 1; }
.chart-marker-line { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-marker-label { font-size: 12px; font-weight: 600; fill: var(--text); font-family: var(--font-sans); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.chart-col { transition: opacity 0.15s; }
.chart-wrap:hover .chart-col:not(.is-hover) { opacity: 0.55; }
.chart-tip {
  position: absolute; z-index: 5; min-width: 180px; padding: 10px 12px; border-radius: 10px; pointer-events: none;
  background: var(--text); color: #e2e8f0; font-size: 0.8rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.chart-tip.is-visible { opacity: 1; transform: none; }
.chart-tip-title { font-weight: 600; color: #fff; margin-bottom: 6px; }
.chart-tip-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 2px 0; }
.chart-tip-row i { width: 10px; height: 10px; border-radius: 3px; }
.chart-tip-row b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-legend i.line { height: 3px; border-radius: 2px; }
.chart-legend i.dash { height: 0; border-top: 2px dashed; background: none !important; }

/* Homepage: zes tools en uitleg */
.home-tools { padding-bottom: 8px; }
@media (min-width: 640px) and (max-width: 899px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-card-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-groep { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.tool-card h2 { margin-top: 18px; }
.home-info { padding-top: 48px; padding-bottom: 64px; }
.home-info-grid { display: grid; gap: 28px; padding-top: 32px; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .home-info-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.home-info h2 { font-size: 1.2rem; font-weight: 700; }
.home-info p { margin-top: 10px; color: var(--text-2); font-size: 0.95rem; }
.home-info a { color: var(--brand); }

/* Gesegmenteerde keuzes: tekst mag op smalle schermen afbreken */
.segmented { grid-auto-columns: minmax(0, 1fr); }
.segmented label { min-width: 0; text-align: center; line-height: 1.25; padding-left: 6px; padding-right: 6px; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) { .segmented label { font-size: 0.82rem; } }

/* ---------- Gsm: leesbaarheid ---------- */
h1, h2 { word-spacing: 0.04em; }
@media (max-width: 640px) {
  h1, h2, h3 { letter-spacing: -0.01em; }
  .hero { padding-top: 36px; padding-bottom: 24px; }
  .hero h1 { margin-top: 0; font-size: 2.1rem; letter-spacing: -0.02em; line-height: 1.12; }
  .hero p { font-size: 1rem; }
  .quick-calc { margin-top: 24px; }
  .tool-grid { gap: 14px; }
  .tool-card { padding: 20px; border-radius: 16px; }
  .tool-card .tool-icon { width: 44px; height: 44px; border-radius: 12px; }
  .tool-card .tool-icon svg { width: 22px; height: 22px; }
  .tool-card h2 { margin-top: 14px; font-size: 1.2rem; }
  .tool-card ul { margin-top: 14px; }
  .tool-card .tool-cta { padding-top: 18px; }
  .home-info { padding-top: 32px; padding-bottom: 40px; }
  .home-info-grid { padding-top: 24px; gap: 24px; }
  .home-info h2 { font-size: 1.15rem; }
  .page-head { padding: 28px 0 20px; }
  .page-head h1 { font-size: 1.85rem; line-height: 1.15; }
  .page-head p { font-size: 0.98rem; }
  body { -webkit-text-size-adjust: 100%; }
}
/* Ruimte voor de werkbalk van de browser onderaan (iPhone) */
.site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
