/* ============================================================
   3. Pagina-compositie — leadpagina thuisbatterij (alleen token-refs)
   Bewegings-tokens (R14-budget, pagina-lokaal genoteerd): 150–600ms, rustige easing.
   ============================================================ */
:root { --beweeg-duur: 450ms; --beweeg-ease: cubic-bezier(.22,.61,.36,1); --teller-duur: 600ms; }

h1, h2, h3, p { margin: 0; }
p + p { margin-top: var(--ruimte-300); }
:focus-visible { outline: 2px solid var(--kleur-merk); outline-offset: 2px; }
.measure-centrum { max-width: var(--measure-narrow); margin-inline: auto; }
.sectie-kop { margin-bottom: var(--ruimte-500); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
button { font-family: inherit; }

/* ---- 1. HERO — 55/45, formulier-kaart = focuspunt (R8); tint-verloop i.p.v. vlakke kleur ---- */
.sectie-hero { background: linear-gradient(180deg, var(--kleur-vlak-subtiel), var(--kleur-achtergrond)); }
.sectie-hero.section { padding-block: var(--ruimte-600); }   /* R6-compactheid: hero binnen één scherm */
.hero-grid {
  display: grid; gap: var(--ruimte-400) var(--ruimte-700); align-items: start;
  grid-template-columns: minmax(0,55fr) minmax(0,45fr);
  grid-template-areas: "kop form" "subzin form" "vertrouwen form" "beeld form" ". form";
}
.hero-kop { grid-area: kop; }
.hero-subzin { grid-area: subzin; color: var(--kleur-tekst); max-width: var(--measure-narrow); }
.hero-vertrouwen { grid-area: vertrouwen; position: relative; padding-left: var(--ruimte-400); font-weight: 600; color: var(--prim-merk-donker); }
.hero-vertrouwen::before { content: "✓"; position: absolute; left: 0; color: var(--kleur-marker); font-weight: 700; }
.hero-beeld { grid-area: beeld; margin: var(--ruimte-200) 0 0; }
.hero-beeld img { border-radius: var(--prim-radius-lg); box-shadow: var(--prim-elevatie-md); aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* ---- formulier-kaart (R12 — verankerd; twee-staps, stap 1 van 2 zichtbaar) ---- */
.formulier-kaart { grid-area: form; }
.formulier-kop { font-weight: 800; font-family: var(--prim-font-kop); font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.stap-indicator { font-size: var(--prim-type-s); font-weight: 700; color: var(--kleur-merk); }
.voortgang { height: var(--ruimte-100); background: var(--kleur-lijn); border-radius: var(--prim-radius-pill); overflow: hidden; margin: var(--ruimte-200) 0 var(--ruimte-400); }
.voortgang > div { height: 100%; width: 50%; background: var(--kleur-merk); border-radius: inherit; }
[data-formulier][data-stap="2"] .voortgang > div { width: 100%; }
.veld-groep { margin-bottom: var(--ruimte-300); }
.veld-label { display: block; font-size: var(--prim-type-s); font-weight: 700; margin-bottom: var(--ruimte-100); color: var(--kleur-tekst); padding: 0; }
.veld {
  width: 100%; box-sizing: border-box; min-height: var(--cta-min-hoogte);
  padding: var(--ruimte-200) var(--ruimte-300);
  border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm);
  background: var(--kaart-bg); color: var(--kleur-tekst); font: inherit;
}
.veld:hover { border-color: var(--kleur-merk); }
.veld:focus { border-color: var(--kleur-merk); }
.veld[aria-invalid="true"] { border-color: var(--kleur-functioneel-rood); }
.veld-fout { display: block; color: var(--kleur-functioneel-rood); font-size: var(--prim-type-s); margin-top: var(--ruimte-100); }
.keuze-groep { margin-bottom: var(--ruimte-300); }
.keuze-rij { display: flex; gap: var(--ruimte-200); }
.keuze { flex: 1; position: relative; }
.keuze input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.keuze span {
  display: flex; align-items: center; justify-content: center; min-height: var(--cta-min-hoogte);
  border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm);
  background: var(--kaart-bg); font-weight: 600; font-size: var(--prim-type-s); color: var(--kleur-tekst);
}
.keuze input:hover + span { border-color: var(--kleur-merk); }
.keuze input:checked + span { border-color: var(--kleur-merk); background: var(--kleur-vlak-subtiel); color: var(--prim-merk-donker); }
.keuze input:focus-visible + span { outline: 2px solid var(--kleur-merk); outline-offset: 2px; }
.cta-vol { width: 100%; box-sizing: border-box; }
.cta:hover { background: var(--prim-accent-hover); }
.cta[disabled] { opacity: .6; cursor: progress; }
.knop-terug { background: none; border: 0; padding: var(--ruimte-200) 0; margin-top: var(--ruimte-200); color: var(--kleur-merk); font: 600 var(--prim-type-s)/1 var(--prim-font-body); text-decoration: underline; cursor: pointer; }
.privacy { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); margin-top: var(--ruimte-300); }
.bedankt { padding: var(--ruimte-300) 0; }

