/* ============================================================
   QR DEMO BLOK
   ============================================================ */

.lpl-app .lpl-qr-demo {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.lpl-app .lpl-qr-demo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .lpl-app .lpl-qr-demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
  }
}

/* === BORD-MOCKUP === */

.lpl-app .lpl-qr-demo-board {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;  /* genoeg ruimte voor vergrote telefoon-overlay */
}

.lpl-app .lpl-qr-board-frame {
  background: #ffffff;
  border: 6px solid #0F1B2A;
  border-radius: 16px;
  padding: 24px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow:
    0 4px 12px rgba(15, 27, 42, 0.08),
    0 16px 40px rgba(15, 27, 42, 0.12);
  position: relative;
  height: fit-content;
  transition: opacity 0.4s, filter 0.4s;
}

.lpl-app .lpl-qr-demo-board.is-scanning .lpl-qr-board-frame,
.lpl-app .lpl-qr-demo-board.is-landing .lpl-qr-board-frame {
  opacity: 0.35;
  filter: blur(2px);
}

/* Houten paal-effect onder het bord */
.lpl-app .lpl-qr-board-frame::after {
  content: "";
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 32px;
  background: linear-gradient(180deg, #8B6F47 0%, #5C4A30 100%);
  border-radius: 0 0 4px 4px;
}

.lpl-app .lpl-qr-board-header {
  text-align: center;
  margin-bottom: 16px;
}

.lpl-app .lpl-qr-board-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.lpl-app .lpl-qr-board-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.lpl-app .lpl-qr-board-name {
  font-weight: 700;
  font-size: 16px;
  color: #0F1B2A;
  letter-spacing: -0.02em;
}

.lpl-app .lpl-qr-board-tagline {
  font-size: 13px;
  color: #525C6E;
  font-weight: 500;
}

.lpl-app .lpl-qr-board-code {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 16px;
}

.lpl-app .lpl-qr-board-code img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
}

.lpl-app .lpl-qr-board-footer {
  text-align: center;
  font-size: 12px;
  color: #7D8798;
  font-weight: 500;
}

.lpl-app .lpl-qr-board-mobile-hint { display: none; }
.lpl-app .lpl-qr-board-desktop-hint { display: inline; }

@media (max-width: 768px) {
  .lpl-app .lpl-qr-board-mobile-hint { display: inline; }
  .lpl-app .lpl-qr-board-desktop-hint { display: none; }
}

/* === TELEFOON-OVERLAY === */

.lpl-app .lpl-qr-phone-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 240px;
  height: 480px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.lpl-app .lpl-qr-demo-board.is-scanning .lpl-qr-phone-overlay,
.lpl-app .lpl-qr-demo-board.is-landing .lpl-qr-phone-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

@media (max-width: 768px) {
  /* Op mobiel maakt de telefoon kleiner zodat het in de viewport past */
  .lpl-app .lpl-qr-phone-overlay {
    width: 220px;
    height: 440px;
  }
}

.lpl-app .lpl-qr-phone-frame {
  width: 100%;
  height: 100%;
  background: #0F1B2A;
  border-radius: 32px;
  border: 4px solid #0F1B2A;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(15, 27, 42, 0.4),
    0 8px 16px rgba(15, 27, 42, 0.2);
}

.lpl-app .lpl-qr-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0F1B2A;
  border-radius: 10px;
  z-index: 5;
}

.lpl-app .lpl-qr-phone-screen {
  position: absolute;
  inset: 4px;
  background: #1a1a1a;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* === SCAN VIEW (zichtbaar tijdens stap 2) === */

.lpl-app .lpl-qr-phone-camera-view {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 2;
}

.lpl-app .lpl-qr-demo-board.is-landing .lpl-qr-phone-camera-view {
  opacity: 0;
  pointer-events: none;
}

.lpl-app .lpl-qr-phone-scan-frame {
  width: 130px;
  height: 130px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}

.lpl-app .lpl-qr-phone-scan-frame::before,
.lpl-app .lpl-qr-phone-scan-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #44B7C3;
}
.lpl-app .lpl-qr-phone-scan-frame::before {
  top: -3px; left: -3px;
  border-right: none; border-bottom: none;
  border-radius: 6px 0 0 0;
}
.lpl-app .lpl-qr-phone-scan-frame::after {
  bottom: -3px; right: -3px;
  border-left: none; border-top: none;
  border-radius: 0 0 6px 0;
}

