/* ==========================================================================
   Just Design Loops — Interactieve Verkoopdemo Stijlen (css/demo.css)
   Exclusief Laag 2 semantische tokens (tokens.css).
   Zero hardcoded colors (#/rgb), zero inline pixels in component rules.
   Ondersteunt Emil Kowalski motion physics, Rauno Freiberg ergonomics,
   en The Kitchen skeuomorfe diepte.
   ========================================================================== */

/* ---------- 1. Demo Hero & Layout Grid ---------- */
.demo-pagina {
  padding-top: calc(var(--ruimte-l) + 64px);
  padding-bottom: var(--ruimte-sectie);
  min-height: 100vh;
}

.demo-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--rand-gutter);
}

.demo-header {
  margin-bottom: var(--ruimte-l);
  text-align: left;
}

.demo-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-xs);
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--ruimte-s);
}

.demo-breadcrumb a {
  color: var(--kleur-tekst-zacht);
  text-decoration: none;
  transition: color var(--duur-micro) var(--ease-uit);
}

.demo-breadcrumb a:hover {
  color: var(--kleur-tekst);
}

.demo-titel {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--kleur-tekst);
  margin-bottom: var(--ruimte-s);
}

.demo-lead {
  font-size: var(--tekst-m);
  color: var(--kleur-tekst-zacht);
  max-width: 58ch;
  line-height: 1.5;
}

.demo-lead strong {
  color: var(--kleur-tekst);
}

/* Hoofdgrid: Podium links / Console rechts */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--ruimte-l);
  align-items: start;
}

@media (max-width: 960px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: var(--ruimte-m);
  }
}

/* ---------- 2. Het Interactieve Podium ---------- */
.demo-podium-kaart {
  background: var(--kleur-vlak);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-l);
  padding: var(--ruimte-l);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.demo-podium-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-s);
  margin-bottom: var(--ruimte-m);
  padding-bottom: var(--ruimte-s);
  border-bottom: var(--rand-dikte) solid var(--kleur-rand);
}

.demo-fase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-xs);
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-fase-stip {
  width: var(--ruimte-xxs);
  height: var(--ruimte-xxs);
  border-radius: var(--radius-rond);
  background: var(--kleur-stip);
  display: inline-block;
}

.demo-voortgang-spoor {
  display: flex;
  align-items: center;
  gap: var(--ruimte-xs);
}

.demo-spoor-stap {
  width: var(--ruimte-m);
  height: var(--rand-dikte-dik);
  background: var(--kleur-rand);
  border-radius: var(--radius-rond);
  transition: background-color var(--duur-in) var(--ease-uit);
}

.demo-spoor-stap.actief {
  background: var(--accent);
}

.demo-spoor-stap.klaar {
  background: var(--kleur-succes);
}

/* Stage Arena */
.demo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  position: relative;
}

/* ---------- 3. Fase 0: De Fysieke NFC-Kaart ---------- */
.fase-nfc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ruimte-m);
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: fadeIn var(--duur-in) var(--ease-uit);
}

.fase-nfc-container[hidden] {
  display: none !important;
}

/* 3D Tactile NFC Card */
.nfc-kaart-perspectief {
  perspective: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.nfc-kaart-3d {
  width: 100%;
  max-width: 350px;
  aspect-ratio: var(--p-aspect-kaart);
  background: linear-gradient(145deg, var(--kleur-vlak-2) 0%, var(--kleur-bg) 100%);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-m);
  padding: var(--ruimte-m);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--duur-in) var(--ease-uit), box-shadow var(--duur-in) var(--ease-uit);
  transform-style: preserve-3d;
}

