/* Zeeland Veilig-check */

@font-face {
  font-family: 'TodaySB';
  src: url('../fonts/TodaySB-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TodaySB';
  src: url('../fonts/TodaySB-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TodaySB';
  src: url('../fonts/TodaySB-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-donker: #10818a;
  --teal-patroon: #188e96;
  --teal: #24939a;
  --teal-rand: #1c8990;
  --teal-licht: #e7f3f3;
  --teal-zacht: #eaf6f6;
  --paars: #702a80;
  --paars-donker: #42204d;
  --paars-zacht: #f4ebf6;
  --tekst: #1d1d1f;
  --grijs: #5a6463;
  --rand: #a9b7b6;
  --wit: #ffffff;
  --radius: 14px;
  --radius-knop: 10px;
  --pagina-max: 480px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'TodaySB', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--tekst);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}

body.thema-teal {
  background-color: var(--teal-donker);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='70' viewBox='0 0 144 70'%3E%3Cpath d='M-36 53 L36 17 L108 53 L180 17' fill='none' stroke='%23188e96' stroke-width='7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 144px 70px;
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #fac402;
  outline-offset: 2px;
}
h1:focus, h2:focus, [tabindex="-1"]:focus { outline: none; }

#app {
  max-width: var(--pagina-max);
  margin: 0 auto;
}

.scherm {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
}

/* ---------- Knoppen ---------- */

.knop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-knop);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.knop:active { transform: scale(.98); }

.knop-paars { background: var(--paars); color: var(--wit); }
.knop-paars:hover { background: #5e2069; }
.knop-paars:disabled { opacity: .7; cursor: default; }
.knop-paars.is-bezig { opacity: .7; }

.knop-rand {
  background: var(--wit);
  color: var(--paars);
  border: 1.5px solid var(--paars);
  font-size: 18px;
  padding-left: 12px;
  padding-right: 12px;
}
.knop-rand:hover { background: var(--paars-zacht); }

/* ---------- Logo ---------- */

.logo {
  width: 134px;
  margin: auto auto 0;
  padding-top: 40px;
  box-sizing: content-box;
}

/* ---------- Startscherm ---------- */

.scherm-start { color: var(--wit); padding-top: 36px; padding-left: 26px; padding-right: 26px; }

.start-titel {
  margin: 0;
  font-size: clamp(32px, 10.9vw, 41px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -.01em;
}
.start-titel strong { display: block; font-weight: 700; }

.start-sub {
  margin: 12px 0 30px;
  font-size: 22px;
  font-weight: 400;
}

.prijs-kaart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wit);
  color: var(--paars-donker);
  border-radius: 12px;
  padding: 18px 12px 18px 16px;
  margin-bottom: 12px;
}
.prijs-tekst { flex: 1 1 auto; min-width: 0; }
.prijs-label { margin: 0 0 6px; color: var(--paars); font-size: 13px; }
.prijs-titel { margin: 0; font-size: clamp(21px, 6.9vw, 26px); font-weight: 700; line-height: 1.12; }
.prijs-beeld { flex: 0 0 auto; width: 100px; }

.start-meta {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
}

/* ---------- Vraagscherm ---------- */

.scherm-vraag { padding-left: 10px; padding-right: 10px; padding-top: 14px; }

.vraag-kaart {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 22px 10px 16px 20px;
  padding-right: 10px;
}

.vraag-teller {
  margin: 0 0 10px;
  color: var(--paars);
  font-size: 14px;
  font-weight: 700;
}

.voortgang {
  height: 5px;
  margin-right: 0;
  border-radius: 5px;
  background: var(--teal-zacht);
  overflow: hidden;
}
.voortgang-balk {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: #128c97;
  transition: width .35s ease;
}

.vraag-tekst {
  margin: 24px 6px 20px 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.33;
  color: #000;
}

