/* Landing page Kattennamen Spel.
   Kleuren, stralen en beweging komen uit huisstijl.md (3.1, 5, 8). Dit bestand is
   de enige plek waar een kleur echt staat; alles verderop gebruikt de tokens.
   Alleen licht: de landing page heeft bewust geen donkere modus. */

/* ---------- Fonts ---------- */

/* Zelf gehost, alleen de Latijnse subset (dekt ook é, ë en ï). Inter is een
   variabel font: één bestand voor 400 en 600. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Karma";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/karma-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Karma";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/karma-700-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  /* Papier */
  --bg: #fff9f2;
  --surface: #ffffff;
  --surface-2: #fdefe2;
  --border: #f0e4d7;
  --border-strong: #918a82;
  --text: #3d3229;
  --text-muted: #796c61;
  --primary-ink: #ad5e3f;
  --like-ink: #3d805b;
  --nope-ink: #b65654;
  --super-ink: #7469b7;
  --disabled: #d9cfc4;
  --focus: #3d3229;
  --veil: rgb(61 50 41 / 55%);

  /* Kleur */
  --primary: #ff8a5c;
  --primary-strong: #f0703f;
  --on-primary: #3d3229;
  --secondary: #7bc4b8;
  --accent: #ffc94d;
  --like: #5fc98e;
  --nope: #f2726f;
  --super: #8b7edb;

  /* Type */
  --font-kop: "Karma", Georgia, "Times New Roman", serif;
  --font-tekst: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Vorm */
  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Beweging */
  --ease-uit: cubic-bezier(0.22, 1, 0.36, 1);
  --duur-hover: 150ms;

  /* Lagen */
  --z-nav: 30;

  /* Maat */
  --breedte: 72rem;
  --zijmarge: 20px;
  --nav-hoogte: 64px;
}

/* ---------- Basis ---------- */

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

html {
  /* Geen zoom bij een dubbele tik (naast een knop, of twee keer snel op het
     menu). Knijpen om te zoomen blijft gewoon werken. */
  touch-action: manipulation;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-hoogte) + 32px);
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-tekst);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-kop);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--primary-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

/* Gestippelde focusring: huisstijl 7.7. */
:focus-visible {
  outline: 2px dashed var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visueel-verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.overslaan {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: calc(var(--z-nav) + 10);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}

.overslaan:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(var(--breedte) + 2 * var(--zijmarge));
  margin-inline: auto;
  padding-inline: var(--zijmarge);
}

@media (min-width: 640px) {
  :root {
    --zijmarge: 32px;
  }
}

/* ---------- Doodle-lijn (huisstijl 6) ---------- */

.lijn {
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inkt {
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inkt-vol {
  fill: var(--text);
}

.v-surface { fill: var(--surface); }
.v-surface-2 { fill: var(--surface-2); }
.v-teal { fill: var(--secondary); }
.v-honing { fill: var(--accent); }
.v-lavendel { fill: var(--super); }
.v-like { fill: var(--like); }
.v-nope { fill: var(--nope); }
.v-bg { fill: var(--bg); }

/* ---------- Knoppen (huisstijl 7.1) ---------- */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: var(--font-tekst);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duur-hover) ease-out, transform var(--duur-hover) ease-out;
  white-space: nowrap;
}

.knop:active {
  transform: scale(0.99);
}

.knop--primair {
  background: var(--primary);
  color: var(--on-primary);
}

/* De vulling blijft gelijk; alleen de rand verschijnt. Donkerder koraal zou
   de bruine tekst onder 4.5 duwen. */
.knop--primair:hover {
  border-color: var(--text);
}

.knop--secundair {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 0 25px;
}

.knop--secundair:hover {
  border-color: var(--text);
}

.knop--zacht {
  background: var(--surface-2);
  color: var(--text);
}

.knop--zacht:hover {
  border-color: var(--border-strong);
}

.knop:disabled {
  background: var(--disabled);
  color: var(--text-muted);
  border-color: transparent;
  cursor: default;
}

.knop--groot {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.0625rem;
}

.tekstlink {
  color: var(--primary-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness var(--duur-hover) ease-out;
}

.tekstlink:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Pillen (huisstijl 7.5) ---------- */

.pil {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--on-primary);
  background: var(--surface-2);
}

