/* =====================================================================
   Kwijtscheldingsagent · demo door PitchAI voor GBLT
   House style derived from gblt.nl (see HOUSESTYLE.md). No external resources.
   ===================================================================== */

:root {
  /* GBLT palette (from gblt.nl CSS) */
  --teal: #0d7679;          /* primary: footer, dark buttons, headings accents */
  --teal-2: #138387;        /* default button colour */
  --teal-3: #1a6f75;        /* hover / pressed */
  --teal-ink: #0a5a5d;      /* darker teal for text on tints */
  --aqua: #a4e4e7;          /* light accent: hovers, masthead chevron, focus ring */
  --mist: #93c8cd;          /* hairlines / nav borders */
  --ink: #1f2226;           /* body text */
  --slate: #373e45;         /* secondary dark */
  --muted: #56606a;         /* secondary text (7:1 on white) */
  --line: #d6e4e5;
  --line-soft: #e7f0f0;
  --tint: #eef7f7;
  --tint-2: #f6fafa;
  --white: #fff;

  /* Status (tints from gblt.nl message colours) */
  --pass: #1d6b34;  --pass-bg: #e2f0da;  --pass-line: #b9d9a9;
  --fail: #a8200d;  --fail-bg: #fde3dc;  --fail-line: #f2b6a6;
  --flag: #7a4a00;  --flag-bg: #fcefd0;  --flag-line: #ecd08f;
  --info: #0b5a8f;  --info-bg: #e2eff9;  --info-line: #b6d4ec;
  --na: #56606a;    --na-bg: #eef1f3;    --na-line: #d5dbe0;

  --font-body: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Overpass", "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 42, .06);
  --shadow: 0 1px 2px rgba(16, 40, 42, .05), 0 6px 20px -8px rgba(16, 40, 42, .14);
  --shadow-lg: 0 2px 4px rgba(16, 40, 42, .05), 0 22px 48px -18px rgba(16, 40, 42, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; outline: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-3); }
