/* Gedeelde stijl voor de voorbeeld-demo's van Novato Digital.
   Elke demo speelt zichzelf af (Demo.run) en is ontworpen voor een 16:9-scherm (1280×720),
   maar werkt ook gewoon in een browser of op gsm. */
:root {
  --ink: #16181d;
  --ink-soft: #545b69;
  --paper: #f4f1ec;
  --card: #ffffff;
  --line: #e2ddd5;
  --accent: #6d5dfc;      /* Novato-paars voor labels en ondertitels */
  --ok: #148a52;
  --warn: #b7791f;
  --bad: #c0392b;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(22,24,29,.06), 0 18px 40px rgba(22,24,29,.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: radial-gradient(1200px 600px at 80% -10%, #ece6ff 0%, transparent 60%), var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.stage { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 22px 32px 18px; gap: 14px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tag b { color: var(--accent); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stage-title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.fict { font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 10px; }
.stage-body { display: grid; place-items: center; min-height: 0; }

.caption { justify-self: center; max-width: 900px; min-height: 44px; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 22px; font-size: 16px; font-weight: 500; text-align: center; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; }
.caption.swap { opacity: 0; transform: translateY(6px); }
.caption strong { color: #c9c1ff; }

.replay { position: fixed; right: 18px; bottom: 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; padding: 10px 18px; min-height: 44px; cursor: pointer; box-shadow: var(--shadow); }
.back { font-size: 13px; color: var(--ink-soft); }

/* Browserframe */
.browser { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f3f3f5; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ddd; display: inline-block; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { position: relative; flex: 1; overflow: hidden; background: #fff; }
.browser-view iframe { border: 0; width: 100%; height: 100%; display: block; }

/* Gsm-frame */
.phone { width: 300px; height: 610px; border-radius: 44px; background: #0f1115; padding: 12px; box-shadow: var(--shadow); position: relative; flex: none; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 999px; background: #0f1115; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; position: relative; display: flex; flex-direction: column; }
.phone-screen iframe { border: 0; width: 100%; height: 100%; }

/* Kaarten en kleine onderdelen */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #eeeaff; color: #4b3fd6; }
.chip--ok { background: #e3f5ec; color: var(--ok); }
.chip--warn { background: #fdf1dc; color: #8a5a12; }
.chip--bad { background: #fbe4e1; color: var(--bad); }
.chip--grey { background: #eef0f3; color: var(--ink-soft); }
.pop { animation: pop .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.fade { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.caret::after { content: "▍"; animation: pulse .9s steps(1) infinite; color: var(--accent); margin-left: 1px; }
.press { animation: press .35s ease; }
@keyframes press { 50% { transform: scale(.94); filter: brightness(.9); } }
.glow { box-shadow: 0 0 0 3px rgba(109,93,252,.35), var(--shadow) !important; transition: box-shadow .3s; }

@media (max-width: 900px) {
  .stage { padding: 14px; }
  .stage-title { font-size: 18px; }
  .caption { font-size: 14px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Chat in een gsm (WhatsApp-achtig, zonder merklogo's) */
.chat-top { background: #1f6f5c; color: #fff; padding: 38px 14px 10px; display: flex; align-items: center; gap: 10px; }
.chat-top .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #1f6f5c; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.chat-top b { display: block; font-size: 14px; } .chat-top small { font-size: 11.5px; opacity: .85; }
.chat-body { flex: 1; overflow: hidden; background: #efe7dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.3' fill='%23e2d8cb'/%3E%3C/svg%3E"); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-body > * { flex: none; }
.msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: pop .35s ease both; white-space: pre-line; }
.msg time { display: block; text-align: right; font-size: 10px; color: #7b7f86; margin-top: 2px; }
.msg--in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.msg--out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 3px; }
.msg--bot { background: #fff; align-self: flex-start; border-top-left-radius: 3px; border-left: 3px solid #6d5dfc; }
.msg .quick { display: grid; gap: 5px; margin-top: 7px; }
.msg .quick span { display: block; text-align: center; border: 1px solid #cfd8dc; border-radius: 8px; padding: 5px; color: #1f6f5c; font-weight: 600; font-size: 12.5px; background: #fff; }
.msg .quick span.sel { background: #1f6f5c; color: #fff; border-color: #1f6f5c; }
.typing { align-self: flex-start; background: #fff; border-radius: 10px; padding: 9px 12px; display: flex; gap: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.chat-input { display: flex; gap: 8px; padding: 8px 10px 16px; background: #f0f0f0; }
.chat-input div { flex: 1; background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; color: #7b7f86; min-height: 32px; }
.chat-input span { width: 32px; height: 32px; border-radius: 50%; background: #1f6f5c; color: #fff; display: grid; place-items: center; font-size: 14px; }
.explain { display: grid; gap: 10px; width: 380px; }
.explain .card { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; opacity: .45; transition: opacity .3s, box-shadow .3s; }
.explain .card.on { opacity: 1; box-shadow: 0 0 0 2px #cfc8ff, var(--shadow); }
.explain .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.explain b { display: block; font-size: 14px; } .explain span { font-size: 13px; color: var(--ink-soft); }
