/* Campagnesite Weertje.
 *
 * Alle kleuren, maten en letters komen uit de tokens van de app
 * (packages/ui/tokens, gekopieerd in css/tokens-*.css). Zet hier geen losse
 * kleur neer: voeg dan liever een token toe in de app en kopieer hem.
 * Uitzondering: dekkingen van een tokenkleur (rgba), net als metDekking() in de app.
 *
 * Mobiel eerst. De schermregels van Weertje gelden (HERKOMST.md): de gradient
 * is de achtergrond, de inhoud staat op één crème vel, kaarten radius 16,
 * spacing van de 4px-schaal, één primaire actie per scherm.
 */

/* ---------- Lettertypes, zelf gehost (OFL), geen Google ---------- */
@font-face { font-family: "Averia Serif Libre"; src: url("/assets/fonts/AveriaSerifLibre-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Averia Serif Libre"; src: url("/assets/fonts/AveriaSerifLibre-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Averia Libre"; src: url("/assets/fonts/AveriaLibre-LightItalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --font-display: "Averia Serif Libre", ui-serif, Georgia, serif;
  --font-display-alt: "Averia Libre", ui-serif, Georgia, serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --vel-radius: var(--radius-xl);
  --kolom: 480px;
  --uit: cubic-bezier(0.33, 1, 0.68, 1);      /* Easing.out(cubic) */
  --in: cubic-bezier(0.32, 0, 0.67, 0);       /* Easing.in(cubic) */
  --veer: cubic-bezier(0.34, 1.56, 0.64, 1);  /* een zachte spring */
  --veel-veer: cubic-bezier(0.18, 1.9, 0.5, 1);
  --sticker-rand: drop-shadow(0 0 0 var(--neutral-0)) drop-shadow(2px 0 0 var(--neutral-0)) drop-shadow(-2px 0 0 var(--neutral-0)) drop-shadow(0 2px 0 var(--neutral-0)) drop-shadow(0 -2px 0 var(--neutral-0)) drop-shadow(0 6px 10px rgba(30, 72, 89, 0.18));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface-background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--brand-default); }
p, h1, h2, h3, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-default); outline-offset: 3px; border-radius: 6px; }

.naar-inhoud { position: absolute; left: var(--space-4); top: -60px; z-index: 50; background: var(--surface-card); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); }
.naar-inhoud:focus { top: var(--space-4); }

/* ---------- Typografie (rollen uit tokens-typografie.css) ---------- */
.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 11vw, 72px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
.h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h1-size); line-height: var(--text-h1-line); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2-size); line-height: var(--text-h2-line); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h3-size); line-height: var(--text-h3-line); text-wrap: balance; }
.subtitel { font-family: var(--font-display-alt); font-weight: 300; font-style: italic; font-size: var(--text-subtitle-size); line-height: var(--text-subtitle-line); color: var(--text-secondary); }
.subtitel-klein { font-family: var(--font-display-alt); font-weight: 300; font-style: italic; font-size: var(--text-body-size); line-height: var(--text-body-line); color: var(--text-secondary); }
.overline, .label { font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); font-weight: 600; color: var(--brand-default); }
.tekst-secundair { color: var(--text-secondary); }
.tekst-klein { font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); }
.kleine-letters { font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); color: var(--text-secondary); }
.merk { color: var(--brand-default); }

/* ---------- De lucht: hero-tekening + was ---------- */
.lucht {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--surface-background) url("/assets/beeld/hero-default.webp") center top / cover no-repeat;
}
.lucht-was { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--uit); }
.lucht-was[data-was="zonnig"] { background: linear-gradient(rgba(254,231,170,0.8), rgba(255,241,206,0.55)); }
.lucht-was[data-was="wolken"] { background: linear-gradient(rgba(196,205,214,0.7), rgba(193,217,226,0.55)); }
.lucht-was[data-was="mist"]   { background: linear-gradient(rgba(221,228,235,0.85), rgba(237,241,245,0.8)); }
.lucht-was[data-was="wind"]   { background: linear-gradient(rgba(163,198,212,0.7), rgba(240,247,194,0.55)); }
.lucht-was[data-was="regen"]  { background: linear-gradient(rgba(94,156,180,0.65), rgba(165,146,172,0.5)); }
/* Tijdens het schuiven volgt de was de duim direct, zonder vertraging. */
body.schuift .lucht-was { transition: none; }