.lpl-app .lpl-qr-phone-scan-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #44B7C3, transparent);
  box-shadow: 0 0 12px rgba(68, 183, 195, 0.6);
  animation: lpl-qr-scan-line 1.6s ease-in-out infinite;
}

@keyframes lpl-qr-scan-line {
  0%, 100% { top: calc(50% - 65px); }
  50%      { top: calc(50% + 63px); }
}

/* === "CODE HERKEND" BAR === */

.lpl-app .lpl-qr-phone-detected {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1aa854;
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3;
}

.lpl-app .lpl-qr-demo-board.is-detected .lpl-qr-phone-detected {
  opacity: 1;
  transform: translateY(0);
}

.lpl-app .lpl-qr-demo-board.is-detected .lpl-qr-phone-scan-line {
  animation: none;
  opacity: 0;
}

.lpl-app .lpl-qr-demo-board.is-landing .lpl-qr-phone-detected {
  opacity: 0;
}

.lpl-app .lpl-qr-phone-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: white;
  color: #1aa854;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

/* === LANDINGSPAGINA IN DE TELEFOON === */

.lpl-app .lpl-qr-phone-landing {
  position: absolute;
  inset: 0;
  background: #f5f7fa;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lpl-app .lpl-qr-demo-board.is-landing .lpl-qr-phone-landing {
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
}

/* Browser-balkje */
.lpl-app .lpl-qr-phone-browser-bar {
  background: #f0f3f7;
  padding: 22px 12px 6px;  /* extra top voor notch */
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #525c6e;
  border-bottom: 1px solid #e1e6ee;
  flex-shrink: 0;
}

.lpl-app .lpl-qr-phone-lock {
  font-size: 9px;
  opacity: 0.6;
}