.nfc-kaart-3d:hover {
  transform: translateY(-4px) rotateX(4deg);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nfc-kaart-3d:active,
.nfc-kaart-3d.getikt {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.nfc-kaart-3d:focus-visible {
  outline: var(--rand-dikte-zwaar) solid var(--kleur-focus);
  outline-offset: var(--rand-dikte-dik);
}

/* Antenne watermerk */
.nfc-antenne-spoel {
  position: absolute;
  inset: var(--ruimte-xs);
  border: var(--rand-dikte) dashed var(--kleur-rand);
  border-radius: var(--radius-s);
  opacity: 0.35;
  pointer-events: none;
}

.nfc-kaart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.nfc-symbool-groep {
  display: flex;
  align-items: center;
  gap: var(--ruimte-xs);
  color: var(--kleur-tekst);
}

.nfc-symbool-groep svg {
  width: var(--icoon-l);
  height: var(--icoon-m);
}

.nfc-symbool-groep svg circle {
  fill: var(--kleur-stip);
}

.nfc-golf-icoon {
  width: var(--icoon-m);
  height: var(--icoon-m);
  color: var(--accent);
}

.nfc-kaart-midden {
  position: relative;
  z-index: 2;
  text-align: left;
}

.nfc-bedrijfsnaam {
  font-family: var(--font-display);
  font-size: var(--tekst-l);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kleur-tekst);
  margin-bottom: var(--ruimte-xxs);
}

.nfc-kaart-spec {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nfc-kaart-bodem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.nfc-chip-grafiek {
  width: var(--p-tk-chip-maat);
  height: calc(var(--p-tk-chip-maat) * 0.75);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-xs);
  position: relative;
}

.nfc-chip-grafiek::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: 2px;
}

.nfc-tik-label {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* NFC Puls Golven */
.nfc-golven {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.nfc-golven span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: var(--rand-dikte-dik) solid var(--accent);
  opacity: 0;
  transform: scale(0.6);
}

.nfc-golven.actief span:nth-child(1) {
  animation: nfcGolf 0.9s cubic-bezier(0, 0.2, 0.8, 1) forwards;
}

.nfc-golven.actief span:nth-child(2) {
  animation: nfcGolf 0.9s cubic-bezier(0, 0.2, 0.8, 1) 0.2s forwards;
}

.nfc-golven.actief span:nth-child(3) {
  animation: nfcGolf 0.9s cubic-bezier(0, 0.2, 0.8, 1) 0.4s forwards;
}

@keyframes nfcGolf {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.nfc-instructie {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst-zacht);
  display: flex;
  align-items: center;
  gap: var(--ruimte-xs);
}

.nfc-toets-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  padding: 2px 6px;
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-xs);
  color: var(--kleur-tekst);
}

/* ---------- 4. De Smartphone Schil (Fasen 1, 2 en 3) ---------- */
.telefoon-schil {
  width: 100%;
  max-width: 330px;
  background: var(--kleur-bg);
  border: var(--rand-dikte-zwaar) solid var(--kleur-rand);
  border-radius: var(--p-r-telefoon);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  padding: var(--ruimte-xs);
  position: relative;
  animation: slidePhoneUp var(--duur-in) cubic-bezier(0.23, 1, 0.32, 1);
}

.telefoon-schil[hidden] {
  display: none !important;
}

@keyframes slidePhoneUp {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bovenkant telefoon: Speaker & Dynamic Island */
.telefoon-notch-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ruimte-xxs) var(--ruimte-s);
  margin-bottom: var(--ruimte-xxs);
}

.telefoon-tijd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--kleur-tekst);
}

.telefoon-island {
  width: 72px;
  height: 14px;
  background: var(--kleur-vlak-2);
  border-radius: var(--radius-rond);
}

.telefoon-icons {
  display: flex;
  gap: 4px;
  color: var(--kleur-tekst);
  font-size: 10px;
}

/* Het telefoonscherm */
.telefoon-viewport {
  background: var(--kleur-vlak);
  border-radius: calc(var(--p-r-telefoon) - 10px);
  min-height: 480px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: none;
}

.telefoon-viewport::-webkit-scrollbar {
  display: none;
}

/* ---------- 5. Scherm 1: Het Visitekaartje ---------- */
.scherm-visite {
  padding: var(--ruimte-m) var(--ruimte-s);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-m);
  animation: fadeInScreen var(--duur-in) var(--ease-uit);
}

.scherm-visite[hidden] {
  display: none !important;
}

@keyframes fadeInScreen {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.visite-header {
  text-align: center;
}

.visite-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: var(--ruimte-xs);
}

.visite-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte-dik) solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--tekst-l);
  font-weight: 700;
  color: var(--kleur-tekst);
  margin: 0 auto;
}

.visite-badge-stip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--kleur-stip);
  border: 2px solid var(--kleur-vlak);
  border-radius: 50%;
}

.visite-naam {
  font-family: var(--font-display);
  font-size: var(--tekst-m);
  font-weight: 700;
  color: var(--kleur-tekst);
  line-height: 1.2;
}

.visite-rol {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst-zacht);
  margin-top: 2px;
}

.visite-status-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kleur-succes);
  background: rgba(95, 211, 154, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-rond);
  margin-top: var(--ruimte-xs);
}

/* Visite Actieknoppen */
.visite-acties {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-xs);
}

