/* ============================================================
   FIRST KOMT KOKEN - style.css
   Kleuren uitsluitend via de tokens hieronder; schaduwen en
   overlays als alfa-variant van --inkt (via --inkt-rgb).
   ============================================================ */

/* ---------- Fonts (zelf gehost, WOFF2) ---------- */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/baloo2-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/nunitosans-latin.woff2") format("woff2");
}
/* Fallback-metriek: gemeten breedteverhouding t.o.v. Arial (Bold),
   zodat het inwisselen van fonts geen zichtbare layoutsprong geeft. */
@font-face {
  font-family: "Baloo 2 Fallback";
  src: local("Arial Bold"), local("Arial");
  size-adjust: 91.31%;
  ascent-override: 118.06%;
  descent-override: 57.39%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Sans Fallback";
  src: local("Arial");
  size-adjust: 100.14%;
  ascent-override: 100.95%;
  descent-override: 35.25%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --oranje: #FF6000;
  --oranje-diep: #C23D00;
  --room: #F5EFE6;
  --inkt: #1F1A17;
  --wit: #FFFFFF;
  --groen-ok: #1E7A3C;
  --waarschuwing-tekst: #8A5A00;
  --waarschuwing-vlak: #FFF3D6;
  --whatsapp-groen: #128C4B;

  --inkt-rgb: 31, 26, 23;

  --font-display: "Baloo 2", "Baloo 2 Fallback", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Nunito Sans Fallback", system-ui, sans-serif;

  --schaduw-kaart: 0 1px 2px rgba(var(--inkt-rgb), 0.06), 0 6px 18px rgba(var(--inkt-rgb), 0.08);
  --schaduw-zweef: 0 2px 4px rgba(var(--inkt-rgb), 0.08), 0 14px 30px rgba(var(--inkt-rgb), 0.14);
  --radius: 18px;
  --header-h: 52px;

  /* papier-textuur: inkt-getinte ruis, inline SVG (geen extern bestand) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.122 0 0 0 0 0.102 0 0 0 0 0.090 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--inkt);
  background-color: var(--room);
  background-image: var(--noise);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }
img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

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

a { color: var(--oranje-diep); }

:focus-visible {
  outline: 3px solid var(--oranje-diep);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Entrance / preloader ----------
   Zichtbaar uitsluitend onder html.entrance-play (gezet door het inline
   head-script, alleen mét JS en één keer per sessie) - zonder JS bestaat
   het gordijn dus nooit. De curtain is volledig statisch gestyled zodat
   de scène al klopt vóór script.js draait. */
.entrance-curtain { display: none; }

html.entrance-play .entrance-curtain {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background-color: var(--oranje);
  background-image: var(--noise);
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
html.entrance-play .entrance-curtain.is-wipe { transform: translateY(-101%); }

html.entrance-lock,
html.entrance-lock body { overflow: hidden; }

.entrance-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}

.entrance-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 8.5vw, 8rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.entrance-ghost { color: rgba(255, 255, 255, 0.15); }
.entrance-fill {
  position: absolute;
  inset: 0;
  color: var(--wit);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.entrance-frits {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(24px, 2.6vw, 40px);
  will-change: transform;
}
.entrance-frits img {
  display: block;
  width: 100%;
  height: auto;
  animation: entrance-walk 0.3s ease-in-out infinite alternate;
}
.entrance-frits.is-hop img {
  animation: entrance-hop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes entrance-walk {
  from { transform: translateY(0) rotate(-5deg); }
  to { transform: translateY(-4px) rotate(5deg); }
}
@keyframes entrance-hop {
  0% { transform: none; }
  45% { transform: translateY(-20px) rotate(-6deg); }
  100% { transform: none; }
}

/* Hero-content staat klaar onder het gordijn en staggert binnen zodra de
   wipe start (html.entrance-reveal). entrance-play blijft op <html> staan;
   dat is verder onschadelijk. */
@media (prefers-reduced-motion: no-preference) {
  html.entrance-play .hero-wordmark,
  html.entrance-play .tagline,
  html.entrance-play .bon-card {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.entrance-play.entrance-reveal .hero-wordmark,
  html.entrance-play.entrance-reveal .tagline,
  html.entrance-play.entrance-reveal .bon-card {
    opacity: 1;
    transform: none;
  }
  html.entrance-play.entrance-reveal .hero-wordmark { transition-delay: 0.25s; }
  html.entrance-play.entrance-reveal .tagline { transition-delay: 0.38s; }
  html.entrance-play.entrance-reveal .bon-card { transition-delay: 0.5s; }
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: var(--room);
  background-image: var(--noise);
  box-shadow: 0 1px 0 rgba(var(--inkt-rgb), 0.09), 0 4px 14px rgba(var(--inkt-rgb), 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--inkt);
  text-decoration: none;
}
.brand .bestek { width: auto; height: 26px; }
.brand:hover { color: var(--oranje-diep); }
.brand:active { transform: translateY(1px); }

/* ---------- Hero: de digitale cadeaubon ---------- */
.hero {
  padding: 14px 12px 34px;
}

.hero-bon {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 16px 24px;
  background-color: var(--oranje);
  background-image: var(--noise);
  border-radius: 26px;
  box-shadow: var(--schaduw-zweef);
}
.hero-bon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed var(--room);
  border-radius: 19px;
  opacity: 0.85;
  pointer-events: none;
}

.hero-wordmark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.18em;
  text-align: center;
  color: var(--wit);
  font-size: clamp(2.05rem, 5.5vw + 0.7rem, 4.6rem);
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.bestek-hero {
  width: auto;
  height: 0.88em;
  flex: none;
}

.tagline {
  position: relative;
  margin: 8px auto 16px;
  max-width: 26em;
  text-align: center;
  color: var(--wit);
  font-weight: 700;
  font-size: clamp(1.19rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.35;
}

/* ---------- Boncode-kaart ---------- */
.bon-card {
  position: relative;
  background-color: var(--wit);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  box-shadow: var(--schaduw-kaart);
}

.bon-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.bon-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.bon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bon-submit { flex: 1 1 auto; }

.bon-input {
  flex: 1 1 160px;
  min-height: 50px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  color: var(--inkt);
  background: var(--wit);
  border: 2px solid var(--room);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bon-input:hover { border-color: var(--oranje); }
.bon-input:focus-visible {
  outline: none;
  border-color: var(--oranje-diep);
  box-shadow: 0 0 0 4px rgba(var(--inkt-rgb), 0.08);
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--oranje);
  color: var(--wit);
  box-shadow: 0 3px 10px rgba(var(--inkt-rgb), 0.16);
}
.btn-primary:hover:not(:disabled) {
  background: var(--oranje-diep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--inkt-rgb), 0.2);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 6px rgba(var(--inkt-rgb), 0.18);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--inkt);
  outline-offset: 3px;
}
.btn-primary:disabled {
  background: rgba(var(--inkt-rgb), 0.12);
  color: rgba(var(--inkt-rgb), 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-whatsapp {
  width: 100%;
  background: var(--whatsapp-groen);
  color: var(--wit);
  box-shadow: 0 3px 10px rgba(var(--inkt-rgb), 0.16);
}
.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--inkt-rgb), 0.22);
}
.btn-whatsapp:active { transform: translateY(1px) scale(0.99); }
.btn-whatsapp:focus-visible {
  outline: 3px solid var(--inkt);
  outline-offset: 3px;
}
.wa-icon { width: 24px; height: 24px; flex: none; }

/* ---------- Bon-feedback ---------- */
.bon-feedback { margin-top: 10px; }

.bon-error {
  font-weight: 700;
  color: var(--oranje-diep);
  padding: 10px 12px;
  background: var(--room);
  border-radius: 10px;
}
.bon-help {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--inkt);
}

