/* Product demo (assets/demo.js): frame, steps, header and quote document. The markup is the finished state; [data-live] (set by the script) switches on the playback look. Side panel, sheet and phone rules: demo-panels.css. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.demo { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 12px; font-size: 14px; line-height: 1.5; }
.demo-visual { display: contents; }
/* one screen: the steps and the buttons share the first row, the window sits under them, the caption under the window */
.demo-steps { grid-column: 1; grid-row: 1; }
.demo-app { grid-column: 1 / -1; grid-row: 2; }
.demo-seek { grid-column: 1 / -1; grid-row: 3; }
.demo-caption { grid-column: 1 / -1; grid-row: 4; align-self: center; }
.demo-controls { grid-column: 2; grid-row: 1; align-self: center; }
.demo:not([data-live]) .demo-steps { grid-column: 1 / -1; }

/* step labels */
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.demo-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.demo-steps .n { grid-row: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font: 600 13px Outfit, sans-serif; }
.demo-steps .lbl { grid-row: 1; font-size: 14px; }
.demo-steps .cap { grid-column: 2; font-weight: 400; font-size: 13px; line-height: 1.45; }
.demo-steps li[data-state="done"] { color: var(--navy); }
.demo-steps li[data-state="done"] .n { background: var(--navy-soft); }
.demo-steps li[data-state="active"] { background: var(--brand-navy); border-color: var(--navy); color: #fff; }
.demo-steps li[data-state="active"] .n { background: var(--surface); color: var(--navy); }
.demo[data-live] .demo-steps { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px; }
.demo[data-live] .demo-steps li { padding: 0 14px 0 8px; min-height: 44px; border-radius: 999px; cursor: pointer; }
.demo[data-live] .demo-steps li:hover:not([data-state="active"]) { background: var(--navy-soft); }
.demo[data-live] .demo-steps .cap { display: none; }
.demo:not([data-live]) .demo-caption, .demo:not([data-live]) .demo-controls { display: none; }

.demo-caption { margin: 0; color: var(--navy); font-weight: 600; font-size: 15px; min-height: 24px; }
.demo-controls { display: flex; gap: 8px; }
.demo-btn { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font: 600 14px Inter, sans-serif; cursor: pointer; }
.demo-btn:hover { background: var(--navy-soft); }

/* the window: the app's rail, then the header card over the side panel and the document */
/* the window is drawn zoomed out, like a screenshot of the app: more of it fits the frame. The pointer's offsets are divided by --demo-zoom (demo.js). */
.demo-app { --demo-zoom: .85; zoom: var(--demo-zoom); position: relative; border-radius: 18px; background: var(--surface-2); }
@supports not (zoom: 1) { .demo-app { --demo-zoom: 1; } }
.demo-shell { display: grid; grid-template-columns: auto 1fr; transition: opacity .8s; }
.demo-app[data-fade="true"] .demo-shell { opacity: 0; }
.demo-app[data-fade="true"] .demo-toast { opacity: 0; transition: opacity .8s; }
.demo-main { padding: 12px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.demo:not([data-live]) .demo-cursor, .demo:not([data-live]) .demo-seek { display: none; }

/* the timeline: a thin line, a 24px hit area (44px on touch), a handle on hover and while it has focus */
.demo-seek { position: relative; height: 24px; cursor: pointer; touch-action: none; border-radius: 8px; }
.demo-seek-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--line-2); transition: height .15s, margin-top .15s; }
.demo-seek-track i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--orange); }
.demo-seek-handle { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(252,163,17,.3); opacity: 0; transition: opacity .15s; }
.demo-seek:hover .demo-seek-track, .demo-seek:focus-visible .demo-seek-track { height: 8px; margin-top: -4px; }
.demo-seek:hover .demo-seek-handle, .demo-seek:focus-visible .demo-seek-handle { opacity: 1; }
@media (pointer: coarse) { .demo-seek { height: 44px; } .demo-seek-handle { opacity: 1; } }

.demo-rail { width: 64px; background: var(--brand-navy); padding: 16px 0; display: flex; justify-content: center; align-items: flex-start; }
.demo-logo svg { width: 36px; height: 36px; display: block; }