.knop-contact-opslaan {
  width: 100%;
}

.visite-snelknoppen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ruimte-xxs);
}

.snelknop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--ruimte-xs) 4px;
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  color: var(--kleur-tekst);
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duur-micro) var(--ease-uit);
}

.snelknop:hover {
  background: var(--kleur-rand);
}

.snelknop svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Visite Bio Card */
.visite-bio-kaart {
  background: var(--kleur-vlak-2);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) var(--ruimte-s);
  border-left: 3px solid var(--accent);
}

.visite-bio-titel {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.visite-bio-tekst {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst-zacht);
  line-height: 1.4;
}

.visite-doorklik-cta {
  margin-top: var(--ruimte-xs);
}

/* ---------- 6. Scherm 2: De Reviewpagina (Google Reviews) ---------- */
.scherm-review {
  padding: var(--ruimte-m) var(--ruimte-s);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-s);
  animation: fadeInScreen var(--duur-in) var(--ease-uit);
}

.scherm-review[hidden] {
  display: none !important;
}

.review-google-badge {
  display: flex;
  align-items: center;
  gap: var(--ruimte-xs);
  font-family: var(--font-display);
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  font-weight: 700;
}

.google-g {
  font-weight: 900;
  color: #4285F4;
}

.review-kop {
  margin-top: var(--ruimte-xxs);
}

.review-titel {
  font-family: var(--font-display);
  font-size: var(--tekst-s);
  font-weight: 700;
  color: var(--kleur-tekst);
}

.review-ondertitel {
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
}

/* Interactieve Sterren Rij */
.sterren-box {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-m);
  padding: var(--ruimte-s);
  text-align: center;
}

.sterren-rij {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--ruimte-xs);
}

.ster-knop {
  background: transparent;
  border: none;
  padding: var(--ruimte-xxs) var(--ruimte-4);
  min-width: var(--raak-s);
  min-height: var(--raak-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--kleur-waarschuwing);
  touch-action: manipulation;
  transition: transform var(--duur-micro) var(--ease-uit);
}

.ster-knop svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.ster-knop:hover,
.ster-knop:focus-visible {
  transform: scale(1.2);
}

.ster-score-tekst {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  font-weight: 700;
}

/* Attributen tags */
.review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-rond);
  color: var(--kleur-tekst);
  cursor: pointer;
  transition: all var(--duur-micro) var(--ease-uit);
}

.review-chip.geselecteerd {
  background: var(--accent);
  color: var(--kleur-op-accent);
  border-color: var(--accent);
}

/* Review tekstgebied */
.review-invoer-box {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) var(--ruimte-s);
}

.review-invoer-auteur {
  font-size: 11px;
  font-weight: 700;
  color: var(--kleur-tekst);
  margin-bottom: 2px;
}

.review-invoer-tekst {
  font-size: 12px;
  color: var(--kleur-tekst-zacht);
  line-height: 1.4;
  font-style: italic;
}

/* ---------- 7. Scherm 3: Het Eigenaarsscherm (Dashboard) ---------- */
.scherm-eigenaar {
  padding: var(--ruimte-s);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-s);
  animation: fadeInScreen var(--duur-in) var(--ease-uit);
}

.scherm-eigenaar[hidden] {
  display: none !important;
}

/* Push Notificatie Banner bovenaan */
.eigenaar-push-melding {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-succes);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs);
  display: flex;
  align-items: flex-start;
  gap: var(--ruimte-xs);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  animation: dropNotification 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes dropNotification {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.push-icoon {
  width: 28px;
  height: 28px;
  background: var(--kleur-succes);
  color: var(--kleur-bg);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.push-tekst-blok {
  flex-grow: 1;
}

.push-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--kleur-tekst-zacht);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.push-titel {
  font-size: 11px;
  font-weight: 700;
  color: var(--kleur-tekst);
  line-height: 1.2;
}

/* Dashboard Metrics Grid */
.eigenaar-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-tegel {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) 4px;
  text-align: center;
}

.stat-waarde {
  font-family: var(--font-display);
  font-size: var(--tekst-s);
  font-weight: 700;
  color: var(--kleur-tekst);
}

.stat-waarde.opgetikt {
  color: var(--kleur-succes);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--kleur-tekst-zacht);
  text-transform: uppercase;
}

/* Recente Review Card */
.eigenaar-review-kaart {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) var(--ruimte-s);
  position: relative;
}