/* ---------- Schermen ---------- */
.scherm { min-height: 100dvh; display: flex; flex-direction: column; }
.scherm.binnenkomst > * { animation: verschijn 260ms var(--uit) both; }
.scherm.binnenkomst > *:nth-child(2) { animation-delay: 60ms; }
.scherm.binnenkomst > *:nth-child(3) { animation-delay: 120ms; }
.scherm.binnenkomst > *:nth-child(4) { animation-delay: 180ms; }

@keyframes verschijn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Kopbalk en woordmerk ---------- */
.kopbalk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: calc(env(safe-area-inset-top) + var(--space-4)) var(--space-5) var(--space-2);
}
.kopbalk-smal { justify-content: center; }
.alleen-breed { display: none; }
@media (min-width: 560px) { .alleen-breed { display: inline; } }
.woordmerk { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--text-primary); text-decoration: none; }

/* ---------- Start: hero ---------- */
/* Op de start en onder je weer staat de lucht in de hero zelf, over de volle breedte. */
body[data-scherm="start"] .lucht, body[data-scherm="jouw-weer"] .lucht { display: none; }
/* Start: de tekst staat altijd op crème, voor het contrast. De lucht loopt
   alleen achter de vlieger en vloeit zacht uit naar de tekst. --was is de
   kleur van het weer als je op de vlieger tikt. */
.start-hero { position: relative; background: var(--surface-background); --mx: 0; --my: 0; }
.start-hero > * { position: relative; z-index: 1; }
.hero-lucht::before, .start-hero::before {
  content: ""; position: absolute; z-index: 0;
  background-image: var(--was, linear-gradient(transparent, transparent)), url("/assets/beeld/hero-default.webp");
  background-position: center 22%;
  background-size: cover;
  pointer-events: none;
}
/* Mobiel: de lucht onder de tekst, over de volle breedte. */
.hero-lucht::before {
  inset: 0 calc(var(--space-5) * -1) calc(var(--space-12) * -1);
  mask-image: linear-gradient(transparent, black 28%);
  -webkit-mask-image: linear-gradient(transparent, black 28%);
}
/* Je weer: de lucht kleurt mee met je weer. */
.uitkomst-hero {
  background-color: var(--surface-background);
  background-image: url("/assets/beeld/hero-default.webp");
  background-position: center 22%;
  background-size: cover;
}
.hero-raster {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5) var(--space-12);
}
.start-tekst { display: grid; gap: var(--space-5); align-content: center; max-width: 600px; }
.start-intro { font-size: 18px; line-height: 28px; color: var(--neutral-800); max-width: 40ch; }
.start-acties { display: grid; gap: var(--space-3); justify-items: start; margin-top: var(--space-2); }
.verschijn { animation: verschijn 600ms var(--uit) both; }
.start-tekst .verschijn:nth-child(2) { animation-delay: 120ms; }
.start-tekst .verschijn:nth-child(3) { animation-delay: 240ms; }

/* De vlieger in het midden van de lucht, met zijn weer eromheen. */
.hero-lucht {
  position: relative;
  min-height: min(100vw, 480px);
  animation: verschijn 700ms var(--uit) 200ms both;
}
.start-vlieger {
  position: absolute; left: 50%; top: 50%;
  width: min(66%, 400px);
  translate: calc(-50% + var(--mx) * 10px) calc(-50% + var(--my) * 10px);
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: translate 400ms var(--uit);
}
.start-vlieger:focus-visible { outline-offset: 8px; border-radius: 24px; }
.cluster-hint {
  position: absolute; left: 50%; bottom: 2%; translate: -50% 0; z-index: 3;
  font-family: var(--font-display-alt); font-style: italic; font-weight: 300; font-size: 16px;
  color: var(--text-primary); white-space: nowrap;
  animation: verschijn 600ms var(--uit) 1.4s both;
}
.hero-lucht .sticker {
  position: absolute; z-index: 3;
  width: clamp(40px, 11%, 72px); height: auto;
  translate: calc(var(--mx) * var(--d, 20px)) calc(var(--my) * var(--d, 20px));
  transition: translate 500ms var(--uit);
  animation: sticker-in 700ms var(--veel-veer) both, drijf 7s ease-in-out infinite;
}
.hero-lucht .sticker-1 { left: 12%; top: 16%; --r: -8deg; --d: 26px; animation-delay: 400ms, 0s; }
.hero-lucht .sticker-2 { right: 12%; top: 20%; --r: 7deg;  --d: 16px; animation-delay: 520ms, -2s; }
.hero-lucht .sticker-3 { left: 8%;  top: 62%; --r: 6deg;  --d: 30px; animation-delay: 640ms, -4s; }
.hero-lucht .sticker-4 { right: 8%; top: 60%; --r: -5deg; --d: 22px; animation-delay: 760ms, -1s; }
.hero-lucht .sticker-5 { left: 46%; top: 8%;  --r: 4deg;  --d: 12px; animation-delay: 880ms, -3s; width: clamp(34px, 9%, 60px); }