.bon-success {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 4px 4px;
}
.bon-success:focus-visible { outline: none; }
.tick { grid-area: 1 / 1; width: 44px; height: 44px; }
.tick svg { width: 100%; height: 100%; }
.tick-circle {
  fill: var(--groen-ok);
  stroke: none;
  transform-origin: 50% 50%;
}
.tick-check {
  fill: none;
  stroke: var(--wit);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
}
.bon-success-text {
  grid-area: 2 / 1;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}
.frits-reveal {
  grid-area: 1 / 2 / 3 / 3;
  align-self: end;
}

.js .bon-success.is-live .tick-circle { animation: tick-pop 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.js .bon-success.is-live .tick-check { animation: tick-draw 0.4s ease-out 0.18s both; }
.js .bon-success.is-live .frits-reveal { animation: frits-in 0.65s cubic-bezier(0.25, 1.2, 0.4, 1.1) 0.25s both; }

@keyframes tick-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes tick-draw {
  0% { stroke-dashoffset: 26; }
  100% { stroke-dashoffset: 0; }
}
@keyframes frits-in {
  0% { transform: translateY(46px) scale(0.3); opacity: 0; }
  55% { transform: translateY(-10px) scale(1.07); opacity: 1; }
  78% { transform: translateY(3px) scale(0.97); }
  100% { transform: none; opacity: 1; }
}

.noscript-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--room);
  border-radius: 10px;
  font-size: 0.95rem;
}

