/* =====================================================================
   Juridisch Rekenen, marketingsite
   Bouwt op de tokens en fonts uit het design system (tokens.css is een kopie
   van design-system/colors_and_type.css, gemaakt door de build). Overgenomen
   uit design-system/ui_kits/website/site.css, aangevuld met toegankelijkheid
   (skip-link, focus, contrast AA) en zonder formulier en editornotities.
   De CSP staat geen inline stijl toe: alle stijl staat in dit bestand.
   ===================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans); background: var(--papierwit); color: var(--fg1);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.tnum { font-feature-settings: "tnum" 1, "lnum" 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
img { display: block; max-width: 100%; height: auto; }
svg.ic { flex: none; }

/* Toegankelijkheid: zichtbare focus en een skip-link, gelijk aan de rekentool. */
:focus-visible { outline: 3px solid var(--rekengroen); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--inktblauw); color: #fff; padding: 10px 14px; border-radius: var(--radius-md);
  font: var(--ui);
}
.skip-link:focus { top: 12px; }

/* Proefversie: zichtbaar tot de aftekening (PROEFVERSIE in site.config.mjs). */
.proefbalk {
  padding: 8px 28px; font: var(--ui-sm); line-height: 1.45; color: #6E4A0E; text-align: center;
  background: var(--warning-bg); border-bottom: 1px solid var(--warning-border);
}

/* serif heads */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.015em; color: var(--inktblauw); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: var(--ui); border-radius: var(--radius-md); padding: 12px 20px; cursor: pointer; border: 1px solid transparent; transition: background var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--inktblauw); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--inktblauw); border-color: var(--border-strong); }
.btn--ghost:hover { background: #fff; }
/* Op de inktblauwe CTA-band. Geen rekengroen: dat is voor resultaat en correctheid. */
.btn--licht { background: var(--papierwit); color: var(--inktblauw); }
.btn--licht:hover { background: #fff; }
.btn--lg { padding: 14px 24px; font-size: 16px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,247,244,0.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--inktblauw); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 26px; }
.site-nav__link { font: var(--ui); color: var(--fg2); }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--inktblauw); }
.site-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-header__cta { flex: none; }
@media (max-width: 960px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .site-header__inner { flex-wrap: wrap; gap: 12px 16px; padding-top: 12px; padding-bottom: 10px; }
  .site-header__cta { margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-nav ul { flex-wrap: wrap; gap: 4px 20px; }
  .site-nav__link { display: inline-block; padding: 6px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .proefbalk { padding: 8px 16px; text-align: left; }
  .brand__name { font-size: 19px; }
  .site-header__cta { margin-left: 0; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 84px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: var(--overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-700); margin-bottom: 18px; }
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.025em; }
.hero__lede { font: var(--body-lg); color: var(--fg2); margin-top: 20px; max-width: 30em; }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font: var(--caption); color: var(--fg2); }
.hero__note svg { width: 15px; height: 15px; color: var(--green-700); }
@media (max-width: 860px) {
  .hero { padding: 52px 0 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 420px) { .hero h1 { font-size: 38px; } }

/* hero visual: de opbouw van een uitkomst, met balken in plaats van bedragen */
.demo-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-card__top { background: var(--success-bg); border-bottom: 1px solid var(--success-border); padding: 24px 26px 22px; }
.demo-card__eyebrow { font: var(--overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-700); }
.demo-card__amount { margin-top: 12px; }
.demo-card__sub { font: var(--body-sm); color: var(--fg2); margin-top: 10px; }
.demo-card__rows { padding: 8px 26px 18px; }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); font: var(--body-sm); }
.demo-row:last-child { border-bottom: none; }
.demo-row__k { color: var(--fg2); }
.demo-row--total .demo-row__k { color: var(--inktblauw); font-weight: 600; }
.demo-bar { display: block; flex: none; width: 88px; height: 10px; border-radius: var(--radius-pill); background: var(--ink-100); }
.demo-bar--xl { width: 210px; height: 30px; border-radius: var(--radius-md); background: var(--success-border); }
.demo-bar--total { width: 104px; background: var(--ink-200); }
.demo-card__foot { display: flex; align-items: center; gap: 8px; padding: 13px 26px; border-top: 1px solid var(--border); background: var(--surface-muted); font: var(--ui-sm); color: var(--info); }
.demo-card__foot svg { width: 15px; height: 15px; }
@media (max-width: 420px) {
  .demo-card__top, .demo-card__rows, .demo-card__foot { padding-left: 18px; padding-right: 18px; }
  .demo-bar { width: 56px; }
  .demo-bar--xl { width: 160px; }
}

/* ---------------- Sections ---------------- */
.section { padding: 76px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head--center { margin: 0 auto 48px; text-align: center; }
.section__eyebrow { font: var(--overline); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-700); display: block; margin-bottom: 12px; }
.section h2 { font-size: 36px; line-height: 1.15; }
.section__lede { font: var(--body-lg); color: var(--fg2); margin-top: 14px; }
@media (max-width: 420px) { .section { padding: 56px 0; } .section h2 { font-size: 30px; } }

