/* Lisa v2 — Huisartspraktijk Schoot. Huisstijl: marineblauw + warm oranje (huisartsschoot.nl), rustig klinisch palet. */
:root {
  --navy: #0b1456; --navy-2: #131e66; --navy-3: #1d2a7a; --navy-ink: #0a1140;
  --navy-50: #f2f4fb; --navy-100: #e4e8f5; --navy-200: #c9d0ea;
  --amber: #d47d37; --amber-2: #bd6a27; --amber-50: #fdf5ee; --amber-200: #f2c9a4;
  --red: #c8102e; --red-50: #fdecef;
  --orange: #d9661a; --orange-50: #fdf1e7;
  --blue: #2563c9; --blue-50: #ebf2fd;
  --green: #17855a; --green-50: #e7f5ee;
  --paper: #f6f5f1; --surface: #fff; --line: #e7e6e0; --line-2: #d8d7cf;
  --ink: #161a33; --muted: #5a5f76; --faint: #8d91a5;
  --r: 18px; --r-sm: 11px;
  --sh-1: 0 1px 2px rgba(10,17,64,.05), 0 2px 8px rgba(10,17,64,.04);
  --sh-2: 0 1px 2px rgba(10,17,64,.06), 0 12px 32px -8px rgba(10,17,64,.14);
  --sh-3: 0 30px 70px -20px rgba(10,17,64,.45);
  --head: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.02em; margin: 0; }