.lpl-app .lpl-qr-phone-url {
  flex: 1;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Scrollbare content */
.lpl-app .lpl-qr-phone-page {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

/* Hero, woning foto + adres overlay */
.lpl-app .lpl-qr-phone-hero {
  height: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.lpl-app .lpl-qr-phone-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 27, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 12px;
  color: white;
}

.lpl-app .lpl-qr-phone-hero-address {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.lpl-app .lpl-qr-phone-hero-meta {
  font-size: 10px;
  opacity: 0.9;
  font-weight: 500;
}

/* Adviseur-card */
.lpl-app .lpl-qr-phone-advisor {
  background: #fcfaf6;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f0eadd;
}

.lpl-app .lpl-qr-phone-advisor-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1E6FB0 0%, #44B7C3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.lpl-app .lpl-qr-phone-advisor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lpl-app .lpl-qr-phone-advisor-info {
  flex: 1;
  min-width: 0;
}

.lpl-app .lpl-qr-phone-advisor-name {
  font-size: 11px;
  font-weight: 700;
  color: #0F1B2A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lpl-app .lpl-qr-phone-advisor-title {
  font-size: 9px;
  color: #7d8798;
  font-weight: 500;
}

.lpl-app .lpl-qr-phone-wa-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25D366 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.lpl-app .lpl-qr-phone-wa-btn:hover {
  transform: scale(1.08);
}

/* Vraag boven keuzes */
.lpl-app .lpl-qr-phone-question {
  font-size: 12px;
  font-weight: 700;
  color: #0F1B2A;
  padding: 4px 12px 8px;
}

/* Drie keuzes */
.lpl-app .lpl-qr-phone-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px;
}

.lpl-app .lpl-qr-phone-choice {
  background: white;
  border: 1.5px solid #e1e6ee;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lpl-app .lpl-qr-phone-choice:hover {
  transform: translateX(2px);
}

.lpl-app .lpl-qr-phone-choice-blue {
  border-color: #1E6FB0;
  background: linear-gradient(135deg, rgba(30, 111, 176, 0.06) 0%, rgba(30, 111, 176, 0.02) 100%);
}
.lpl-app .lpl-qr-phone-choice-blue .lpl-qr-phone-choice-icon { background: #1E6FB0; }

.lpl-app .lpl-qr-phone-choice-orange {
  border-color: #d97a1a;
}
.lpl-app .lpl-qr-phone-choice-orange .lpl-qr-phone-choice-icon { background: #d97a1a; }

.lpl-app .lpl-qr-phone-choice-grey .lpl-qr-phone-choice-icon { background: #7d8798; }

.lpl-app .lpl-qr-phone-choice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.lpl-app .lpl-qr-phone-choice-text {
  flex: 1;
  min-width: 0;
}

.lpl-app .lpl-qr-phone-choice-title {
  font-size: 10px;
  font-weight: 700;
  color: #0F1B2A;
  line-height: 1.2;
}

.lpl-app .lpl-qr-phone-choice-sub {
  font-size: 9px;
  color: #7d8798;
  margin-top: 1px;
}

.lpl-app .lpl-qr-phone-choice-arrow {
  font-size: 12px;
  color: #b0b8c4;
  font-weight: 700;
  flex-shrink: 0;
}

.lpl-app .lpl-qr-phone-footer-note {
  font-size: 9px;
  color: #7d8798;
  text-align: center;
  padding: 6px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* === STAPPEN === */

.lpl-app .lpl-qr-demo-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.lpl-app .lpl-qr-demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lpl-app .lpl-qr-demo-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  transition: background-color 0.4s, transform 0.4s;
}

.lpl-app .lpl-qr-demo-step.is-active {
  background: linear-gradient(135deg, rgba(68, 183, 195, 0.08) 0%, rgba(68, 183, 195, 0.02) 100%);
  transform: translateX(6px);
}

.lpl-app .lpl-qr-demo-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E8F1F9;
  color: #1E6FB0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.lpl-app .lpl-qr-demo-step.is-active .lpl-qr-demo-step-num {
  background: linear-gradient(135deg, #44B7C3 0%, #1E6FB0 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(30, 111, 176, 0.3);
}

.lpl-app .lpl-qr-demo-step-text h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #0F1B2A;
  line-height: 1.3;
}

.lpl-app .lpl-qr-demo-step-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #525C6E;
}

/* === PLAY KNOP === */

.lpl-app .lpl-qr-demo-play {
  align-self: flex-start;
  font-size: 15px;
  padding: 12px 24px;
}

@media (max-width: 768px) {
  .lpl-app .lpl-qr-demo-play {
    align-self: center;
    width: 100%;
    max-width: 280px;
  }
}

.lpl-app .lpl-qr-demo-play.is-playing {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Stap 4: creditverrekening (professional-kant, white-label-veilig) ──────
   De chip blijft ingeklapt tot stap 4 actief wordt aan het einde van de
   playback. Toont de creditmutatie (Saldo 25 → bij OTD −20 → 5), gelijk aan
   de transparantie-ledger en het platform (Start-bundel 25, OTD-verbruik 20). */
.lpl-app .lpl-qr-credit-chip {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.lpl-app .lpl-qr-demo-step.is-active .lpl-qr-credit-chip {
  max-height: 160px;
  opacity: 1;
  margin-top: 14px;
}
.lpl-app .lpl-qr-credit-chip-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7d8798;
  margin-bottom: 8px;
}
.lpl-app .lpl-qr-credit-chip-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lpl-app .lpl-qr-credit-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: #E8F1F9;
  border: 1px solid #d3e3f2;
  min-width: 64px;
}
.lpl-app .lpl-qr-credit-node-k {
  font-size: 11px;
  font-weight: 600;
  color: #525c6e;
  letter-spacing: 0.01em;
}
.lpl-app .lpl-qr-credit-node-v {
  font-size: 18px;
  font-weight: 700;
  color: #0F1B2A;
  line-height: 1.2;
}
.lpl-app .lpl-qr-credit-node-otd {
  background: #fdeee6;
  border-color: #f6d6c2;
}
.lpl-app .lpl-qr-credit-node-otd .lpl-qr-credit-node-v { color: #b45309; }
.lpl-app .lpl-qr-credit-node-rest {
  background: #ffffff;
  border-color: #1E6FB0;
}
.lpl-app .lpl-qr-credit-node-rest .lpl-qr-credit-node-v { color: #1E6FB0; }
.lpl-app .lpl-qr-credit-arrow {
  color: #9aa6b6;
  font-size: 16px;
  font-weight: 700;
}