.pil svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.pil { white-space: nowrap; }

.pil--teal { background: var(--secondary); }
.pil--honing { background: var(--accent); }
.pil--wit { background: var(--surface); color: var(--text); }

/* Lavendel haalt met bruin 3.62: genoeg voor grote koppen, niet voor een
   pil van 14px. Daarom krijgt die pil een wit hart. */
.pil--lavendel {
  background: var(--surface);
  border: 2px solid var(--super);
  padding: 2px 10px;
}

/* ---------- Navigatie ---------- */

/* Drie kolommen die links en rechts even breed zijn, zodat het midden echt
   in het midden staat. Onder 900px: hamburger | logo | knop. Vanaf 900px:
   logo | menu | knop. De koraalknop staat er bewust altijd (keuze van de
   opdrachtgever, wijkt af van huisstijl 3.3). */

.nav {
  position: sticky;
  top: 12px;
  z-index: var(--z-nav);
  margin-top: 12px;
}

.nav__balk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: var(--nav-hoogte);
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: min-height 200ms ease-out, padding 200ms ease-out;
}

.nav__menuknop {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color var(--duur-hover) ease-out;
}

/* Zonder JS doet de knop niets, dus dan staat hij er niet. */
.nav__menuknop[hidden] {
  display: none;
}

/* Alleen met een muis: op een touchscreen blijft hover na een tik hangen. */
@media (hover: hover) {
  .nav__menuknop:hover {
    border-color: var(--border-strong);
  }
}

.nav__menuknop:focus-visible {
  border-radius: var(--radius-full);
}

.nav__menuknop svg {
  width: 22px;
  height: 22px;
}

.nav__menuknop .icoon-sluit,
.nav__menuknop[aria-expanded="true"] .icoon-menu {
  display: none;
}

.nav__menuknop[aria-expanded="true"] .icoon-sluit {
  display: block;
}

.merk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.merk img {
  height: 36px;
  width: auto;
}

.nav .merk {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
}

.nav .merk img {
  transition: height 200ms ease-out;
}

/* Klein woordmerk onder het logo; vouwt weg bij scrollen (.nav--compact). */
.merk__naam {
  display: block;
  max-height: 14px;
  overflow: hidden;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: max-height 200ms ease-out, opacity 200ms ease-out;
}

.nav--compact .nav__balk {
  min-height: 56px;
  padding: 4px 6px;
}

.nav--compact .merk img {
  height: 32px;
}

.nav--compact .merk__naam {
  max-height: 0;
  opacity: 0;
}

.nav__links {
  display: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
  transition: background-color var(--duur-hover) ease-out, color var(--duur-hover) ease-out;
}

.nav__links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav__acties {
  justify-self: end;
  display: flex;
  align-items: center;
}

