/* ============================================================
   Gasterij Kasteel Terborgh | app-demo
   Stijl: Editorial Luxury. Kasteelgroen, warm creme, messing.
   ============================================================ */

:root {
  --cream: #F5EFE3;
  --cream-2: #EDE5D3;
  --paper: #FBF8F1;
  --ink: #27221A;
  --ink-soft: #6B6357;
  --green: #22382C;
  --green-deep: #1B2D23;
  --green-soft: #33503F;
  --brass: #A8894E;
  --brass-soft: #C8AE79;
  --line: rgba(39, 34, 26, 0.08);
  --line-strong: rgba(39, 34, 26, 0.14);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-soft: 0 24px 48px -24px rgba(39, 34, 26, 0.18);
  --radius: 1.7rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
svg { display: block; }

/* ---------- Stage: mobiel = volledig scherm, desktop = telefoon in frame ---------- */

.stage { min-height: 100dvh; }

.pitch { display: none; }

.device { min-height: 100dvh; }

.phone {
  position: relative;
  min-height: 100dvh;
  background: var(--cream);
  overflow: hidden;
}

.app {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

@media (min-width: 1100px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 3rem;
    min-height: 100vh;
  }
  .pitch { display: block; }
  .pitch-inner { max-width: 480px; margin-left: auto; padding-right: 1rem; }
  .pitch-title {
    font-size: clamp(2.4rem, 3.2vw, 3.2rem);
    margin: 1.1rem 0 1.2rem;
  }
  .pitch-title em { font-style: italic; color: var(--green); }
  .pitch-lead { color: var(--ink-soft); line-height: 1.65; font-size: 1.02rem; }
  .pitch-points { margin-top: 2.2rem; display: grid; gap: 1.05rem; }
  .pitch-point {
    display: flex; align-items: center; gap: 1rem;
  }
  .pitch-point strong { display: block; font-weight: 600; font-size: 0.95rem; }
  .pitch-point span:last-child { display: block; color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.1rem; }
  .pitch-note {
    margin-top: 2.4rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6;
    border-top: 1px solid var(--line); padding-top: 1.4rem;
  }
  .pitch-sign { margin-top: 0.9rem; font-size: 0.78rem; color: var(--brass); letter-spacing: 0.02em; }

  .device { display: flex; justify-content: center; min-height: auto; }
  .phone {
    width: 400px;
    min-height: auto;
    height: 820px;
    max-height: calc(100vh - 6rem);
    border-radius: 3.4rem;
    border: 1px solid rgba(39,34,26,0.12);
    box-shadow:
      0 0 0 11px #221F19,
      0 0 0 12.5px rgba(255,255,255,0.14),
      0 60px 120px -40px rgba(39, 34, 26, 0.5);
  }
  .app { height: 100%; }
}

.pp-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green);
}
.pp-ico svg { width: 21px; height: 21px; }

/* ---------- Korrel ---------- */