.eigenaar-badge-live {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--kleur-succes);
  background: rgba(95, 211, 154, 0.12);
  padding: 1px 6px;
  border-radius: var(--radius-rond);
  display: inline-block;
  margin-bottom: 4px;
}

.eigenaar-review-quote {
  font-size: 11px;
  color: var(--kleur-tekst);
  line-height: 1.35;
}

/* Directe Ondernemersactie */
.eigenaar-actie-box {
  background: rgba(255, 122, 87, 0.08);
  border: var(--rand-dikte) dashed var(--accent);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eigenaar-actie-titel {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.eigenaar-antwoord-sjabloon {
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
  line-height: 1.3;
  background: var(--kleur-vlak);
  padding: 6px;
  border-radius: var(--radius-xs);
}

/* ---------- 7b. 20-Seconden Snelloop Voortgangsbalk & Status ---------- */
.demo-snelloop-balk {
  width: 100%;
  margin-top: var(--ruimte-s);
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) var(--ruimte-s);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-xxs);
  animation: fadeIn var(--duur-in) var(--ease-uit);
}

.demo-snelloop-balk[hidden] {
  display: none !important;
}

.snelloop-progress-spoor {
  width: 100%;
  height: var(--p-1);
  background: var(--kleur-vlak);
  border-radius: var(--radius-rond);
  overflow: hidden;
  position: relative;
}

.snelloop-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--kleur-succes) 100%);
  border-radius: var(--radius-rond);
  transition: width 0.1s linear;
}

.snelloop-status-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-xs);
}

.snelloop-label {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.snelloop-timer {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  font-variant-numeric: tabular-nums;
}

/* ---------- 7c. Begeleidend Videoscript Ondertiteling (Stage) ---------- */
.demo-script-ondertiteling {
  width: 100%;
  margin-top: var(--ruimte-s);
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-s);
  padding: var(--ruimte-s);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-xxs);
  text-align: left;
}

.ondertiteling-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-xs);
}

.ondertiteling-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.ondertiteling-duur {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--kleur-tekst-zacht);
  background: var(--kleur-vlak);
  border: var(--rand-dikte) solid var(--kleur-rand);
  padding: 1px 6px;
  border-radius: var(--radius-rond);
}

.ondertiteling-tekst {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  line-height: 1.45;
  font-style: italic;
  margin: 0;
}

.ondertiteling-slotzin {
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
  margin: 0;
  line-height: 1.4;
}

.ondertiteling-slotzin strong {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
}

/* ---------- 8. De Verkoopgesprek Console (Rechter Rail) ---------- */
.demo-console {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-m);
}

/* Personalisatie Widget */
.console-widget {
  background: var(--kleur-vlak);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-m);
  padding: var(--ruimte-m);
}

.console-widget-titel {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--ruimte-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.naam-invoer-groep {
  display: flex;
  gap: var(--ruimte-xs);
  margin-bottom: var(--ruimte-xs);
}

.naam-invoer {
  flex-grow: 1;
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-rond);
  padding: 0 var(--ruimte-s);
  color: var(--kleur-tekst);
  font-family: var(--font-tekst);
  font-size: var(--tekst-s);
  min-height: var(--raak-s);
}

.naam-invoer:focus-visible {
  outline: var(--rand-dikte-zwaar) solid var(--kleur-focus);
}

.naam-suggesties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-xxs);
}

.suggestie-chip {
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  background: transparent;
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-rond);
  color: var(--kleur-tekst-zacht);
  padding: 2px 10px;
  cursor: pointer;
  transition: all var(--duur-micro) var(--ease-uit);
}

.suggestie-chip:hover {
  background: var(--kleur-vlak-2);
  color: var(--kleur-tekst);
  border-color: var(--kleur-tekst);
}

/* ---------- 8b. Console Modus Tabs & 3 Kernscripts ---------- */
.console-modus-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ruimte-xxs);
  margin-bottom: var(--ruimte-s);
}

.console-modus-knop {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) var(--ruimte-s);
  min-height: var(--raak-s);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: all var(--duur-micro) var(--ease-uit);
}

.console-modus-knop:hover {
  color: var(--kleur-tekst);
  border-color: var(--kleur-tekst);
}

.console-modus-knop.actief {
  background: var(--accent);
  color: var(--kleur-op-accent);
  border-color: var(--accent);
  font-weight: 700;
}

.console-paneel[hidden] {
  display: none !important;
}

/* Script Selectie Knoppen */
.script-selectie-rij {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ruimte-xxs);
  margin-bottom: var(--ruimte-s);
}