.no-bon-link {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
}
.no-bon-link a {
  color: var(--oranje-diep);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.no-bon-link a:hover { color: var(--inkt); }

/* ---------- Secties ---------- */
.section {
  padding: 34px 16px;
  max-width: 1060px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-title {
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem);
  margin-bottom: 18px;
}

/* Flow-stappen ná de chef-sectie: standaard via CSS verborgen; JS onthult. */
.flow-step { display: none; }
.flow-step.is-open { display: block; }

.flow { padding-bottom: 8px; }

/* ---------- Stappenindicator ---------- */
.flow-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  list-style: none;
  margin: 26px auto 0;
  padding: 10px 14px;
  max-width: fit-content;
  background: var(--wit);
  border-radius: 999px;
  box-shadow: var(--schaduw-kaart);
  font-size: 0.95rem;
}
.flow-indicator li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px;
  color: var(--inkt);
}
.flow-indicator li + li::before {
  content: "-";
  margin-right: 6px;
  font-weight: 700;
  opacity: 0.5;
}
.fi-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--room);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.flow-indicator li.is-active { font-weight: 700; }
.flow-indicator li.is-active .fi-num { background: var(--oranje-diep); color: var(--wit); }
.flow-indicator li.is-done .fi-num { background: var(--groen-ok); color: var(--wit); }

/* ---------- Chef-grid ---------- */
.chef-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 620px) { .chef-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .chef-grid { grid-template-columns: 1fr 1fr 1fr; } }

.chef-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--wit);
  border: 2px solid var(--wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw-kaart);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chef-visual {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: var(--room);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chef-emoji { font-size: 2.1rem; line-height: 1; }
.chef-monogram {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--oranje-diep);
}

.chef-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chef-name { font-size: 1.16rem; line-height: 1.2; }
.chef-dish { font-size: 1rem; }
.chef-rating { font-size: 0.9rem; font-weight: 700; }
.chef-rating .star { color: var(--oranje-diep); }
.chef-reviews { font-weight: 400; }

.chef-badge {
  align-self: flex-start;
  margin-top: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}
.chef-badge--info { background: var(--room); color: var(--inkt); }
.chef-badge--waarschuwing { background: var(--waarschuwing-vlak); color: var(--waarschuwing-tekst); }

/* selecteerbare kaartjes (na bon-validatie) */
.chef-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.chef-toggle:focus-visible {
  outline: 3px solid var(--oranje-diep);
  outline-offset: 3px;
}