/* De demo in Zo werkt het: dezelfde lucht, met de telefoon die de check-in voordoet. */
.demo-paneel {
  display: grid; place-items: center;
  width: 100%;
  padding: var(--space-10) var(--space-4);
  border-radius: 32px;
  background: url("/assets/beeld/hero-default.webp") center / cover;
}
.demo-telefoon { position: relative; zoom: var(--tz, 0.8); }

/* De vlieger zweeft zachtjes, als aan een touwtje. */
.zweef > svg { animation: zweef 5.5s ease-in-out infinite; transform-origin: 60% 90%; }
@keyframes zweef {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2.5deg); }
}
.sticker { filter: var(--sticker-rand); }
@keyframes sticker-in { from { opacity: 0; transform: scale(0.3) rotate(calc(var(--r) * -3)); } to { opacity: 1; transform: scale(1) rotate(var(--r)); } }
@keyframes drijf {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* ---------- Het vel ---------- */
.vel {
  background: var(--surface-background);
  border-radius: var(--vel-radius) var(--vel-radius) 0 0;
  padding: var(--space-6) var(--space-5) calc(env(safe-area-inset-bottom) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}

.sectie { display: grid; gap: var(--space-4); }
.sectie > .knop { justify-self: start; }

/* ---------- Kaarten: één vorm, vijf tinten ---------- */
.kaart { border-radius: var(--radius-md); padding: 18px var(--space-5); display: grid; gap: 6px; align-content: start; }
.kaart-wit { background: var(--surface-card); box-shadow: var(--shadow-card-border); }
.kaart-zon { background: var(--yellow-100); }
.kaart-primair { background: var(--primary-50); }
.kaart-paars { background: var(--purple-50); }
.kaart > .knop { justify-self: start; margin-top: var(--space-2); }

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 14px var(--space-6);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--text-label-button-size);
  line-height: var(--text-label-button-line);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: none;
  transition: transform 180ms var(--veer), opacity 120ms, background-color 160ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.knop:active { transform: scale(0.97); opacity: 0.85; }
.knop-primair { background: var(--cta-default); color: var(--cta-text); }
.knop-primair:hover { background: var(--lime-400); }
.knop-secundair { box-shadow: inset 0 0 0 1.5px var(--brand-default); color: var(--brand-default); }
.knop-secundair:hover { background: rgba(38, 93, 114, 0.06); }
.knop-link { min-height: 36px; padding: var(--space-2) 0; color: var(--brand-default); }
.knop-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.knop-vol { width: 100%; }
.knop-klein { min-height: 38px; padding: 8px var(--space-4); font-size: var(--text-label-caption-size); background: rgba(254, 254, 244, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.knop-groot { min-height: 56px; padding: 16px var(--space-10); font-size: 16px; }
.knop[disabled], .knop[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.knoppen { display: grid; gap: var(--space-2); justify-items: center; }

/* De primaire knop op de start ademt heel licht: dit is wat je moet doen. */
.start-acties .knop-primair { animation: adem 3.2s ease-in-out 1.6s infinite; }
@keyframes adem { 0%, 100% { box-shadow: 0 0 0 0 rgba(208, 230, 59, 0.0); } 50% { box-shadow: 0 0 0 10px rgba(208, 230, 59, 0.35); } }

.ronde-knop {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--surface-background);
  box-shadow: var(--shadow-card-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 180ms var(--veer);
}
.ronde-knop:active { transform: scale(0.94); }
.chip-knop {
  border: 0;
  padding: 6px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-background);
  box-shadow: var(--shadow-card-border);
  font-size: var(--text-label-caption-size);
  line-height: var(--text-label-caption-line);
  font-weight: 600;
  color: var(--brand-default);
  cursor: pointer;
}
.chip-knop:active { opacity: 0.6; }

/* ---------- Banden: elke sectie een eigen vlak over de volle breedte ---------- */
.band { position: relative; padding: clamp(72px, 12vw, 140px) var(--space-5); overflow: hidden; }
.band-binnen { position: relative; max-width: 1120px; margin: 0 auto; }
.band-creme { background: var(--surface-background); }
.band-donker { background: var(--primary-800); color: var(--neutral-0); }
.band-zon { background: var(--yellow-200); }
.sectiekop {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.overline-licht { color: var(--primary-100); }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Zo werkt het ---------- */
.werkt-raster { display: grid; gap: var(--space-8); }
.werkt-links { display: contents; }
.werkt-links > .knop { order: 2; justify-self: start; }
.uitleg-band .sectiekop { font-size: clamp(44px, 8vw, 88px); }
.werkt-tekst { order: 1; font-size: 18px; line-height: 28px; color: var(--neutral-800); max-width: 44ch; }
.werkt-raster > .demo-paneel { order: 1; }

/* De telefoon, met de schermen erin op ware grootte (300 x 620), geschaald met --tz. */
.telefoon {
  position: relative;
  width: 300px; height: 620px;
  border-radius: 48px;
  background: var(--surface-background);
  box-shadow: 0 0 0 10px var(--primary-900), 0 0 0 11px rgba(255, 255, 255, 0.2), 0 40px 80px rgba(23, 55, 68, 0.35);
  overflow: hidden;
  isolation: isolate;
}
.telefoon-eiland { position: absolute; z-index: 9; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: var(--radius-pill); background: var(--primary-900); }
.mini { position: absolute; inset: 0; background: var(--surface-background); opacity: 0; visibility: hidden; transition: opacity 360ms var(--uit), transform 480ms var(--veer), visibility 0s 360ms; transform: translateY(24px) scale(0.98); }
.mini.zichtbaar { opacity: 1; visibility: visible; transform: none; transition: opacity 360ms var(--uit), transform 480ms var(--veer), visibility 0s; }
.mini-checkin { transform: none; }

.mini-lucht { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: url("/assets/beeld/hero-default.webp") center top / cover; }
.mini-lucht .lucht-was { transition: opacity 120ms linear; }
.mini-lucht::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(254,254,244,0) 55%, var(--surface-background)); }
.mini-stippen { position: absolute; z-index: 2; top: 50px; left: 50%; translate: -50% 0; display: flex; gap: 5px; }
.mini-stippen span { width: 7px; height: 7px; border-radius: var(--radius-pill); background: rgba(254, 254, 244, 0.8); transition: width 260ms var(--uit), background-color 260ms; }
.mini-stippen span.gedaan { background: var(--brand-default); }
.mini-stippen span.nu { width: 18px; background: var(--brand-default); }
.mini-vlieger { position: absolute; z-index: 2; left: 50%; top: 72px; width: 140px; translate: -50% 0; }
.mini-vlieger svg { transition: opacity 120ms linear; }
.mini-vel {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 63%;
  padding: 22px 20px 24px;
  border-radius: 26px 26px 0 0;
  background: var(--surface-background);
  display: flex; flex-direction: column; gap: 6px;
}
.mini-vraagblok { display: grid; gap: 4px; min-height: 84px; }
.mini-vraagblok.wissel { animation: vraag-in 300ms var(--uit); }
.mini-vraag { font-family: var(--font-display); font-size: 21px; line-height: 26px; }
.mini-hint { font-size: 12px; line-height: 17px; color: var(--text-secondary); }
.mini-woord { font-family: var(--font-display); font-size: 30px; line-height: 36px; color: var(--brand-default); margin-top: 6px; }
.mini-woord.wissel { animation: woord 180ms var(--uit); }
.mini-schuif .schuif-spoor { height: 36px; }
.mini-schuif .schuif-spoor::before { top: 14px; height: 6px; }
.mini-schuif .schuif-vul { top: 14px; height: 6px; width: calc(12px + (100% - 24px) * var(--p, 0.5)); }
.mini-schuif .schuif-duim { top: 5px; width: 24px; height: 24px; left: calc((100% - 24px) * var(--p, 0.5)); transition: none; }
.mini-schuif .schuif-labels { font-size: 10px; line-height: 14px; }
.mini-knop {
  margin-top: auto;
  display: grid; place-items: center;
  min-height: 42px; border-radius: var(--radius-pill);
  background: var(--cta-default); font-size: 13px; font-weight: 600;
  transition: transform 160ms var(--veer), opacity 160ms;
}
.mini-knop.druk { transform: scale(0.95); opacity: 0.8; }
.vinger { position: absolute; top: 2px; left: calc((100% - 24px) * var(--p, 0.5) - 6px); width: 36px; height: 36px; border-radius: var(--radius-pill); background: rgba(22, 22, 21, 0.18); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); opacity: 0; scale: 0.6; transition: opacity 200ms, scale 260ms var(--veer); pointer-events: none; }
.vinger.aan { opacity: 1; scale: 1; }
.mini-vel-uitkomst { height: 60%; gap: 5px; padding-top: 20px; }
.mini-label { font-size: 10px; line-height: 14px; font-weight: 600; color: var(--brand-default); }
.mini-duiding { font-size: 11px; line-height: 16px; color: var(--text-secondary); margin-bottom: 6px; }

.mini-uitkomst.zichtbaar .mini-vlieger svg { animation: landing 900ms var(--veel-veer) both; }
.mini-naam { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 26px; line-height: 30px; }
.mini-naam img { width: 30px; height: auto; filter: var(--sticker-rand); }
.mini-uitkomst.zichtbaar .mini-naam img { animation: sticker-in 700ms var(--veel-veer) 300ms both; --r: -8deg; }
.mini-kop { font-family: var(--font-display-alt); font-style: italic; font-weight: 300; font-size: 15px; line-height: 20px; color: var(--text-secondary); }
.mini-uitkomst .mini-vlieger { top: 64px; width: 130px; }
.mini-tip { font-family: var(--font-display); font-size: 15px; line-height: 20px; }

.mini-story { background: var(--primary-900); }
.mini-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mini-story-balk { position: absolute; z-index: 3; top: 44px; left: 14px; right: 14px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.4); overflow: hidden; }
.mini-story-balk span { display: block; height: 100%; width: 0; background: var(--neutral-0); }
.mini-story.zichtbaar .mini-story-balk span { animation: balk 5s linear forwards; }
@keyframes balk { to { width: 100%; } }
/* ---------- Het verhaal ---------- */
.verhaal .band-binnen { display: grid; gap: var(--space-6); }
.verhaal-tekst { display: grid; gap: var(--space-3); font-size: 19px; line-height: 29px; max-width: 52ch; color: var(--primary-50); }
.verhaal .sectiekop { font-size: clamp(44px, 7vw, 88px); max-width: 16ch; }
.knop-licht { justify-self: start; margin-top: var(--space-2); box-shadow: inset 0 0 0 1.5px var(--neutral-0); color: var(--neutral-0); }
.knop-licht:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Afsluiter: aanmelden ---------- */
.afsluiter-raster { display: grid; gap: var(--space-10); align-items: center; }
.afsluiter-tekst { display: grid; gap: var(--space-4); }
.afsluiter-tekst:focus { outline: none; }
.afsluiter-uitleg { font-size: 18px; line-height: 28px; color: var(--neutral-700); max-width: 44ch; }
.pilformulier { display: grid; gap: var(--space-2); max-width: 540px; margin-top: var(--space-2); }
.pil {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  box-shadow: 0 14px 34px rgba(140, 124, 82, 0.22), 0 0 0 1px rgba(140, 124, 82, 0.12);
}
.afsluiter-raster > * { min-width: 0; }
/* Smal: het veld en de knop onder elkaar, zodat allebei leesbaar blijven. */
@media (max-width: 479px) {
  .pil { flex-direction: column; align-items: stretch; border-radius: 28px; }
  .pil .knop { width: 100%; }
}
.pil:focus-within { box-shadow: 0 14px 34px rgba(140, 124, 82, 0.22), 0 0 0 2px var(--brand-default); }
.pil input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border: 0; background: none; font: inherit; color: var(--text-primary); }
.pil input:focus { outline: none; }
.knop-donker { background: var(--primary-900); color: var(--neutral-0); white-space: nowrap; }
.knop-donker:hover { background: var(--primary-800); }
.afsluiter .vinkje { color: var(--neutral-700); }
.afsluiter .kleine-letters { color: var(--neutral-700); }

