/* ============ Gedeelde opmaak voor de flow-demo's (PVG-huisstijl) ============ */
:root {
  --navy: #16438c; --navy-deep: #0a1c3a; --ink: #0e1726; --graphite: #4a4d52; --muted: #5d6675;
  --green: #1fa36c; --green-s: rgba(31, 163, 108, .12); --cyan: #19d3e6; --cyan-s: rgba(25, 211, 230, .16);
  --blue-s: rgba(22, 67, 140, .1); --orange: #c2410c; --orange-s: rgba(245, 158, 11, .16); --red: #b91c1c; --red-s: rgba(220, 38, 38, .1);
  --bg: #f7f8f7; --surface: #fff; --line: rgba(14, 23, 38, .09); --line-soft: rgba(14, 23, 38, .06);
  --brand-gradient: linear-gradient(115deg, var(--navy) 0%, var(--green) 55%, var(--cyan) 100%);
  --ease: cubic-bezier(.2, .7, .1, 1); --font-head: "Sora", system-ui, sans-serif; --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 12px 40px -12px rgba(14, 23, 38, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
.hide { display: none !important; }
b { font-weight: 700; }

/* Topbar */
.topbar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .logo img { height: 34px; width: auto; display: block; }
.topbar .back { font-size: .9rem; font-weight: 600; color: var(--graphite); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.topbar .back:hover { color: var(--navy); border-color: var(--navy); }
.demo-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--blue-s); padding: 7px 12px; border-radius: 999px; }
.demo-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-s); }

/* Kop */
.wrap { width: min(1140px, 100% - 40px); margin: 40px auto 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand-gradient); border-radius: 2px; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 12px; }
.lede { color: var(--muted); max-width: 78ch; font-size: 1rem; }
.privpill { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 600; color: #137a50; background: var(--green-s); padding: 7px 12px; border-radius: 999px; cursor: pointer; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: .9rem; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; background: none; color: inherit; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { color: #fff; background: var(--navy-deep); position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 10px 30px -10px rgba(22, 67, 140, .6); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-gradient); transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn-primary:not(:disabled):hover::before { transform: translateX(0); }
.btn-lg { padding: 14px 26px; font-size: .98rem; }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:not(:disabled):hover { border-color: var(--navy); color: var(--navy); }
.btn-cyan { background: var(--cyan); color: var(--navy-deep); }
.btn-cyan:not(:disabled):hover { background: #fff; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.hint { font-size: .88rem; color: var(--muted); }

/* Rail met stappen */
.rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all .35s var(--ease); }
.chip.busy { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; box-shadow: 0 0 0 4px var(--cyan-s); }
.chip.done { background: var(--green-s); border-color: rgba(31, 163, 108, .35); color: #137a50; }
.chip.done::before { content: "✓ "; }
.nowcap { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .95rem; min-height: 24px; }
.nowcap .d { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-s); animation: blink 1.4s ease-in-out infinite; }
.nowcap.done .d { background: var(--green); box-shadow: 0 0 0 3px var(--green-s); animation: none; }
.nowcap .n { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--navy); }