.chef-card.is-selectable:hover {
  transform: translateY(-3px);
  box-shadow: var(--schaduw-zweef);
}
.chef-card.is-selectable:active { transform: translateY(0) scale(0.995); }
.chef-card.is-selected {
  border-color: var(--oranje);
  box-shadow: var(--schaduw-zweef);
}

.chef-check {
  position: absolute;
  top: -9px;
  right: -7px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--oranje);
  color: var(--wit);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--inkt-rgb), 0.25);
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.3, 1.5, 0.5, 1);
  pointer-events: none;
}
.chef-check svg { width: 16px; height: 16px; stroke: var(--wit); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chef-card.is-selected .chef-check { transform: scale(1); }

/* ---------- Stap-acties ---------- */
.step-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step-hint {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--oranje-diep);
}

/* ---------- Datum & wensen ---------- */
.date-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 700px) { .date-options { grid-template-columns: repeat(3, 1fr); } }

.date-option {
  min-height: 54px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--inkt);
  background: var(--wit);
  border: 2px solid var(--wit);
  border-radius: 14px;
  box-shadow: var(--schaduw-kaart);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.date-option:hover { transform: translateY(-2px); border-color: var(--oranje); box-shadow: var(--schaduw-zweef); }
.date-option:active { transform: translateY(0) scale(0.98); }
.date-option:focus-visible { outline: 3px solid var(--oranje-diep); outline-offset: 3px; }
.date-option[aria-pressed="true"] {
  background: var(--oranje-diep);
  border-color: var(--oranje-diep);
  color: var(--wit);
}

.date-custom { margin-bottom: 12px; }
.date-input {
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--inkt);
  background: var(--wit);
  border: 2px solid var(--room);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}
.date-input:hover { border-color: var(--oranje); }
.date-input:focus-visible {
  outline: none;
  border-color: var(--oranje-diep);
  box-shadow: 0 0 0 4px rgba(var(--inkt-rgb), 0.08);
}

.field { margin-top: 14px; }
.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--inkt);
  background: var(--wit);
  border: 2px solid var(--room);
  border-radius: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field-input:hover { border-color: var(--oranje); }
.field-input:focus-visible {
  outline: none;
  border-color: var(--oranje-diep);
  box-shadow: 0 0 0 4px rgba(var(--inkt-rgb), 0.08);
}

/* ---------- Ticket ---------- */
#bevestiging { padding-top: 20px; }

.ticket {
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 2px 5px rgba(var(--inkt-rgb), 0.12)) drop-shadow(0 12px 26px rgba(var(--inkt-rgb), 0.16));
  scroll-margin-top: calc(var(--header-h) + 6px);
}
@media (min-width: 720px) {
  .ticket { transform: rotate(-0.6deg); }
}

.ticket-inner {
  background: var(--wit);
  padding: 24px 18px 22px;
  -webkit-mask-image:
    linear-gradient(var(--inkt), var(--inkt)),
    radial-gradient(circle 6px at 10px 0px, transparent 6px, var(--inkt) 6.6px),
    radial-gradient(circle 6px at 10px 10px, transparent 6px, var(--inkt) 6.6px);
  -webkit-mask-size: 100% calc(100% - 20px), 20px 10px, 20px 10px;
  -webkit-mask-position: 0 10px, 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat, repeat-x, repeat-x;
  mask-image:
    linear-gradient(var(--inkt), var(--inkt)),
    radial-gradient(circle 6px at 10px 0px, transparent 6px, var(--inkt) 6.6px),
    radial-gradient(circle 6px at 10px 10px, transparent 6px, var(--inkt) 6.6px);
  mask-size: 100% calc(100% - 20px), 20px 10px, 20px 10px;
  mask-position: 0 10px, 0 0, 0 100%;
  mask-repeat: no-repeat, repeat-x, repeat-x;
}

.ticket-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--room);
}
.ticket-brand .bestek { width: auto; height: 22px; }