/* ---- 2. TIMING-REFRAME — volle breedte, 60/40, visual dominant ---- */
.reframe-grid { display: grid; grid-template-columns: minmax(0,60fr) minmax(0,40fr); gap: var(--ruimte-600); align-items: start; }
.reframe-visual img { width: 100%; border-radius: var(--prim-radius-lg); box-shadow: var(--prim-elevatie-md); }

/* ---- 3. HOE-WERKT-HET — kaartenrij 3, stap-markers als één icoon-set (§6) ---- */
.hoe-kaart { display: flex; flex-direction: column; gap: var(--ruimte-300); }
.hoe-kaart h3 { font-size: var(--prim-type-m); }

/* ---- 4. SOCIAL PROOF — asymmetrisch: breed case-blok (68) + smal teller-paneel (32) — hét R15-moment ---- */
.proof-grid {
  display: grid; gap: var(--ruimte-500) var(--ruimte-600); align-items: start;
  grid-template-columns: minmax(0,68fr) minmax(0,32fr);
  grid-template-areas: "cases tellers" "cases procta";
}
.case-blok { grid-area: cases; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--ruimte-400); }
.case-kaart { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-kaart img:not(.avatar) { width: 100%; aspect-ratio: 3/2; object-fit: cover; }   /* defect-fix avatar-weergave: kaartbeeld-regel raakt de avatar niet meer */
.case-tekst { padding: var(--kaart-padding); display: flex; flex-direction: column; gap: var(--ruimte-300); flex: 1; }
.case-tekst p { font-size: var(--prim-type-s); }
.case-bron { margin-top: auto; display: flex; align-items: center; gap: var(--ruimte-200); }
.avatar, .case-bron img.avatar {
  width: 48px; height: 48px; aspect-ratio: 1 / 1; flex: 0 0 48px; flex-shrink: 0;
  border-radius: 50%; background: var(--kleur-vlak-subtiel);
  color: var(--prim-merk-donker); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--prim-type-xs);
  object-fit: cover; overflow: hidden;   /* §10-anatomie: rond 48px-bolletje; defect-fix: wint expliciet van .case-kaart img (volle breedte/3:2) en img{height:auto} */
}
.case-naam { font-size: var(--prim-type-s); font-weight: 700; color: var(--prim-merk-donker); flex: 1 1 auto; min-width: 0; }   /* defect-fix: naamblok krijgt ruimte, geen afkapping */
.case-meta { display: flex; flex-direction: column; gap: var(--ruimte-100); flex: 1 1 auto; min-width: 0; }   /* mens-eis 2026-07-03: sterren-rij direct boven de naam */
.case-meta .case-naam { flex: none; }
.sterren { display: inline-flex; align-items: center; align-self: flex-start; background: var(--prim-merk-donker); color: var(--kleur-ster); font-size: var(--prim-type-m); letter-spacing: .08em; line-height: 1; padding: .22em .55em .28em; border-radius: 999px; }
.sterren .ster-uit { color: #8aa4ae; }   /* 4★: vier goud-gevulde + één gedimde — donker chipje: geel #f5b301 ongewijzigd (mens-eis), contrast 6,3:1 / dim 4,4:1 (fix eindbatch CONTRAST) */
.toon-meer { display: none; margin-top: var(--ruimte-300); }
.teller-paneel {
  grid-area: tellers; background: var(--kleur-vlak-subtiel);
  border-radius: var(--prim-radius-lg); padding: var(--ruimte-500);
  display: flex; flex-direction: column; gap: var(--ruimte-400);
}
.teller-groot { font-family: var(--prim-font-accent-serif); font-size: var(--prim-type-xl); line-height: var(--prim-lijnhoogte-kop); color: var(--prim-merk-donker); }
.teller-label { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); margin-top: var(--ruimte-100); }
.proof-cta-blok { grid-area: procta; }
.proof-cta-blok .cta { width: 100%; box-sizing: border-box; }

/* ---- 5. AUTORITEIT — 40/60 gespiegeld t.o.v. hero (R15); R17-normdrager ---- */
.aut-grid { display: grid; grid-template-columns: minmax(0,40fr) minmax(0,60fr); gap: var(--ruimte-600); align-items: start; }
.aut-links { text-align: center; }
.adviseur-avatar {
  width: 55%; aspect-ratio: 1; margin: 0 auto var(--ruimte-400);
  border-radius: var(--prim-radius-pill); background: var(--kleur-vlak-subtiel);
  border: 1px solid var(--kleur-lijn); box-shadow: var(--prim-elevatie-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--prim-font-accent-serif); font-size: var(--prim-type-2xl); color: var(--prim-merk-donker);
}
.credential { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); max-width: var(--measure-narrow); margin-inline: auto; }
.aut-rechts p { max-width: var(--measure-narrow); }

