/* CoinMeIn landing — reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Fonts */
@font-face { font-family: 'Bangers'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/bangers-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/raleway-v28-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/raleway-v28-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/raleway-v28-latin-700.woff2') format('woff2'); }

/* Design tokens — styleguide Secret Ninja's (besluit 2026-09-22): hoofdkleur #973B61,
   tekst #6E2B47, mint #B0E0C7, crème #FAF4E4. Snoozzz' eigen kleuren in de SVG's blijven.
   Bewuste afgeleiden (zelfde verhouding als voorheen): --mint-deep (verloop + sectievlak)
   en twee licht-op-wijn teksttinten voor de footer. Géén kleuren buiten deze familie. */
:root {
  --mint: #B0E0C7;
  --mint-deep: #A5DAC0;
  --wine: #973B61;
  --text: #6E2B47;
  --cream: #FAF4E4;
  --on-wine-soft: #F4EAEE;
  --on-wine-dim: #E6D1DA;
  --font-head: 'Bangers', system-ui, cursive;
  --font-body: 'Raleway', system-ui, sans-serif;
  --radius-card: 22px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 15px rgba(0,0,0,0.08);
  --space-after-h2: 16px;
  --gap-cards: 24px;
  --maxw: 960px;
}

body { font-family: var(--font-body); color: var(--text); background: var(--cream); }
/* Register-scheiding: Bangers (display) alleen voor de hero en de speelse
   stappen-sectie; alle overige koppen in Raleway — ouder-vertrouwen. */
h1 { font-family: var(--font-head); font-weight: 400; letter-spacing: 0.03em; line-height: 1.1; }
h2, h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.2; }

/* Sectie: hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-deep) 100%);
  padding: clamp(48px, 7vw, 80px) 16px 48px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('assets/backgrounds/wirl.svg') no-repeat;
  background-size: cover; background-position: 72% 40%;
  opacity: 0.22; pointer-events: none;
}
.hero__brand {
  position: absolute; z-index: 4; top: 18px;
  left: max(20px, calc((100% - var(--maxw)) / 2));
  font-family: var(--font-head); font-size: 26px; letter-spacing: 0.04em;
  color: var(--wine);
}
.hero__inner { position: relative; z-index: 4; max-width: var(--maxw); margin: 0 auto; }
/* Hero-scène: designer-tak (tree_horizontal_2, gespiegeld — basis rechts uit beeld)
   met twee-laags Snoozzz: donkere teentjes ACHTER de tak, lichte teentjes ervoor —
   de tak zit geklemd tussen de vingers, zoals in sloth_hanging_at_tree.svg (origineel).
   Vaste 900×440-scène; alle maten in % van die ontwerpbox, dus de scène schaalt
   native mee met de fit-breedte. De stage staat als direct kind van .hero (volle
   breedte), zodat de tak-basis op élke schermbreedte aan de rechter viewportrand
   begint. Grip-geometrie gemeten (zie _grip_analyze.mjs + _combo_analyze.mjs),
   verifieerbaar met _verify_grip.mjs. --scene-w stuurt álle scène-maten. */