.opties { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.optie {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px 8px 9px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius-knop);
  text-align: left;
  font-size: 16.5px;
  line-height: 1.25;
  color: var(--tekst);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.optie:hover:not(:disabled) { border-color: var(--teal); background: #f6fbfb; }
.optie:disabled { cursor: default; }

.optie-letter {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-zacht);
  color: var(--tekst);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.optie-tekst { flex: 1 1 auto; }

.optie.is-goed,
.optie.is-gekozen {
  background: var(--teal);
  border-color: var(--teal-rand);
  color: var(--wit);
}
.optie.is-goed .optie-letter,
.optie.is-gekozen .optie-letter { background: var(--wit); color: var(--tekst); }

.optie.is-fout {
  background: var(--paars-zacht);
  border-color: var(--paars);
  color: var(--paars-donker);
}
.optie.is-fout .optie-letter { background: var(--paars); color: var(--wit); }

.vraag-hint {
  margin: 12px 0 0;
  color: var(--grijs);
  font-size: 13.5px;
}

.uitleg {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wit);
  scroll-margin-top: 12px;
}
.uitleg-kop {
  margin: 0;
  padding: 14px 20px;
  background: var(--paars);
  color: var(--wit);
  font-size: 19px;
}
.uitleg-kop strong { font-weight: 700; }
.uitleg-tekst {
  margin: 0;
  padding: 16px 14px 18px 14px;
  font-size: 15px;
  line-height: 1.38;
}

.knop-volgende { margin-top: 12px; }

/* ---------- Eindscherm ---------- */

.scherm-eind { padding-left: 12px; padding-right: 12px; padding-top: 14px; }

.eind-label {
  margin: 0 0 12px;
  text-align: center;
  color: var(--paars);
  font-size: 14px;
  font-weight: 700;
}

.uitslag {
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wit);
}
.uitslag-kop {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 95px;
  padding: 12px 22px 12px 128px;
  background: var(--teal);
}
.score-bol {
  position: absolute;
  left: 15px;
  top: 6px;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--wit);
  border: 5px solid var(--teal-rand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paars);
  text-align: center;
}
.score-getal { font-size: 38px; font-weight: 700; line-height: 1; }
.score-label { font-size: 12.5px; line-height: 1.1; margin-top: 3px; }