.script-knop {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) 4px;
  min-height: var(--raak-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: all var(--duur-micro) var(--ease-uit);
}

.script-knop:hover {
  color: var(--kleur-tekst);
  border-color: var(--kleur-tekst);
}

.script-knop.actief {
  background: var(--accent);
  border-color: var(--accent);
}

.script-knop.actief .script-knop-nr,
.script-knop.actief .script-knop-tekst,
.script-knop.actief .script-knop-duur {
  color: var(--kleur-op-accent);
  font-weight: 700;
}

.script-knop-nr {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  line-height: 1;
}

.script-knop-tekst {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--kleur-tekst);
  line-height: 1.15;
}

.script-knop-duur {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--kleur-tekst-zacht);
}

/* Script Detail Kaart */
.script-detail-kaart {
  background: var(--kleur-vlak-2);
  border-radius: var(--radius-s);
  border-left: 4px solid var(--accent);
  padding: var(--ruimte-m);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-s);
}

.script-meta-rij {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-xs);
  padding-bottom: var(--ruimte-xs);
  border-bottom: var(--rand-dikte) solid var(--kleur-rand);
}

.script-meta-item {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--kleur-vlak);
  padding: 2px 8px;
  border-radius: var(--radius-rond);
}

.script-sectie {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.script-voiceover-tekst {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  line-height: 1.45;
  font-style: italic;
  margin: 0;
  padding: var(--ruimte-xs);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
}

.script-choreografie-tekst {
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
  line-height: 1.4;
  margin: 0;
}

.script-sectie--slot {
  background: rgba(255, 122, 87, 0.08);
  border: var(--rand-dikte) dashed var(--accent);
  border-radius: var(--radius-xs);
  padding: var(--ruimte-xs);
}

.script-slotzin-tekst {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--kleur-tekst);
  font-weight: 700;
  margin: 0;
}

/* Stappenkiezer Navigatie */
.stappen-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ruimte-xxs);
  margin-bottom: var(--ruimte-s);
}

.stap-knop {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-s);
  padding: var(--ruimte-xs) 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
  cursor: pointer;
  text-align: center;
  transition: all var(--duur-micro) var(--ease-uit);
}

.stap-knop:hover {
  color: var(--kleur-tekst);
  border-color: var(--kleur-tekst);
}

.stap-knop.actief {
  background: var(--accent);
  color: var(--kleur-op-accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* Spiekbriefje voor Verkoper */
.spiekbrief-kaart {
  background: var(--kleur-vlak-2);
  border-radius: var(--radius-s);
  padding: var(--ruimte-m);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-s);
}

.spiekbrief-rubriek {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spiekbrief-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.spiekbrief-pitch {
  font-size: var(--tekst-s);
  color: var(--kleur-tekst);
  line-height: 1.45;
  font-weight: 600;
}

.spiekbrief-waarom {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst-zacht);
  line-height: 1.4;
}

.spiekbrief-sluitvraag {
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst);
  font-style: italic;
  padding: var(--ruimte-xs);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
}

/* Console Knoppenbalk */
.console-actiebalk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ruimte-xs);
  margin-top: var(--ruimte-s);
}

.toetsen-legenda {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--kleur-tekst-zacht);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-s);
  margin-top: var(--ruimte-xs);
  padding-top: var(--ruimte-xs);
  border-top: var(--rand-dikte) solid var(--kleur-rand);
}

.toets-item span {
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--kleur-tekst);
}

/* ---------- 9. Sluitstuk van de Lus (Onderkant) ---------- */
.lus-sluiting-sectie {
  margin-top: var(--ruimte-xl);
  text-align: center;
  background: var(--kleur-vlak);
  border: var(--rand-dikte) solid var(--kleur-rand);
  border-radius: var(--radius-l);
  padding: var(--ruimte-l);
}

.lus-sluiting-titel {
  font-family: var(--font-display);
  font-size: var(--tekst-l);
  font-weight: 700;
  color: var(--kleur-tekst);
  margin-bottom: var(--ruimte-xs);
}

.lus-sluiting-tekst {
  font-size: var(--tekst-m);
  color: var(--kleur-tekst-zacht);
  max-width: 60ch;
  margin: 0 auto var(--ruimte-m) auto;
  line-height: 1.5;
}