.hero { --scene-w: min(900px, 100vw); }
.hero__stage { position: relative; height: calc(var(--scene-w) * 0.489); }
.hero__fit { position: absolute; top: 0; right: calc(var(--scene-w) * -0.078); width: var(--scene-w); }
.hero__zoom { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 900 / 440; }
.hero__sway { position: absolute; inset: 0; transform-origin: 100% 63.6%; will-change: transform; animation: sway 5.4s ease-in-out infinite; }
.hero__tree { position: absolute; left: 0; top: 0; width: 100%; height: auto; z-index: 2; transform: scaleX(-1) scaleY(0.62); }
.hero__sloth-achter, .hero__sloth-voor { position: absolute; left: 1.11%; top: 23.41%; width: 50%; height: auto; }
.hero__sloth-achter { z-index: 1; }
.hero__sloth-voor { z-index: 3; }
@keyframes sway {
  0%   { transform: rotate(1.1deg); }
  50%  { transform: rotate(-1.7deg); }
  100% { transform: rotate(1.1deg); }
}
/* Binnenlaag voor de schrik-ruk (snoozzz-hero.js), zodat de lopende sway niet herstart. */
.hero__ruk { position: absolute; inset: 0; transform-origin: 100% 63.6%; }
.hero__ruk--aan { animation: schrik 0.6s ease-out; }
@keyframes schrik {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-3deg); }
  55%  { transform: rotate(1.2deg); }
  100% { transform: rotate(0deg); }
}
/* Alleen de getekende delen van Snoozzz zijn tikbaar, niet het lege vak eromheen. */
#snoozzz { pointer-events: none; }
#snoozzz > path, #snoozzz > g { pointer-events: visiblePainted; cursor: pointer; }
.hero__title { font-size: clamp(30px, 8.5vw, 84px); color: var(--wine); overflow-wrap: break-word; }
.hero__sub { max-width: 520px; margin: 20px auto 0; font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; color: var(--wine); }
.hero__scroll {
  position: relative; z-index: 4; display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-top: 28px; border-radius: var(--radius-pill);
  background: var(--cream); color: var(--wine); box-shadow: 0 2px 8px rgba(69,19,18,0.15);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Desktop: tekst links naast de scène — de scène krimpt mee via --scene-w,
   de tak-basis blijft aan de rechter viewportrand gepind. */
@media (min-width: 1024px) {
  .hero { --scene-w: min(720px, 60vw); --kolom-links: max(28px, calc((100% - var(--maxw)) / 2 - 96px)); padding-top: 40px; text-align: left; }
  .hero__brand { left: var(--kolom-links); }
  .hero__inner {
    position: absolute; top: 40px; height: calc(var(--scene-w) * 0.489);
    left: var(--kolom-links);
    width: min(40vw, 540px); margin: 0;
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero__title { font-size: clamp(38px, 4vw, 58px); }
  .hero__sub { margin: 18px 0 0; }
  .hero__scroll-row { text-align: center; }
}

/* Reduced-motion-fallback. Uitzondering: html[data-motion="aan"] (review-schakelaar
   ?motion=aan, zie index.html) — RDP-sessies forceren reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="aan"]) { scroll-behavior: auto; }
  html:not([data-motion="aan"]) .hero__sway,
  html:not([data-motion="aan"]) .hero__scroll { animation: none; }
  .btn { transition: none; }
}

/* Gedeelde content-wrapper */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.about, .how { padding: clamp(56px, 9vw, 88px) 0; }
/* Sinds 29-08-2026 heeft .how geen eigen kop meer: de stappen zijn de
   voortzetting van "Hoe werkt het?" hierboven, dus de twee blokken staan
   dichter op elkaar. */
.about { padding-bottom: clamp(28px, 4vw, 40px); }
.how { padding-top: clamp(28px, 4vw, 44px); }
.how .steps { margin-top: 0; }
.about { background: var(--cream); text-align: center; }
.about h2 { font-size: clamp(26px, 4.5vw, 36px); color: var(--wine); margin-bottom: var(--space-after-h2); }
.about p { max-width: 640px; margin: 0 auto; font-size: clamp(16px, 2.2vw, 19px); color: var(--text); }

.how { background: var(--mint); text-align: center; }
.how h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: 0.03em; font-size: clamp(30px, 6vw, 44px); color: var(--wine); margin-bottom: var(--space-after-h2); }
.steps { list-style: none; padding: 0; margin: 36px auto 0; display: grid; gap: var(--gap-cards); max-width: 860px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { position: relative; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px 20px; }
.step__icon { height: 130px; width: auto; margin: 0 auto 12px; }
.step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--wine); color: var(--cream); font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text); font-weight: 600; }
/* Mobiel: stap-kaarten horizontaal — halveert de sectiehoogte op de telefoon */
@media (max-width: 719px) {
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: center; text-align: left; }
  .step__icon { grid-row: 1 / 3; height: 96px; margin: 0; }
  .step__n { margin-bottom: 4px; }
}

