/* Demo's in een browservenster (17 okt): /private-chat (assets/browser-demo.js) en /business (assets/business-demo.js).
   Dezelfde vorm op beide pagina's; de donkere modus staat in dark.css. */
/* Demo: een AI-chat met de melding, en Melo dat ernaast opent (assets/browser-demo.js) */
.bd { text-align: left; }
.bd-win { max-width: 1040px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: var(--cx-win); box-shadow: var(--cx-shadow); }
.bd-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--cx-side); }
.bd-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.bd-url { flex: 1; margin: 0 10px; padding: 5px 12px; border-radius: 8px; background: var(--cx-win); color: var(--muted); font-size: 12.5px; }
.bd-ext { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; transition: background .3s; }
.bd-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 460px; transition: grid-template-columns .55s var(--ease); }
.bd-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 28px; min-width: 0; }
.bd-hello { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.bd-dock { width: min(100%, 520px); display: grid; gap: 12px; }
.bd-note { padding: 14px; border-radius: 14px; background: var(--cx-win); box-shadow: 0 16px 40px -18px rgba(20, 40, 90, .35), 0 0 0 1px var(--line); font-size: 14px; transition: opacity .3s, transform .35s var(--spring); }
.bd-note .t { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.bd-note p { margin: 6px 0 12px; color: var(--muted); }
.bd-note .bs { display: flex; gap: 8px; }
.bd-note .bs span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 10px; background: var(--soft); font-weight: 500; transition: transform .12s; }
.bd-note .bs .melo { background: var(--ink); color: var(--bg); }
.bd-input { display: flex; align-items: center; min-height: 52px; padding: 12px 18px; border-radius: 26px; background: var(--cx-win); box-shadow: 0 0 0 1px var(--line), 0 6px 18px -10px rgba(0, 0, 0, .2); font-size: 15px; }
.bd-caret { display: inline-block; width: 2px; height: 18px; margin-left: 1px; background: var(--ink); opacity: 0; }
.bd-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-left: 1px solid var(--line); background: var(--cx-win); }
.bd-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bd-ph .l { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bd-thread { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.bd-thread .cx-u, .bd-thread .cx-a { font-size: 14.5px; }
.bd-dots { display: none; gap: 5px; margin: 0; }
.bd-dots i { width: 7px; height: 7px; border-radius: 50%; background: #4fc3e8; animation: bdDot 1s infinite; }
.bd-dots i:nth-child(2) { animation-delay: .15s; } .bd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bdDot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.bd-pc { margin: 0 14px 14px; padding: 11px 14px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; }
.bd-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; fill: var(--ink); stroke: var(--bg); stroke-width: 1.4; opacity: 0; pointer-events: none;
  transition: transform .9s var(--ease), opacity .25s; }
/* Het script speelt de stappen af: dicht → typen → melding → klik → Melo ernaast */
.bd-run .bd-body { grid-template-columns: minmax(0, 1fr) 0; }
.bd-run .bd-note { opacity: 0; transform: translateY(10px) scale(.98); }
.bd-run.s-note .bd-note { opacity: 1; transform: none; }
.bd-run.s-type .bd-caret { opacity: 1; animation: bdBlink 1s steps(1) infinite; }
@keyframes bdBlink { 50% { opacity: 0; } }
.bd-run.s-cursor .bd-cursor { opacity: 1; }
.bd-run.s-press .bd-note .bs .melo { transform: scale(.94); }
.bd-run.s-open .bd-body { grid-template-columns: minmax(0, 1fr) 360px; }
.bd-run.s-open .bd-ext { background: var(--soft); }
.bd-run .bd-thread > * { opacity: 0; transition: opacity .3s; }
.bd-run.s-q .bd-thread .cx-u { opacity: 1; }
.bd-run.s-think .bd-dots { display: flex; opacity: 1; }
.bd-run.s-a .bd-thread .cx-a { opacity: 1; }
@media (max-width: 760px) {
  .bd-body, .bd-run.s-open .bd-body { grid-template-columns: minmax(0, 1fr); height: 420px; }
  .bd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 86%; box-shadow: -18px 0 40px -24px rgba(0, 0, 0, .4); transition: transform .5s var(--ease); }
  .bd-run .bd-panel { transform: translateX(105%); }
  .bd-run.s-open .bd-panel { transform: none; }
  .bd-hello { font-size: 21px; }
  .bd-url { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bd-body, .bd-note, .bd-cursor, .bd-panel { transition: none; } }

/* Business: plaatshouders in plaats van klantgegevens, en terug in het antwoord */
.bz .bd-body, .bd-run.bz .bd-body, .bd-run.bz.s-open .bd-body { grid-template-columns: minmax(0, 1fr); }
.bz-chat { width: min(100%, 600px); display: flex; flex-direction: column; gap: 14px; }
.bz-msg { align-self: flex-end; max-width: 88%; padding: 10px 16px; border-radius: 20px; background: var(--soft); font-size: 15px; line-height: 1.55; }
.bz-lbl { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.bz-ans { margin: 0; font-size: 15px; line-height: 1.6; }
.bz-ans b { font-weight: 600; }
.ph { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--ph-bg); color: var(--action); font: 600 .9em/1.6 var(--mono); }
.bz-real { padding: 0 4px; border-radius: 5px; background: var(--green-bg); color: inherit; transition: background 1.2s; }
.bz-hit { border-bottom: 2px solid #f5a524; }
.bz-badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 11px; border-radius: 999px; background: var(--cx-win); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; transition: opacity .3s, transform .35s var(--spring); }
.bd-run .bz-badge { opacity: 0; transform: translateY(6px); }
.bd-run.s-mask .bz-badge { opacity: 1; transform: none; }
.bd-run .bz-chat > * { transition: opacity .35s; }
.bd-run:not(.s-sent) .bz-msg, .bd-run:not(.s-sent) .bz-ans { display: none; }
.bd-run.s-sent .bd-hello { display: none; }

/* /business: de kop in het midden, de demo eronder (Lucas 17 okt) */
.cx-bhero.bz-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-bottom: 0; }
.bz-hero h1 { max-width: 15em; margin: 0 auto; }
.bz-hero .cx-ctas { justify-content: center; }
.bz-demo-sec { max-width: var(--wide); margin: 0 auto; padding: 48px var(--gutter) 0; }