.stapel { position: relative; width: min(64vw, 440px); aspect-ratio: 1; justify-self: center; }
.stapel-item, .stapel-vlieger { position: absolute; opacity: 0; }
.stapel-item { width: 20%; height: auto; filter: var(--sticker-rand); transition: rotate 300ms var(--veer), scale 300ms var(--veer); }
.stapel-item:hover { rotate: 0deg !important; scale: 1.08; }
.stapel .s1 { left: 6%;  top: 12%; rotate: -10deg; }
.stapel .s2 { left: 74%; top: 10%; rotate: 8deg; }
.stapel .s3 { left: 2%;  top: 64%; rotate: 7deg; }
.stapel .s4 { left: 78%; top: 62%; rotate: -6deg; }
.stapel .s5 { left: 42%; top: 2%;  rotate: 3deg; width: 16%; }
.stapel-vlieger { left: 16%; top: 26%; width: 68%; z-index: 2; }
.stapel.zichtbaar > * { animation: plof 700ms var(--veel-veer) both; }
.stapel.zichtbaar .s2 { animation-delay: 90ms; }
.stapel.zichtbaar .s3 { animation-delay: 180ms; }
.stapel.zichtbaar .s4 { animation-delay: 270ms; }
.stapel.zichtbaar .s5 { animation-delay: 360ms; }
.stapel.zichtbaar .stapel-vlieger { animation-delay: 480ms; }
@keyframes plof { from { opacity: 0; transform: scale(0.2) translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- Voet ---------- */
/* Alleen op de start en onder je weer; tijdens de check-in en het delen niet. */
body:not([data-scherm="start"]):not([data-scherm="jouw-weer"]) .voet-lucht { display: none; }
.voet-lucht {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--space-5) calc(env(safe-area-inset-bottom) + var(--space-8));
  background: linear-gradient(var(--surface-background), rgba(254, 254, 244, 0) 40%), url("/assets/beeld/hero-default.webp") center 30% / cover;
}
.voet-binnen { display: grid; gap: var(--space-6); }
.voet-merk { font-family: var(--font-display); font-size: clamp(88px, 22vw, 280px); line-height: 0.85; letter-spacing: -0.04em; margin-left: -0.065em; display: flex; align-items: flex-start; }
.voet-merk span { font-size: 0.16em; letter-spacing: 0; line-height: 1; margin: 0.32em 0 0 0.18em; color: var(--neutral-700); }
.voet-tekst { display: grid; gap: var(--space-2); font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); max-width: 60ch; }
.voet-tekst a { color: var(--text-primary); }