/* Sectie: voor ouders (rustig register) */
.parents { background: var(--cream); padding: clamp(56px, 9vw, 96px) 0; text-align: center; }
.parents h2 { font-size: clamp(26px, 4.5vw, 36px); color: var(--wine); margin-bottom: var(--space-after-h2); }
.parents__lead { max-width: 640px; margin: 0 auto 40px; font-size: clamp(16px, 2.2vw, 19px); color: var(--text); }
.cards { display: grid; gap: var(--gap-cards); text-align: left; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { border: 1px solid rgba(123, 51, 50, 0.14); border-radius: var(--radius-card); padding: 24px; background: #fff; }
.card h3 { font-size: 18px; color: var(--wine); margin-bottom: 8px; }
.card p { color: var(--text); font-size: 16px; }
.parents__cta { margin-top: 40px; }
.parents__cta-lead { max-width: 560px; margin: 0 auto 20px; font-size: clamp(16px, 2.2vw, 18px); font-weight: 600; color: var(--text); }
.parents__contact { margin-top: 28px; font-weight: 600; color: var(--text); }
.parents__contact a { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Sectie: footer */
.footer { background: var(--wine); color: var(--cream); text-align: center; padding: clamp(56px, 9vw, 88px) 0 40px; }
.footer__title { color: var(--cream); font-size: clamp(24px, 4.5vw, 34px); margin-bottom: 12px; }
.footer__text { max-width: 520px; margin: 0 auto 28px; color: var(--on-wine-soft); }
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 17px;
  letter-spacing: 0.01em; color: var(--cream); background: transparent;
  border: 2px solid var(--cream); padding: 12px 30px; border-radius: var(--radius-pill);
  text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--cream); color: var(--wine); }
/* Variant voor op crème-vlakken (ouder-CTA): gevuld wijnrood. Ná .btn — zelfde
   specificiteit, dus volgorde bepaalt de cascade. */
.btn--wine { color: var(--cream); background: var(--wine); border-color: var(--wine); }
.btn--wine:hover, .btn--wine:focus-visible { background: transparent; color: var(--wine); }
.footer__about { max-width: 560px; margin: 32px auto 0; font-size: 15px; color: var(--on-wine-soft); }
.footer__legal { margin-top: 40px; font-size: 13px; color: var(--on-wine-dim); max-width: 620px; margin-left: auto; margin-right: auto; }

/* Pagina: privacyverklaring (rustig register, Raleway) */
.pagehead { background: var(--mint); padding: 16px 0; }
.pagehead__brand { display: inline-block; font-family: var(--font-head); font-size: 26px; letter-spacing: 0.04em; color: var(--wine); text-decoration: none; }
.legal { padding: clamp(48px, 8vw, 72px) 0; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-family: var(--font-body); font-weight: 700; font-size: clamp(28px, 5vw, 36px); color: var(--wine); }
.legal__updated { margin: 6px 0 28px; font-size: 14px; color: var(--wine); }
.legal h2 { font-size: 20px; color: var(--wine); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; color: var(--text); }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer--slim { padding: 28px 0; }
.footer--slim .footer__legal { margin-top: 0; }

/* Sectie: statement (knipoog naar de ouders) */
.statement { background: var(--wine); text-align: center; padding: clamp(40px, 7vw, 64px) 0; }
.statement__vraag { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 5.5vw, 44px); letter-spacing: 0.03em; color: var(--cream); }
.statement__punch { max-width: 560px; margin: 14px auto 0; font-size: clamp(16px, 2.2vw, 19px); font-weight: 600; color: var(--on-wine-soft); }

/* Micro-interacties (variant B/C) */
.step, .card { transition: transform .18s ease, box-shadow .18s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cta-coin { display: inline-block; width: 34px; height: 34px; margin-left: 12px; vertical-align: middle; animation: coinbob 1.6s ease-in-out infinite; }
@keyframes coinbob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-7px) rotate(8deg); } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="aan"]) .cta-coin { animation: none; }
  html:not([data-motion="aan"]) .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sectie: de weglegproef (variant C) */
.proef { background: var(--cream); text-align: center; padding: clamp(56px, 9vw, 88px) 0; }
.proef h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: 0.03em; font-size: clamp(30px, 6vw, 44px); color: var(--wine); margin-bottom: var(--space-after-h2); }
.proef__lead { max-width: 520px; margin: 0 auto 28px; font-weight: 600; color: var(--text); }
.proef__kaart { max-width: 420px; margin: 0 auto; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px 24px; }
.proef__sloth { height: 110px; width: auto; margin: 0 auto 10px; }
.proef__tijd { font-family: var(--font-head); font-size: 46px; color: var(--wine); letter-spacing: 0.05em; }
.proef__status { margin: 8px 0 18px; font-size: 15px; color: var(--text); min-height: 3em; }