/* Werkvlak */
.stage { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; margin-top: 22px; align-items: start; }
.col-h { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.col-h .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.col-h .cnt { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 500; }
.box, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.boxh, .mailhead { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; font-size: .92rem; background: #f3f5f6; border-bottom: 1px solid var(--line); }
.boxh .cnt, .mailhead .cnt { margin-left: auto; font-weight: 600; font-size: .74rem; color: var(--muted); }
.cnt.ok, .okt.ok { color: #137a50; }
.work { display: flex; flex-direction: column; gap: 12px; }
.workempty, .mailempty, .nuempty, .doneempty, .sideempty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* Kaarten in de AI-werkruimte */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.card.fresh { border-color: rgba(25, 211, 230, .7); box-shadow: 0 0 0 4px var(--cyan-s), var(--shadow); }
.ch { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; font-size: .92rem; background: #f3f5f6; border-bottom: 1px solid var(--line); }
.ch .ic { font-size: 1rem; }
.st { margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st.ok { color: #137a50; }
.xrows { padding: 8px 16px 12px; }
.xrow { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; align-items: baseline; }
.xrow:last-child { border-bottom: 0; }
.xrow .k { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xrow .v { font-weight: 600; }
.caret::after { content: "▍"; color: var(--cyan); animation: blink .8s steps(1) infinite; }

/* Documenten (offerte, factuur) */
.doc { padding: 16px; }
.dh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.dh .t { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.dh .nr { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc tr.sub td { color: var(--muted); padding: 5px 0; }
.doc tr.tot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 10px; }
.muted { color: var(--muted); }
.docfoot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; }

/* Meldingen */
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid; font-size: .9rem; line-height: 1.5; }
.note b { display: block; margin-bottom: 2px; }
.note.green { background: var(--green-s); border-color: rgba(31, 163, 108, .3); }
.note.blue { background: var(--blue-s); border-color: rgba(22, 67, 140, .25); }
.note.orange { background: var(--orange-s); border-color: rgba(245, 158, 11, .4); }
.nic { font-size: 1.1rem; flex: none; }

/* Tijdsprong */
.skip { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; }
.skip .ln { flex: 1; height: 1px; background: var(--line); }
.skip .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

/* Samenvatting (donker) */
.summary { margin-top: 32px; background: var(--navy-deep); color: #e8eef6; border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.summary h2 { color: #fff; font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.summary .sub { color: rgba(232, 238, 246, .7); font-size: .95rem; margin-bottom: 20px; }
.sgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slist li { display: flex; gap: 10px; font-size: .95rem; }
.slist li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex: none; }
.stime { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 22px; text-align: center; }
.stime .big { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--cyan); line-height: 1; }
.stime .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(232, 238, 246, .6); margin: 8px 0 14px; }
.stime .vs { font-size: .88rem; color: rgba(232, 238, 246, .8); }
.tbars { text-align: left; font-size: .82rem; color: rgba(232, 238, 246, .8); display: grid; gap: 10px; }
.tbar { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.tbar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1.2s var(--ease); }

/* Privacy */
.privacy { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.5vw, 36px); }
.privacy .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.privacy h2 { font-size: 1.35rem; font-weight: 600; }
.privacy .intro { color: var(--muted); margin-bottom: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pit { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: .88rem; }
.pit .pi { font-size: 1.3rem; margin-bottom: 8px; }
.pit b { display: block; margin-bottom: 4px; }
.pit span { color: var(--muted); }
.pflow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 12px; align-items: center; margin-top: 18px; }
.pn { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: var(--muted); }
.pn b { display: block; color: var(--ink); margin-bottom: 2px; }
.pn.mid { background: var(--green-s); border-color: rgba(31, 163, 108, .3); }
.pa { color: var(--muted); font-size: 1.2rem; }
.pfoot { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* Afsluitende CTA */
.cta { width: min(1140px, 100% - 40px); margin: 0 auto 60px; background: var(--navy-deep); color: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .72); max-width: 48ch; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Animaties */
.pop { animation: pop .45s var(--ease); }
.rowin { animation: rowin .4s var(--ease); }
.slidein { animation: slidein .45s var(--ease); }
@keyframes pop { from { transform: translateY(10px) scale(.98); } }
@keyframes rowin { from { transform: translateX(-8px); opacity: .2; } }
@keyframes slidein { from { transform: translateY(-8px); opacity: .2; } }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

@media (max-width: 900px) {
  .stage, .sgrid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pflow { grid-template-columns: 1fr; }
  .pa { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: min(1140px, 100% - 32px); margin-top: 24px; }
  .pgrid { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 12px 16px; }
  .demo-badge { display: none; }
}