code, pre { font-family: var(--font-mono); font-size: .86em; }
svg { width: 1.15em; height: 1.15em; flex: none; }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; box-shadow: 0 0 0 5px var(--teal); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--teal); color: #fff; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.page-demo .wrap { max-width: 1560px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* ---------- Buttons (GBLT: square, bold, teal) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .7rem 1.15rem; border: 2px solid var(--teal-2); border-radius: 0;
  background: var(--teal-2); color: #fff; cursor: pointer;
  font: 700 1rem/1.4 var(--font-body); letter-spacing: .01em; text-decoration: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
  -webkit-appearance: none; appearance: none;
}
.button:hover { background: var(--teal-3); border-color: var(--teal-3); color: #fff; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button--large { padding: .95rem 1.5rem; font-size: 1.1rem; }
.button--small { padding: .4rem .8rem; font-size: .9rem; }
.button--block { width: 100%; }
.button--outline { background: #fff; color: var(--teal); border-color: var(--teal-2); }
.button--outline:hover { background: var(--aqua); color: var(--ink); border-color: var(--teal-2); }
.button--ghost { background: transparent; color: var(--teal); border-color: transparent; }
.button--ghost:hover { background: var(--tint); color: var(--teal-3); border-color: transparent; }
.button--light { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
.button--light:hover { background: #fff; color: var(--teal); border-color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--teal); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 1em; height: 1em; }
.text-link--back svg { transform: rotate(180deg); }

.eyebrow { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); }
.eyebrow--light { color: var(--aqua); }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 46rem; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 3px solid var(--mist); position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark__mark {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--teal); color: var(--aqua);
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
  padding-right: .3rem;
}
.wordmark__mark svg { width: 1.35rem; height: 1.35rem; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark__name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.wordmark__sub { font-size: .78rem; color: var(--muted); letter-spacing: .02em; margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav__link { position: relative; padding: .6rem .85rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-nav__link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 3px; background: transparent; transition: background .15s; }
.site-nav__link:hover::after, .site-nav__link.is-active::after { background: var(--teal-2); }
.site-nav__link:hover { color: var(--teal); }
.site-nav__cta { margin-left: .6rem; }
.demo-ribbon { background: var(--tint); border-top: 1px solid var(--line-soft); color: var(--teal-ink); font-size: .85rem; }
.demo-ribbon .wrap { display: flex; align-items: center; gap: .5rem; padding-top: .35rem; padding-bottom: .35rem; }
.demo-ribbon svg { width: 1rem; height: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: #fff; margin-top: 4rem; }
.page-demo .site-footer { margin-top: 2rem; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.site-footer__title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: .3rem; }
.site-footer__text { color: #e3f6f7; margin: 0; }
.site-footer__meta { font-size: .88rem; color: #d8f1f2; }
.site-footer__meta p { margin: 0 0 .35rem; }

/* ---------- Home: hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint-2), #fff); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .hl { color: var(--teal); white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.8rem; }
.hero__visual { position: relative; }
.hero__chevron {
  position: absolute; z-index: 0; right: -30%; bottom: -1.6rem; width: 120%; height: 7rem; background: var(--aqua);
  clip-path: polygon(4rem 0, 100% 0, 100% 100%, 4rem 100%, 1.5rem 50%);
}
.hero-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 1.25rem 1.35rem; border-radius: var(--radius); }
.hero-card__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.hero-card__meta { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-card__advice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; }
.hero-card__wait { font-size: .88rem; color: var(--muted); }
.dot { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; }
.dot svg { width: .95rem; height: .95rem; }
.dot--done { background: var(--teal-2); color: #fff; }
.dot--running { border: 3px solid var(--aqua); border-top-color: var(--teal-2); animation: spin .9s linear infinite; }

/* ---------- Home: sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--tint { background: var(--tint); }
.section__title { margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-2); padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature h3 { margin: 1rem 0 .5rem; font-size: 1.35rem; }
.feature p { color: var(--slate); margin: 0; }
.feature__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; background: var(--tint); color: var(--teal); border-radius: 50%; }
.feature__icon svg { width: 1.7rem; height: 1.7rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; top: 1.3rem; left: 1.3rem; right: 10%; height: 3px; background: var(--mist); }
.timeline__item { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.timeline__num { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--teal); color: #fff; font: 700 1.1rem/1 var(--font-head); border: 4px solid var(--tint); box-sizing: content-box; margin: -4px; border-radius: 50%; }
.timeline__item:last-child .timeline__num { background: var(--aqua); color: var(--ink); }
.timeline h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.timeline p { font-size: .95rem; color: var(--slate); margin: 0; }

.section > .privacy { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; background: var(--tint-2); border-left: 4px solid var(--teal-2); padding-top: 1.7rem; padding-bottom: 1.7rem; box-shadow: var(--shadow-sm); }
.privacy p { max-width: 54rem; }
.privacy__icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--teal); color: #fff; border-radius: 50%; }
.privacy__icon svg { width: 1.5rem; height: 1.5rem; }
.privacy__title { font-size: 1.4rem; margin-bottom: .5rem; }
.privacy p { margin: 0; color: var(--slate); }

.cta-band { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -4rem; top: 0; bottom: 0; width: 38%; background: var(--teal-2); clip-path: polygon(3rem 0, 100% 0, 100% 100%, 3rem 100%, 0 50%); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { margin: 0; color: #e3f6f7; }
.page-home .site-footer { margin-top: 0; border-top: 1px solid rgba(255,255,255,.15); }

/* ---------- Cards & common ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .8rem; }
.card__title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin: 0 0 .8rem; color: var(--ink); }
.card__header .card__title { margin: 0; }
.card__title svg { color: var(--teal); }

.badge { display: inline-flex; align-items: center; gap: .4em; padding: .3rem .7rem; font-weight: 700; font-size: .92rem; border-radius: 2px; border: 1px solid transparent; }
.badge--toekennen { background: var(--pass-bg); color: var(--pass); border-color: var(--pass-line); }
.badge--gedeeltelijk { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge--afwijzen { background: var(--fail-bg); color: var(--fail); border-color: var(--fail-line); }
.badge--menselijke_beoordeling { background: var(--flag-bg); color: var(--flag); border-color: var(--flag-line); }
.mini-badge { display: inline-block; padding: .05rem .45rem; font-size: .78rem; font-weight: 700; border-radius: 2px; background: var(--na-bg); color: var(--na); }
.mini-badge--toekennen { background: var(--pass-bg); color: var(--pass); }
.mini-badge--gedeeltelijk { background: var(--info-bg); color: var(--info); }
.mini-badge--afwijzen { background: var(--fail-bg); color: var(--fail); }
.mini-badge--menselijke_beoordeling { background: var(--flag-bg); color: var(--flag); }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .5rem .18rem .4rem; font-size: .8rem; font-weight: 700; line-height: 1.35; border-radius: 2px; border: 1px solid; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip svg { width: .85rem; height: .85rem; }
.chip--pass { background: var(--pass-bg); color: var(--pass); border-color: var(--pass-line); }
.chip--fail { background: var(--fail-bg); color: var(--fail); border-color: var(--fail-line); }
.chip--flag { background: var(--flag-bg); color: var(--flag); border-color: var(--flag-line); }
.chip--info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.chip--na, .chip--n\/a { background: var(--na-bg); color: var(--na); border-color: var(--na-line); }

/* ---------- Demo layout ---------- */
.demo-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.5rem; max-width: 1560px; margin: 0 auto; padding: 1.5rem clamp(1rem, 2.4vw, 2rem) 0; align-items: start; }
.demo-layout.is-collapsed { grid-template-columns: minmax(0, 1fr); }
.demo-layout.is-collapsed .picker { display: none; }
.demo-layout.is-collapsed.picker-open { grid-template-columns: 340px minmax(0, 1fr); }
.demo-layout.is-collapsed.picker-open .picker { display: block; }

.picker { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 0 .25rem 1rem 0; scrollbar-width: thin; }
.picker__title { font-size: 1.45rem; margin-bottom: .35rem; }
.picker__intro { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.case-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .65rem; }
.case-list__empty { color: var(--muted); padding: 1rem; background: var(--tint); }
.case-card {
  position: relative; display: flex; flex-direction: column; gap: .3rem; width: 100%; text-align: left;
  padding: .85rem 2.6rem .85rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--mist);
  border-radius: var(--radius); cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.case-card:hover { border-left-color: var(--teal-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.case-card.is-selected { border-color: var(--teal-2); border-left-color: var(--teal); background: var(--tint-2); box-shadow: 0 0 0 1px var(--teal-2), var(--shadow); }
.case-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.case-card__id { font: 700 .78rem/1 var(--font-mono); color: var(--teal); letter-spacing: .04em; }
.case-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.case-card__desc { font-size: .88rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-card__expected { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.case-card__go { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--tint); color: var(--teal); transition: background .15s, color .15s; }
.case-card__go svg { width: .85rem; height: .85rem; margin-left: 2px; }
.case-card:hover .case-card__go, .case-card.is-selected .case-card__go { background: var(--teal-2); color: #fff; }
.diff { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 2px; }
.diff--eenvoudig, .diff--makkelijk, .diff--easy { background: var(--pass-bg); color: var(--pass); }
.diff--gemiddeld, .diff--medium { background: var(--info-bg); color: var(--info); }
.diff--complex, .diff--moeilijk, .diff--hard, .diff--lastig { background: var(--flag-bg); color: var(--flag); }

/* ---------- Run panel ---------- */
.run { min-width: 0; }
.run-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 32rem; padding: 3rem 2rem; background: repeating-linear-gradient(135deg, var(--tint-2) 0 14px, #fff 14px 28px); border: 2px dashed var(--mist); border-radius: var(--radius); }
.run-empty h2 { font-size: 1.6rem; margin: 1.4rem 0 .6rem; }
.run-empty p { max-width: 34rem; color: var(--slate); }
.run-empty__art { position: relative; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--teal); color: var(--aqua); }
.run-empty__art svg { width: 2.4rem; height: 2.4rem; }
.run-empty__ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--aqua); animation: pulse 2.4s var(--ease) infinite; }
.run-empty__legend { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

.run-live { display: flex; flex-direction: column; gap: 1.1rem; }
.case-summary { padding: 1.3rem 1.5rem 1.1rem; border-top: 4px solid var(--teal); }
.case-summary__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.case-summary__title { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-bottom: .35rem; }
.case-summary__desc { color: var(--slate); margin: 0; max-width: 60rem; }
.case-summary__actions { display: flex; gap: .25rem; flex: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.facts:empty { display: none; }
.facts > div { background: var(--tint-2); border: 1px solid var(--line-soft); padding: .5rem .7rem; border-radius: 2px; min-width: 0; }
.facts dt { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts dd { margin: .1rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.runbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem .3rem .6rem; background: var(--na-bg); color: var(--slate); font-weight: 700; font-size: .9rem; border-radius: 999px; white-space: nowrap; }
.status-pill__dot { width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.run[data-state="connecting"] .status-pill, .run[data-state="running"] .status-pill { background: var(--tint); color: var(--teal-ink); }
.run[data-state="running"] .status-pill__dot, .run[data-state="connecting"] .status-pill__dot { animation: blink 1.1s ease-in-out infinite; }
.run[data-state="done"] .status-pill { background: var(--pass-bg); color: var(--pass); }
.run[data-state="error"] .status-pill { background: var(--fail-bg); color: var(--fail); }
.progress { position: relative; height: .6rem; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-radius: 999px; transition: width .5s var(--ease); }
.run[data-state="running"] .progress__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.4s linear infinite; }
.run[data-state="done"] .progress__bar { background: var(--teal); }
.timer { display: inline-flex; align-items: center; gap: .35rem; font: 700 1rem/1 var(--font-mono); color: var(--slate); font-variant-numeric: tabular-nums; }
.timer svg { color: var(--teal); }
.conn-alert { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; padding: .6rem .8rem; background: var(--flag-bg); color: var(--flag); border: 1px solid var(--flag-line); border-radius: 2px; font-weight: 500; }
.conn-alert span { flex: 1; }

.run-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.run-main { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

/* Steps */
.steps { position: sticky; top: 1rem; }
.steps__empty { color: var(--muted); font-size: .9rem; margin: 0; }
.step-list { list-style: none; margin: 0; padding: 0; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 1.7rem 1fr auto; gap: .65rem; align-items: start; padding: .5rem 0 .9rem; animation: fadeIn .35s var(--ease); }
.step::before { content: ""; position: absolute; left: calc(.85rem - 1px); top: 2.15rem; bottom: -.1rem; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step[data-status="done"]::before { background: var(--teal-2); }
.step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: #fff; transition: background .25s, border-color .25s; }
.step__icon svg { width: .95rem; height: .95rem; }
.step__label { font-size: .95rem; font-weight: 500; color: var(--muted); padding-top: .15rem; line-height: 1.35; }
.step__time { font: .76rem/1 var(--font-mono); color: var(--muted); padding-top: .45rem; font-variant-numeric: tabular-nums; }
.step[data-status="running"] .step__icon { border-color: var(--aqua); border-top-color: var(--teal-2); animation: spin .8s linear infinite; }
.step[data-status="running"] .step__label { color: var(--ink); font-weight: 700; }
.step[data-status="done"] .step__icon { background: var(--teal-2); border-color: var(--teal-2); animation: pop .3s var(--ease); }
.step[data-status="done"] .step__label { color: var(--ink); }
.step[data-status="error"] .step__icon { background: var(--fail); border-color: var(--fail); }
.step[data-status="error"] .step__label { color: var(--fail); font-weight: 700; }

/* Feed */
.feed-card { padding-bottom: .6rem; }
.toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--teal-2); width: 1rem; height: 1rem; }
.feed { list-style: none; margin: 0 -1.3rem; padding: .2rem 1.3rem .4rem; max-height: 26rem; min-height: 8rem; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; border-top: 1px solid var(--line-soft); }
.feed:empty::before { content: "Wachten op de eerste gebeurtenis…"; display: block; padding: 1.5rem 0; color: var(--muted); font-size: .92rem; text-align: center; }
.feed__item { display: grid; grid-template-columns: 3.4rem 1.6rem minmax(0, 1fr); gap: .55rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .94rem; animation: slideIn .32s var(--ease); }
.feed__item:last-child { border-bottom: 0; }
.feed__time { font: .75rem/1.9 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.feed__icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tint); color: var(--teal); }
.feed__icon svg { width: .9rem; height: .9rem; }
.feed__body { min-width: 0; padding-top: .12rem; }
.feed__step { display: inline-block; margin-right: .4rem; font-size: .72rem; font-weight: 700; color: var(--teal-ink); background: var(--tint); padding: 0 .35rem; border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.feed__item--step .feed__icon { background: var(--teal-2); color: #fff; }
.feed__item--step .feed__body { font-weight: 700; }
.feed__item--error .feed__icon { background: var(--fail-bg); color: var(--fail); }
.feed__item--error .feed__body { color: var(--fail); font-weight: 700; }
.feed__item--rule-fail .feed__icon { background: var(--fail-bg); color: var(--fail); }
.feed__item--rule-flag .feed__icon { background: var(--flag-bg); color: var(--flag); }
.feed__item--rule-pass .feed__icon { background: var(--pass-bg); color: var(--pass); }
.feed__item--source .feed__icon { background: var(--info-bg); color: var(--info); }
.feed__item--final .feed__icon { background: var(--teal); color: #fff; }
.feed__rulesum { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }

.tool { border: 1px solid var(--line); border-radius: 2px; background: var(--tint-2); }
.tool > summary { list-style: none; display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; cursor: pointer; font-weight: 500; }
.tool > summary::-webkit-details-marker { display: none; }
.tool > summary::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); transition: transform .15s; }
.tool[open] > summary::after { transform: rotate(45deg); }
.tool__name { font: 700 .82rem/1.4 var(--font-mono); color: var(--teal-ink); background: #fff; border: 1px solid var(--line); padding: .05rem .4rem; border-radius: 2px; }
.tool__preview { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.tool__io { display: grid; gap: .5rem; padding: 0 .6rem .6rem; }
.tool__io h4 { font: 700 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .4rem 0 .3rem; }
.tool__io pre { margin: 0; padding: .6rem .7rem; background: #fff; border: 1px solid var(--line-soft); max-height: 16rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: .8rem; line-height: 1.5; }

/* Reasoning */
.reasoning { border-left: 4px solid var(--aqua); background: linear-gradient(180deg, #fff, var(--tint-2)); }
.reasoning__text { white-space: pre-wrap; font-size: 1rem; line-height: 1.7; color: var(--ink); max-height: 22rem; overflow-y: auto; scrollbar-width: thin; }
.reasoning__text .reasoning__step { display: block; margin: .8rem 0 .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); white-space: normal; }
.reasoning__text .reasoning__step:first-child { margin-top: 0; }
.run[data-state="running"] .reasoning__text.is-streaming::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--teal-2); animation: blink 1s steps(2) infinite; }

/* Rules */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.detail-grid:has(> .card[hidden]) > .card:not([hidden]) { grid-column: 1 / -1; }
.rule-counts { display: flex; flex-wrap: wrap; gap: .35rem; }
.count { font-size: .8rem; padding: .15rem .5rem; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { font-size: .92rem; }
.count--pass { background: var(--pass-bg); color: var(--pass); }
.count--fail { background: var(--fail-bg); color: var(--fail); }
.count--flag { background: var(--flag-bg); color: var(--flag); }
.count--other { background: var(--na-bg); color: var(--na); }
.rule-groups { display: grid; gap: .8rem; max-height: 24rem; overflow-y: auto; scrollbar-width: thin; padding-right: .2rem; }
.rule-group__title { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.rule-group__chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.rule-chip { cursor: pointer; font-family: var(--font-body); animation: pop .25s var(--ease); transition: transform .12s, box-shadow .12s; }
.rule-chip:hover, .rule-chip[aria-pressed="true"] { transform: translateY(-1px); box-shadow: 0 2px 6px -2px rgba(0,0,0,.25); }
.rule-chip[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 1px; }
.rule-detail { margin-top: .9rem; padding: .8rem .9rem; background: var(--tint-2); border: 1px solid var(--line); border-radius: 2px; font-size: .92rem; animation: fadeIn .2s; }
.rule-detail h4 { font-size: 1rem; margin: .3rem 0; }
.rule-detail p { margin: .2rem 0; }
.rule-detail small { color: var(--muted); }

/* Calculation */
.calc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.calc-table th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 .5rem .45rem; border-bottom: 2px solid var(--mist); }
.calc-table th.num { text-align: right; }
.calc-table td { padding: .5rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.calc-table tr { animation: fadeIn .35s var(--ease); }
.calc-table td:first-child { font-weight: 500; }
.calc__label { display: block; font-weight: 500; }
.calc__formula { display: block; margin-top: .1rem; color: var(--muted); font-size: .78rem; word-break: break-word; }
.calc-table td.num { font-weight: 700; white-space: nowrap; }
.calc-table tr.is-key td { background: var(--tint); }
.calc-table tr.is-key td.num { color: var(--teal-ink); }
.calc-table tr.is-negative td.num { color: var(--fail); }

/* Sources */
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.source { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: .8rem .9rem .8rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--info-line); border-radius: 2px; animation: slideIn .35s var(--ease); min-width: 0; }
.source__num { position: absolute; top: .65rem; right: .7rem; font: 700 .72rem/1 var(--font-mono); color: var(--info); background: var(--info-bg); padding: .2rem .35rem; border-radius: 2px; }
.source__title { font-weight: 700; font-size: .95rem; line-height: 1.3; padding-right: 2rem; }
.source__snippet { font-size: .86rem; color: var(--slate); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.source__snippet::before { content: "“"; color: var(--teal); font-weight: 700; }
.source__snippet::after { content: "”"; color: var(--teal); font-weight: 700; }
.source__meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: .2rem; font-size: .78rem; color: var(--muted); }
.source__meta code { font-size: .74rem; }
.source__meta a { font-weight: 700; }

/* Advice */
.advice { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .55s var(--ease); outline: none; }
.advice__main { position: relative; padding: 1.6rem 1.8rem 1.5rem; background: var(--teal); color: #fff; }
.advice__main::after { content: ""; position: absolute; right: 0; top: 0; width: 7rem; height: 4.5rem; background: var(--teal-2); clip-path: polygon(2.2rem 0, 100% 0, 100% 100%, 2.2rem 100%, 0 50%); opacity: .9; }
.advice__title { margin: .2rem 0 1.1rem; }
.badge--xl { font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); padding: .5rem 1rem; border-width: 2px; }
.advice__figures { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: end; padding: 1rem 0 1.1rem; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.advice__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--aqua); margin-bottom: .3rem; }
.advice__value { font: 700 clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.advice__confidence { display: grid; grid-template-columns: 1fr auto; column-gap: .8rem; align-items: center; }
.advice__confidence .advice__label { grid-column: 1 / -1; }
.meter { height: .75rem; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 0; background: var(--aqua); border-radius: 999px; transition: width 1.1s var(--ease); }
.meter.is-mid .meter__fill { background: #f4daa6; }
.meter.is-low .meter__fill { background: #f9c9bf; }
.advice__pct { font: 700 1.3rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.advice__summary { font-size: 1.08rem; line-height: 1.6; margin: 1.1rem 0 .4rem; color: #fff; }
.advice__sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--aqua); margin: 1.1rem 0 .45rem; }
.advice__motivation { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.advice__motivation li { position: relative; padding-left: 1.5rem; color: #eefafa; }
.advice__motivation li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .55rem; height: .55rem; background: var(--aqua); clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%); }
.advice__sources { margin: 0 0 1.2rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.advice__sources li { font-size: .84rem; background: rgba(255,255,255,.12); padding: .2rem .55rem; border-radius: 2px; }
.advice__sources a { color: #fff; }
.advice .text-link { color: #fff; border-bottom: 2px solid var(--aqua); padding-bottom: .1rem; }
.advice .text-link:hover { color: var(--aqua); text-decoration: none; }

.decision { padding: 1.6rem 1.6rem 1.5rem; background: var(--tint-2); display: flex; flex-direction: column; gap: .9rem; }
.decision__title { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; }
.decision__title svg { color: var(--teal); width: 1.4rem; height: 1.4rem; }
.decision__intro { color: var(--slate); margin: 0; }
.decision__buttons { display: grid; gap: .55rem; }
.decision__btn { justify-content: flex-start; }
.decision__btn.is-active { background: var(--aqua); color: var(--ink); border-color: var(--teal); }
.decision__form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); animation: fadeIn .2s; }
.decision__formactions { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.decision__done { display: flex; gap: .8rem; align-items: center; padding: 1rem; background: var(--pass-bg); color: var(--pass); border: 1px solid var(--pass-line); animation: rise .4s var(--ease); }
.decision__done strong { display: block; font-size: 1.05rem; }
.decision__done div > span { font-size: .9rem; color: var(--ink); }
.decision__doneicon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--pass); color: #fff; flex: none; }
.decision__error { margin: 0; padding: .7rem .9rem; background: var(--fail-bg); color: var(--fail); border: 1px solid var(--fail-line); font-weight: 500; }
.decision.is-decided .decision__buttons { display: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: .65rem .75rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid #8fa3a6; border-radius: 0; transition: border-color .12s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-2); outline: 3px solid var(--aqua); outline-offset: 0; box-shadow: none; }
.field textarea { resize: vertical; }
.money { display: flex; align-items: stretch; }
.money span { display: grid; place-items: center; padding: 0 .75rem; background: var(--tint); border: 2px solid #8fa3a6; border-right: 0; font-weight: 700; color: var(--teal-ink); }
.money input { font-variant-numeric: tabular-nums; }
.check { display: flex; gap: .55rem; align-items: center; font-weight: 500 !important; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--teal-2); }
.field--check { justify-content: flex-end; padding-bottom: .6rem; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; display: flex; align-items: center; gap: .4rem; }
.hint__icon { width: 1rem; height: 1rem; color: var(--teal); }

.form-page { padding-top: 2rem; max-width: 880px; }
.form-page h1 { margin: 1rem 0 .6rem; }
.casus-form { padding: 0; margin-top: 1.5rem; }
.casus-form fieldset { border: 0; margin: 0; padding: 1.4rem 1.6rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
.casus-form legend { display: flex; align-items: center; gap: .5rem; float: left; width: 100%; margin-bottom: 1rem; font: 700 1.15rem/1.2 var(--font-head); }
.casus-form legend svg { color: var(--teal); }
.casus-form legend + * { clear: both; }
.legend-note { font: 400 .85rem var(--font-body); color: var(--muted); margin-left: .3rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; background: var(--tint-2); }
.form-error { padding: .8rem 1rem; background: var(--fail-bg); color: var(--fail); border-left: 4px solid var(--fail); font-weight: 500; }

/* ---------- Audit ---------- */
.audit-page { padding-top: 2rem; }
.audit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.audit-head h1 { margin: .2rem 0 .3rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.audit-head .text-link--back { margin-bottom: 1rem; }
.audit-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.2rem; }
.audit-meta dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.audit-meta dd { margin: .2rem 0 0; }
.audit-summary { margin-bottom: 1.2rem; }
.audit-summary ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.audit-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.audit-table th { position: sticky; top: 0; background: var(--teal); color: #fff; text-align: left; padding: .65rem .75rem; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.audit-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.audit-table tbody tr:nth-child(even) td { background: var(--tint-2); }
.audit-table td:nth-child(2) { font-family: var(--font-mono); font-size: .8rem; color: var(--slate); }
.audit-table td:nth-child(3) { font-family: var(--font-mono); font-size: .8rem; color: var(--teal-ink); }
.audit-details details summary { cursor: pointer; color: var(--teal); font-weight: 500; }
.audit-details pre { margin: .4rem 0 0; padding: .5rem; background: var(--tint-2); border: 1px solid var(--line-soft); white-space: pre-wrap; word-break: break-word; max-height: 14rem; overflow: auto; }
.audit-reasoning { white-space: pre-wrap; color: var(--slate); }
.type-tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: .1rem .45rem; border-radius: 2px; background: var(--na-bg); color: var(--na); white-space: nowrap; }
.type-tag--step { background: var(--tint); color: var(--teal-ink); }
.type-tag--rule { background: var(--pass-bg); color: var(--pass); }
.type-tag--tool { background: #ece8f6; color: #4b3a8a; }
.type-tag--calc { background: var(--flag-bg); color: var(--flag); }
.type-tag--source { background: var(--info-bg); color: var(--info); }
.type-tag--final, .type-tag--decision { background: var(--teal); color: #fff; }
.type-tag--error { background: var(--fail-bg); color: var(--fail); }
.audit-foot { margin-top: 1rem; font-size: .85rem; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .demo-layout, .demo-layout.is-collapsed.picker-open { grid-template-columns: minmax(0, 1fr); }
  .picker { position: static; max-height: none; overflow: visible; }
  .case-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .advice { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 1.2rem; }
  .timeline::before { top: 1rem; bottom: 1rem; left: 1.3rem; right: auto; width: 3px; height: auto; }
  .timeline__item { flex-direction: row; align-items: flex-start; }
  .timeline__num { flex: none; }
  .run-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { position: static; }
  .step-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 1rem; }
  .step::before { display: none; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-nav__link { display: none; }
  .site-nav__cta { margin-left: 0; white-space: nowrap; padding: .4rem .65rem; font-size: .85rem; }
  .wordmark { gap: .55rem; }
  .wordmark__mark { width: 2rem; height: 2rem; }
  .wordmark__name { font-size: 1.1rem; }
  .wordmark__sub { font-size: .7rem; }
  .demo-ribbon { font-size: .76rem; }
  .case-summary__head { flex-direction: column; }
  .runbar { grid-template-columns: 1fr auto; }
  .runbar .progress { grid-column: 1 / -1; grid-row: 2; }
  .feed__item { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .feed__time { display: none; }
  .advice__figures { grid-template-columns: 1fr; gap: 1rem; }
  .decision__form, .form-grid { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .cta-band::after { display: none; }
  .casus-form fieldset, .form-actions { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* ---------- Print (audit trail) ---------- */
@media print {
  @page { margin: 14mm; }
  body { font-size: 10pt; color: #000; }
  .site-header .site-nav, .skip-link, .no-print, .site-footer { display: none !important; }
  .site-header { border-bottom: 2px solid #000; }
  .demo-ribbon { background: none; color: #000; }
  .card, .table-scroll { box-shadow: none; border-color: #999; }
  .audit-table th { background: #fff !important; color: #000; border-bottom: 2px solid #000; position: static; }
  .audit-table tbody tr:nth-child(even) td { background: none; }
  .audit-table tr { break-inside: avoid; }
  .audit-details details { display: block; }
  .audit-details details > *:not(summary) { display: block; }
  a { color: #000; text-decoration: none; }
}