/* ---- 6. RISICO-OMKERING — smal gecentreerd (R15) ---- */
.risico-kaart { text-align: center; }
.risico-kaart .lijst-merk { display: inline-block; text-align: left; margin: var(--ruimte-400) auto; }
.risico-kaart .lijst-merk > li + li { margin-top: var(--ruimte-200); }

/* ---- 7. FAQ — accordion (details/summary), eerste open ---- */
.faq-item { background: var(--kaart-bg); border: 1px solid var(--kleur-lijn); border-radius: var(--kaart-radius); margin-bottom: var(--ruimte-300); }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--ruimte-400); display: flex; justify-content: space-between; align-items: center; gap: var(--ruimte-300); border-radius: inherit; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--prim-type-m); }
.faq-item summary::after { content: "▾"; color: var(--kleur-merk); font-weight: 700; flex: none; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--kleur-merk); }
.faq-antwoord { padding: 0 var(--ruimte-400) var(--ruimte-400); }

/* ---- 8. EIND-CTA — gecentreerde formulier-kaart + secundaire mini-CTA + juridische voet ---- */
.sectie-eind { text-align: center; }
.eind-bewijs { color: var(--prim-merk-donker); font-weight: 600; margin: var(--ruimte-300) 0 var(--ruimte-500); }
.sectie-eind .formulier-kaart { text-align: left; }
.mini-cta { margin-top: var(--ruimte-500); }
.mini-cta .btn-secundair { font-size: var(--prim-type-s); }
.terugbel-veld { max-width: var(--measure-narrow); margin: var(--ruimte-300) auto 0; text-align: left; }
.terugbel-rij { display: flex; gap: var(--ruimte-200); }
.terugbel-rij .veld { flex: 1; }
.terugbel-succes { margin-top: var(--ruimte-300); font-weight: 600; color: var(--kleur-functioneel-groen); }
.voet { margin-top: var(--ruimte-600); font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); }

/* ---- Levendigheid (R14): scroll-reveal + hover-lift — alleen transform/opacity, 150–600ms ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(var(--ruimte-300)); transition: opacity var(--beweeg-duur) var(--beweeg-ease), transform var(--beweeg-duur) var(--beweeg-ease); }
  .js .reveal.is-zichtbaar { opacity: 1; transform: none; }
  .lift { transition: transform var(--beweeg-duur) var(--beweeg-ease), box-shadow var(--beweeg-duur) var(--beweeg-ease); }
  .lift:hover { transform: translateY(calc(-1 * var(--ruimte-100))); box-shadow: var(--prim-elevatie-md); }
  .cta { transition: background-color var(--beweeg-duur) var(--beweeg-ease), transform var(--beweeg-duur) var(--beweeg-ease); }
  .cta:hover { transform: translateY(calc(-1 * var(--ruimte-100) / 2)); }
  .voortgang > div { transition: width var(--beweeg-duur) var(--beweeg-ease); }
  .faq-item summary::after { transition: transform var(--beweeg-duur) var(--beweeg-ease); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lift, .lift:hover, .cta, .voortgang > div, .faq-item summary::after { transition: none; transform: none; }
}

/* ---- Mobiel (~390px): stapelvolgorde conform wireframe-mobiel ---- */
@media (max-width: 767px) {
  h1 { font-size: var(--prim-type-xl); }
  h2 { font-size: var(--prim-type-l); }
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "kop" "vertrouwen" "form" "subzin" "beeld";   /* stapel 1-2-3-4-5 */
  }
  .hero-beeld img { aspect-ratio: 16/9; }   /* beeld gereduceerd tot strip (wireframe stapel 5) */
  .reframe-grid { grid-template-columns: minmax(0,1fr); gap: var(--ruimte-400); }
  .proof-grid {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "tellers" "cases" "procta";   /* teller-strip eerst (stapel 15-16) */
  }
  .teller-paneel { flex-direction: row; gap: var(--ruimte-300); padding: var(--ruimte-400); }
  .teller-paneel > div { flex: 1; }
  .teller-paneel .hairline { display: none; }
  .teller-groot { font-size: var(--prim-type-l); }
  .case-grid { grid-template-columns: minmax(0,1fr); }
  .case-kaart-3 { display: none; }                       /* klapt in achter toon-meer (stapel 19) */
  .case-grid.open .case-kaart-3 { display: flex; }
  .toon-meer { display: inline-flex; }
  .aut-grid { grid-template-columns: minmax(0,1fr); gap: var(--ruimte-400); }
  .adviseur-avatar { width: 45%; }
  .keuze span { padding-inline: var(--ruimte-100); }
}