.eyebrow { font: 700 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; cursor: pointer;
  padding: 15px 24px; font: 700 15px/1.2 var(--head); background: var(--navy); color: #fff; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amber-200); outline-offset: 3px; }
.btn svg { font-size: 18px; }
.btn.amber { background: linear-gradient(180deg, #df8a45, var(--amber)); box-shadow: 0 10px 24px -8px rgba(212,125,55,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.amber:hover { background: linear-gradient(180deg, #d98039, var(--amber-2)); }
.btn.stop { background: linear-gradient(180deg, #d8213f, var(--red)); box-shadow: 0 10px 24px -8px rgba(200,16,46,.6); }
.btn.block { width: 100%; }
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }

/* taalkeuze */
.lang { display: inline-flex; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; cursor: pointer; padding: 5px 12px; border-radius: 999px; font: 700 12px/1.2 var(--head); color: var(--muted); }
.lang button.is-on { background: var(--navy); color: #fff; }
.intro .lang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.intro .lang button { color: rgba(255,255,255,.7); }
.intro .lang button.is-on { background: #fff; color: var(--navy); }

/* ================= INTRO ================= */
.intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(900px 500px at 85% 0%, rgba(212,125,55,.22), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(80,110,220,.22), transparent 60%), linear-gradient(160deg, #0b1456, #070c36); }
body:not(.step-intro) .intro { display: none; }
.intro-card { width: min(600px, 100%); color: #fff; animation: rise .7s cubic-bezier(.2,.8,.2,1); }
.intro-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; gap: 12px; }
.intro-logo { background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: inline-flex; }
.intro-logo img { height: 62px; width: auto; display: block; }
.intro .eyebrow { color: #f2b27c; }
.intro h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin-bottom: 18px; font-weight: 800; }
.intro h2 em { font-style: normal; color: #f2b27c; }
.intro p.intro-text { color: rgba(255,255,255,.75); font-size: 17px; margin: 0 0 30px; max-width: 520px; }
.intro-btn { font-size: 17px; padding: 19px 26px; border-radius: 16px; }
.intro-note { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 13px; margin: 16px 0 0; }
.intro-ai { display: flex; gap: 12px; align-items: flex-start; margin: 32px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.intro-ai svg { font-size: 18px; margin-top: 1px; color: #f2b27c; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ================= HEADER ================= */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 44px); background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { height: 52px; width: auto; display: block; }
.brand-div { width: 1px; height: 34px; background: var(--line-2); }
.brand span { font: 700 15px/1.2 var(--head); }
.brand small { display: block; font: 500 12px/1.3 var(--body); color: var(--muted); margin-top: 2px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px/1 var(--head); color: var(--navy); background: var(--amber-50); border: 1px solid var(--amber-200); padding: 7px 11px; border-radius: 999px; }
.ai-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* ================= STAGE ================= */
.stage { padding: clamp(26px, 4vw, 52px) clamp(16px, 4vw, 44px) 36px; }
.stage-inner { max-width: 1240px; margin: 0 auto; }
.stage-head { max-width: 760px; margin-bottom: 26px; }
.stage-head h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; color: var(--navy); font-weight: 800; }
.stage-head .lead { color: var(--muted); margin: 12px 0 0; font-size: 16.5px; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

/* --- gesprek --- */
.call { position: relative; isolation: isolate; color: #fff; border-radius: 26px; padding: 20px; overflow: hidden; min-height: 580px; display: flex; flex-direction: column;
  background: radial-gradient(500px 300px at 100% 0%, rgba(212,125,55,.25), transparent 65%), radial-gradient(500px 400px at 0% 100%, rgba(90,120,230,.25), transparent 60%), linear-gradient(165deg, #0e1960, #080e3d);
  box-shadow: var(--sh-3); }
.call::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.08); pointer-events: none; z-index: 6; }
.call-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.state-pill { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--head); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); padding: 7px 12px; border-radius: 999px; }
.state-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa0c8; }
.call[data-state="live"] .dot { background: #3ddc84; animation: pulse 1.6s infinite; }
.call[data-state="connecting"] .dot { background: var(--amber); animation: blink 1s infinite; }
.call[data-state="error"] .dot { background: #ff5a72; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@keyframes blink { 50% { opacity: .35; } }
.call-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.timer { font: 700 13px/1 var(--head); font-variant-numeric: tabular-nums; color: #fff; background: rgba(255,255,255,.08); padding: 7px 10px; border-radius: 999px; }
.sound-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #fff; cursor: pointer; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--body); }
.sound-btn[aria-pressed="false"] { opacity: .55; }

.who { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; }
.avatar { position: relative; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, #f7c79c, var(--amber)); display: grid; place-items: center; font: 800 22px/1 var(--head); color: var(--navy); flex: none; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.call[data-speaking="ai"] .avatar::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(242,178,124,.85); animation: ring 1.2s infinite; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.who b { display: block; font: 700 17px/1.2 var(--head); }
.who small { color: rgba(255,255,255,.6); font-size: 12.5px; }

.scenarios { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; }
.scn-label { font-size: 12px; color: rgba(255,255,255,.55); margin-right: 2px; }
.scn { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: #fff; padding: 7px 12px; border-radius: 999px; cursor: pointer; font: 600 12.5px/1 var(--body); transition: background .15s; }
.scn:hover { background: rgba(255,255,255,.1); }
.scn.is-on { background: #fff; color: var(--navy); border-color: #fff; }
.scn:disabled { opacity: .4; cursor: default; }

.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 46px; margin: 14px 0 8px; }
.wave i { width: 4px; border-radius: 3px; background: linear-gradient(#f7c79c, var(--amber)); height: 4px; transition: height .1s; opacity: .9; }

.transcript { list-style: none; margin: 0; padding: 4px 2px; flex: 1; min-height: 200px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); }
.t-empty { color: rgba(255,255,255,.42); font-size: 13.5px; text-align: center; margin: auto; padding: 0 20px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; animation: pop .25s ease-out; }
.msg small { display: block; font: 700 10px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 3px; }
.msg.ai { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: #fff; color: var(--navy-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.sys { align-self: center; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); padding: 5px 12px; border-radius: 999px; animation: pop .25s ease-out; text-align: center; }
.sys b { font: 700 9.5px/1 var(--head); letter-spacing: .12em; color: #f2b27c; }
.sys.warn { border-color: rgba(255,120,140,.55); color: #ffd0d8; } .sys.warn b { color: #ff8ea3; }
.sys.ok b { color: #6ee7a8; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* suggestiebubbels */
.ideas { margin: 12px 0 0; }
.ideas-label { font: 700 10.5px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 9px; display: flex; gap: 6px; align-items: center; }
.ideas-label svg { font-size: 14px; color: #f2b27c; }
.ideas-list { display: flex; flex-wrap: wrap; gap: 7px; }
.idea { border: 1px solid rgba(242,178,124,.5); background: rgba(242,178,124,.1); color: #fff; padding: 9px 14px; border-radius: 18px 18px 18px 6px; cursor: pointer; font: 600 13px/1.3 var(--body); text-align: left; animation: bubble .45s cubic-bezier(.2,1.4,.4,1) both; transition: background .15s, transform .15s; }
.idea::before { content: "“"; color: #f2b27c; margin-right: 2px; }
.idea::after { content: "”"; color: #f2b27c; margin-left: 1px; }
.idea:hover { background: rgba(242,178,124,.24); transform: translateY(-1px); }
.idea:nth-child(2) { animation-delay: .07s; } .idea:nth-child(3) { animation-delay: .14s; } .idea:nth-child(4) { animation-delay: .21s; } .idea:nth-child(5) { animation-delay: .28s; } .idea:nth-child(6) { animation-delay: .35s; }
.idea.red { border-color: rgba(255,120,140,.55); background: rgba(255,120,140,.1); }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }

.call-actions { margin-top: 16px; }
.call-note { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.55); margin: 10px 0 0; }

/* mobiel: wat er op het scherm verschijnt, binnen de gesprekskaart */
.m-toast { display: none; }

/* verbinden-overlay */
.connect { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(7,11,48,.94); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.connect-box { width: min(360px, 100%); text-align: center; }
.phone-ring { position: relative; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; background: linear-gradient(145deg, #e8955a, var(--amber)); display: grid; place-items: center; color: #fff; font-size: 36px; box-shadow: 0 14px 30px -8px rgba(212,125,55,.7); }
.phone-ring svg { animation: shake 1.1s infinite; }
.phone-ring::before, .phone-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); animation: ring 1.6s infinite; }
.phone-ring::after { animation-delay: .8s; }
@keyframes shake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.connect h3 { font-size: 21px; margin-bottom: 16px; }
.connect-steps { list-style: none; padding: 0; margin: 0 auto 18px; text-align: left; display: grid; gap: 10px; max-width: 290px; }
.connect-steps li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.45); transition: color .2s; }
.connect-steps li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); flex: none; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.connect-steps li.on { color: #fff; }
.connect-steps li.on i { border-color: var(--amber); border-top-color: transparent; animation: spin .8s linear infinite; }
.connect-steps li.done { color: rgba(255,255,255,.85); }
.connect-steps li.done i { border-color: #3ddc84; background: #3ddc84; color: var(--navy); animation: none; }
.connect-steps li.done i::before { content: "✓"; font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }
.connect-note { font-size: 12.5px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px 13px; margin: 0; line-height: 1.5; }
.connect-note b { color: #f2b27c; font-weight: 600; }
.connect-bar { height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin: 16px auto 0; max-width: 290px; }
.connect-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f2b27c, var(--amber)); transition: width .25s linear; }

/* --- praktijkscherm --- */
.screen { background: var(--surface); border-radius: 26px; box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; position: relative; min-height: 580px; display: flex; flex-direction: column; }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: linear-gradient(180deg, #fbfbfd, #f4f5fa); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.screen-bar img { height: 22px; width: auto; }
.screen-bar b { font: 700 12.5px/1.2 var(--head); color: var(--navy); }
.screen-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--head); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.screen-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.screen.is-active .screen-live { color: var(--green); }
.screen.is-active .screen-live i { animation: blink 1.2s infinite; }
.screen-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; flex: 1; }

.activity { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-height: 26px; padding: 8px 12px; background: var(--navy-50); border-radius: 12px; }
.activity .spark { width: 22px; height: 22px; border-radius: 7px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.activity span { animation: pop .3s ease-out; }

.urg h4 { font: 700 10.5px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 9px; }
.urg-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.urg-track div { border-radius: 11px; padding: 10px 6px 9px; text-align: center; font: 700 12px/1.2 var(--head); color: var(--faint); background: #f7f7f4; border: 1px solid var(--line); transition: all .35s cubic-bezier(.2,.8,.2,1); position: relative; }
.urg-track div small { display: block; font: 500 10px/1.2 var(--body); margin-top: 3px; opacity: .85; }
.urg-track div.on { transform: translateY(-3px); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -8px rgba(10,17,64,.35); }
.urg-track [data-u="spoed_112"].on { background: var(--red); }
.urg-track [data-u="vandaag"].on { background: var(--orange); }
.urg-track [data-u="binnenkort"].on { background: var(--blue); }
.urg-track [data-u="zelfzorg"].on { background: var(--green); }
.urg-track [data-u="administratief"].on { background: var(--navy); }

.req { border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: relative; transition: border-color .3s, box-shadow .3s; flex: 1; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff, #fcfcfa); }
.req.flash { animation: glow 1.2s ease-out; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(212,125,55,.4); border-color: var(--amber); } 100% { box-shadow: 0 0 0 14px rgba(212,125,55,0); } }
.req-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.req-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--navy-50); color: var(--navy); flex: none; transition: background .3s, color .3s; }
.req-head h3 { font-size: 17px; color: var(--navy); }
.req-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.status { margin-left: auto; font: 700 11px/1 var(--head); padding: 6px 10px; border-radius: 999px; background: #f3f3ef; color: var(--muted); white-space: nowrap; }
.status.bezig { background: var(--amber-50); color: var(--amber-2); }
.status.compleet { background: var(--green-50); color: var(--green); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.f { background: #f7f7f4; border-radius: 12px; padding: 10px 13px; border: 1px solid transparent; transition: background .3s, border-color .3s; min-width: 0; }
.f dt { font: 700 10px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.f dd { margin: 3px 0 0; font-weight: 600; font-size: 14px; color: #b9bbc7; overflow-wrap: anywhere; }
.f.filled { background: #fff; border-color: var(--line-2); }
.f.filled dd { color: var(--ink); }
.f.wide { grid-column: 1 / -1; }
.f.pop { animation: fpop .8s ease-out; }
@keyframes fpop { 0% { background: var(--amber-50); border-color: var(--amber); transform: scale(1.03); } 100% { transform: none; } }
.req-empty { margin: auto; text-align: center; color: var(--faint); font-size: 13.5px; padding: 20px; max-width: 300px; }
.req-empty svg { font-size: 30px; display: block; margin: 0 auto 12px; opacity: .55; }
.stamp { position: absolute; right: 16px; bottom: 14px; transform: rotate(-7deg); border: 2.5px solid var(--green); color: var(--green); font: 800 12px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 9px; animation: stamp .45s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.94); }
@keyframes stamp { from { transform: rotate(-7deg) scale(2); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: 1; } }
.risk { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--head); color: var(--orange); background: var(--orange-50); border-radius: 999px; padding: 6px 11px; margin-top: 12px; align-self: flex-start; animation: pop .3s; }

.req[data-intent="herhaalrecept"] .req-ic { background: var(--green-50); color: var(--green); }
.req[data-intent="terugbelverzoek"] .req-ic, .req[data-intent="afspraak"] .req-ic, .req[data-intent="visite"] .req-ic { background: var(--blue-50); color: var(--blue); }
.req[data-intent="spoed"] .req-ic { background: var(--orange-50); color: var(--orange); }

/* 112-overname */
.sos { position: absolute; inset: 49px 0 0; z-index: 4; background: radial-gradient(500px 300px at 50% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(165deg, #d11a38, #930020); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; animation: fade .3s; }
.sos .big { font: 800 88px/1 var(--head); letter-spacing: -.04em; margin: 8px 0 12px; animation: thump 1s infinite; }
@keyframes thump { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.06); } }
.sos h3 { font-size: 20px; }
.sos p { color: rgba(255,255,255,.85); margin: 10px 0 0; font-size: 14px; max-width: 340px; }
.sos .sos-ic { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 26px; }
.sos ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 7px; font-size: 13px; text-align: left; }
.sos li::before { content: "✓  "; font-weight: 800; }
.sos-close { margin-top: 18px; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; font: 700 12px/1 var(--head); cursor: pointer; }

/* ================= PANEEL ================= */
body.step-intro .after, body.step-demo .after { display: none; }
.panel, .info { padding: 14px clamp(16px, 4vw, 44px) 34px; }
.panel-inner, .info-inner { max-width: 1240px; margin: 0 auto; }
.panel-head { margin-bottom: 20px; }
.panel-head h2 { font-size: clamp(22px, 3vw, 30px); color: var(--navy); font-weight: 800; }
.sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy-200); }
.kpi:first-child::before { background: var(--amber); }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font: 800 30px/1.15 var(--head); color: var(--navy); letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--faint); font-size: 11.5px; }
.kpi.bump b { animation: bump .8s; color: var(--amber-2); }
@keyframes bump { 30% { transform: scale(1.15); } }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; color: var(--navy); }
.count { font: 700 11.5px/1 var(--head); color: var(--navy); background: var(--navy-50); padding: 5px 9px; border-radius: 999px; }
.call-list { list-style: none; margin: 0; padding: 8px; max-height: 480px; overflow-y: auto; }
.ci { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.ci:hover { background: #f7f7f4; }
.ci.is-on { background: var(--navy-50); box-shadow: inset 3px 0 0 var(--navy); }
.ci.is-new { animation: newrow 2.4s ease-out; }
@keyframes newrow { 0%, 30% { background: var(--amber-50); } }
.u-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.u-spoed_112 { background: var(--red); } .u-vandaag { background: var(--orange); } .u-binnenkort { background: var(--blue); } .u-zelfzorg { background: var(--green); } .u-administratief { background: var(--navy); } .u-none { background: var(--line-2); }
.ci-main { min-width: 0; }
.ci-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.ci-sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; font: 700 10.5px/1 var(--head); padding: 4px 8px; border-radius: 999px; background: #f1f1ed; color: var(--muted); }
.pill.live { background: var(--amber); color: #fff; }
.pill.off { background: var(--navy-50); color: var(--navy); }
.pill.u-spoed_112 { background: var(--red-50); color: var(--red); } .pill.u-vandaag { background: var(--orange-50); color: var(--orange); } .pill.u-binnenkort { background: var(--blue-50); color: var(--blue); } .pill.u-zelfzorg { background: var(--green-50); color: var(--green); } .pill.u-administratief { background: var(--navy-50); color: var(--navy); }
.detail { padding: 20px; }
.d-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.d-head h3 { font-size: 19px; color: var(--navy); }
.d-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.d-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.d-sum { background: var(--navy-50); border-radius: 13px; padding: 13px 15px; font-size: 14.5px; margin-bottom: 12px; }
.d-sum small { display: block; font: 700 10px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.d-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.d-tabs button { border: 0; background: none; padding: 9px 12px; cursor: pointer; font: 600 13px/1 var(--head); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.d-tabs button.is-on { color: var(--navy); border-color: var(--amber); }
.tx { display: grid; gap: 7px; font-size: 13.5px; max-height: 280px; overflow-y: auto; }
.tx p { margin: 0; } .tx .sysline { font-size: 11.5px; color: var(--faint); }
.d-note { font-size: 12px; color: var(--faint); margin: 12px 0 0; }
.tasks { margin-top: 18px; }
.task-list { list-style: none; margin: 0; padding: 6px 12px 10px; }
.task { display: flex; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task p { margin: 0; flex: 1; font-size: 14px; font-weight: 600; min-width: 0; } .task small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.task button { border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 8px 13px; font: 700 12.5px/1 var(--head); cursor: pointer; color: var(--navy); white-space: nowrap; transition: background .15s; }
.task button:hover { background: var(--navy-50); }
.task.done { opacity: .45; } .task.done p { text-decoration: line-through; }

/* ================= INFO ================= */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info .card { padding: 24px; }
.info-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); font-size: 20px; margin-bottom: 14px; }
.info h3 { font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.info ol, .info ul { margin: 0; padding-left: 18px; display: grid; gap: 9px; font-size: 14px; color: var(--ink); }
.info li::marker { color: var(--amber); font-weight: 700; }
.info li b { color: var(--navy); }

/* contact (rustig, geen schreeuwerige knop) */
.contact { max-width: 1240px; margin: 4px auto 0; padding: 0 clamp(16px, 4vw, 44px); }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); flex-wrap: wrap; }
.contact-card p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); font-size: 14px; }
.contact-card p b { display: block; color: var(--navy); font: 700 15px/1.3 var(--head); margin-bottom: 2px; }
.contact-links { display: flex; gap: 8px; flex-wrap: wrap; }
.c-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line-2); text-decoration: none; color: var(--navy); font: 600 13.5px/1 var(--head); background: #fff; transition: background .15s, border-color .15s; }
.c-link:hover { background: var(--navy-50); border-color: var(--navy-200); }
.c-link svg { font-size: 16px; }
.c-link.wa svg { color: #1a9e55; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; padding: 30px 20px 120px; }
.foot img { height: 34px; width: auto; display: block; margin: 0 auto 10px; opacity: .85; mix-blend-mode: multiply; }

/* volgende stap */
.next-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; width: min(700px, calc(100% - 24px)); background: rgba(11,20,86,.97); backdrop-filter: blur(8px); color: #fff; border-radius: 20px; box-shadow: var(--sh-3); animation: up .5s cubic-bezier(.2,1.2,.4,1); border: 1px solid rgba(255,255,255,.08); }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }
.next-inner { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 22px; }
.next-text { flex: 1; } .next-text b { display: block; font: 700 16px/1.3 var(--head); } .next-text span { font-size: 13px; color: rgba(255,255,255,.68); }
.next-close { background: none; border: 0; color: rgba(255,255,255,.5); cursor: pointer; font-size: 18px; padding: 6px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .stage-grid, .p-grid { grid-template-columns: 1fr; }
  .call { min-height: 0; }
  .screen { min-height: 0; }
  .req { min-height: 220px; }
  .info-grid { grid-template-columns: 1fr; }
  .m-toast { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #fff; color: var(--navy-ink); font-size: 13px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); animation: pop .3s; }
  .m-toast[hidden] { display: none !important; }
  .m-toast .mt-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); font-size: 16px; flex: none; }
  .m-toast.u-spoed_112 .mt-ic { background: var(--red); color: #fff; } .m-toast.u-vandaag .mt-ic { background: var(--orange); color: #fff; }
  .m-toast b { display: block; font: 700 13px/1.25 var(--head); }
  .m-toast small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-toast > div { min-width: 0; flex: 1; }
  .m-toast a { font: 700 12px/1 var(--head); color: var(--amber-2); text-decoration: none; white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .top { padding: 10px 14px; gap: 10px; }
  .brand img { height: 40px; }
  .brand-div, .brand span, .ai-badge { display: none; }
  .intro { place-items: start center; padding: 22px 18px; }
  .intro-top { margin-bottom: 30px; }
  .intro-logo { padding: 9px 13px; border-radius: 13px; }
  .intro-logo img { height: 46px; }
  .intro p.intro-text { font-size: 15.5px; }
  .stage { padding: 20px 12px 26px; }
  .stage-head { margin-bottom: 18px; padding: 0 4px; }
  .stage-head .lead { font-size: 15px; }
  .call { padding: 16px; border-radius: 22px; }
  .who { margin-top: 14px; }
  .avatar { width: 48px; height: 48px; font-size: 19px; }
  .scenarios { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .scenarios::-webkit-scrollbar { display: none; }
  .scn, .scn-label { flex: none; }
  .wave { height: 34px; margin: 10px 0 6px; }
  .transcript { min-height: 170px; max-height: 38vh; }
  .msg { max-width: 92%; font-size: 14px; }
  .ideas-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 4px 0; }
  .ideas-list::-webkit-scrollbar { display: none; }
  .idea { flex: none; max-width: 78vw; }
  .screen { border-radius: 22px; }
  .screen-body { padding: 14px; gap: 14px; }
  .urg-track { gap: 4px; }
  .urg-track div { font-size: 10.5px; padding: 9px 2px 8px; border-radius: 9px; }
  .urg-track div small { display: none; }
  .fields { grid-template-columns: 1fr 1fr; }
  .f { padding: 9px 11px; } .f dd { font-size: 13.5px; }
  .sos .big { font-size: 66px; }
  .panel, .info { padding: 10px 12px 26px; }
  .kpis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px 16px; padding: 2px 12px 6px; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { scroll-snap-align: start; padding: 14px; } .kpi b { font-size: 26px; }
  .call-list { max-height: 360px; }
  .task { flex-wrap: wrap; }
  .task p { flex-basis: calc(100% - 30px); }
  .task button { margin-left: 24px; }
  .contact { padding: 0 12px; }
  .contact-card { padding: 16px; }
  .next-bar { bottom: 10px; border-radius: 18px; }
  .next-inner { padding: 12px 12px 12px 16px; gap: 10px; }
  .next-text b { font-size: 14.5px; } .next-text span { display: none; }
  .next-bar .btn { padding: 12px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