/* Animaties & Reduced Motion */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ---------- 9b. Cloudflare KV Status Badge & Leegte Melder ---------- */
.demo-kv-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ruimte-xs);
  padding: 3px var(--ruimte-xs);
  border-radius: var(--radius-rond);
  background: var(--kleur-vlak-2);
  border: var(--rand-dikte) solid var(--kleur-rand);
  color: var(--kleur-tekst);
  font-family: var(--font-mono);
  font-size: var(--tekst-xs);
  font-weight: 600;
  line-height: 1;
}

.demo-kv-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kleur-tekst-zacht);
  display: inline-block;
}

.demo-kv-badge[data-status="live"] .demo-kv-badge-dot {
  background: var(--kleur-succes);
  box-shadow: 0 0 6px var(--kleur-succes);
}

.demo-kv-badge[data-status="leeg"] .demo-kv-badge-dot {
  background: var(--kleur-waarschuwing);
}

.demo-kv-badge[data-status="controleren"] .demo-kv-badge-dot {
  background: var(--accent);
}

.demo-kv-leeg-melding {
  margin-top: var(--ruimte-s);
  padding: var(--ruimte-xs) var(--ruimte-s);
  background: var(--kleur-vlak);
  border: var(--rand-dikte) solid var(--kleur-waarschuwing);
  border-left-width: var(--rand-dikte-zwaar);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  gap: var(--ruimte-xs);
  font-size: var(--tekst-xs);
  color: var(--kleur-tekst-zacht);
}

.demo-kv-leeg-icoon {
  color: var(--kleur-waarschuwing);
  font-weight: 700;
  flex-shrink: 0;
}

.demo-kv-leeg-tekst {
  margin: 0;
  line-height: 1.4;
}

.demo-kv-leeg-tekst strong {
  color: var(--kleur-tekst);
}

/* ---------- 10. Mobiele Ergonomie & Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: var(--ruimte-m);
  }

  .demo-podium-kaart {
    padding: var(--ruimte-m);
  }
}

@media (max-width: 640px) {
  .demo-pagina {
    padding-top: calc(var(--ruimte-m) + 56px);
  }

  .demo-container {
    padding: 0 var(--ruimte-xs);
  }

  .demo-header {
    margin-bottom: var(--ruimte-m);
  }

  .demo-titel {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    letter-spacing: -0.025em;
  }

  .demo-lead {
    font-size: var(--tekst-s);
  }

  .demo-podium-kaart {
    padding: var(--ruimte-s) var(--ruimte-xs);
    border-radius: var(--radius-m);
  }

  .demo-stage {
    min-height: 460px;
  }

  .nfc-kaart-3d {
    max-width: 100%;
    padding: var(--ruimte-s);
  }

  .telefoon-schil {
    max-width: 100%;
    width: 100%;
    padding: var(--ruimte-xxs);
    border-radius: var(--radius-l);
  }

  .telefoon-viewport {
    min-height: 420px;
    max-height: 470px;
  }

  .console-widget {
    padding: var(--ruimte-s);
    border-radius: var(--radius-m);
  }

  .console-actiebalk {
    justify-content: stretch;
  }

  .console-actiebalk .knop {
    flex-grow: 1;
    min-height: var(--raak-s);
  }

  .script-selectie-rij {
    gap: 4px;
  }

  .script-knop {
    padding: 6px 2px;
    min-height: var(--raak-s);
  }

  .script-detail-kaart,
  .spiekbrief-kaart {
    padding: var(--ruimte-s);
  }

  .stappen-selector {
    gap: 4px;
  }

  .stap-knop {
    padding: 8px 2px;
    font-size: 10px;
    min-height: var(--raak-s);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .visite-snelknoppen {
    gap: var(--ruimte-xxs);
  }

  .snelknop {
    min-height: var(--raak-s);
    padding: var(--ruimte-xs) 2px;
  }

  .sterren-rij {
    gap: 4px;
  }

  .ster-knop {
    padding: 4px 2px;
    min-width: 40px;
  }

  .eigenaar-stats-grid {
    gap: 4px;
  }

  .stat-tegel {
    padding: var(--ruimte-xxs) 2px;
  }

  .stat-waarde {
    font-size: var(--tekst-xs);
  }

  .stat-label {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .demo-container {
    padding: 0 var(--ruimte-xxs);
  }

  .demo-podium-kaart,
  .console-widget {
    padding: var(--ruimte-xs) var(--ruimte-xxs);
  }

  .telefoon-viewport {
    min-height: 390px;
    max-height: 440px;
  }

  .demo-stage {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .nfc-kaart-3d {
    transform: none !important;
  }
}
