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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--terracotta); }
a:hover { color: var(--text); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 1.5px solid var(--terracotta); outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }

/* ── Podium en overgangen ── */

.stage {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

.wizard-on .screen { padding-top: 76px; }

.screen.enter-fwd { opacity: 0; transform: translateX(28px); }
.screen.enter-back { opacity: 0; transform: translateX(-28px); }
.screen.enter-fade { opacity: 0; transform: translateY(10px); }
.screen.leaving { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.screen.leave-fwd { opacity: 0; transform: translateX(-28px); }
.screen.leave-back { opacity: 0; transform: translateX(28px); }
.screen.leave-fade { opacity: 0; }

.boot { justify-content: center; }
.boot .logo-img { opacity: 0.6; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.25; } }

.grow { flex: 1 1 auto; }
.center-v { justify-content: center; }

/* ── Voortgangsbalk ── */

.wizbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(var(--bg) 70%, rgba(246, 240, 231, 0));
}
.wizbar[hidden] { display: none; }

.wizbar-back, .wizbar-spacer {
  flex: 0 0 40px;
  height: 40px;
}
.wizbar-back {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.wizbar-back:hover { background: var(--terracotta-10); }
.wizbar-back[disabled] { opacity: 0; pointer-events: none; }
.wizbar-back svg { width: 20px; height: 20px; }

.progress { position: relative; flex: 1; height: 14px; }
.progress-line, .progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  transform: translateY(-50%);
}
.progress-line { right: 0; background: var(--rule); }
.progress-fill { width: 0; background: var(--terracotta); transition: width 0.6s var(--ease); }
.progress-diamond {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: var(--terracotta);
  transform: translateY(-50%) rotate(45deg);
  transition: left 0.6s var(--ease);
}

/* ── Typografie ── */

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--track-l);
  padding-left: var(--track-l);
  text-transform: uppercase;
  color: var(--terracotta);
  line-height: 1.3;
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--track-s);
  padding-left: var(--track-s);
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.3;
}

.names {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 13vw, 56px);
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.005em;
}
.names .en {
  display: block;
  margin: 4px 0;
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  color: var(--terracotta);
}
.names.inline .en { display: inline; margin: 0 0.18em; }

.question {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.12;
  color: var(--text);
  text-wrap: balance;
}

.lede {
  margin: 14px 0 0;
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-2);
  text-wrap: balance;
  max-width: 340px;
}

.small {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-3);
}

.date-caps {
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: var(--track-s);
  padding-left: var(--track-s);
  text-transform: uppercase;
  color: var(--text);
}
.venue-italic {
  margin-top: 8px;
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
  color: var(--detail);
}

/* ── Scheiding: lijn, ruitje, lijn ── */

.divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px auto;
}
.divider::before, .divider::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--rule);
}
.divider span {
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  transform: rotate(45deg);
}
.diamond {
  width: 5px;
  height: 5px;
  margin: 22px auto;
  background: var(--terracotta);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Logo en boog ── */

.logo { display: flex; flex-direction: column; align-items: center; }
.logo-img { width: 56px; height: auto; }
.logo-ql {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
}
.logo-ql i { font-weight: 400; color: var(--terracotta); padding: 0 3px; }
.logo.large .logo-img { width: 76px; }
.logo.large .logo-ql { font-size: 21px; }

.arch-wrap {
  position: relative;
  width: min(62vw, 250px);
  aspect-ratio: 73 / 82;
  margin: 26px auto 0;
}
.arch {
  width: 100%;
  height: 100%;
  border: 1px solid var(--terracotta);
  border-radius: 999px 999px 6px 6px;
  padding: 6px;
}
.arch-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 3px 3px;
  overflow: hidden;
  background: linear-gradient(180deg, #C9D5DA 0%, #E3E6E2 30%, #F7F1E8 62%);
}
.arch-inner img {
  position: absolute;
  left: -4%;
  bottom: 6px;
  width: 108%;
  height: auto;
  mix-blend-mode: multiply;
}
.arch-sprigs {
  position: absolute;
  left: -27.3%;
  bottom: -1.3%;
  width: 154.5%;
  height: 83.7%;
  pointer-events: none;
}

.sprig { width: 92px; height: 31px; margin: 0 auto 14px; }

/* ── Knoppen ── */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta);
  color: #FBF7F1;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: var(--track-xs);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--terracotta-dk); color: #FBF7F1; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--terracotta); }