/* Sectie: veelgestelde vragen (hoofdpagina) */
.faq { background: var(--mint); padding: clamp(48px, 8vw, 72px) 0; }
.faq .wrap { max-width: 760px; }
.faq h2 { text-align: center; }
.faq__groep { margin-top: 32px; }
.faq__groep h3 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); margin-bottom: 12px; }
.faq__item { border-top: 1px solid rgba(123,51,50,0.18); }
.faq__item:last-child { border-bottom: 1px solid rgba(123,51,50,0.18); }
.faq__item summary { list-style: none; cursor: pointer; padding: 14px 34px 14px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--wine); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__item summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq__item[open] { background: rgba(255,255,255,0.45); }
.faq__item p { padding: 0 0 16px; font-size: 16px; color: var(--text); }
.faq__item a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Ouderpagina */
.oudertop { background: var(--mint); padding: clamp(40px, 7vw, 64px) 0 clamp(36px, 6vw, 56px); text-align: center; }
.oudertop .wrap { max-width: 680px; }
.oudertop h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 6vw, 46px); letter-spacing: 0.03em; color: var(--wine); line-height: 1.1; }
.oudertop__sloth { height: 120px; width: auto; margin: 0 auto 14px; }
.oudertop__lead { max-width: 460px; margin: 14px auto 0; font-size: clamp(16px, 2.2vw, 19px); font-weight: 600; color: var(--wine); }
.oudertop__knop { margin-top: 26px; }
.oudertop__klein { margin-top: 12px; font-size: 14px; color: var(--wine); }
.ouderuitleg { padding: clamp(40px, 7vw, 60px) 0 clamp(32px, 5vw, 44px); }
.ouderuitleg .wrap { max-width: 680px; }
.ouderuitleg h2 { text-align: center; }
.ouderuitleg p { font-size: 16px; color: var(--text); margin-top: 14px; }
.ouderuitleg p + p { margin-top: 12px; }
.oudervragen { border-top: 1px solid rgba(123,51,50,0.18); padding: clamp(28px, 5vw, 36px) 0; text-align: center; }
.oudervragen .wrap { max-width: 620px; }
.oudervragen p { font-size: 16px; color: var(--text); }
.oudervragen a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.parents__cta-na { margin-top: 16px; font-size: 15px; color: var(--text); }
.parents__cta-na a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Sectie: wegwijzers op de hoofdpagina */
.deuren { background: var(--mint); padding: clamp(48px, 8vw, 72px) 0; }
.deuren h2 { text-align: center; }
.deuren__rij { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); margin-top: 28px; }
.deur { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px 24px; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.deur:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.deur h3 { font-size: 19px; color: var(--wine); }
.deur p { margin: 10px 0 0; font-size: 15px; color: var(--text); flex: 1; }
.deur__link { margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--wine); }
a.deur .deur__link::after { content: " \2192"; }
.deur--primary { border: 2.5px solid var(--wine); box-shadow: 0 8px 24px rgba(123,51,50,0.14); }
.deur--later { background: rgba(255,255,255,0.5); }
.deur--later .deur__link { color: var(--wine); opacity: 0.65; font-weight: 600; }
@media (max-width: 760px) { .deuren__rij { grid-template-columns: 1fr; } }

/* Gezin-duo: Ouders + Jongeren als actieknoppen in één deur */
.deuren__rij--gezin {
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
}
@media (max-width: 719px) {
  .deuren__rij--gezin { grid-template-columns: 1fr; }
}
.deur--gezin {
  cursor: default;
}
.deur--gezin:hover { transform: none; box-shadow: var(--shadow-card); }
.deur__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.deur__actions .btn {
  flex: 1 1 140px;
  text-align: center;
  border-width: 2px;
}
.btn--wine-ghost {
  color: var(--wine) !important;
  background: transparent !important;
  border: 2px solid var(--wine) !important;
}
.btn--wine-ghost:hover,
.btn--wine-ghost:focus-visible {
  background: var(--wine) !important;
  color: var(--cream) !important;
}
.deur__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
}

/* Taalkeuze NL | EN (rechtsboven, spiegelbeeld van het merk linksboven).
   Staat buiten de secties, zodat de blokvergelijking in _check_split.mjs gelijk blijft. */
.taal {
  position: absolute; z-index: 5; top: 18px;
  right: max(20px, calc((100% - var(--maxw)) / 2));
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 39px;
  color: var(--wine);
}
.taal a { color: var(--wine); font-weight: 600; opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; padding: 0 2px; }
.taal a:hover, .taal a:focus-visible { opacity: 1; text-decoration-thickness: 2px; }
.taal__nu { padding: 0 2px; }
.taal__streep { opacity: 0.5; font-weight: 400; }
@media (min-width: 1024px) {
  .taal:not(.taal--pagehead) { right: max(28px, calc((100% - var(--maxw)) / 2 - 96px)); }
}
/* Privacy: in de balk, gelijk met het merk in .wrap */
.taal--pagehead { top: 16px; right: max(20px, calc((100% - var(--maxw)) / 2 + 20px)); }