/* ---------- Check-in ---------- */
.checkin-kop {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: calc(env(safe-area-inset-top) + var(--space-3)) var(--space-3) 0;
  min-height: 56px;
}
.stippen { display: flex; gap: 6px; align-items: center; }
.stippen span { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--border-default); transition: width 260ms var(--uit), background-color 260ms; }
.stippen span.gedaan { background: var(--brand-default); }
.stippen span.nu { width: 20px; background: var(--brand-default); }

.checkin-hero { display: grid; place-items: center; padding: var(--space-2) 0 var(--space-6); min-height: 150px; }
.checkin-vlieger { width: 146px; }
.checkin-vlieger svg { transition: opacity 120ms; }
.tik { animation: tik 420ms var(--veel-veer); }
@keyframes tik { from { transform: scale(0.94); } to { transform: scale(1); } }

.checkin-vel { gap: var(--space-5); padding-top: var(--space-8); }
.checkin-vraag { display: grid; gap: var(--space-2); }
.checkin-vraag.weg { animation: vraag-weg 140ms var(--in) both; }
.checkin-vraag.terug { animation: vraag-in 260ms var(--uit) both; }
@keyframes vraag-weg { to { opacity: 0; transform: translateX(-16px); } }
@keyframes vraag-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.weerwoord { min-height: var(--text-h1-line); margin-top: var(--space-2); }
.weerwoord.wissel { animation: woord 180ms var(--uit); }
@keyframes woord { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.opvulling { flex: 1; min-height: var(--space-4); }

/* De provincie: twaalf knoppen in twee kolommen, gekozen in de kleur van de schuif. */
.provincies { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.provincies.terug { animation: vraag-in 260ms var(--uit) both; }
.provincie-knop {
  min-height: 44px;
  padding: 10px var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-background);
  box-shadow: var(--shadow-card-border);
  font: inherit;
  font-size: var(--text-label-button-size);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 180ms var(--veer), background-color 160ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.provincie-knop:active { transform: scale(0.97); }
.provincie-knop[aria-pressed="true"] { background: var(--cta-default); box-shadow: inset 0 0 0 1.5px var(--text-primary); }
/* Twaalf knoppen vragen meer ruimte dan een schuif: de vlieger wordt kleiner, zodat Sla over in beeld blijft. */
.op-provincie .checkin-hero { min-height: 0; padding-bottom: var(--space-4); }
.op-provincie .checkin-vlieger { width: 96px; }
.op-provincie .checkin-vel { padding-top: var(--space-6); }
@media (min-width: 640px) { .provincies { grid-template-columns: repeat(3, 1fr); } }

/* De schuif: spoor 8, duim 32 met een inktring van 1,5, raakvlak 48 (Slider.tsx). */
.schuif { position: relative; display: grid; gap: var(--space-1); }
.schuif-invoer {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: 48px; margin: 0;
  opacity: 0; z-index: 2;
  pointer-events: none;
}
.schuif { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.schuif-spoor { position: relative; height: 48px; --w: 50%; }
.schuif-spoor::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 8px; border-radius: var(--radius-pill); background: var(--slider-track-base); }
.schuif-vul { position: absolute; left: 0; top: 20px; height: 8px; border-radius: var(--radius-pill); background: var(--cta-default); width: calc(16px + (100% - 32px) * var(--p, 0.5)); }
.schuif-duim {
  position: absolute; top: 8px; left: calc((100% - 32px) * var(--p, 0.5));
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  background: var(--cta-default);
  box-shadow: inset 0 0 0 1.5px var(--text-primary);
  transition: transform 220ms var(--veel-veer);
}
.schuif.vast .schuif-duim { transform: scale(1.18); }
.schuif-invoer:focus-visible + .schuif-spoor .schuif-duim { outline: 3px solid var(--brand-default); outline-offset: 3px; }
.schuif-labels { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-label-caption-size); line-height: var(--text-label-caption-line); font-weight: 600; color: var(--text-secondary); }
.schuif-labels span:last-child { text-align: right; }

/* ---------- Jouw weer: de hero kleurt mee met je weer ---------- */
.landing > svg { animation: landing 900ms var(--veel-veer) both; }
@keyframes landing { from { opacity: 0; transform: translateY(-40px) scale(0.9) rotate(-6deg); } to { opacity: 1; transform: none; } }
.uitkomst-hero .kopbalk .knop-klein { color: var(--text-primary); }
.uitkomst-beeld { display: grid; place-items: center; min-height: 220px; }
.uitkomst-vlieger { width: min(52vw, 220px); }
.zweeft { animation: zweef 5.5s ease-in-out 900ms infinite; transform-origin: 60% 90%; }
.uitkomst-tekst { display: grid; gap: var(--space-5); align-content: center; max-width: 620px; }
.uitkomst-tekst > .label { margin-bottom: calc(var(--space-3) * -1); }
/* Het weericoon hoort bij de naam van het weer, op lettergrootte. */
.weer-icoon { display: inline; width: auto; height: 0.85em; vertical-align: -0.12em; margin-right: 0.18em; }
.sticker-pop { animation: sticker-in 700ms var(--veel-veer) 300ms both; --r: -6deg; }
.uitkomst-tip {
  display: grid; gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(254, 254, 244, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-width: 460px;
}

/* ---------- Delen ---------- */
.delen-vel { gap: var(--space-4); margin-top: var(--space-4); }
.segmenten { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: var(--radius-pill); background: var(--surface-card); box-shadow: var(--shadow-card-border); }
.segmenten button { border: 0; background: none; min-height: 40px; padding: 0 4px; white-space: nowrap; border-radius: var(--radius-pill); font-size: var(--text-label-button-size); font-weight: 600; color: var(--brand-default); cursor: pointer; transition: background-color 200ms, color 200ms; }
.segmenten button[aria-checked="true"] { background: var(--brand-default); color: var(--neutral-0); }
.voorbeeld {
  position: relative;
  display: grid; place-items: center;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--primary-50);
  min-height: 300px;
  transition: background-color 300ms;
}
.voorbeeld[data-vorm="sticker"] { background: var(--primary-800); }
.delen-kop { display: grid; gap: var(--space-1); }
.foto-kiezen { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.foto-kiezen input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.foto-kiezen:focus-within .knop { outline: 3px solid var(--brand-default); outline-offset: 3px; }
.foto-kiezen .knop { background: var(--surface-card); }
.voorbeeld img { max-height: 62vh; width: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(30, 72, 89, 0.25); animation: kaart-in 500ms var(--veer) both; }
.voorbeeld[data-vorm="sticker"] img { box-shadow: none; border-radius: 0; }
@keyframes kaart-in { from { opacity: 0; transform: translateY(16px) rotate(-3deg) scale(0.96); } to { opacity: 1; transform: none; } }
.voorbeeld-laden { position: absolute; color: var(--text-secondary); font-size: var(--text-body-small-size); }
.melding { min-height: 20px; font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); color: var(--brand-default); text-align: center; }
.melding-fout { color: var(--feedback-error); }

/* ---------- Aanmelden ---------- */
.veld-fout { color: var(--feedback-error); font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); margin-top: -4px; }
.vinkje { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); cursor: pointer; padding: var(--space-2) 0; }
.vinkje input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand-default); }
.valstrik { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Uitleg (onderblad) ---------- */
.uitleg {
  border: 0; padding: 0;
  width: 100%; max-width: var(--kolom);
  margin: auto auto 0;
  background: none;
  max-height: 92dvh;
}
.uitleg::backdrop { background: rgba(23, 55, 68, 0.4); }
.uitleg[open] { animation: blad-op 320ms var(--uit); }
@keyframes blad-op { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.uitleg-vel { background: var(--surface-background); border-radius: var(--vel-radius) var(--vel-radius) 0 0; padding: var(--space-6) var(--space-5) calc(env(safe-area-inset-bottom) + var(--space-6)); display: grid; gap: var(--space-4); }
.uitleg-lijst { display: grid; gap: var(--space-3); }
.uitleg-lijst dt { font-weight: 600; }
.uitleg-lijst dd { color: var(--text-secondary); }

/* ---------- Melding onderin ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + var(--space-6)); z-index: 60;
  translate: -50% 20px; opacity: 0;
  max-width: calc(100vw - var(--space-10));
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--primary-900); color: var(--neutral-0);
  font-size: var(--text-body-small-size); line-height: var(--text-body-small-line); font-weight: 600;
  transition: opacity 240ms var(--uit), translate 320ms var(--veer);
  pointer-events: none;
}
.toast.zichtbaar { opacity: 1; translate: -50% 0; }

/* ---------- Bij het scrollen in beeld komen ---------- */
.onthul { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 600ms var(--uit), transform 700ms var(--veer); }
.onthul.zichtbaar { opacity: 1; transform: none; }

/* ---------- Groter scherm ---------- */
@media (min-width: 640px) {
  .scherm-checkin, .scherm-delen { width: 100%; max-width: var(--kolom); margin: 0 auto; }
  .checkin-vel, .delen-vel { flex: 0 0 auto; border-radius: var(--vel-radius); margin-bottom: var(--space-10); min-height: 520px; }
}
@media (min-width: 960px) {
  .kopbalk { padding-left: max(var(--space-12), calc((100vw - 1200px) / 2)); padding-right: max(var(--space-12), calc((100vw - 1200px) / 2)); }
  .start-hero, .uitkomst-hero { min-height: 100svh; display: flex; flex-direction: column; }
  /* Breed: de lucht over de hele hero; daar blijft de tekst goed leesbaar. */
  .hero-lucht::before { display: none; }
  .start-hero::before { inset: 0; }
  .hero-raster {
    flex: 1;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-4) max(var(--space-12), calc((100vw - 1200px) / 2)) var(--space-12);
  }
  .start-hero .display { font-size: clamp(64px, 6.6vw, 112px); }
  .hero-lucht { min-height: min(68vh, 620px); }
  .uitkomst-beeld { order: 2; }
  .uitkomst-vlieger { width: min(30vw, 400px); }
  .band { padding-left: var(--space-12); padding-right: var(--space-12); }
  .band-binnen { max-width: 1200px; }
  .afsluiter-raster { grid-template-columns: 1.1fr 1fr; }
  .werkt-raster { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-12); align-items: center; }
  .werkt-links { display: grid; gap: var(--space-8); justify-items: start; }
  .demo-paneel { padding: var(--space-12) var(--space-4); }
}

/* ---------- Minder beweging: geen veren, schuiven of zweven ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .onthul { opacity: 1; transform: none; }
}

/* ---------- Tekstpagina (privacy) ---------- */
.tekstpagina { display: flex; flex-direction: column; min-height: 100dvh; }
.tekst-vel { max-width: 720px; width: 100%; margin: var(--space-6) auto 0; gap: var(--space-6); }
.tekst-vel section { display: grid; gap: var(--space-2); }
.tekst-vel ul { list-style: disc; padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.tekst-vel .knop { justify-self: start; align-self: flex-start; }
.concept { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--coral-100); font-weight: 600; font-size: var(--text-body-small-size); }
mark { background: var(--coral-200); color: var(--text-primary); padding: 0 4px; border-radius: 4px; }
@media (min-width: 640px) { .tekst-vel { border-radius: var(--vel-radius); margin-bottom: var(--space-10); padding: var(--space-10); } }