.demo-top, .demo-doc, .demo-side { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.demo-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.demo-name { font: 600 20px Outfit, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.demo-who .pill[data-state="draft"] { background: var(--paper); color: var(--muted); }
/* once it is sent the outcome chip in the header says so: one status, not two */
.demo-who .pill[data-state="sent"] { display: none; }
.demo-dock { display: flex; align-items: center; gap: 12px; }
.demo .total { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo .total > span { font: 700 26px Outfit, sans-serif; letter-spacing: -.01em; color: var(--ink); line-height: 1.15; }
.demo .total small { display: block; font: 400 12px Inter, sans-serif; color: var(--muted); }
.demo-actions { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.demo-status { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.demo-actions[data-stage="draft"] .demo-status, .demo-actions[data-stage="sheet"] .demo-status, .demo-actions[data-stage="sent"] .demo-go, .demo-actions[data-stage="accepted"] .demo-go { display: none; }
.demo-actions[data-stage="accepted"] .demo-resend { display: none; }
/* the app's outcome chip (queue-badge) */
.demo-outcome { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--navy); font-size: 12px; font-weight: 600; white-space: nowrap; }
.demo-outcome[data-state="accepted"] { background: #FDE3B0; }
.demo-more { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid #D6D3CA; font-size: 18px; line-height: 1; color: var(--ink); background: var(--surface); }
.demo-save { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D3D0C6; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; background: var(--surface); }
.demo-go { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--orange); color: var(--brand-navy); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.demo-go[data-pressed="true"] { transform: scale(.95); box-shadow: 0 0 0 6px rgba(252,163,17,.45); }

/* the document */
.demo-stage { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 12px; align-items: stretch; min-width: 0; }
.demo[data-live] .demo-stage { height: 540px; }
.demo-doc { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.demo-scroll { padding: 22px 26px 18px; overflow: hidden; flex: 1; scroll-behavior: auto; }
.demo-doc-title { font: 600 20px Outfit, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.demo-doc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.demo-doc-pills { min-height: 34px; margin-left: auto; }
.demo-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--amber-ink); border: 1px solid #f3dcb8; }
.demo-chk::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; opacity: .55; }
.demo-chk[data-state="reviewing"]::before { border-top-color: transparent; animation: demo-spin .9s linear infinite; }
.demo-chk[data-state="clear"] { background: var(--navy-soft); color: var(--navy); border-color: #C3CADA; }
.demo-chk[data-state="clear"]::before { border: 0; background: var(--navy); opacity: 1; width: 8px; height: 8px; }
.demo[data-live] .demo-chk[data-state="none"] { visibility: hidden; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-intro { margin: 0 0 12px; color: var(--ink); }

/* the check card, as the app's CheckCard: one question, answers that need no typing */
.demo-check { display: none; border: 1px solid #DDDAD2; border-radius: 14px; padding: 14px 18px 12px; margin: 0 0 16px; background: var(--surface); }
.demo-check[data-open="true"] { display: block; animation: demo-in .35s both; }
.demo-check-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.demo-check-top i { flex: 0 0 120px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.demo-check p { margin: 0; }
.demo-check-q { margin-top: 10px !important; font: 600 18px/1.35 Inter, sans-serif; color: var(--ink); }
.demo-check-hint { margin-top: 4px !important; color: var(--muted); font-size: 13px; }
.demo-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.demo-opt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #D3D0C6; background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.demo-opt.yes { background: var(--brand-navy); border-color: var(--navy); color: #fff; }
.demo-opt[data-pressed="true"] { transform: scale(.95); box-shadow: 0 0 0 5px rgba(20,33,61,.18); }
.demo-check-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* the lines: the app's columns, a source chip under each total */
.demo-thead, .demo-row { display: grid; grid-template-columns: 24px 24px 64px minmax(0, 1fr) 84px 108px 40px; grid-template-areas: "mk nr q ti a tot v" "mk nr q d a ch v"; column-gap: 12px; align-items: start; }
.demo-thead { grid-template-areas: ". . q ti a tot v"; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.demo-thead .q, .demo-thead .a, .demo-thead .tot, .demo-thead .v { text-align: right; }
.demo-thead .d { grid-area: ti; }
.demo-row { padding: 12px 0; border-top: 1px solid var(--line); overflow: hidden; max-height: 150px; transition: opacity .5s, max-height .6s, padding .6s, background .4s; font-variant-numeric: tabular-nums; }
.demo-row:first-child { border-top: 0; }
.demo-row[data-on="false"] { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; }
.demo-row[data-saved="true"] { background: var(--navy-soft); }
.demo-row .nr { grid-area: nr; color: var(--muted); font-size: 13px; padding-top: 1px; }
.demo-row .q { grid-area: q; text-align: right; color: var(--ink); white-space: nowrap; }
.demo-row .ti { grid-area: ti; font-weight: 600; color: var(--ink); }
.demo-row .d { grid-area: d; color: var(--muted); font-size: 13px; line-height: 1.45; }
.demo-row .a { grid-area: a; text-align: right; color: var(--muted); white-space: nowrap; }
.demo-row .tot { grid-area: tot; text-align: right; font-weight: 600; white-space: nowrap; }
.demo-row .ch { grid-area: ch; text-align: right; margin-top: 4px; }
.demo-row .v { grid-area: v; text-align: right; color: var(--muted); }
.demo-row .mk { grid-area: mk; width: 22px; height: 22px; }
.demo-thead .q { grid-area: q; } .demo-thead .a { grid-area: a; } .demo-thead .tot { grid-area: tot; } .demo-thead .v { grid-area: v; }
/* the quiet source chip, as the app's LineSourceChip */
.demo-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid #E6E4DF; color: #4D5362; font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap; }
/* the check mark: an amber ring with a "!" */
.demo-mk { border-radius: 50%; background: var(--surface-2); border: 2px solid #9a6208; display: grid; place-items: center; transition: opacity .3s; }
.demo-mk i { font: 700 12px/1 Inter, sans-serif; font-style: normal; color: #85570a; }
.demo-mk[data-state="off"], .demo-mk[data-state="done"] { opacity: 0; }
.demo-mk[data-state="pulse"] { animation: demo-pulse 1s ease-out infinite; }
@keyframes demo-pulse { 0% { box-shadow: 0 0 0 0 rgba(154,98,8,.45); } 100% { box-shadow: 0 0 0 9px rgba(154,98,8,0); } }

/* "+ Regel toevoegen" opens the empty line: the field the catalogue answers */
.demo-addrow { display: grid; margin: 4px 0 6px; }
.demo-addrow > * { grid-area: 1 / 1; }
.demo-addline { justify-self: start; align-self: center; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; margin-left: -14px; border-radius: 999px; font-weight: 600; color: var(--navy); }
.demo-addline[data-hidden="true"] { visibility: hidden; }
.demo-slot { opacity: 0; visibility: hidden; border-radius: 14px; padding: 8px 12px 12px; background: var(--surface); box-shadow: 0 0 0 3px #FDE3B0, 0 0 0 1px #F5B94A; transition: opacity .25s, visibility .25s; }
.demo-slot[data-open="true"] { opacity: 1; visibility: visible; }
.demo-slot-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.demo-slot-cap b { letter-spacing: .06em; text-transform: uppercase; color: var(--navy); font-size: 11.5px; }
.demo-slot-field, .demo-cat-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--navy); border-radius: 10px; background: var(--surface); }
.demo-slot-field .plus, .demo-cat-search .plus { font-weight: 700; color: var(--navy); }
.demo-slot-text { flex: 1; min-width: 0; color: var(--ink); font-size: 15px; }
.demo-slot-text .ph { color: #7E8699; }
.demo-slot-text:has([data-typed-doc]:not(:empty)) .ph, .demo-slot-text:has([data-typed-cat]:not(:empty)) .ph { display: none; }
.demo-slot-field .x { color: var(--muted); font-size: 20px; line-height: 1; }

.demo-sums { margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; justify-content: end; font-variant-numeric: tabular-nums; }
.demo-sums > div { display: grid; grid-template-columns: 140px 112px; gap: 12px; }
.demo-sums dt { color: var(--muted); }
.demo-sums dd { margin: 0; text-align: right; }
.demo-sums .grand { font-weight: 700; color: var(--ink); }
.demo-sums .grand dt { color: var(--ink); }

.demo-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -3px 0 0 -3px; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 7; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.demo-cursor[data-on="true"] { opacity: 1; }
.demo-cursor svg { width: 100%; height: 100%; transition: transform .12s; transform-origin: 20% 10%; }
.demo-cursor[data-pressed="true"] svg { transform: scale(.8); }

.demo[data-reset="true"] * { transition: none !important; animation: none !important; }

/* a medium screen: the rail goes, the two panels stay */
@media (max-width: 1099px) {
  .demo-rail { display: none; }
  .demo-shell { grid-template-columns: 1fr; }
}

/* standalone page: for screen recordings and links */
.demo-page main { padding: 8px 28px 10px; }
.demo-page .demo { max-width: 1240px; row-gap: 10px; }
.demo-page .demo-head { max-width: 1240px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-page .demo-head .logo { font-size: 20px; }
.demo-page .demo-head .logo svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .demo-page main { padding: 14px 14px 20px; } }

@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before { animation: none !important; transition: none !important; }
}

/* The party-popper when the customer accepts: a canvas inside the window, never over the page around it. */
.demo-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 9; pointer-events: none; border-radius: inherit; }
@media (prefers-reduced-motion: reduce) { .demo-confetti { display: none; } }