/* trust pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar__ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-subtle); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pillar__ic svg { width: 22px; height: 22px; color: var(--green-700); }
.pillar h3 { font-size: 19px; margin-bottom: 7px; }
.pillar p { font: var(--body-sm); color: var(--fg2); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* berekeningen (de lijst komt uit apps/web/src/nav.ts) */
.calcgroups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.calcgroup { min-width: 0; background: var(--papierwit); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.calcgroup__t { font: var(--overline); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg2); margin-bottom: 8px; }
.calclist { display: flex; flex-direction: column; }
.calcitem { border-bottom: 1px solid var(--border); }
.calcitem:last-child { border-bottom: none; }
.calcitem__row, .calcitem__link { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.calcitem__link:hover .calcitem__name { text-decoration: underline; text-underline-offset: 3px; }
.calcitem__ic { width: 34px; height: 34px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex: none; }
.calcitem__ic svg { width: 17px; height: 17px; color: var(--ink-600); }
.calcitem__name { font: var(--ui); color: var(--fg1); flex: 1; min-width: 0; }
.calcitem__tag { font: var(--overline); text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: var(--radius-pill); flex: none; }
.calcitem__tag--live { background: var(--success-bg); color: var(--green-700); border: 1px solid var(--success-border); }
.calcitem__tag--soon { background: var(--bg-sunken); color: var(--fg2); border: 1px solid var(--border); }
@media (max-width: 860px) { .calcgroups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .calcgroup { padding: 16px; }
  /* Smal scherm: het label onder de naam, zodat lange namen niet uit de kaart lopen. */
  .calcitem__row, .calcitem__link { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; }
  .calcitem__ic { grid-row: span 2; }
  .calcitem__tag { justify-self: start; }
}

/* steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step3 { position: relative; padding-top: 8px; }
.step3__n { width: 38px; height: 38px; border-radius: 50%; background: var(--inktblauw); color: #fff; font: var(--label); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step3 h3 { font-size: 20px; margin-bottom: 7px; }
.step3 p { font: var(--body); color: var(--fg2); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 32px; } }

/* peildatum */
.peilband { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.peilband__bereik { font: var(--body); color: var(--fg2); margin-top: 12px; }
.peilband__chip { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 16px; font: var(--ui-sm); color: var(--inktblauw); box-shadow: var(--shadow-xs); }
.peilband__chip svg { width: 15px; height: 15px; color: var(--ink-600); }
.peilband__chip--link { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.peilband__chip--link:hover { text-decoration-color: currentColor; border-color: var(--border-strong); }
.peilband__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.peilband__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 860px) { .peilband { grid-template-columns: 1fr; gap: 40px; } }

/* ---------------- CTA band ---------------- */
.ctaband { background: var(--inktblauw); color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.ctaband__eq { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: 0.06; }
.ctaband__eq img { width: 280px; }
.ctaband h2 { color: #fff; font-size: 38px; }
.ctaband p { font: var(--body-lg); color: rgba(246,247,244,0.85); margin: 14px auto 28px; max-width: 34em; }
.ctaband :focus-visible { outline-color: var(--papierwit); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--papierwit); border-top: 1px solid var(--border); padding: 56px 0 36px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand .brand { margin-bottom: 14px; }
.site-footer__brand .brand__name .nl { color: var(--leigrijs); font-weight: 500; }
.site-footer__tag { font: var(--body-sm); color: var(--fg2); max-width: 26em; }
.fcol h2 { font: var(--label); color: var(--fg1); letter-spacing: 0; margin-bottom: 12px; }
.fcol a { display: block; font: var(--body-sm); color: var(--fg2); padding: 5px 0; }
.fcol a:hover { color: var(--inktblauw); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 32px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font: var(--caption); color: var(--fg2); flex-wrap: wrap; }
.site-footer__bottom .disc { max-width: 52em; }
.site-footer__gegevens { overflow-wrap: anywhere; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------------- Subpage hero + prose ---------------- */
.subhero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background: #fff; }
.subhero .eyebrow { margin-bottom: 14px; }
.subhero h1 { font-size: 46px; line-height: 1.06; letter-spacing: -0.02em; }
.subhero__lede { font: var(--body-lg); color: var(--fg2); margin-top: 16px; max-width: 34em; }
.subhero--fout { padding-bottom: 72px; }
@media (max-width: 860px) { .subhero { padding: 44px 0 32px; } .subhero h1 { font-size: 36px; } }
@media (max-width: 420px) { .subhero h1 { font-size: 32px; } }

.prose { max-width: 720px; padding: 56px 0 72px; overflow-wrap: break-word; }
.prose h2 { font-size: 27px; margin: 38px 0 12px; }
.prose h2:first-child, .prose .prose__meta + h2 { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p { font: var(--body); color: var(--fg1); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 0; padding-left: 4px; }
.prose li { position: relative; padding-left: 22px; font: var(--body); color: var(--fg1); margin-bottom: 9px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--inktblauw); }
/* Links in lopende tekst: green-700 (4,9:1 op papierwit) en altijd onderstreept, zoals in de rekentool. */
.prose a { color: var(--green-700); text-decoration: underline; text-decoration-color: var(--green-300); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose__meta { font: var(--caption); color: var(--fg2); margin-bottom: 32px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; padding: 56px 0 72px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; overflow-wrap: anywhere; }
.contact-card h2 { font-size: 23px; margin-bottom: 8px; }
.contact-card p { font: var(--body); color: var(--fg2); margin-bottom: 16px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card__mail { color: var(--fg1); font-weight: 500; }
.contact-card__let { font: var(--body-sm); border-top: 1px solid var(--border); padding-top: 14px; }
.contact-aside { overflow-wrap: anywhere; }
.contact-aside h2 { font-size: 19px; margin-bottom: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-item__ic { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-subtle); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item__ic svg { width: 19px; height: 19px; color: var(--green-700); }
.contact-item__k { font: var(--label); color: var(--fg1); }
.contact-item__v { font: var(--body-sm); color: var(--fg2); margin-top: 2px; }
@media (max-width: 420px) { .contact-card { padding: 20px; } }