.grain {
  position: absolute; inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Splash ---------- */

.splash {
  position: absolute; inset: 0;
  z-index: 80;
  background: linear-gradient(168deg, var(--green-deep), var(--green) 55%, #2A4534);
  color: var(--cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.1rem;
  text-align: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.splash.is-done { opacity: 0; visibility: hidden; }
.splash-seal { width: 108px; height: 108px; color: var(--brass-soft); animation: sealIn 1.1s var(--ease) both; }
.splash-seal svg { width: 100%; height: 100%; }
.splash-name {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  line-height: 1.15;
  animation: riseIn 0.9s var(--ease) 0.15s both;
}
.splash-sub {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.24em;
  color: rgba(245, 239, 227, 0.66);
  animation: riseIn 0.9s var(--ease) 0.3s both;
}
@keyframes sealIn { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Schermen ---------- */

.screens { position: absolute; inset: 0; z-index: 1; }

.screen {
  position: absolute; inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1.15rem calc(env(safe-area-inset-bottom, 0px) + 7.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.screen::-webkit-scrollbar { display: none; }

/* ---------- Topbar ---------- */

.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.topbar h2 { font-size: 1.85rem; margin-top: 0.3rem; }
.top-greet { font-size: 1.85rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(168, 137, 78, 0.35);
  border-radius: 999px;
  background: rgba(168, 137, 78, 0.07);
}
.eyebrow-light {
  color: var(--brass-soft);
  border-color: rgba(200, 174, 121, 0.4);
  background: rgba(200, 174, 121, 0.1);
}

.status-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  margin-top: 0.2rem;
}
.status-chip i {
  width: 7px; height: 7px; border-radius: 999px;
  background: #4C8A5F;
  box-shadow: 0 0 0 3px rgba(76, 138, 95, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
.status-chip.is-closed i { background: #B0654A; box-shadow: 0 0 0 3px rgba(176, 101, 74, 0.16); animation: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

/* ---------- Kaarten: double-bezel ---------- */

.card-shell {
  padding: 0.4rem;
  border-radius: var(--radius);
  background: rgba(39, 34, 26, 0.045);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.card-core {
  border-radius: calc(var(--radius) - 0.4rem);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), var(--shadow-soft);
  padding: 1.35rem 1.25rem;
}

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

.hero { margin-bottom: 1.1rem; }
.hero-core {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 58%, #2E4A38 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), var(--shadow-soft);
  color: var(--cream);
  padding: 1.7rem 1.4rem 1.6rem;
}
.hero-castle {
  position: absolute;
  right: -34px; top: -6px;
  width: 210px;
  color: rgba(200, 174, 121, 0.28);
  pointer-events: none;
}
.hero-title { font-size: 1.62rem; margin: 0.85rem 0 0.55rem; }
.hero-sub { font-size: 0.85rem; color: rgba(245, 239, 227, 0.72); margin-bottom: 1.25rem; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.7rem 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-orb {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn-orb { transform: translate(2px, -1px) scale(1.05); }
.btn-orb svg { width: 16px; height: 16px; }

.btn-light { background: var(--cream); color: var(--green-deep); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.btn-light .btn-orb { background: rgba(34, 56, 44, 0.1); color: var(--green-deep); }

.btn-primary { background: var(--green); color: var(--cream); box-shadow: 0 18px 34px -16px rgba(27, 45, 35, 0.55); }
.btn-primary .btn-orb { background: rgba(245, 239, 227, 0.14); color: var(--brass-soft); }

.btn-ghost {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding-left: 0.7rem;
}
.btn-ghost .btn-orb { background: rgba(39, 34, 26, 0.06); color: var(--green); }

.btn-wide { width: 100%; justify-content: space-between; margin-bottom: 0.7rem; }
.btn-wide.btn-ghost { justify-content: flex-start; }

/* ---------- Sneltegels ---------- */

.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.quick-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 0.95rem 0.2rem 0.8rem;
  border-radius: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 0.68rem; font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: transform 0.45s var(--ease);
}
.quick-tile:active { transform: scale(0.95); }
.quick-tile > span { color: var(--green); }
.quick-tile > span svg { width: 21px; height: 21px; }

/* ---------- Vandaag ---------- */

.today-head h4 { font-size: 1.15rem; margin-top: 0.5rem; }
.today-rows { margin-top: 0.9rem; display: grid; gap: 0; }
.today-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.today-row:first-child { border-top: 0; padding-top: 0; }
.today-row b { font-weight: 600; }
.today-row span { color: var(--ink-soft); }

/* ---------- Vlaai-kaart ---------- */

.vlaai-card { cursor: pointer; }
.vlaai-core {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(150deg, #F3E9D3, #EBDDBE);
}
.vlaai-txt h4 { font-size: 1.15rem; margin: 0.5rem 0 0.35rem; }
.vlaai-txt p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.5rem; }
.vlaai-ico { color: var(--brass); flex: 0 0 auto; }
.vlaai-ico svg { width: 52px; height: 52px; }

.link-more {
  font-size: 0.8rem; font-weight: 700; color: var(--green);
  border-bottom: 1px solid rgba(34, 56, 44, 0.3);
  padding-bottom: 0.1rem;
}

/* ---------- Sectiekoppen ---------- */

.sect-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 1.5rem 0.15rem 0.9rem;
}
.sect-head.tight { margin: 0 0 0.4rem; }
.sect-head h4 { font-size: 1.2rem; margin-top: 0.45rem; }

/* ---------- Agenda strip (home) ---------- */

.agenda-strip {
  display: flex; gap: 0.7rem;
  overflow-x: auto;
  margin: 0 -1.15rem 1.1rem;
  padding: 0.2rem 1.15rem 0.6rem;
  scroll-snap-type: x mandatory;
}
.agenda-strip::-webkit-scrollbar { display: none; }
.strip-card {
  flex: 0 0 218px;
  scroll-snap-align: start;
  border-radius: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.05rem 1.05rem 1rem;
  text-align: left;
  transition: transform 0.45s var(--ease);
}
.strip-card:active { transform: scale(0.97); }
.strip-date {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--brass);
}
.strip-card h5 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 1.02rem; line-height: 1.25;
  margin: 0.45rem 0 0.4rem;
}
.strip-card p { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Pas teaser ---------- */

.pas-teaser { cursor: pointer; }
.pas-teaser-core {
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  background: linear-gradient(155deg, var(--green-deep), var(--green));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}
.pas-teaser-core h4 { font-size: 1.08rem; margin: 0.55rem 0 0.7rem; font-weight: 400; }
.pas-teaser-core h4 b { color: var(--brass-soft); font-weight: 600; }
.mini-stamps { display: flex; gap: 0.35rem; }
.mini-stamp {
  width: 12px; height: 12px; border-radius: 999px;
  border: 1px solid rgba(200, 174, 121, 0.5);
}
.mini-stamp.is-full { background: var(--brass-soft); border-color: var(--brass-soft); }
.pas-arrow {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(245, 239, 227, 0.12);
  color: var(--brass-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.pas-arrow svg { width: 17px; height: 17px; }

/* ---------- Landgoed ---------- */

.estate { display: grid; gap: 0.7rem; margin-bottom: 1.1rem; }
.estate-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 0.45s var(--ease);
}
.estate-row:active { transform: scale(0.98); }
.estate-row strong { display: block; font-size: 0.92rem; font-weight: 600; }
.estate-row p { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.45; margin-top: 0.15rem; }

/* ---------- Contact ---------- */

.contact-core h4 { font-size: 1.15rem; margin: 0.5rem 0 0.4rem; }
.contact-adres { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 1rem; }
.contact-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.demo-note {
  margin-top: 1.1rem;
  font-size: 0.7rem; color: var(--ink-soft); opacity: 0.75;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.demo-note.center { text-align: center; border: 0; }

/* ---------- Menukaart ---------- */

.chips {
  position: sticky; top: -0.5rem;
  z-index: 10;
  display: flex; gap: 0.45rem;
  overflow-x: auto;
  margin: 0 -1.15rem 1.2rem;
  padding: 0.6rem 1.15rem;
  background: linear-gradient(var(--cream) 78%, rgba(245, 239, 227, 0));
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.chip:active { transform: scale(0.95); }
.chip.is-on { background: var(--green); border-color: var(--green); color: var(--cream); }

.menu-sect { margin-bottom: 1.6rem; }
.menu-sect-head { display: flex; align-items: center; gap: 0.8rem; margin: 0 0.15rem 0.8rem; }
.menu-sect-ico {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-sect-ico svg { width: 20px; height: 20px; }
.menu-sect-head h3 { font-size: 1.3rem; }
.menu-sect-head p { font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.15rem; }

.menu-items {
  border-radius: var(--radius);
  background: rgba(39, 34, 26, 0.045);
  border: 1px solid var(--line);
  padding: 0.4rem;
}
.menu-items-core {
  border-radius: calc(var(--radius) - 0.4rem);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), var(--shadow-soft);
  overflow: hidden;
}
.menu-item {
  width: 100%;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 0.35s var(--ease);
}
.menu-item:first-child { border-top: 0; }
.menu-item:active { background: rgba(39, 34, 26, 0.03); }
.mi-name { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.mi-tip {
  font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brass);
  border: 1px solid rgba(168, 137, 78, 0.4);
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
}
.mi-info { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.45; margin-top: 0.2rem; }
.mi-price { font-size: 0.88rem; font-weight: 600; white-space: nowrap; color: var(--green); }
.mi-price small { font-size: 0.66rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Reserveren ---------- */

.res-steps {
  display: flex; gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.res-step {
  flex: 1 1 0; min-width: 0;
  text-align: center;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 0.55rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.6);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.res-step.is-on { background: var(--green); border-color: var(--green); color: var(--cream); }
.res-step.is-done { color: var(--green); border-color: rgba(34, 56, 44, 0.3); }

.res-pane { display: none; }
.res-pane.is-active { display: block; animation: paneIn 0.55s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.res-core { padding: 1.25rem 1.15rem; }
.field-label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.65rem; }
.field-label small { font-weight: 500; color: var(--ink-soft); }
.field-hint { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.5; margin-top: 0.8rem; }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem;
}
.step-btn {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 1.3rem; font-weight: 500;
  color: var(--green);
  transition: transform 0.4s var(--ease);
}
.step-btn:active { transform: scale(0.9); }
.step-val { text-align: center; }
.step-val b { font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 500; display: block; line-height: 1; }
.step-val span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }

.datestrip {
  display: flex; gap: 0.5rem;
  overflow-x: auto;
  margin: 0 -1.15rem;
  padding: 0.15rem 1.15rem 0.5rem;
}
.datestrip::-webkit-scrollbar { display: none; }
.day-card {
  flex: 0 0 62px;
  padding: 0.7rem 0.2rem 0.65rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  text-align: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.day-card:active { transform: scale(0.94); }
.day-card small { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.day-card b { display: block; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; margin: 0.15rem 0; }
.day-card em { display: block; font-style: normal; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.day-card.is-on { background: var(--green); border-color: var(--green); color: var(--cream); }
.day-card.is-on small, .day-card.is-on em { color: rgba(245, 239, 227, 0.7); }

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.slot {
  padding: 0.6rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font-size: 0.8rem; font-weight: 600;
  text-align: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.slot:active { transform: scale(0.93); }
.slot.is-on { background: var(--green); border-color: var(--green); color: var(--cream); }

.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem;
}
.seg-btn {
  padding: 0.55rem 0.2rem;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.seg-btn.is-on { background: var(--green); color: var(--cream); }

.form-core { display: grid; gap: 1.05rem; }
.field { display: block; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 56, 44, 0.12);
}
.field-err { display: none; font-style: normal; font-size: 0.72rem; color: #A34A2E; margin-top: 0.35rem; }
.field.has-err input { border-color: #A34A2E; }
.field.has-err .field-err { display: block; }

.res-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.res-duo .btn { justify-content: center; }

.res-done { text-align: center; padding: 1.4rem 0 1.2rem; }
.done-seal { display: inline-block; width: 74px; height: 74px; color: var(--green); }
.done-seal svg { width: 100%; height: 100%; }
.seal-ring { stroke-dasharray: 185; stroke-dashoffset: 185; animation: draw 1s var(--ease) 0.1s forwards; }
.seal-check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.7s var(--ease) 0.75s forwards; stroke: var(--brass); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.res-done h3 { font-size: 1.55rem; margin: 0.9rem 0 0.4rem; }
.res-done p { font-size: 0.86rem; color: var(--ink-soft); }

.sum-core { display: grid; gap: 0; padding: 0.6rem 1.25rem; }
.sum-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.sum-row:first-child { border-top: 0; }
.sum-row span { color: var(--ink-soft); }
.sum-row b { font-weight: 600; text-align: right; }

/* ---------- Agenda ---------- */

.screen-intro { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; margin: -0.4rem 0.15rem 1.3rem; }

.agenda-list { display: grid; gap: 0.8rem; margin-bottom: 1.3rem; }
.ev-card {
  display: flex; gap: 1rem; align-items: flex-start;
  width: 100%;
  text-align: left;
  border-radius: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
  transition: transform 0.45s var(--ease);
}
.ev-card:active { transform: scale(0.98); }
.ev-date {
  flex: 0 0 58px;
  text-align: center;
  border-radius: 1.1rem;
  background: var(--green);
  color: var(--cream);
  padding: 0.6rem 0.2rem 0.55rem;
}
.ev-date b { display: block; font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.ev-date span { display: block; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 0.25rem; color: var(--brass-soft); }
.ev-body { min-width: 0; }
.ev-tag {
  display: inline-block;
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 0.3rem;
}
.ev-body h4 { font-size: 1.08rem; line-height: 1.2; }
.ev-body p { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; margin-top: 0.35rem; }

.hotel-core {
  background: linear-gradient(155deg, var(--green-deep), var(--green));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}
.hotel-core h4 { font-size: 1.25rem; margin: 0.6rem 0 0.5rem; }
.hotel-core p { font-size: 0.84rem; color: rgba(245, 239, 227, 0.75); line-height: 1.55; margin-bottom: 1.1rem; }
.hotel-core b { color: var(--brass-soft); letter-spacing: 0.06em; }

/* ---------- Terborgh Pas ---------- */

.pass-card {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(200, 174, 121, 0.22), transparent 55%),
    linear-gradient(160deg, var(--green-deep), var(--green) 65%, #2A4433);
  border: 1px solid rgba(200, 174, 121, 0.25);
  box-shadow: 0 30px 60px -28px rgba(27, 45, 35, 0.65);
  color: var(--cream);
  padding: 1.4rem 1.3rem 1.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.pass-top { display: flex; align-items: center; gap: 0.95rem; margin-bottom: 1.3rem; }
.pass-crest { width: 54px; height: 54px; color: var(--brass-soft); flex: 0 0 auto; }
.pass-label { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(245, 239, 227, 0.6); }
.pass-name { display: block; font-family: 'Fraunces', serif; font-size: 1.45rem; margin-top: 0.2rem; }
.pass-qr {
  width: 168px; height: 168px;
  margin: 0 auto;
  border-radius: 1.2rem;
  background: var(--cream);
  padding: 12px;
}
.pass-qr svg { width: 100%; height: 100%; color: var(--green-deep); }
.pass-hint {
  display: block; text-align: center;
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(245, 239, 227, 0.55);
  margin-top: 0.9rem;
}

.stamp-core h4 { font-size: 1.15rem; margin-top: 0.5rem; }
.stamps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.1rem 0 0.2rem;
}
.stamp {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1.5px dashed rgba(39, 34, 26, 0.22);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: border-color 0.4s var(--ease);
}
.stamp svg { width: 46%; height: 46%; }
.stamp.is-full {
  border: 1.5px solid var(--green);
  background: var(--green);
  color: var(--brass-soft);
  animation: stampPop 0.55s var(--ease) both;
}
@keyframes stampPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.stamp-core .res-duo { margin-top: 1.1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

.perks-core h4 { font-size: 1.15rem; margin: 0.5rem 0 1rem; }
.perk {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.perk strong { display: block; font-size: 0.9rem; font-weight: 600; }
.perk span:last-child { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* ---------- Tabbar ---------- */

.tabbar {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 48px -18px rgba(39, 34, 26, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
  min-width: 56px;
  padding: 0.45rem 0.4rem;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tab:active { transform: scale(0.92); }
.tab small { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.tab span svg { width: 21px; height: 21px; }
.tab.is-on { color: var(--green); }
.tab-cta {
  width: 54px; height: 54px; min-width: 54px;
  margin: 0 0.2rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--brass-soft);
  box-shadow: 0 16px 30px -12px rgba(27, 45, 35, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  justify-content: center;
}
.tab-cta span svg { width: 24px; height: 24px; }
.tab-cta.is-on { color: var(--cream); }

/* ---------- Sheet ---------- */

.sheet-veil {
  position: absolute; inset: 0;
  z-index: 55;
  background: rgba(27, 34, 28, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.sheet {
  position: absolute;
  left: 0.55rem; right: 0.55rem;
  bottom: 0.55rem;
  z-index: 56;
  border-radius: 1.9rem;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -20px 60px -20px rgba(39, 34, 26, 0.4);
  padding: 0.85rem 1.35rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.6s var(--ease);
  max-height: 78%;
  overflow-y: auto;
}
.sheet::-webkit-scrollbar { display: none; }
.app.sheet-open .sheet-veil { opacity: 1; visibility: visible; }
.app.sheet-open .sheet { transform: translateY(0); }
.sheet-grip {
  display: block;
  width: 42px; height: 4px;
  border-radius: 999px;
  background: rgba(39, 34, 26, 0.16);
  margin: 0 auto 1.1rem;
}
.sheet-eyebrow { margin-bottom: 0.7rem; }
.sheet h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.sheet .sh-price { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--green); margin: 0.6rem 0 0.2rem; }
.sheet .sh-price small { font-size: 0.75rem; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink-soft); }
.sheet p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.sheet .btn { margin-top: 1.2rem; }
.sheet-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Toast ---------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6.2rem);
  transform: translate(-50%, 16px);
  z-index: 60;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 174, 121, 0.3);
  box-shadow: 0 18px 40px -14px rgba(27, 45, 35, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

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

/* ---------- Klein formaat ---------- */

@media (max-width: 380px) {
  .topbar h2, .top-greet { font-size: 1.6rem; }
  .hero-title { font-size: 1.42rem; }
  .quick { gap: 0.4rem; }
  .quick-tile { font-size: 0.62rem; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab { min-width: 48px; }
  .seg-btn { font-size: 0.66rem; }
}