.uitslag-titel {
  margin: 0;
  color: var(--wit);
  font-size: clamp(22px, 7.7vw, 29px);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

.uitslag-tekst {
  margin: 0;
  padding: 26px 15px 18px;
  font-size: 15.5px;
  line-height: 1.4;
}

.verloting {
  margin-top: 12px;
  padding: 18px 14px 18px;
  background: var(--teal-licht);
  border-radius: var(--radius);
}
.verloting-kop { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.verloting-titel {
  flex: 1 1 auto;
  margin: 0;
  color: var(--paars-donker);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.verloting-beeld { flex: 0 0 auto; width: 62px; }
.verloting-tekst { margin: 0 0 16px; font-size: 14.5px; line-height: 1.4; }

.veld-label { display: block; margin-bottom: 8px; font-size: 15px; }
.veld {
  display: block;
  width: 100%;
  height: 44px;
  padding: 8px 10px;
  border: 1px solid #94a3a2;
  border-radius: 6px;
  background: var(--wit);
  font: inherit;
  font-size: 16px; /* voorkomt inzoomen op iOS */
  color: var(--tekst);
}
.veld::placeholder { color: #6f7877; }
.veld:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }

.honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vinkje {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 14px;
  font-size: 14.5px;
  cursor: pointer;
}
.vinkje input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.vinkje-vak {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--paars);
  border-radius: 4px;
  background: var(--wit);
  display: grid;
  place-items: center;
}
.vinkje input:checked + .vinkje-vak { background: var(--paars); }
.vinkje input:checked + .vinkje-vak::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid var(--wit);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.vinkje input:focus-visible + .vinkje-vak { outline: 3px solid #fac402; outline-offset: 2px; }
.vinkje a { color: var(--paars); }

.melding {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 3px solid #b3261e;
  background: #fff;
  color: #8c1d18;
  font-size: 14px;
}

.bedankt { padding: 4px 0 2px; }
.bedankt-titel { margin: 0 0 6px; color: var(--paars); font-size: 20px; font-weight: 700; }
.bedankt-tekst { margin: 0; font-size: 15px; }

.scherm-eind .knop-rand { margin-top: 12px; }
.link-opnieuw {
  align-self: center;
  margin-top: 14px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--paars);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.scherm-eind .logo { width: 134px; }

/* ---------- Grotere schermen ---------- */

@media (min-width: 520px) {
  .scherm { padding-top: 40px; }
  .scherm-start { padding-top: 56px; }
}

/* ---------- Animaties ---------- */

:root { --soepel: cubic-bezier(.2, .7, .2, 1); --veer: cubic-bezier(.34, 1.56, .64, 1); }

@keyframes omhoog {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes vanRechts {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes naarLinks {
  to { opacity: 0; transform: translateX(-28px); }
}
@keyframes plop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes schud {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes zweef {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}
@keyframes wiebel {
  0%, 80%, 100% { transform: rotate(0); }
  84% { transform: rotate(-6deg); }
  88% { transform: rotate(5deg); }
  92% { transform: rotate(-3deg); }
  96% { transform: rotate(2deg); }
}
@keyframes pijl {
  0%, 60%, 100% { transform: translateX(0); }
  75% { transform: translateX(5px); }
}
@keyframes bolIn {
  0% { opacity: 0; transform: scale(.4) rotate(-20deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes tekenIn {
  from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes confetti {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)); }
}

/* Startscherm: onderdelen komen na elkaar binnen */
.scherm-start > * { animation: omhoog .6s var(--soepel) both; }
.scherm-start > :nth-child(2) { animation-delay: .08s; }
.scherm-start > :nth-child(3) { animation-delay: .18s; }
.scherm-start > :nth-child(4) { animation-delay: .28s; }
.scherm-start > :nth-child(5) { animation-delay: .34s; }
.scherm-start > :nth-child(6) { animation-delay: .45s; }
.prijs-beeld { animation: zweef 4s ease-in-out .9s infinite; transform-origin: 50% 80%; }
.knop-paars [aria-hidden] { display: inline-block; }
#knop-start [aria-hidden] { animation: pijl 2.4s ease-in-out 1.2s infinite; }

/* Vraagscherm */
.vraag-kaart.is-in { animation: vanRechts .45s var(--soepel) both; }
.vraag-kaart.is-uit { animation: naarLinks .18s ease-in both; }
.vraag-kaart.is-uit ~ * { opacity: 0; transition: opacity .15s; }
.opties li { animation: omhoog .4s var(--soepel) both; }
.voortgang-balk { transition: width .6s var(--veer); }

.optie { position: relative; transition: background-color .2s, border-color .2s, color .2s, transform .1s; }
.optie:active:not(:disabled) { transform: scale(.98); }
.optie.is-goed { animation: plop .4s var(--soepel); }
.optie.is-gekozen { animation: plop .4s var(--soepel); }
.optie.is-fout { animation: schud .45s ease-in-out; }
.optie.is-andere { opacity: .55; transition: opacity .3s; }

.optie-teken {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  animation: tekenIn .35s var(--veer) .1s both;
}

.uitleg { animation: omhoog .45s var(--soepel) .1s both; }
.knop-volgende:not([hidden]) { animation: omhoog .45s var(--soepel) .25s both; }
.knop-volgende [aria-hidden] { animation: pijl 2.4s ease-in-out 1.5s infinite; }

/* Eindscherm */
.scherm-eind > * { animation: omhoog .6s var(--soepel) both; }
.scherm-eind > :nth-child(2) { animation-delay: .05s; }
.scherm-eind > :nth-child(3) { animation-delay: .45s; }
.scherm-eind > :nth-child(4) { animation-delay: .6s; }
.scherm-eind > :nth-child(5) { animation-delay: .7s; }
.scherm-eind > :nth-child(6) { animation-delay: .8s; }
.score-bol { animation: bolIn .7s var(--veer) .25s both; }
.uitslag-titel { animation: omhoog .5s var(--soepel) .45s both; }
.verloting-beeld { animation: wiebel 5s ease-in-out 2s infinite; transform-origin: 50% 90%; }
.bedankt:not([hidden]) { animation: omhoog .5s var(--soepel) both; }

.confetti {
  position: fixed;
  z-index: 10;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti 1.6s cubic-bezier(.15, .6, .4, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Venster (actievoorwaarden) ---------- */

.venster {
  width: 100%;
  max-width: var(--pagina-max);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: var(--wit);
  color: var(--tekst);
}
.venster[open] { display: flex; flex-direction: column; animation: omhoog .3s var(--soepel); }
.venster::backdrop { background: rgba(16, 40, 45, .55); }
body:has(.venster[open]) { overflow: hidden; }

.venster-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3eaea;
}
.venster-kop h2 { margin: 0; color: var(--paars-donker); font-size: 21px; line-height: 1.2; }
.venster-sluit {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-zacht);
  font-size: 17px;
  cursor: pointer;
}
.venster-inhoud {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 6px 18px 18px;
}
.venster-voet {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e3eaea;
}

@media (min-width: 520px) {
  .venster { height: min(100dvh - 48px, 760px); margin: auto; border-radius: var(--radius); }
}

/* ---------- Tekstpagina (actievoorwaarden) ---------- */

.tekstpagina-inhoud h2 { color: var(--paars); font-size: 19px; margin: 22px 0 8px; }
.tekstpagina-inhoud p, .tekstpagina-inhoud li { font-size: 16px; line-height: 1.5; }

.tekstpagina { max-width: 640px; margin: 0 auto; padding: 24px 18px 48px; }
.tekstpagina h1 { color: var(--paars-donker); font-size: 28px; line-height: 1.15; margin: 8px 0 16px; }
.tekstpagina h2 { color: var(--paars); font-size: 19px; margin: 24px 0 8px; }
.tekstpagina p, .tekstpagina li { font-size: 16px; line-height: 1.5; }
.tekstpagina .terug { display: inline-block; margin-bottom: 8px; color: var(--paars); font-weight: 700; text-decoration: none; }
.tekstpagina .logo { margin: 40px 0 0; padding: 0; }