.btn.ghost:hover { background: var(--terracotta-10); color: var(--terracotta-dk); }
.btn.quiet {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: var(--text-3);
}
.btn.quiet:hover { color: var(--text); background: transparent; }
.btn.small { min-height: 40px; padding: 9px 16px; font-size: 11px; }
.btn svg { width: 16px; height: 16px; }

.link {
  border: 0;
  background: none;
  padding: 6px 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--track-xs);
  text-transform: uppercase;
  color: var(--terracotta);
  cursor: pointer;
}
.link:hover { color: var(--text); }

/* ── Keuzes ── */

.choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  margin-top: 34px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--terracotta); }
.choice:active { transform: scale(0.985); }
.choice[aria-pressed="true"] {
  border-color: var(--terracotta);
  background: var(--terracotta-10);
  box-shadow: inset 0 0 0 1px var(--terracotta);
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-top: 34px;
}
.meal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px 6px 18px;
  aspect-ratio: 73 / 100;
  border: 1px solid var(--rule);
  border-radius: 999px 999px 10px 10px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.meal svg { width: 62%; height: auto; aspect-ratio: 1; margin: auto 0; transition: transform 0.4s var(--ease); }
.meal:hover { border-color: var(--terracotta); }
.meal:hover svg { transform: translateY(-3px); }
.meal[aria-pressed="true"] {
  border-color: var(--terracotta);
  background: var(--terracotta-10);
  box-shadow: inset 0 0 0 1px var(--terracotta);
}
.meal[aria-pressed="true"] svg { transform: scale(1.06); }
.meal-name {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 380px;
  margin-top: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip svg { width: 0; height: 14px; transition: width 0.2s; }
.chip[aria-pressed="true"] { border-color: var(--terracotta); background: var(--terracotta); color: #FBF7F1; }
.chip[aria-pressed="true"] svg { width: 14px; }

.toggle-list { width: 100%; max-width: 340px; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
.toggle-row .who { font-size: 21px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.seg button {
  border: 0;
  padding: 8px 14px;
  background: none;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--terracotta); color: #FBF7F1; }

/* ── Invoervelden ── */

.field { width: 100%; max-width: 340px; margin-top: 30px; text-align: left; }
.field label { display: block; margin-bottom: 4px; }
.input, .textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  padding: 10px 2px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  transition: border-color 0.2s;
}
.input { text-align: center; }
.input::placeholder, .textarea::placeholder { color: var(--botanic); font-style: italic; opacity: 1; }
.input:focus, .textarea:focus { outline: none; border-bottom-color: var(--terracotta); }
.textarea {
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  font-size: 20px;
  line-height: 1.35;
  resize: vertical;
}
.textarea:focus { border-color: var(--terracotta); }

.hint { margin-top: 10px; font-size: 16px; font-style: italic; color: var(--text-3); text-align: center; }
.error-msg { margin-top: 14px; font-size: 18px; font-style: italic; color: var(--error); text-wrap: balance; }

.reveal { animation: reveal 0.5s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

/* ── Kaartjes ── */

.note {
  width: 100%;
  max-width: 360px;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

.match-list { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 18px; }

.contact-cards { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 360px; margin-top: 22px; }
.contact {
  padding: 20px 18px 18px;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--paper);
}
.contact-name { font-size: 24px; font-weight: 500; line-height: 1.1; }
.contact-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ── Samenvatting ── */

.summary { width: 100%; max-width: 380px; margin-top: 26px; text-align: left; }
.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--rule-soft);
}
.summary-row:first-child { border-top: 1px solid var(--rule-soft); }
.summary-row .label { padding-left: 0; display: block; margin-bottom: 3px; }
.summary-value { font-size: 20px; line-height: 1.3; color: var(--text); }
.summary-value .muted { color: var(--text-3); font-style: italic; }
.summary-row .link { flex-shrink: 0; margin-top: 2px; }

/* ── Informatie ── */

.home-head { margin-bottom: 4px; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.countdown b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown span {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: var(--track-xs);
  text-transform: uppercase;
  color: var(--text-3);
}

.status {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}
.status:hover { border-color: var(--terracotta); }
.status-icon {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta-10);
  color: var(--terracotta);
}
.status-icon svg { width: 16px; height: 16px; }
.status-text { flex: 1; font-size: 19px; line-height: 1.25; }
.status-text small { display: block; font-size: 15px; font-style: italic; color: var(--text-3); }
.status > svg { width: 16px; height: 16px; color: var(--text-3); }

.menu { width: 100%; max-width: 380px; margin-top: 22px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 4px;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  background: none;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:first-child { border-top: 1px solid var(--rule-soft); }
.menu-item .mi-text { flex: 1; }
.menu-item .mi-title {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: var(--track-s);
  text-transform: uppercase;
}
.menu-item .mi-sub { display: block; margin-top: 3px; font-size: 17px; font-style: italic; color: var(--text-3); line-height: 1.25; }
.menu-item > svg { width: 16px; height: 16px; color: var(--botanic); transition: transform 0.2s; }
.menu-item:hover > svg { transform: translateX(3px); color: var(--terracotta); }

.section-head { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.back-top {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -16px 0 22px -8px;
  padding: 8px;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--track-xs);
  text-transform: uppercase;
  color: var(--text-3);
  cursor: pointer;
}
.back-top svg { width: 16px; height: 16px; }
.back-top:hover { color: var(--terracotta); }

.timeline { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.tl-item { display: flex; flex-direction: column; align-items: center; }
.tl-time {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: var(--track-s);
  padding-left: var(--track-s);
  color: var(--text-2);
  line-height: 1;
}
.tl-label { margin-top: 5px; font-style: italic; font-size: 25px; line-height: 1.05; }
.tl-sep { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 9px 0; }
.tl-sep i { display: block; width: 1px; height: 11px; background: var(--terracotta); opacity: 0.7; }
.tl-sep b { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--terracotta); }

.info-block { width: 100%; max-width: 360px; }
.info-block + .info-block { margin-top: 4px; }
.info-block p { margin: 6px 0 0; }
.big-italic { font-style: italic; font-size: 30px; line-height: 1.1; color: var(--detail); margin-top: 8px; }
.addr-caps {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.placeholder { color: var(--text-3); font-style: italic; }
.inspo { list-style: none; padding: 0; margin: 14px 0 0; }
.inspo li { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.inspo li:last-child { border-bottom: 0; }
.inspo .label { display: block; padding-left: 0; margin-bottom: 2px; }

.gift-drawing { width: min(80vw, 300px); height: auto; aspect-ratio: 3 / 1; margin: 26px auto 0; overflow: visible; }

.privacy-note {
  max-width: 330px;
  margin-top: auto;
  padding-top: 36px;
  font-size: 15px;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-3);
  text-wrap: balance;
}

.twig-corner { width: 34px; height: 34px; margin: 28px auto 0; opacity: 0.9; }

.banner {
  width: 100%;
  max-width: 380px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--terracotta-10);
  font-size: 17px;
  font-style: italic;
  color: var(--text-2);
}

/* ── Feestelijk moment: dwarrelende olijfblaadjes ── */

.leaves { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.leaves svg {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 30px;
  animation: fall linear forwards;
}
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--r0)); opacity: 0; }
  10%  { opacity: 1; }
  30%  { transform: translate3d(var(--sway), 30vh, 0) rotate(calc(var(--r0) + 70deg)); }
  60%  { transform: translate3d(calc(var(--sway) * -0.6), 62vh, 0) rotate(calc(var(--r0) + 150deg)); }
  85%  { opacity: 1; }
  100% { transform: translate3d(var(--sway), 105vh, 0) rotate(calc(var(--r0) + 230deg)); opacity: 0; }
}

.done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  animation: pop 0.7s var(--ease) both 0.15s;
}
.done-mark svg { width: 26px; height: 26px; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }

@media (min-width: 520px) {
  .screen { padding-top: 64px; }
  .wizard-on .screen { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .leaves { display: none; }
}