.nav__cta {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.nav__cta-lang {
  display: none;
}

/* Uitgeklapt menu onder de balk (alleen onder 900px). Een laag over de pagina
   en geen blok in de stroom: in de stroom maakte het de meeschuivende balk
   270px hoger, en dan schoot de pagina bij openen en sluiten weg. */
.nav__menu {
  position: absolute;
  top: 100%;
  left: var(--zijmarge);
  right: var(--zijmarge);
  margin-top: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.nav__menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__menu li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav__menu li a:hover {
  background: var(--surface-2);
}

.nav__menu li + li {
  border-top: 1px solid var(--border);
}

/* Onderaan het uitgeklapte menu: de speelknop over de volle breedte. Hier is
   ruimte voor de lange tekst, in de balk erboven staat alleen "Spelen". */
.nav__menu-cta {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .nav__balk {
    padding: 8px 8px 8px 16px;
  }

  .nav__menuknop,
  .nav__menu {
    display: none;
  }

  .nav .merk {
    justify-self: start;
    flex-direction: row;
    gap: 10px;
  }

  .merk__naam {
    max-height: none;
    font-size: 1.1875rem;
    letter-spacing: 0;
  }

  /* Op desktop blijft de balk altijd even hoog. */
  .nav--compact .nav__balk {
    min-height: var(--nav-hoogte);
    padding: 8px 8px 8px 16px;
  }

  .nav--compact .merk img {
    height: 36px;
  }

  .nav--compact .merk__naam {
    max-height: none;
    opacity: 1;
  }

  .nav__links {
    display: flex;
  }

  .nav__cta {
    min-height: 48px;
    padding: 0 24px;
    font-size: 1rem;
  }

  .nav__cta-lang {
    display: inline;
  }

  .nav__cta-kort {
    display: none;
  }
}

@media (max-width: 479px) {
  .telefoon__titel {
    font-size: 0.9375rem;
  }

  .podium {
    padding-inline: 12px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 56px;
  text-align: center;
}

.hero__katten {
  width: min(200px, 56vw);
  margin: 0 auto 16px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.05;
  max-width: 18ch;
  margin-inline: auto;
}

.hero__lead {
  max-width: 34rem;
  margin: 20px auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero__acties {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* USP's als drie losse stickers: witte pil, inktrand, een tikje scheef. */
.usps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.usp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: var(--radius-full);
  text-align: left;
  transform: rotate(-2.5deg);
}

.usp:nth-child(2) { transform: rotate(1.5deg); }
.usp:nth-child(3) { transform: rotate(-1.5deg); }

.usp__icoon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--text);
  border-radius: var(--radius-full);
}

.usp__icoon svg {
  width: 24px;
  height: 24px;
}

.usp__icoon--honing { background: var(--accent); }
.usp__icoon--teal { background: var(--secondary); }
.usp__icoon--lavendel { background: var(--super); }

.usp__titel {
  display: block;
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  white-space: nowrap;
}

.usp__sub {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .usps {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

@media (min-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* Het podium onder de hero: het vlak waar bij Aboard de laptop staat. */
.podium {
  position: relative;
  margin-top: 48px;
  padding: 40px 16px 32px;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.podium__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.podium__deco svg {
  position: absolute;
}

.podium__deco .deco-hart {
  width: 72px;
  left: 8%;
  top: 18%;
}

.podium__deco .deco-ster {
  width: 56px;
  right: 10%;
  top: 14%;
}

.podium__deco .deco-kruis {
  width: 60px;
  left: 12%;
  bottom: 16%;
}

.podium__deco .deco-vis {
  width: 88px;
  right: 8%;
  bottom: 18%;
}

@media (max-width: 719px) {
  .podium__deco {
    display: none;
  }
}

.podium__onderschrift {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Telefoon + swipe-demo ---------- */

.telefoon {
  position: relative;
  width: min(320px, 100%);
  margin-inline: auto;
  padding: 12px;
  background: var(--text);
  border-radius: 44px;
}

.telefoon__scherm {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 620px;
  padding: 16px 16px 20px;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  text-align: left;
}

.telefoon__notch {
  width: 84px;
  height: 22px;
  margin: -4px auto 12px;
  background: var(--text);
  border-radius: var(--radius-full);
}

.telefoon__kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.telefoon__titel {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
}

.telefoon__teller {
  flex: none;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.voortgang {
  height: 8px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.voortgang__vulling {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary-strong);
  border-radius: inherit;
  transition: width 320ms var(--ease-uit);
}

.stapel {
  position: relative;
  flex: 1;
  min-height: 0;
}

.swipekaart {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  /* Zoals de kaart in het spel (SwipeDeck.tsx): zacht perzikvlak, witte pillen. */
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}

.swipekaart:active {
  cursor: grabbing;
}

.swipekaart[hidden] {
  display: none;
}

.swipekaart[data-plek="0"] { z-index: 4; }

.swipekaart[data-plek="1"] {
  z-index: 3;
  transform: translateY(10px) scale(0.955);
}

.swipekaart[data-plek="2"] {
  z-index: 2;
  transform: translateY(20px) scale(0.91);
}

.swipekaart[data-plek="3"] {
  visibility: hidden;
}

/* Het logo in het midden, net als in het spel. Tijdens het slepen vervaagt het
   naar het hart of het kruis: drie lagen op elkaar, main.js zet de doorzichtigheid. */
.swipekaart__beeld {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: 12px;
}

.swipekaart__beeld img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.swipekaart__logo {
  max-height: 150px;
  margin: auto;
}

.swipekaart__stempel {
  max-width: 96px;
  max-height: 96px;
  margin: auto;
  opacity: 0;
}

.swipekaart__naam {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  text-wrap: balance;
}

.swipekaart__noot {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.swipekaart__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.swipekaart__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.swipekaart--slot {
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: default;
  background: var(--surface);
}

.swipekaart--slot .swipekaart__naam {
  font-size: 1.75rem;
}

.swipekaart--slot p:not(.swipekaart__naam) {
  max-width: 24ch;
  margin: 8px auto 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.swipekaart--slot .knop {
  width: 100%;
  white-space: normal;
}

.swipekaart--slot .knop + .knop {
  margin-top: 8px;
}

.match {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.match[hidden] {
  display: none;
}

.match svg {
  width: 24px;
  height: 24px;
}

.swipeknoppen {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}

.swipeknop {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--duur-hover) ease-out;
}

.swipeknop img {
  width: 60px;
  height: auto;
}

.swipeknop:hover {
  transform: translateY(-2px);
}

.swipeknop:active {
  transform: scale(0.96);
}

.swipeknop:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.swipeknop:focus-visible {
  border-radius: var(--radius-full);
}

.demo-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Secties ---------- */

.sectie {
  padding-top: 88px;
}

.sectie__kop {
  max-width: 40rem;
  margin-bottom: 32px;
}

.sectie__kop h2 {
  margin-top: 16px;
  font-size: 2rem;
  line-height: 1.15;
}

.sectie__kop p {
  margin-top: 12px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

@media (min-width: 640px) {
  .sectie {
    padding-top: 120px;
  }

  .sectie__kop h2 {
    font-size: 2.75rem;
    line-height: 1.1;
  }
}

/* Grote kaart: beeld links, tekst rechts. */
.uitgelicht {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 28px 20px 0;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.uitgelicht__beeld {
  display: flex;
  justify-content: center;
  align-self: end;
}

.uitgelicht__tekst {
  padding-bottom: 8px;
}

.uitgelicht__tekst h3 {
  font-size: 1.75rem;
  line-height: 1.15;
}

.uitgelicht__tekst p {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 30rem;
}

@media (max-width: 767px) {
  .uitgelicht__tekst {
    order: -1;
  }
}

@media (min-width: 768px) {
  .uitgelicht {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 56px 0 40px;
    min-height: 440px;
  }

  .uitgelicht__tekst {
    padding-bottom: 48px;
  }

  .uitgelicht__tekst h3 {
    font-size: 2.25rem;
  }
}

/* Het nagebouwde appscherm in de grote kaart: bewust de bovenkant van een
   telefoonscherm, afgesneden door de kaartrand zoals in het ontwerp. */
.appvel {
  width: min(320px, 100%);
  padding: 20px 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.appvel__titel {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.appvel__sub {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.appvel__label {
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.invitecode {
  display: block;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.25em;
  font-variant-numeric: tabular-nums;
}

.appvel .knop {
  width: 100%;
  margin-top: 16px;
  pointer-events: none;
}

.appvel__of {
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.spelers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.spelers__rij {
  display: flex;
}

.spelers__rij svg {
  width: 36px;
  height: 36px;
}

.spelers__rij svg + svg {
  margin-left: -8px;
}

/* Swipesectie: twee kaartjes naast elkaar. */
.duo {
  position: relative;
  width: min(340px, 100%);
  height: 300px;
}

.duo__kaart {
  position: absolute;
  bottom: -24px;
  width: 190px;
  padding: 20px 20px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.duo__kaart--links {
  left: 0;
  transform: rotate(-8deg);
  transform-origin: bottom right;
}

.duo__kaart--rechts {
  right: 0;
  bottom: -8px;
  transform: rotate(7deg);
  transform-origin: bottom left;
}

/* Deze kaartjes zijn wit, dus hier het zachte vlak (in de demo is het andersom). */
.duo__kaart .swipekaart__label {
  align-self: flex-start;
  margin-bottom: 8px;
  background: var(--surface-2);
}

.duo__naam {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
}

.duo__icoon {
  width: 52px;
  margin-bottom: 18px;
}

.duo__kaart--links .duo__icoon {
  margin-left: auto;
}

/* Cijferronde: lijst met cijfers in Karma. */
.cijferlijst {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cijferlijst li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cijferlijst li:last-child {
  border-bottom: 0;
}

.cijferlijst__naam {
  font-weight: 600;
}

.cijfers {
  display: flex;
  gap: 4px;
}

.cijfers span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--text-muted);
  background: var(--surface-2);
}

.cijfers span[data-gekozen] {
  background: var(--secondary);
  color: var(--on-primary);
  border: 2px solid var(--text);
}

/* Tekst in de tekeningen. */
.svg-naam {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 22px;
  fill: var(--text);
}

.svg-klein {
  font-family: var(--font-tekst);
  font-weight: 600;
  font-size: 14px;
  fill: var(--text);
}

.svg-cijfer {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 34px;
  fill: var(--text);
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    margin-top: 24px;
  }

  .bento--omgekeerd {
    grid-template-columns: 2fr 3fr;
  }
}

.tegel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 28px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

@media (min-width: 640px) {
  .tegel {
    padding: 36px 36px 28px;
    min-height: 440px;
  }
}

.tegel--teal {
  background: var(--secondary);
  border-color: var(--secondary);
}

.tegel--honing {
  background: var(--accent);
  border-color: var(--accent);
}

.tegel--lavendel {
  background: var(--super);
  border-color: var(--super);
}

.tegel__label {
  align-self: flex-start;
}

.tegel h3 {
  margin-top: 14px;
  max-width: 16ch;
  font-size: 1.75rem;
  line-height: 1.15;
}

@media (min-width: 1024px) {
  .tegel h3 {
    font-size: 2rem;
  }
}

.tegel--midden {
  align-items: center;
  text-align: center;
}

.tegel--midden h3 {
  margin-inline: auto;
}

.tegel__beeld {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px 0 8px;
}

.tegel__beeld > svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.tegel__beeld--onder {
  align-items: end;
  margin-bottom: -28px;
}

/* De voorkeurspillen als tekening: een maat groter dan een gewone pil. */
.pillenwolk {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 380px;
}

.pillenwolk .pil {
  padding: 8px 16px;
  font-size: 1rem;
  border: 2px solid transparent;
}

.pillenwolk .pil--gekozen {
  border-color: var(--text);
}

.pillenwolk .pil:nth-child(odd) { transform: rotate(-2deg); }
.pillenwolk .pil:nth-child(even) { transform: rotate(2deg); }

/* Het plusknopje rechtsonder. Op een gekleurde tegel haalt --border-strong de
   3.0 niet (1.69 op teal), dus daar is de rand bruin. */
.plus {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--duur-hover) ease-out, transform var(--duur-hover) ease-out;
}

.plus svg {
  width: 22px;
  height: 22px;
  transition: transform 320ms var(--ease-uit);
}

@media (hover: hover) {
  .plus:hover {
    background: var(--surface-2);
  }

  .plus:hover svg {
    transform: rotate(90deg);
  }
}

.plus:active {
  transform: scale(0.96);
}

.plus:focus-visible {
  border-radius: var(--radius-full);
}

/* Ruimte onderin zodat het plusje nooit over de inhoud valt: 48px knop, 16px
   van de rand, en daarboven nog lucht. */
.tegel {
  padding-bottom: 96px;
}

/* De pillenwolk staat op mobiel in vier rijen en vult de tegel dan bijna;
   zonder extra hoogte kwam het plusje er tegenaan. */
@media (max-width: 639px) {
  .tegel--teal {
    min-height: 460px;
  }
}

/* ---------- Veelgestelde vragen ---------- */

.vragen-rij {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .vragen-rij {
    grid-template-columns: 2fr 1fr;
    gap: 32px;
  }
}

.vragen {
  display: grid;
  gap: 12px;
}

.nogvraag {
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

.nogvraag svg {
  width: 64px;
  height: auto;
  margin-bottom: 16px;
}

.nogvraag h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.nogvraag .tekstlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.nogvraag p {
  margin: 8px 0 4px;
  color: var(--text-muted);
}

.vraag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  /* Tijdens het open- en dichtklappen (main.js) mag het antwoord er niet uit steken. */
  overflow: hidden;
  transition: border-color var(--duur-hover) ease-out;
}

.vraag:hover {
  border-color: var(--border-strong);
}

.vraag summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  font-family: var(--font-kop);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-lg);
}

.vraag summary::-webkit-details-marker {
  display: none;
}

.vraag summary svg {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 320ms var(--ease-uit);
}

.vraag[open] summary svg {
  transform: rotate(45deg);
}

/* Bij het dichtklappen draait het plusje meteen terug, niet pas als het
   antwoord weg is (dan staat [open] er nog even). */
.vraag[data-sluit] summary svg {
  transform: none;
}

.vraag__antwoord {
  padding: 0 20px 20px;
  color: var(--text-muted);
  max-width: 40rem;
}

@media (min-width: 640px) {
  .vraag summary {
    padding: 18px 28px;
  }

  .vraag__antwoord {
    padding: 0 28px 24px;
  }
}

/* ---------- Slot ---------- */

.slot {
  padding-top: 120px;
}

.slot__vlak {
  position: relative;
  padding: 56px 20px;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.slot__vlak img {
  width: 96px;
  height: auto;
  margin: 0 auto 20px;
}

.slot__vlak h2 {
  font-size: 2.25rem;
  line-height: 1.1;
}

.slot__vlak p {
  max-width: 30rem;
  margin: 14px auto 28px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .slot__vlak {
    padding: 80px 40px;
  }

  .slot__vlak h2 {
    font-size: 3rem;
  }
}

/* ---------- Footer ---------- */

.voet {
  margin-top: 64px;
  padding-top: 40px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.voet__rij {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.voet__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voet__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.voet__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.voet__links a.tekstlink {
  color: var(--primary-ink);
  font-weight: 600;
  text-decoration: underline;
}

.voet__klein {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
}

.voet__klein a {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Dialoog (huisstijl 7.4) ---------- */

.dialoog {
  width: min(32rem, calc(100% - 32px));
  max-height: min(80dvh, 640px);
  padding: 0;
  margin: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Het venster krijgt bij openen zelf de focus (main.js), zodat de sluitknop
   niet meteen de gestippelde ring krijgt. Het vlak is niet bedienbaar, dus
   een ring eromheen hoort niet; de knoppen erin houden hem wel. */
.dialoog:focus,
.dialoog:focus-visible {
  outline: none;
}

.dialoog[open] {
  display: flex;
  flex-direction: column;
}

.dialoog::backdrop {
  background: var(--veil);
}

.dialoog__kop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px 24px;
  border-bottom: 1px solid var(--border);
}

.dialoog__icoon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

.dialoog__icoon svg {
  width: 30px;
  height: 30px;
}

.dialoog__icoon--teal { background: var(--secondary); }
.dialoog__icoon--honing { background: var(--accent); }
.dialoog__icoon--lavendel { background: var(--super); }
.dialoog__icoon--zacht { background: var(--surface-2); }

.dialoog__kop h2 {
  flex: 1;
  font-size: 1.5rem;
  line-height: 1.2;
}

.sluit {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color var(--duur-hover) ease-out;
}

@media (hover: hover) {
  .sluit:hover {
    border-color: var(--border-strong);
  }
}

.sluit:focus-visible {
  border-radius: var(--radius-full);
}

.sluit svg {
  width: 18px;
  height: 18px;
}

.dialoog__inhoud {
  padding: 20px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialoog__inhoud p + p,
.dialoog__inhoud p + ul,
.dialoog__inhoud ul + p {
  margin-top: 14px;
}

.dialoog__inhoud .stappen {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stap;
}

.stappen li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: stap;
}

.stappen li::before {
  content: counter(stap);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-family: var(--font-kop);
  font-weight: 700;
  line-height: 1;
}

.dialoog__pillen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* De zin onder de pillen kreeg geen ruimte mee (alleen p + p had die). */
.dialoog__pillen + p {
  margin-top: 24px;
}

.dialoog__voet {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 24px;
}

/* Op een telefoon wordt de dialoog een onderblad: volle breedte, sluitknop
   binnen duimbereik, ruimte voor de thuisbalk. */
@media (max-width: 639px) {
  .dialoog {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 0;
  }

  .dialoog__kop {
    position: relative;
    padding-top: 28px;
  }

  .dialoog__kop::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 5px;
    margin-left: -20px;
    background: var(--border);
    border-radius: var(--radius-full);
  }

  .dialoog__inhoud {
    padding-bottom: 20px;
  }

  .dialoog__voet {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .dialoog__voet .knop {
    width: 100%;
  }
}

/* ---------- Kruimelpad ---------- */

.kruimels {
  padding-top: 28px;
  font-size: 0.875rem;
}

.kruimels ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.kruimels li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--border-strong);
}

.kruimels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 400;
  text-underline-offset: 3px;
}

.kruimels [aria-current="page"] {
  color: var(--text-muted);
}

/* ---------- Losse pagina's: privacy, voorwaarden, 404 ---------- */

/* Dezelfde bouwstenen als de homepage (pil, pastelschijf, nogvraag-blok, voet),
   alleen rustiger: één leeskolom van hooguit 40rem, met op brede schermen een
   inhoudsopgave die meeloopt. Geen JS nodig. */

.pagina-kop {
  padding-top: 16px;
  max-width: 40rem;
}

.pagina-kop__tekening {
  width: 96px;
  height: auto;
  margin-bottom: 20px;
}

.pagina-kop h1 {
  margin-top: 16px;
  font-size: 2.5rem;
  line-height: 1.05;
}

.pagina-kop__lead {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.pagina-kop__datum {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* "In het kort": drie kaartjes met een pastelschijf, zoals de USP-stickers. */
.kort {
  display: grid;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.kort__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.kort__item .usp__icoon {
  width: 44px;
  height: 44px;
}

.kort__item .usp__icoon svg {
  width: 22px;
  height: 22px;
}

.kort__titel {
  display: block;
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}

.kort__tekst {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .kort {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.pagina-rij {
  display: grid;
  gap: 40px;
  padding-top: 56px;
}

.inhoud-lijst {
  display: none;
}

@media (min-width: 1024px) {
  .pagina-rij {
    grid-template-columns: 14rem minmax(0, 40rem);
    gap: 64px;
    align-items: start;
  }

  .inhoud-lijst {
    display: block;
    position: sticky;
    top: calc(var(--nav-hoogte) + 40px);
    font-size: 0.875rem;
  }

  .inhoud-lijst p {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
  }

  .inhoud-lijst ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .inhoud-lijst a {
    display: flex;
    align-items: center;
    min-height: 36px;
    color: var(--text);
    font-weight: 400;
    text-decoration: none;
  }

  .inhoud-lijst a:hover {
    text-decoration: underline;
  }
}

.leestekst {
  max-width: 40rem;
}

.leestekst section + section {
  margin-top: 48px;
}

.leestekst h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.leestekst h3 {
  margin-top: 24px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.leestekst p,
.leestekst ul,
.leestekst dl {
  margin: 12px 0 0;
}

.leestekst ul {
  padding-left: 1.25rem;
}

.leestekst li + li {
  margin-top: 6px;
}

.leestekst li::marker {
  color: var(--primary-strong);
}

/* Wie, wat en waar: een rustige tabel zonder tabel, zodat hij op 375px
   gewoon onder elkaar valt. */
.partijen {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.partij {
  padding: 16px 20px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

.partij dt {
  font-weight: 600;
}

.partij dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.leestekst .nogvraag {
  margin-top: 56px;
}

/* 404 */
.nietgevonden {
  padding-top: 72px;
  text-align: center;
}

.nietgevonden svg {
  width: 120px;
  height: auto;
  margin: 0 auto 24px;
}

.nietgevonden h1 {
  font-size: 2.5rem;
  line-height: 1.05;
}

.nietgevonden p {
  max-width: 30rem;
  margin: 16px auto 28px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.nietgevonden .hero__acties {
  margin-top: 0;
}

@media (min-width: 640px) {
  .pagina-kop {
    padding-top: 24px;
  }

  .pagina-kop h1,
  .nietgevonden h1 {
    font-size: 3.5rem;
  }

  .leestekst h2 {
    font-size: 1.75rem;
  }
}

/* ---------- Beweging ---------- */

/* JS zet deze klasse; zonder JS blijft alles gewoon zichtbaar. */
.js .onthul {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .onthul {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