.ticket-rows { margin: 12px 0; display: grid; gap: 8px; }
.ticket-row { display: flex; justify-content: space-between; gap: 14px; }
.ticket-row dt {
  flex: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ticket-row dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.ticket-costs {
  border-top: 2px dashed var(--room);
  padding-top: 12px;
  margin-bottom: 16px;
  display: grid;
  gap: 4px;
}
.cost-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; }
.cost-total { font-weight: 700; font-size: 1.05rem; margin-top: 6px; }
.cost-note { color: var(--groen-ok); white-space: nowrap; }

.wa-microcopy {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Track & Trace ---------- */
.orders {
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) { .orders { grid-template-columns: 1fr 1fr; } }

.order-card {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--schaduw-kaart);
}
.order-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.order-name { font-size: 1.25rem; }
.order-num { font-size: 0.9rem; font-weight: 700; color: var(--oranje-diep); }

.tt-stepper {
  list-style: none;
  display: flex;
  margin: 0 0 12px;
  padding: 0;
}
.tt-step {
  flex: 1;
  position: relative;
  text-align: center;
  padding-top: 22px;
}
.tt-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--room);
  z-index: 1;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.tt-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(-50% + 8px);
  right: calc(50% + 8px);
  height: 4px;
  border-radius: 2px;
  background: var(--room);
  transition: background-color 0.4s ease;
}
.tt-step:first-child::before { display: none; }
.tt-step.is-done .tt-dot,
.tt-step.is-done::before,
.tt-step.is-current::before { background: var(--groen-ok); }
.tt-step.is-current .tt-dot {
  background: var(--oranje);
  box-shadow: 0 0 0 4px rgba(var(--inkt-rgb), 0.08);
}
.tt-label {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.25;
}
.tt-step.is-current .tt-label { font-weight: 700; }

.order-status { font-weight: 700; }
.order-status.is-bezorgd { color: var(--groen-ok); }

.bezorger-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 14px;
  background: var(--wit);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--schaduw-kaart);
}
.bezorger-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--room);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.bezorger-line { line-height: 1.4; }
.postnl-zin {
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--room);
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ---------- Oeps, je bent geiced ---------- */
.geiced-card {
  position: relative;
  background: var(--oranje);
  background-image: var(--noise);
  border-radius: 22px;
  padding: 12px 12px 26px;
  box-shadow: var(--schaduw-kaart);
}
.geiced-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--room);
  border-radius: 16px;
  opacity: 0.85;
  pointer-events: none;
}
.geiced-foto {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 14px;
}
.geiced-card p {
  position: relative;
  margin: 18px 10px 0;
  color: var(--wit);
  font-weight: 700;
  font-size: clamp(1.19rem, 1.05rem + 0.8vw, 1.45rem);
  line-height: 1.5;
  max-width: 44em;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 20px;
  padding: 34px 16px 40px;
  background: var(--inkt);
  color: var(--room);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.footer-brand .bestek { width: 22px; height: auto; }
.footer-geldig { font-size: 0.95rem; }
.footer-link a {
  color: var(--room);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}
.footer-link a:hover { color: var(--wit); }
.footer-link a:focus-visible { outline-color: var(--room); }

/* ---------- Scroll-choreografie ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js .flow-step.is-open {
    animation: step-in 0.5s ease both;
  }
}
@keyframes step-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Confetti ---------- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* uitzondering: de entrance mag kort uitfaden i.p.v. hard verdwijnen */
  html.entrance-play .entrance-curtain {
    transition: opacity 0.25s ease !important;
  }
}

/* ---------- Desktop verfijning ---------- */
@media (min-width: 720px) {
  :root { --header-h: 56px; }
  .hero { padding: 34px 20px 54px; }
  .hero-bon { max-width: 760px; padding: 44px 40px 40px; }
  .hero-bon::before { inset: 12px; border-radius: 20px; }
  .bon-card { max-width: 560px; margin: 0 auto; padding: 24px 24px 18px; }
  .tagline { margin-bottom: 24px; }
  .section { padding: 46px 20px; }
  .flow-indicator { margin-top: 34px; font-size: 1rem; }
}
