/* VocalPoint components. Every colour, radius, duration and easing is a token from app.css. Offsets that slide or
   scale are multiplied by --motion-distance, which reduced motion sets to 0 (opacity-only transitions). */

/* ---------- Base for the new app ---------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.vp-main { flex: 1; min-width: 0; outline: none; }
.vp-boot { padding: var(--s6); color: var(--ink-3); }
.vp-skip { position: absolute; left: var(--s2); top: -48px; z-index: 100; background: var(--surface); color: var(--ink); padding: var(--s2) var(--s3); border-radius: var(--radius-sm); }
.vp-skip:focus { top: var(--s2); }
.vp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vp-muted { color: var(--ink-2); }
.vp-stack { display: grid; gap: var(--s4); align-content: start; }
.vp-stack--lg { gap: var(--s6); }
.vp-stack--sm { gap: var(--s2); }
.vp-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.vp-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s8); }
.vp-page--narrow { max-width: 720px; }
.vp-page h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; outline: none; }
.vp-page h2 { font-size: 1.25rem; }
.vp-bullets { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s1); }
.vp-fade-in { animation: vp-fade-in var(--motion-short) var(--ease-enter); }
.vp-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.vp-kicker { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.vp-section-title { font-size: 1.05rem; }
small, .vp-small { font-size: .85rem; }
/* nothing under 11.5px anywhere (CLAUDE.md accessibility rule) */
.vp-tiny { font-size: max(var(--text-min), .72rem); }

/* ---------- Buttons ---------- */
.vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--motion-xshort) var(--ease-move), background-color var(--motion-short) var(--ease-move), border-color var(--motion-short) var(--ease-move); }
.vp-btn:active:not(:disabled) { transform: scale(calc(1 - .02 * var(--motion-distance))); }
.vp-btn--primary { background: var(--accent); color: var(--accent-ink); }
.vp-btn--primary:hover:not(:disabled) { background: var(--accent-text); }
.vp-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.vp-btn--secondary:hover:not(:disabled) { border-color: var(--ink-3); }
.vp-btn--ghost { background: transparent; color: var(--ink); }
.vp-btn--danger { background: var(--danger); color: var(--surface); }
.vp-btn--danger-outline { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.vp-btn--sm { min-height: 36px; padding: 0 var(--s3); font-size: .92rem; }
.vp-btn--lg { min-height: 52px; padding: 0 var(--s5); font-size: 1.05rem; }
.vp-btn--block { width: 100%; }
.vp-btn:disabled { opacity: .55; cursor: not-allowed; }
.vp-btn.is-busy { cursor: progress; }
.vp-btn-with-reason { display: inline-grid; gap: var(--s1); justify-items: start; }
.vp-reason { margin: 0; font-size: var(--text-min); color: var(--ink-2); line-height: 1.4; }
.vp-reason__fix { font-size: inherit; }
.vp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 0;
  background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.vp-icon-btn:hover { background: var(--surface-2); }

/* ---------- Form ---------- */
.vp-field { display: grid; gap: var(--s1); }
.vp-field__label { font-weight: 650; }
.vp-field__opt, .vp-field__hint { color: var(--ink-2); font-weight: 400; font-size: .9rem; }
.vp-field__error { color: var(--danger); font-size: .9rem; }
.vp-input { width: 100%; min-height: 44px; padding: var(--s2) var(--control-pad-x); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
textarea.vp-input { min-height: 96px; resize: vertical; }
/* Selects: our own chevron, inset from the border with room for it (no native arrow hugging the edge). */
select.vp-input, .vp-filter select { appearance: none; -webkit-appearance: none; padding-right: var(--select-icon-space);
  background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right var(--control-pad-x) center; background-size: 16px 16px; text-overflow: ellipsis; cursor: pointer; }
select.vp-input--sm { padding-right: 34px; background-position: right 10px center; background-size: 14px 14px; }
select.vp-input::-ms-expand { display: none; }
.vp-input[aria-invalid] { border-color: var(--danger); }

/* ---------- Status chip ---------- */
.vp-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s2); border-radius: var(--radius-pill); font-size: .82rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; transition: background-color var(--motion-medium) var(--ease-move), color var(--motion-medium) var(--ease-move); }
.vp-chip--success { background: var(--success-soft); color: var(--success); }
.vp-chip--waiting { background: var(--warning-soft); color: var(--warning); }
.vp-chip--action { background: var(--accent-soft); color: var(--accent-text); }
.vp-chip--danger { background: var(--danger-soft); color: var(--danger); }
.vp-chip--demo { background: var(--sticky); color: var(--sticky-ink); font-weight: 600; }
.vp-chip-wrap { display: inline-grid; gap: 2px; justify-items: start; }
.vp-chip__hint { font-size: var(--text-min); color: var(--ink-2); }

/* ---------- Top bar, section menu, demo bar ---------- */
.vp-demobar { background: var(--sticky); color: var(--sticky-ink); font-size: .88rem; }
.vp-demobar__inner { max-width: 1440px; margin: 0 auto; padding: 6px var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3); }
.vp-demobar a { color: inherit; font-weight: 700; }
.vp-topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.vp-topbar__inner { max-width: 1440px; margin: 0 auto; min-height: var(--topbar-height); padding: 0 var(--s4); display: flex; align-items: center; gap: var(--s4); }
.vp-brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-bg { fill: var(--accent); } .logo-bar { fill: var(--accent-ink); }
.vp-topbar__nav { display: flex; gap: var(--s1); flex: 1; overflow-x: auto; }
.vp-topbar__link { position: relative; padding: var(--s2) var(--s3); border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.vp-topbar__link:hover { color: var(--ink); background: var(--surface-2); }
.vp-topbar__link.is-active { color: var(--ink); background: var(--accent-soft); }
.vp-dot { position: absolute; top: 6px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.vp-topbar__right { display: flex; align-items: center; gap: var(--s2); }
.vp-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.vp-lang__btn { border: 0; background: transparent; color: var(--ink-2); padding: 6px 10px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 36px; }
.vp-lang__btn.is-active { background: var(--ink); color: var(--bg); }
.vp-bell__count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--danger); color: var(--surface); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.vp-account { display: inline-flex; align-items: center; gap: var(--s2); border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; padding: 4px var(--s2); border-radius: var(--radius-sm); min-height: 40px; }
.vp-account:hover { background: var(--surface-2); }
.vp-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .85rem; }
.vp-appframe { width: 100%; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: var(--menu-width) minmax(0, 1fr); gap: var(--s5); padding: 0 var(--s4); flex: 1; }
.vp-appframe--single { grid-template-columns: minmax(0, 1fr); padding: 0; }
.vp-siteframe { flex: 1; display: flex; flex-direction: column; }
.vp-sectionmenu { padding: var(--s5) 0; position: sticky; top: var(--topbar-height); align-self: start; display: grid; gap: var(--s4); }
.vp-sectionmenu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vp-sectionmenu__link { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3); border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.vp-sectionmenu__link:hover { background: var(--surface-2); color: var(--ink); }
.vp-sectionmenu__link.is-active { background: var(--accent-soft); color: var(--accent-text); }
.vp-sectionmenu__count { min-width: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-size: .78rem; text-align: center; }
.vp-appframe .vp-page { padding-left: 0; padding-right: 0; }

/* ---------- Banner, toast ---------- */
.vp-banner { background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.vp-banner--warning { background: var(--warning-soft); }
.vp-banner__inner { max-width: 1440px; margin: 0 auto; padding: var(--s2) var(--s4); display: flex; align-items: center; gap: var(--s3); }
.vp-banner__text { flex: 1; }
.vp-banner__close { border: 0; background: transparent; color: var(--ink-2); cursor: pointer; width: 36px; height: 36px; border-radius: var(--radius-sm); }
.vp-toasts { position: fixed; left: var(--s5); bottom: var(--s5); z-index: 90; display: grid; gap: var(--s2); width: min(var(--toast-width), calc(100vw - 32px)); }
.vp-toast { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4); border-radius: var(--radius); background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  animation: vp-toast-rise var(--motion-long) var(--ease-enter); }
.vp-toast.is-leaving { animation: vp-fade-out var(--motion-medium) var(--ease-exit) forwards; }
.vp-toast__text { flex: 1; }
.vp-toast__action { color: var(--accent-soft); font-weight: 700; }
.vp-toast__close { border: 0; background: transparent; color: inherit; cursor: pointer; width: 32px; height: 32px; }

/* ---------- Overlays ---------- */
body.has-overlay { overflow: hidden; }
.vp-layer { position: fixed; inset: 0; z-index: 60; display: grid; }
.vp-scrim { position: absolute; inset: 0; background: var(--scrim); animation: vp-fade-in var(--motion-long) var(--ease-enter); }
.vp-layer.is-leaving .vp-scrim { animation: vp-fade-out var(--motion-medium) var(--ease-exit) forwards; }
.vp-modal { position: relative; place-self: center; width: min(var(--modal-confirm), calc(100vw - 32px)); max-height: 80vh; overflow: auto; background: var(--surface); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); animation: vp-modal-enter var(--motion-long) var(--ease-enter); }
.vp-modal--wide { width: min(var(--modal-wide), calc(100vw - 32px)); }
.vp-layer.is-leaving .vp-modal { animation: vp-modal-exit var(--motion-medium) var(--ease-exit) forwards; }
.vp-modal__head { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s5) 0; }
.vp-modal__title { font-size: 1.3rem; }
.vp-modal__body { padding: var(--s3) var(--s5); display: grid; gap: var(--s3); }
.vp-modal__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s5) var(--s5); }
.vp-layer--panel { justify-items: end; grid-template-rows: minmax(0, 1fr); }
.vp-panel { position: relative; width: min(var(--panel-width), 100vw); height: 100%; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow);
  animation: vp-panel-enter var(--motion-long) var(--ease-enter); }
.vp-layer.is-leaving .vp-panel { animation: vp-panel-exit var(--motion-medium) var(--ease-exit) forwards; }
.vp-panel__handle { display: none; }
.vp-panel__head { display: flex; align-items: center; gap: var(--s2); padding: var(--s4) var(--s4) var(--s2) var(--s5); }
.vp-panel__title { flex: 1; font-size: 1.25rem; }
.vp-panel__back { display: none; }
.vp-panel__steps { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0 var(--s5) var(--s3); counter-reset: s; font-size: .85rem; color: var(--ink-3); }
.vp-panel__steps li { counter-increment: s; display: flex; align-items: center; gap: 6px; }
.vp-panel__steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; }
.vp-panel__steps li.is-current { color: var(--ink); font-weight: 700; }
.vp-panel__steps li.is-current::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vp-panel__steps li.is-done::before { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-text); }
.vp-panel__body { flex: 1; min-height: 0; overflow: auto; padding: var(--s3) var(--s5) var(--s5); display: grid; gap: var(--s4); align-content: start; }
.vp-panel__foot { border-top: 1px solid var(--line); padding: var(--s3) var(--s5); display: flex; justify-content: flex-end; gap: var(--s2); flex-wrap: wrap; }
.vp-popover { position: absolute; z-index: 70; width: max-content; max-width: min(var(--popover-max), calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s2); transform-origin: var(--origin, top left); animation: vp-pop-enter var(--motion-short) var(--ease-enter); }
.vp-popover.is-leaving { animation: vp-fade-out var(--motion-xshort) var(--ease-exit) forwards; }
.vp-popover__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vp-popover__item { width: 100%; display: grid; gap: 2px; text-align: left; padding: var(--s2) var(--s3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.vp-popover__item:hover, .vp-popover__item:focus-visible { background: var(--surface-2); }
.vp-popover__item--pink { background: var(--door-v); color: var(--door-ink); }
.vp-popover__item--blue { background: var(--door-b); color: var(--door-ink); }
.vp-popover__label { font-weight: 700; }
.vp-popover__desc { font-size: .88rem; color: var(--ink-2); }
.vp-notes { width: 380px; }
.vp-notes__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s2); }
.vp-notes__title { font-size: 1.1rem; }
.vp-notes__markall { font-size: .88rem; }
.vp-notes__body { max-height: 60vh; overflow: auto; display: grid; gap: var(--s3); }
.vp-notes__group h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 var(--s2); margin-bottom: var(--s1); }
.vp-notes__group ul { list-style: none; margin: 0; padding: 0; }
.vp-notes__item { display: grid; gap: 2px; padding: var(--s2); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.vp-notes__item:hover { background: var(--surface-2); }
.vp-notes__item.is-unread { font-weight: 650; }
.vp-notes__item.is-unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.vp-notes__item time { font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.vp-notes__empty { padding: var(--s3); color: var(--ink-2); }

/* ---------- Checklist, progress, wizard ---------- */
.vp-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.vp-check { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding: var(--s2) 0; }
.vp-check__mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.vp-check.is-done .vp-check__mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vp-check.is-ticking .vp-check__mark svg { animation: vp-tick var(--motion-medium) var(--ease-enter); }
.vp-check__text { display: grid; gap: 2px; }
.vp-check__label { font-weight: 650; }
.vp-check.is-done .vp-check__label { color: var(--ink-2); }
.vp-check__hint { font-size: .88rem; color: var(--ink-2); }
.vp-progress { display: grid; gap: var(--s1); }
.vp-progress__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; list-style: none; margin: 0; padding: 0; }
.vp-progress__seg { height: 4px; border-radius: var(--radius-pill); background: var(--line); position: relative; overflow: hidden; }
.vp-progress__seg::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--motion-xlong) var(--ease-move); }
.vp-progress__seg.is-done::after { transform: scaleX(1); }
.vp-progress__labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .78rem; color: var(--ink-3); }
.vp-progress__labels .is-current { color: var(--ink); font-weight: 700; }
.vp-wizard { display: grid; gap: var(--s4); }
.vp-wizard__count { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.vp-wizard__title { font-size: 1.5rem; outline: none; }
.vp-step-next { animation: vp-step-next var(--motion-long) var(--ease-enter); }
.vp-step-back { animation: vp-step-back var(--motion-long) var(--ease-enter); }

/* ---------- Blocks, zones, layouts ---------- */
.vp-layout { display: grid; gap: var(--s6); }
.vp-layout__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gutter); }
.vp-zone { grid-column: span var(--cols); display: grid; gap: var(--s3); align-content: start; }
.vp-zone__label { font-family: var(--sans); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.vp-zone__grid { display: grid; grid-template-columns: repeat(var(--zone-cols), minmax(0, 1fr)); gap: var(--grid-gutter); }
.vp-zone__grid > * { grid-column: span var(--span, var(--zone-cols)); }
.vp-zone__caughtup { color: var(--ink-2); padding: var(--s3) 0; }
.vp-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.vp-block__head { display: flex; align-items: center; gap: var(--s2); }
.vp-block__title { font-size: 1.05rem; flex: 1; }
.vp-block__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-family: var(--sans); font-size: .78rem; }
.vp-block__foot { border-top: 1px solid var(--line); padding-top: var(--s2); }
.vp-block__all { font-weight: 650; text-decoration: none; }
.vp-block__error, .vp-block__noperm { display: grid; gap: var(--s2); justify-items: start; color: var(--ink-2); }
.vp-skeleton { display: grid; gap: var(--s2); }
.vp-skel { display: block; border-radius: var(--radius-sm); background: var(--surface-2); animation: vp-shimmer var(--shimmer) ease-in-out infinite; }
.vp-skel--row { height: 40px; } .vp-skel--num { height: 36px; width: 60%; } .vp-skel--line { height: 14px; width: 80%; }
.vp-empty { display: grid; gap: var(--s2); justify-items: start; padding: var(--s2) 0; color: var(--ink-2); }
.vp-empty__art { width: 96px; height: auto; }
.vp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.vp-list > li { padding: var(--s3) 0; border-top: 1px solid var(--line); display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.vp-list > li:first-child { border-top: 0; }
.vp-num { font-variant-numeric: tabular-nums; }
.vp-stat { display: grid; gap: 2px; }
.vp-stat__value { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.vp-stat__label { color: var(--ink-2); font-size: .9rem; }
.vp-dashhead { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.vp-dashhead__title { font-size: clamp(1.6rem, 3vw, 2.1rem); outline: none; }
.vp-dashhead__actions { display: flex; gap: var(--s2); align-items: center; }

/* ---------- Annotated section, save bar, danger zone, once-only ---------- */
.vp-annotated { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.vp-annotated__label { font-size: 1.05rem; }
.vp-annotated__note { color: var(--ink-2); font-size: .92rem; margin-top: var(--s1); }
.vp-annotated__main { display: grid; gap: var(--s4); align-content: start; }
.vp-savebar { position: sticky; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow); animation: vp-toast-rise var(--motion-long) var(--ease-enter); }
.vp-savebar__inner { max-width: 1180px; margin: 0 auto; padding: var(--s3) var(--s4); display: flex; justify-content: flex-end; gap: var(--s2); }
.vp-danger { border: 1px solid var(--danger); border-radius: var(--radius); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); justify-items: start; }
.vp-danger__title { color: var(--danger); font-size: 1.05rem; }
.vp-once.is-playing { animation: vp-draw var(--motion-xxlong) var(--ease-enter); }
/* The certificate stays paper-coloured in both themes, so its text uses its own tokens, never the theme's. */
.vp-cert { --ink: var(--cert-ink); --ink-2: var(--cert-ink-2); --ink-3: var(--cert-ink-3); --line: var(--cert-line); --line-strong: var(--cert-line); --surface: var(--cert); background: var(--cert); color: var(--cert-ink); border-radius: var(--radius); padding: var(--s5); display: grid; gap: var(--s2); }

/* ---------- Demo screens ---------- */
.vp-demo-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.vp-demo-section { display: grid; gap: var(--s3); justify-items: start; align-content: start; }
.vp-segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.vp-segmented button { border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: var(--s2) var(--s3); font: inherit; cursor: pointer; min-height: 40px; }
.vp-segmented button:first-child { border-left: 0; }
.vp-segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.vp-table th, .vp-table td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.vp-table th { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.vp-table-wrap { overflow-x: auto; }
.vp-mail { white-space: pre-wrap; font: inherit; margin: 0; color: var(--ink-2); }
.vp-placeholder-block { min-height: 88px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-3); font-size: .88rem; text-align: center; padding: var(--s2); }
.vp-bare { min-height: 100vh; background: var(--surface-2); display: grid; place-items: start center; padding: var(--s8) var(--s4); }
.vp-stripe { width: min(520px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vp-stripe__brand { padding: var(--s3) var(--s5); background: var(--navy); color: var(--surface); font-weight: 800; letter-spacing: .02em; }
.vp-stripe__body { padding: var(--s5); display: grid; gap: var(--s4); }

/* ---------- Keyframes (shapes from design/motion.css, offsets scaled by --motion-distance) ---------- */
@keyframes vp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vp-fade-out { to { opacity: 0; } }
@keyframes vp-modal-enter { from { opacity: 0; transform: scale(calc(1 - .05 * var(--motion-distance))); } to { opacity: 1; transform: scale(1); } }
@keyframes vp-modal-exit { to { opacity: 0; transform: scale(calc(1 - .03 * var(--motion-distance))); } }
@keyframes vp-panel-enter { from { opacity: calc(1 - var(--motion-distance)); transform: translateX(calc(100% * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-panel-exit { to { opacity: calc(1 - var(--motion-distance)); transform: translateX(calc(100% * var(--motion-distance))); } }
@keyframes vp-sheet-enter { from { opacity: calc(1 - var(--motion-distance)); transform: translateY(calc(100% * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-pop-enter { from { opacity: 0; transform: translateY(calc(-6px * var(--motion-distance))) scale(calc(1 - .03 * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-toast-rise { from { opacity: 0; transform: translateY(calc(12px * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-step-next { from { opacity: 0; transform: translateX(calc(32px * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-step-back { from { opacity: 0; transform: translateX(calc(-32px * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-tick { 0% { opacity: 0; transform: scale(calc(1 - .6 * var(--motion-distance))); } 100% { opacity: 1; transform: scale(1); } }
@keyframes vp-draw { from { opacity: 0; transform: translateY(calc(10px * var(--motion-distance))) scale(calc(1 - .03 * var(--motion-distance))); } to { opacity: 1; transform: none; } }
@keyframes vp-shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Phones (390px pass) ---------- */
@media (max-width: 900px) {
  .vp-appframe { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vp-sectionmenu { position: static; padding: var(--s2) 0; overflow-x: auto; }
  .vp-sectionmenu ul { grid-auto-flow: column; grid-auto-columns: max-content; }
  .vp-annotated { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
}
@media (max-width: 760px) {
  .vp-topbar__nav { display: none; }
  .vp-account__name { display: none; }
  .vp-layout__row { grid-template-columns: minmax(0, 1fr); }
  .vp-zone, .vp-zone__grid > * { grid-column: 1 / -1; }
  .vp-zone__grid { grid-template-columns: minmax(0, 1fr); }
  .vp-toasts { left: 50%; transform: translateX(-50%); bottom: var(--s4); }
  .vp-layer--panel { justify-items: stretch; }
  .vp-panel { width: 100vw; animation-name: vp-sheet-enter; }
  .vp-panel__handle { display: block; width: 40px; height: 4px; border-radius: var(--radius-pill); background: var(--line-strong); margin: var(--s2) auto 0; }
  .vp-panel__back { display: inline-flex; } .vp-panel__close { display: none; }
  .vp-modal { animation-name: vp-fade-in; }
  .vp-popover { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; border-radius: var(--radius) var(--radius) 0 0; animation-name: vp-sheet-enter; }
  .vp-notes { width: 100%; }
}

/* ---------- Website (converted design pages) ---------- */
vp-dc { display: contents; }
.vp-sitepage { display: block; }
.vp-siteheader-slot { position: sticky; top: 0; z-index: 50; }
/* Focus moved to a page heading by the router is for screen readers and keyboard order, not a visible ring. */
[data-page-heading]:focus, [data-page-heading]:focus-visible, .vp-main:focus-visible { outline: none !important; }

/* ---------- Account screens (Round 0 frames) ---------- */
.vp-auth { width: 100%; max-width: 1080px; margin: 0 auto; padding: var(--s7) var(--s6) var(--s8); display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 320px; }
.vp-auth--narrow { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
.vp-auth__main { min-width: 0; align-content: start; gap: 18px; }
.vp-auth__aside { align-self: start; display: grid; gap: var(--s4); }
.vp-auth__title { font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; outline: none; }
.vp-auth__intro { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; }
.vp-rolecards { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
.vp-rolecard { position: relative; display: grid; gap: 10px; padding: 12px 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); cursor: pointer; text-align: left;
  transition: border-color var(--motion-short) var(--ease-move), box-shadow var(--motion-short) var(--ease-move); }
.vp-rolecard.is-on { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); padding: 11px 11px 15px; }
.vp-rolecard__art { border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 10px; }
.vp-rolecard__art img { height: 104px; width: auto; }
.vp-rolecard__text { display: grid; gap: 2px; padding: 0 4px; }
.vp-rolecard__text strong { font-family: var(--serif); font-size: 1.2rem; }
.vp-rolecard__text span { font-size: .9rem; color: var(--ink-2); }
.vp-rolecard__chip { position: absolute; top: 20px; right: 20px; }
.vp-langline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .9rem; }
.vp-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.vp-steps li { display: flex; gap: var(--s3); align-items: start; }
.vp-steps--wide li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; }
.vp-steps__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.vp-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0; }
.vp-kv dt { color: var(--ink-3); font-size: .9rem; }
.vp-kv dd { margin: 0; font-weight: 600; }
.vp-invitebar { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--radius); background: var(--door-v); color: var(--door-ink); }
.vp-demo-accounts { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vp-demo-account { display: grid; gap: 2px; text-align: left; padding: var(--s3); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.vp-demo-account:hover { border-color: var(--accent); }
.vp-demo-account span { font-size: .85rem; color: var(--ink-2); }
.vp-simplebar { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--radius); background: var(--surface-2); }
.vp-authfoot { border-top: 1px solid var(--line); margin-top: auto; }
.vp-authfoot__inner { max-width: 1080px; margin: 0 auto; padding: var(--s4) var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: .88rem; color: var(--ink-3); }
.vp-authfoot a { color: var(--ink-2); }
@media (max-width: 900px) { .vp-auth { grid-template-columns: minmax(0, 1fr); padding: var(--s5) var(--s4) var(--s7); } }
@media (max-width: 560px) { .vp-rolecards { grid-template-columns: minmax(0, 1fr); } .vp-steps--wide li { grid-template-columns: 28px minmax(0, 1fr); } .vp-steps--wide li > .vp-chip { grid-column: 2; justify-self: start; } }

/* ---------- Studio ---------- */
.vp-simulate { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3); border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink-2); }
.vp-simulate__label { font-weight: 700; }
.vp-simulate__btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 2px 10px; font: inherit; cursor: pointer; min-height: 32px; }
.vp-simulate__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vp-chart { margin: 0; display: grid; gap: var(--s2); }
.vp-chart__svg { width: 100%; height: 140px; display: block; }
.vp-chart__axis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; font-size: .78rem; color: var(--ink-3); text-align: center; }
.vp-chart__legend { display: flex; gap: var(--s3); font-size: .85rem; color: var(--ink-2); }
.vp-chart__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.vp-needs { list-style: none; margin: 0; padding: 0; display: grid; }
.vp-needs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.vp-needs li:first-child { border-top: 0; }
.vp-needs strong { display: block; }
.vp-needs span { color: var(--ink-2); font-size: .9rem; }
.vp-figure { display: grid; gap: 2px; padding: var(--s2) 0; }
.vp-figure__label { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.vp-figure__value { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.vp-figure__hint { font-size: .85rem; color: var(--ink-3); }
.vp-figures { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.vp-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); margin-bottom: var(--s5); }
.vp-pagehead h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); outline: none; }
.vp-crumbs { font-size: .88rem; color: var(--ink-3); }
.vp-tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); overflow-x: auto; }
.vp-tabs a { padding: var(--s2) var(--s3); color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.vp-tabs a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.vp-wizard-shell { display: grid; gap: var(--s6); grid-template-columns: 260px minmax(0, 1fr) 280px; align-items: start; }
.vp-wizard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); position: sticky; top: calc(var(--topbar-height) + var(--s4)); }
.vp-wizard-steps li { display: flex; gap: var(--s2); align-items: center; color: var(--ink-3); font-weight: 600; font-size: .95rem; }
.vp-wizard-steps li.is-done { color: var(--ink-2); }
.vp-wizard-steps li.is-current { color: var(--accent-text); }
.vp-wizard-steps li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.vp-wizard-steps li.is-done::before { background: var(--accent); }
.vp-wizard-steps li.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vp-quote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; padding: var(--s4) var(--s5); background: var(--surface-2); border-radius: var(--radius); }
.vp-recbtn { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--danger); color: var(--surface); font: inherit; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.vp-recbtn.is-recording { animation: vp-shimmer 1.2s ease-in-out infinite; }
.vp-meter { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.vp-meter > i { display: block; height: 100%; background: var(--success); transform-origin: left; transition: transform var(--motion-xlong) var(--ease-move); }
.vp-takes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.vp-takes li { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vp-takes li.is-current { border-color: var(--accent); }
/* A sample: the clip takes the room, "Sounds like me" stays on one line beside it; on a phone it goes under the clip. */
.vp-sample { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
.vp-sample > .vp-toggle { white-space: nowrap; }
@media (max-width: 560px) { .vp-sample { grid-template-columns: minmax(0, 1fr); } .vp-sample > .vp-toggle { justify-self: start; } }
.vp-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.vp-chipinput { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.vp-chipinput .vp-chip { gap: 6px; }
.vp-chipinput button.vp-chip__x { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 2px; font: inherit; }
.vp-two { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.vp-request { display: grid; gap: var(--s3); }
.vp-toggle { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; }
.vp-toggle input { width: 40px; height: 22px; appearance: none; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; cursor: pointer; transition: background-color var(--motion-short) var(--ease-move); }
.vp-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform var(--motion-short) var(--ease-move); }
.vp-toggle input:checked { background: var(--accent); }
.vp-toggle input:checked::after { transform: translateX(18px); }
@media (max-width: 1100px) { .vp-wizard-shell { grid-template-columns: minmax(0, 1fr); } .vp-wizard-steps { position: static; grid-auto-flow: column; overflow-x: auto; } .vp-two { grid-template-columns: minmax(0, 1fr); } }
/* Back / Next under every certification step; on phones the step rail scrolls sideways on one line and nothing in the
   step can push the page wider than the screen. */
.vp-wizard-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s2); }
.vp-wizard-shell, .vp-wizard-shell > * { min-width: 0; }
.vp-wizard-shell section { overflow-wrap: anywhere; }
.vp-takes li { flex-wrap: wrap; }
.vp-takes li > * { min-width: 0; }
@media (max-width: 1100px) {
  .vp-wizard-steps { grid-auto-columns: max-content; gap: var(--s4); padding-bottom: var(--s2); scrollbar-width: thin; }
  .vp-wizard-steps li { white-space: nowrap; font-size: .9rem; }
  .vp-wizard-shell > aside { display: none; }
}
.vp-header__back { flex: none; }
.vp-dropzone { display: grid; justify-items: center; gap: var(--s2); padding: var(--s6) var(--s4); border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; text-align: center; }
.vp-card.vp-figure { padding: var(--s4); align-content: start; }

/* Buyer and member portals (Step 5) */
.vp-banner--success { background: var(--success-soft); margin: 0; padding: var(--s3) var(--s4); border-radius: var(--radius); border: 0; }
.vp-panel__steps--page { padding: 0; flex-wrap: wrap; }
.vp-panel__steps--page li::before { display: none; }
.vp-panel__steps--page li.is-done { color: var(--accent-text); }
.vp-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.vp-filter select { width: 100%; }
.vp-voicegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.vp-voicecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); display: grid; gap: var(--s3); align-content: start; box-shadow: var(--shadow); }
.vp-voicecard--invite { background: var(--accent-soft); border-style: dashed; }
.vp-voicecard__name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.vp-voicecard__price { margin: 0; }
.vp-voicegrid__empty { grid-column: 1 / -1; }
.vp-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.vp-offer { width: 100%; text-align: left; display: grid; gap: var(--s1); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color var(--motion-short) var(--ease-move); }
.vp-offer:hover { border-color: var(--line-strong); }
.vp-offer[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vp-buycard { position: sticky; top: calc(var(--topbar-height) + var(--s4)); }
.vp-card--warning { background: var(--warning-soft); border-color: var(--warning-soft); box-shadow: none; }
.vp-card--action { border-color: var(--accent); }
.vp-kv--money dd { text-align: right; }
.vp-check-row { display: flex; gap: var(--s2); align-items: flex-start; cursor: pointer; }
.vp-check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.vp-licrow { align-items: flex-start !important; }
.vp-meterrow { row-gap: var(--s1) !important; }
.vp-meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.vp-input--sm { padding: 4px 8px; min-height: 32px; width: auto; }
@media (max-width: 900px) {
  .vp-filters { grid-template-columns: 1fr 1fr; }
  .vp-filters input[type="search"] { grid-column: 1 / -1; }
  .vp-buycard { position: static; }
}

/* Admin and public (Step 6) */
.vp-authfoot__lang { margin-left: auto; }
.vp-qr { display: block; border-radius: var(--radius-sm); }
.vp-qr rect { fill: var(--ink); }
.vp-qr .vp-qr__bg { fill: var(--surface); }
.vp-input--code { max-width: 12ch; font-family: var(--mono); font-size: 1.3rem; letter-spacing: .3em; }
.vp-codes { list-style: none; margin: 0; padding: var(--s4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); background: var(--surface-2); border-radius: var(--radius-sm); }
.vp-codes code { font-family: var(--mono); font-weight: 700; }
.vp-figures--5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vp-keybox { display: block; padding: var(--s3); background: var(--surface-2); border-radius: var(--radius-sm); font-family: var(--mono); word-break: break-all; }
.vp-filters--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vp-row-link { cursor: pointer; }
.vp-row-link:hover td, .vp-row-link:focus-visible td { background: var(--surface-2); }
.vp-verify { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.vp-verify__drop { display: grid; gap: var(--s3); justify-items: start; padding: var(--s5); }
.vp-verify__drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.vp-verify__link { width: 100%; flex-wrap: nowrap; }
.vp-verify__link input { flex: 1; min-width: 0; }
.vp-verify__result { min-height: 240px; }
.vp-sample-file { font: inherit; font-size: .88rem; padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font-family: var(--mono); }
.vp-sample-file[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.vp-verdict { display: grid; gap: var(--s3); border-left: 4px solid var(--line-strong); padding-left: var(--s4); }
.vp-verdict--success { border-left-color: var(--success); }
.vp-verdict--danger { border-left-color: var(--danger); }
.vp-verdict--warning { border-left-color: var(--warning); }
.vp-verdict__title { font-size: 1.4rem; }
@media (max-width: 900px) {
  .vp-verify, .vp-filters--3 { grid-template-columns: minmax(0, 1fr); }
  .vp-codes { grid-template-columns: minmax(0, 1fr); }
}
.vp-block .vp-list > li > span:first-child { flex: 1 1 0; min-width: 0; }
.vp-tabs .vp-sectionmenu__count { margin-left: 6px; }

/* Settings (Step 7) */
.vp-settings__body { display: grid; gap: var(--s4); }
.vp-settings__body > .vp-danger { margin-top: var(--s2); }
.vp-switch { position: relative; width: 52px; height: 30px; border-radius: var(--radius-pill); border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; flex: none; transition: background var(--motion-short) var(--ease-move); }
.vp-switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform var(--motion-short) var(--ease-move); }
.vp-switch[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.vp-switch[aria-checked="true"] .vp-switch__knob { transform: translateX(22px); }

/* ===== Dashboard shell (sidebar-07 / dashboard-01 pattern on our tokens) ===== */
.vp-demobar { font-size: .82rem; }
/* In the dashboard the demo strip is one fixed-height line that stays on top; the sidebar and header sit under it
   (--demobar-h), so the sidebar's account block is never pushed below the screen. The sentence shortens, the links stay. */
[data-shell="app"] .vp-demobar { position: sticky; top: 0; z-index: 30; height: var(--demobar-h); }
[data-shell="app"] .vp-demobar__inner { max-width: none; height: 100%; align-items: center; padding: 0 var(--s4); flex-wrap: nowrap; white-space: nowrap; }
[data-shell="app"] .vp-demobar__inner > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-shell="app"] .vp-demobar__inner > a { flex: none; }
:root:has([data-shell="app"] .vp-demobar) { --demobar-top: var(--demobar-h); }
.vp-dash { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.vp-dash__content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vp-dash__content .vp-main { padding: 0; }
.vp-dash .vp-page { max-width: 1320px; padding: var(--s5) var(--s6) var(--s7); }
.vp-dash .vp-page--narrow { max-width: 760px; }

.vp-sidebar { position: sticky; top: var(--demobar-top, 0px); height: calc(100dvh - var(--demobar-top, 0px)); width: var(--sidebar-width); flex: none; display: flex; flex-direction: column; gap: var(--s3);
  background: var(--surface); border-right: 1px solid var(--line); padding: var(--s3) var(--s2) var(--s2); transition: width var(--motion-medium) var(--ease-move); z-index: 25; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) { width: var(--sidebar-rail); }
.vp-sidebar__brand { display: flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s2); min-height: 40px; text-decoration: none; color: var(--ink); border-radius: var(--radius-sm); }
.vp-sidebar__brand .vp-brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.vp-sidebar__switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--radius-sm); }
.vp-sidebar__switchbtn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 var(--s2); border-radius: 7px; font-size: .82rem; font-weight: 650; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.vp-sidebar__switchbtn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.vp-sidebar__switchbtn .vp-dot { position: absolute; top: 4px; right: 4px; }
.vp-sidebar__switchinitial { display: none; }
.vp-sidebar__nav { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; display: grid; align-content: start; gap: var(--s3); }
.vp-sidebar__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vp-sidebar__grouplabel { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); padding: var(--s1) var(--s3); white-space: nowrap; overflow: hidden; }
.vp-sidebar__link { position: relative; width: 100%; display: flex; align-items: center; gap: var(--s3); min-height: 36px; padding: 0 var(--s3); border: 0; background: none; font: inherit; font-size: .93rem;
  font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; white-space: nowrap; }
.vp-sidebar__link:hover { background: var(--surface-2); color: var(--ink); }
.vp-sidebar__link.is-active { background: var(--accent-soft); color: var(--accent-text); }
.vp-sidebar__icon { display: inline-grid; place-items: center; width: 20px; flex: none; }
.vp-sidebar__label { overflow: hidden; text-overflow: ellipsis; }
.vp-sidebar__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-size: .75rem; display: inline-grid; place-items: center; }
.vp-sidebar__indicator { position: absolute; left: 0; top: 0; width: var(--indicator-width); border-radius: 0 3px 3px 0; background: var(--accent); z-index: 1; pointer-events: none; transition: transform var(--motion-medium) var(--ease-move); }
.vp-sidebar__foot { border-top: 1px solid var(--line); padding-top: var(--s2); }
.vp-sidebar__account { width: 100%; display: flex; align-items: center; gap: var(--s2); padding: var(--s2); border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.vp-sidebar__account:hover { background: var(--surface-2); }
.vp-sidebar__who { display: grid; gap: 2px; min-width: 0; }
.vp-sidebar__who strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-sidebar__roles { display: flex; flex-wrap: wrap; gap: 4px; }
.vp-sidebar__email { font-size: .78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-chip--tiny { font-size: .72rem; padding: 0 6px; min-height: 18px; }
/* Collapsed rail: icons only, tooltips from data-tip */
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__label,
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__who,
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__grouplabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__group { border-top: 1px solid var(--line); padding-top: var(--s2); }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__link { justify-content: center; padding: 0; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: var(--fs-min); padding: 0 4px; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__switch { grid-auto-flow: row; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__switchinitial { display: inline; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__account,
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__brand { justify-content: center; padding-left: 0; padding-right: 0; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) [data-tip]:hover::after,
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 40; padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 600; white-space: nowrap; pointer-events: none; animation: vp-fade-in var(--motion-short) var(--ease-enter); }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) { overflow: visible; }
[data-sidebar-collapsed] .vp-sidebar:not(.vp-sidebar--drawer) .vp-sidebar__nav { overflow: visible; }

.vp-header { position: sticky; top: var(--demobar-top, 0px); z-index: 20; height: var(--header-height); display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s5) 0 var(--s3);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.vp-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.vp-header .vp-lang__btn { min-height: 30px; padding: 0 8px; font-size: .78rem; }
.vp-header .vp-account { padding: 2px; border-radius: 50%; }
.vp-crumbbar { min-width: 0; flex: 1; }
.vp-crumbbar__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
/* Earlier crumbs keep their width; only the current page shortens (ellipsis), so no two crumbs ever overlap.
   On phones only the current page shows: the sidebar button is right beside it. */
.vp-crumbbar__list li { display: flex; align-items: center; gap: 6px; flex: none; }
.vp-crumbbar__list li:last-child { flex: 0 1 auto; min-width: 0; }
@media (max-width: 599px) {
  .vp-crumbbar__list li:not(:last-child) { display: none; }
  .vp-crumbbar__list li:last-child::before { content: none; }
}
.vp-crumbbar__list li + li::before { content: '/'; color: var(--line-strong); }
.vp-crumbbar__list a { color: var(--ink-2); text-decoration: none; }
.vp-crumbbar__list a:hover { color: var(--ink); text-decoration: underline; }
.vp-crumbbar__list [aria-current], .vp-crumbbar__list li:last-child > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vp-crumbbar__list [aria-current] { color: var(--ink); font-weight: 650; }
.vp-layer--drawer { position: fixed; inset: 0; z-index: 60; }
.vp-layer--drawer .vp-sidebar { position: absolute; left: 0; top: 0; bottom: 0; height: auto; width: min(86vw, var(--sidebar-width)); box-shadow: var(--shadow);
  animation: vp-drawer-enter var(--motion-long) var(--ease-enter); }
.vp-layer--drawer.is-leaving .vp-sidebar { animation: vp-drawer-exit var(--motion-medium) var(--ease-exit) forwards; }
.vp-layer--drawer.is-leaving .vp-scrim { animation: vp-fade-out var(--motion-medium) var(--ease-exit) forwards; }
.vp-drawer__close { position: absolute; top: var(--s2); right: var(--s2); z-index: 2; }
@keyframes vp-drawer-enter { from { transform: translateX(calc(-100% * var(--motion-distance))); } to { transform: none; } }
@keyframes vp-drawer-exit { to { transform: translateX(calc(-100% * var(--motion-distance))); } }
@media (max-width: 1023px) {
  .vp-dash > .vp-sidebar { display: none; }
  .vp-header { padding: 0 var(--s3); }
  .vp-dash .vp-page { padding: var(--s4) var(--s4) var(--s7); }
}
@media (max-width: 600px) { .vp-header .vp-lang { display: none; } }

/* ===== Dashboard frame: page header, stat row, cards ===== */
.vp-pagehead2 { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.vp-pagehead2__titles { display: grid; gap: 2px; min-width: 0; }
.vp-pagehead2__title { font-size: clamp(1.5rem, 2.6vw, 2rem); outline: none; }
.vp-pagehead2__sub { color: var(--ink-3); font-size: .92rem; }
.vp-pagehead2__notice { font-size: .88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.vp-pagehead2__notice strong { color: var(--ink); }
.vp-pagehead2__actions { display: flex; gap: var(--s2); align-items: center; }
.vp-statrow { display: grid; gap: var(--s4); grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--s5); }
.vp-statcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); display: grid; gap: var(--s1); align-content: start; min-width: 0; }
.vp-statcard__label { font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.vp-statcard__value { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vp-statcard__hint { font-size: .8rem; color: var(--ink-3); }
.vp-statcard--skeleton .vp-skel--num { height: 30px; }
@media (max-width: 1100px) { .vp-statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vp-statrow { grid-template-columns: minmax(0, 1fr); } .vp-dash .vp-block { padding: var(--card-pad); border-color: var(--line); } }
.vp-zone__stack { display: grid; gap: var(--s5); align-content: start; }
.vp-dash .vp-layout { gap: var(--s5); }
.vp-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.vp-table td, .vp-table th { height: var(--row-height); padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.vp-needs li { padding: var(--s2) 0; }

/* ===== Motion: Magic UI effects ported to our tokens (transform and opacity only) ===== */
/* Blur Fade (opacity + a small rise; no filter, so it stays on the compositor) */
.vp-blurfade { animation: vp-blurfade var(--motion-xlong) var(--ease-enter) both; animation-delay: var(--fade-delay, 0ms); }
@keyframes vp-blurfade { from { opacity: 0; transform: translateY(calc(8px * var(--motion-distance))); } to { opacity: 1; transform: none; } }
/* Animated List: new rows slide in from the top */
.vp-list-enter { animation: vp-list-enter var(--motion-long) var(--ease-enter) both; animation-delay: var(--fade-delay, 0ms); }
@keyframes vp-list-enter { from { opacity: 0; transform: translateY(calc(-14px * var(--motion-distance))); } to { opacity: 1; transform: none; } }
/* Shimmer Button: one sheen across the primary action (first paint, hover, focus); never loops */
.vp-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.vp-shimmer::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--accent-ink) 45%, transparent) 50%, transparent 70%); transform: translateX(-120%); }
.vp-shimmer.is-shining::after { animation: vp-shimmer-sweep var(--motion-xxlong) var(--ease-move) 1; }
@keyframes vp-shimmer-sweep { 0% { opacity: 1; transform: translateX(-120%); } 100% { opacity: 1; transform: translateX(120%); } }
/* Border Beam: a light travels once around the border, then fades */
.vp-beam-host { position: relative; }
.vp-beam { position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: vp-beam-fade 1800ms var(--ease-exit) forwards; }
.vp-beam__light { position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 78%, var(--accent) 88%, color-mix(in srgb, var(--accent) 30%, white) 92%, transparent 100%);
  animation: vp-beam-spin 1600ms var(--ease-move) 1 forwards; }
@keyframes vp-beam-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes vp-beam-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
/* Animated Circular Progress Bar */
.vp-ring { --ring-size: 44px; position: relative; display: inline-block; flex: none; width: var(--ring-size); height: var(--ring-size); border-radius: 50%; background: var(--line); }
.vp-ring__half { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.vp-ring__half--right { clip-path: inset(0 0 0 50%); }
.vp-ring__half--left { clip-path: inset(0 50% 0 0); }
.vp-ring__fill { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); transform-origin: center; }
.vp-ring__half--right .vp-ring__fill { clip-path: inset(0 50% 0 0); }
.vp-ring__half--left .vp-ring__fill { clip-path: inset(0 0 0 50%); }
.vp-ring.is-animating .vp-ring__half--right .vp-ring__fill { transition: transform calc(var(--motion-xlong) / 2) linear; }
.vp-ring.is-animating .vp-ring__half--left .vp-ring__fill { transition: transform calc(var(--motion-xlong) / 2) linear calc(var(--motion-xlong) / 2); }
.vp-ring__hole { position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.vp-ring__text { font-size: var(--fs-min); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* Marquee (website only; the one loop on a page) */
.vp-marquee { overflow: hidden; min-width: 0; flex: 1 1 0; max-width: 100%; contain: inline-size; min-height: 36px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.vp-marquee__track { display: flex; gap: 8px; width: max-content; animation: vp-marquee 28s linear infinite; }
.vp-marquee__track > ul { flex-wrap: nowrap !important; }
.vp-marquee:hover .vp-marquee__track, .vp-marquee:focus-within .vp-marquee__track { animation-play-state: paused; }
@keyframes vp-marquee { to { transform: translateX(calc(-50% - 4px)); } }
/* Scroll reveal (website) */
.vp-reveal { opacity: 0; transform: translateY(calc(16px * var(--motion-distance))); transition: opacity var(--motion-xxlong) var(--ease-enter), transform var(--motion-xxlong) var(--ease-enter); }
.vp-reveal.is-revealed { opacity: 1; transform: none; }
/* Route spinner: only after 400 ms of waiting */
.vp-route-spinner { display: grid; place-items: center; padding: var(--s8) 0; }
.vp-route-spinner span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 900ms linear infinite; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .vp-blurfade, :root:not([data-motion="full"]) .vp-list-enter { animation: none; }
  :root:not([data-motion="full"]) .vp-marquee__track { animation: none; }
  :root:not([data-motion="full"]) .vp-sidebar__indicator { transition: none; }
  :root:not([data-motion="full"]) .vp-reveal { opacity: 1; transform: none; }
}
:root[data-motion="reduce"] .vp-blurfade, :root[data-motion="reduce"] .vp-list-enter, :root[data-motion="reduce"] .vp-marquee__track { animation: none; }
:root[data-motion="reduce"] .vp-sidebar__indicator { transition: none; }
:root[data-motion="reduce"] .vp-reveal { opacity: 1; transform: none; }
.vp-enginestrip { display: flex; align-items: center; gap: 12px 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 1120px; margin: 0 auto; width: 100%; }
.vp-enginestrip__label { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); flex: none; }
.vp-enginestrip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vp-enginestrip__list li { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.vp-marquee__track > ul > li { white-space: nowrap; }
.vp-dockdemo { position: relative; overflow: visible; max-width: 260px; }
/* Balanced card grid: at most two cards per row, equal columns and equal row heights, footer links pinned to the
   bottom; a card alone on its row (an odd last card, or a single card) fills the width. One column on phones. */
.vp-zone--cards > .vp-zone__grid { align-items: stretch; }
.vp-zone--cards > .vp-zone__grid > * { grid-column: span 6; }
.vp-zone--cards > .vp-zone__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.vp-zone--cards .vp-block { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
.vp-zone--cards .vp-block__body { align-self: start; }
@media (max-width: 760px) { .vp-zone--cards > .vp-zone__grid > *, .vp-zone--cards > .vp-zone__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Cards that are lists or tables keep the card's inner padding (a list's reset padding must not win). */
.vp-card.vp-list, ul.vp-card { padding: var(--s1) var(--card-pad); }
.vp-card.vp-table-wrap { padding: var(--s2) var(--card-pad); }
.vp-card.vp-list > li { padding-left: 0; padding-right: 0; }
/* Sidebar: thin scrollbar, a little tighter so every item fits on a laptop screen. */
.vp-sidebar__nav { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; gap: var(--s2); }
.vp-sidebar__nav::-webkit-scrollbar { width: 6px; } .vp-sidebar__nav::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.vp-sidebar__link { min-height: 34px; }
/* Full notifications page */
.vp-notelist { list-style: none; margin: 0; padding: var(--s1) var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.vp-notelist li { display: flex; gap: var(--s3); align-items: baseline; justify-content: space-between; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.vp-notelist li:first-child { border-top: 0; }
.vp-notelist a { text-decoration: none; color: var(--ink); font-weight: 600; }
.vp-notelist a:hover { text-decoration: underline; }
.vp-notelist .is-unread a::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: var(--s2); vertical-align: middle; }
.vp-notelist time { color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
/* Long unbroken strings (emails, ids, keys) wrap instead of pushing the page sideways on phones. */
.vp-annotated > *, .vp-annotated__main > * { min-width: 0; }
.vp-annotated__main strong, .vp-kv dd, .vp-sidebar__email { overflow-wrap: anywhere; }
.vp-sitepage th, .vp-sitepage td { overflow-wrap: anywhere; hyphens: auto; }
.vp-sitepage th { white-space: normal; }
/* Buttons may wrap on phones (long French labels) instead of widening the page. */
@media (max-width: 600px) { .vp-btn { white-space: normal; text-align: center; max-width: 100%; } }


/* Legal documents (screens/public/LegalPage.js): one readable column, the four documents linked at the top. */
.vp-legal { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s8); display: grid; gap: var(--s5); }
.vp-legal__head { display: grid; gap: var(--s3); }
.vp-legal__head h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0; }
.vp-legal__date { color: var(--ink-3); margin: 0; }
.vp-legal__nav { display: flex; flex-wrap: wrap; gap: var(--s2); }
.vp-legal__nav a { padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.vp-legal__nav a[aria-current=page] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.vp-legal__section { display: grid; gap: var(--s2); }
.vp-legal__section h2 { font-size: 1.25rem; margin: 0; }
.vp-legal__section p { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* ---------- Server features: categories, passport, messages, exchange ---------- */
.vp-catrail { position: relative; display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); scroll-snap-type: x proximity; }
.vp-catchip { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; scroll-snap-align: start;
  transition: background-color var(--motion-short) var(--ease-move), border-color var(--motion-short) var(--ease-move), transform var(--motion-xshort) var(--ease-move); }
.vp-catchip:hover { border-color: var(--accent); }
.vp-catchip:active { transform: scale(.97); }
.vp-catchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vp-catchip:disabled { cursor: default; color: var(--ink-3); border-color: var(--line); }
.vp-catchip__count { min-width: 24px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-2); font-size: .82rem; text-align: center; }
.vp-catchip[aria-pressed="true"] .vp-catchip__count { background: var(--accent); color: var(--accent-ink); }
.vp-voicecard__bestfor { margin: 0; color: var(--ink-2); }
.vp-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.vp-catpick { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.vp-catpick__item { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.vp-catpick__item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vp-catpick__item:has(input:disabled) { color: var(--ink-3); cursor: default; }
.vp-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.vp-thread__msg { display: grid; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--radius-sm); background: var(--surface-2); max-width: 85%; justify-self: start; }
.vp-thread__msg.is-mine { background: var(--accent-soft); justify-self: end; }
.vp-thread__msg p { margin: 0; white-space: pre-wrap; }
.vp-bignum { font-size: 1.6rem; font-family: var(--serif); }
.vp-mono { font-family: var(--mono); font-size: .9rem; }

/* ---------- Audio with its text (AudioClip) ---------- */
.vp-clip { display: grid; gap: var(--s1); }
.vp-clip__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.vp-clip__label { font-weight: 600; }
.vp-clip__caption { margin: 0; padding: var(--s1) var(--s3); border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-size: .95rem; line-height: 1.4; max-width: 60ch; }
.vp-clip__transcript { padding: var(--s2) var(--s3); border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.vp-clip__transcript p { margin: 0; white-space: pre-wrap; }
.vp-clip--compact .vp-clip__label { font-weight: 400; }
.vp-play[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vp-play:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }

/* ---------- WCAG 2.1 AA floor for every form field, the site's templates included ---------- */
/* 1.4.11: the edge that shows where to type has 3:1 against its surroundings; 1.4.3: placeholder text is text. */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]):not([type=hidden]), select, textarea { border-color: var(--field-border) !important; }
::placeholder { color: var(--ink-3); opacity: 1; }
.vp-verify__link { flex-wrap: wrap; }
.vp-verify__linklabel { flex-basis: 100%; }
.vp-cert a { color: var(--cert-ink); text-decoration: underline; }
.vp-cert .vp-btn--primary { background: var(--navy); color: var(--on-navy); }

/* ---------- Buyer plans ---------- */
.vp-plancards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.vp-plancard { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.vp-plancard--pick { border: 2px solid var(--accent); }
.vp-plancard__name { margin: 0; font-size: 1.15rem; }
.vp-plancard__price { margin: 0; }
.vp-plancard__price .vp-num { font-family: var(--serif); font-size: 1.8rem; }
/* WCAG 1.4.10: at 320 CSS px (a phone, or 400% zoom) the header keeps the logo and the menu; the call to action is
   the page's own first button, so the header copy steps aside instead of pushing the menu off screen. */
@media (max-width: 359px) { .vp-site-mcta { display: none !important; } }
/* A long label (French "Mettre ma voix sous licence") wraps onto two lines in the phone header instead of widening it. */
@media (max-width: 599px) {
  :has(> .vp-site-mcta) { flex: 0 1 auto !important; min-width: 0; }
  .vp-site-mcta { flex: 0 1 auto !important; white-space: normal !important; text-align: center; line-height: 1.2; max-width: 13em; }
}
[data-page-heading]:focus, [data-page-heading]:focus-visible, .vp-main:focus-visible { box-shadow: none !important; }

/* ---------- Careers ---------- */
.vp-roles { display: grid; gap: var(--s4); }
.vp-roles__intro { margin: 0; color: var(--ink-2); max-width: 60ch; }
.vp-roles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.vp-rolecard-job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow); display: grid; gap: var(--s2); align-content: start; }
.vp-rolecard-job__title { margin: 0; font-size: 1.3rem; }
.vp-rolecard-job__title a { color: var(--ink); text-decoration: none; }
.vp-rolecard-job__title a:hover { text-decoration: underline; }
.vp-rolecard-job p { margin: 0; color: var(--ink-2); }
.vp-rolecard-job__meta { font-size: .88rem; color: var(--ink-3) !important; }
.vp-rolecard-job__more { font-weight: 700; color: var(--accent-text); }
.vp-job { display: grid; gap: var(--s5); max-width: 760px; }
.vp-job section { display: grid; gap: var(--s2); }
.vp-job h2 { margin: 0; font-size: 1.35rem; }
.vp-job ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s1); color: var(--ink-2); line-height: 1.55; }
.vp-job__meta { color: var(--ink-3); }
.vp-job__apply { background: var(--accent-soft); border-radius: var(--radius-lg); padding: var(--s5); display: grid; gap: var(--s3); }

/* ---------- Guides ---------- */
.vp-guide { display: grid; gap: var(--s5); max-width: 720px; }
.vp-guide section { display: grid; gap: var(--s2); }
.vp-guide h2 { margin: 0; font-size: 1.35rem; }
.vp-guide p { margin: 0; line-height: 1.65; color: var(--ink-2); }
.vp-guide .vp-lead { font-size: 1.15rem; color: var(--ink); }
.vp-guide__meta { color: var(--ink-3) !important; font-size: .92rem; }
.vp-guide__sources ul, .vp-guide__more ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s1); }
.vp-guide__note { padding: var(--s3) var(--s4); background: var(--surface-2); border-radius: var(--radius-sm); font-size: .95rem; }
.vp-guide__more { display: grid; gap: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s4); }
.vp-job-page, .vp-guide-page { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 20px clamp(48px, 7vw, 96px); }

/* ---------- House voice suite ---------- */
.vp-pre { margin: 0; padding: var(--s3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto;
  font-family: var(--mono); font-size: .86rem; line-height: 1.5; white-space: pre; max-width: 100%; }
.vp-pre code { font: inherit; }
.vp-recipe { border-top: 1px solid var(--line); padding-top: var(--s2); }
.vp-recipe > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.vp-recipe ol { margin: var(--s2) 0; padding-left: 1.3em; }
.vp-recipe ol li { overflow-wrap: anywhere; }
.vp-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vp-card legend { font-weight: 600; padding: 0; margin-bottom: var(--s1); }
.vp-checkrow { display: flex; align-items: center; gap: var(--s2); min-height: 32px; }
.vp-checkrow input { width: 18px; height: 18px; accent-color: var(--accent); }
.vp-card--success { border-color: var(--success); background: var(--success-soft); }
.vp-card--info { border-color: var(--line-strong); background: var(--info-soft); }
.vp-grid-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.vp-presets, .vp-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.vp-preset, .vp-review { display: grid; gap: var(--s1); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.vp-preset button, .vp-review .vp-row { justify-self: start; }
.vp-guidelines { white-space: pre-wrap; line-height: 1.6; }

/* First testers: the /testers page and its band on the home page (screens/public/Testers.js, SitePage.js). */
.vp-testers { max-width: 640px; }
.vp-testers h1 { font-size: clamp(2rem, 5vw, 3rem); }
.vp-testers__lead { font-size: 1.15rem; color: var(--ink-2); line-height: 1.55; margin: 0; }
.vp-testers__offer { font-weight: 700; color: var(--accent-text); margin: 0; }
.vp-testers__done h2 { font-size: 1.6rem; }
.vp-testers__done p { margin: 0; }
.vp-testers-band { max-width: 1120px; margin: 0 auto; padding: var(--s6) 20px; }
.vp-testers-band__inner { background: var(--accent-soft); border-radius: var(--radius-lg); padding: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.vp-testers-band__inner > .vp-stack { flex: 1 1 320px; }
.vp-testers-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); }
.vp-testers-band p { margin: 0; color: var(--ink-2); }
.vp-testers__explore h2 { font-size: 1.25rem; }
.vp-testers__explore p { margin: 0; }

/* ---------- Home page (web/src/site/home.js), from the 2026-11 landing design: cards on cream, dark bands, a red
   accent, handwritten notes. "Which one are you?" switches between the voice owner's view and the buyer's. ---------- */
.vp-home__wrap { max-width: 1120px; margin: 0 auto; padding: var(--s6) max(var(--s4), env(safe-area-inset-right)) var(--s8) max(var(--s4), env(safe-area-inset-left)); display: grid; gap: clamp(28px, 4vw, 48px); }
.vp-home__hero, .vp-home__section, .vp-home__which { display: grid; gap: var(--s5); min-width: 0; scroll-margin-top: calc(var(--topbar-height) + var(--s4)); }
.vp-home .vp-home__herotitle { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; }
.vp-home h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; }
.vp-home h3 { font-size: 1.2rem; line-height: 1.2; }
.vp-home h4 { font-size: 1.05rem; }
.vp-home .vp-home__h { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.vp-home p { max-width: 68ch; }
.vp-home__center { text-align: center; justify-self: center; }
.vp-home__red { color: var(--accent-text); }
.vp-home__lead { font-size: 1.15rem; color: var(--ink-2); }
.vp-home__muted { color: var(--ink-2); }
.vp-home__note { font-size: .82rem; color: var(--ink-3); max-width: 80ch; }
.vp-home__kicker { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: var(--s2); margin: 0; }
.vp-home__label { font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.vp-home__rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.vp-home__hand { font-size: 1.3rem; line-height: 1.25; color: var(--ink-2); margin: 0; }
.vp-home__ico { flex: none; }
.vp-home__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.vp-home .vp-btn { min-height: 48px; padding-inline: 22px; gap: var(--s2); }
.vp-btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vp-btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.vp-btn--light { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.vp-btn--light:hover { background: var(--surface-2); color: var(--ink); }
.vp-home .vp-btn .vp-home__ico { transition: transform var(--motion-medium) var(--ease-move); }
.vp-home .vp-btn:hover .vp-home__ico:last-child { transform: translateX(calc(3px * var(--motion-distance))); }

/* The cover (home page first screen, from the design hand-off): logo, tagline, headline and two big doors over a soft
   waveform, a sticky note and a stamp. It fills the screen under the site header. */
.vp-home__cover { position: fixed; inset: var(--topbar-height, 64px) 0 0 0; z-index: 15; overflow: hidden; display: grid; place-items: center; padding: var(--s6) var(--s4) var(--s7); background: var(--bg); box-shadow: 0 30px 60px rgba(31, 29, 24, .18); cursor: pointer; transition: transform var(--motion-xxlong, 1.1s) cubic-bezier(.76, 0, .24, 1); }
.vp-home__cover:focus-visible { outline: none; }
.vp-home[data-cover="closed"] .vp-home__cover { transform: translateY(-105%); pointer-events: none; }
.vp-home[data-cover="open"] .vp-home__wrap { display: none; }
.vp-home__coverhint { margin: var(--s3) 0 0; font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.vp-home__coverwave { position: absolute; left: 50%; top: 52%; width: 112%; max-width: 1500px; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.vp-home__covermain { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); width: 100%; max-width: 780px; }
.vp-home__coverbrand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-home__coverbars { fill: var(--ink); }
.vp-home__coverdot { fill: var(--accent); }
.vp-home__covername { font-size: clamp(1.9rem, 8vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.vp-home__covertag { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s2); font-size: .78rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.vp-home__covertag span { width: 32px; height: 2px; background: var(--ink-2); }
.vp-home .vp-home__cover h1 { margin: 0; max-width: 760px; font-size: clamp(1.9rem, 8vw, 3.1rem); font-weight: 900; line-height: 1.08; letter-spacing: -.015em; }
.vp-home__coverlead { margin: 0 0 var(--s3); max-width: 440px; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.vp-home__coverdoors { display: flex; flex-direction: column; align-items: center; gap: var(--s3); width: 100%; max-width: 400px; }
.vp-home__coverdoor { width: 100%; display: grid; gap: var(--s2); }
.vp-home__coverdoor p { margin: 0; font-size: .85rem; font-weight: 700; color: var(--ink-2); max-width: none; }
.vp-home .vp-home__coverbtn { width: 100%; min-height: 58px; justify-content: center; font-size: 1.06rem; }
.vp-home__coverbtn.vp-btn--dark { box-shadow: var(--shadow); }
.vp-home__coverbtn.vp-btn--secondary { border-width: 2px; border-color: var(--ink); }
.vp-home__coveror { font-size: .75rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
.vp-home__covernote { position: absolute; left: 6%; top: 10%; width: 170px; padding: 14px; margin: 0; background: var(--sticky); color: var(--sticky-ink); transform: rotate(-7deg); box-shadow: var(--shadow); font-size: 1.35rem; line-height: 1.1; }
.vp-home__coverstamp { position: absolute; right: 6%; bottom: 10%; margin: 0; padding: 8px 14px; border: 3px solid var(--accent-text); border-radius: 8px; transform: rotate(9deg); color: var(--accent-text); font-weight: 800; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; background: color-mix(in srgb, var(--bg) 80%, transparent); }
@media (max-width: 760px) {
  .vp-home__cover { padding: var(--s4) var(--s4) var(--s7); }
  .vp-home__covermain { gap: var(--s2); }
  .vp-home__covertag { letter-spacing: .22em; }
  .vp-home__covernote { display: none; }
  .vp-home__coverwave { left: auto; right: 0; top: 44%; width: 150%; max-width: none; transform: translateY(-50%); }
  .vp-home__coverstamp { right: 14px; bottom: 14px; padding: 6px 10px; font-size: .72rem; border-width: 2.5px; }
}

/* Levels, points and stickers (owner view) */
.vp-home__levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); counter-reset: level; }
.vp-home__level { display: grid; gap: var(--s2); align-content: start; }
.vp-home__level h4 { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; }
.vp-home__level p:last-child { margin: 0; color: var(--ink-2); font-weight: 600; line-height: 1.5; }
.vp-home__card--dark.vp-home__level p:last-child { color: var(--band-muted); }
.vp-home__points { display: flex; align-items: center; gap: var(--s2); margin: 0; font-weight: 700; color: var(--ink-2); }
.vp-home__points .vp-home__ico { color: var(--accent-text); flex: none; }
@media (max-width: 760px) { .vp-home__levels { grid-template-columns: 1fr; } }

/* Hero */
.vp-home__hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--s6); }
.vp-home__herotext { display: grid; gap: var(--s4); min-width: 0; }
.vp-home__heroart { position: relative; min-width: 0; }
.vp-home__art { display: block; width: 100%; height: auto; }
.vp-home__sticky { background: var(--sticky); color: var(--sticky-ink); padding: 12px 16px; max-width: 220px; box-shadow: var(--shadow); transform: rotate(-4deg); font-size: 1.15rem; }
.vp-home__heroart .vp-home__sticky { position: absolute; left: 4%; bottom: -6%; }
.vp-home__sticky--corner { position: absolute; left: var(--s5); top: calc(-1 * var(--s4)); transform: rotate(-4deg); z-index: 1; }
@media (max-width: 820px) { .vp-home__hero { grid-template-columns: 1fr; } .vp-home__heroart { max-width: 460px; justify-self: center; width: 100%; }
  .vp-home__heroart .vp-home__sticky { position: static; margin: -12px auto 0; } }

/* Cards and bands */
.vp-home__card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.vp-home__card--soft { background: var(--surface-2); }
.vp-home__card--dark, .vp-home__band, .vp-home__early { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.vp-home__card--dark .vp-home__label, .vp-home__card--dark .vp-home__kicker, .vp-home__card--dark .vp-home__note, .vp-home__band .vp-home__label,
.vp-home__early .vp-home__note { color: var(--band-muted); }
.vp-home__card--dark .vp-home__list svg, .vp-home__card--dark .vp-home__rulen { color: var(--red-on-dark); }
.vp-home__card--dark .vp-home__stamp, .vp-home__band .vp-home__stamp, .vp-home__early .vp-home__stamp { color: var(--red-on-dark); border-color: var(--red-on-dark); }
.vp-home__compare, .vp-home__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 760px) { .vp-home__compare, .vp-home__pair { grid-template-columns: 1fr; } }
.vp-home__stamp { position: absolute; top: var(--s4); right: var(--s4); font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border: 2px solid currentColor; border-radius: 6px; padding: 3px 9px; transform: rotate(6deg); color: var(--ink-2); }
.vp-home__stamp--red { color: var(--accent-text); }
.vp-home__stamp--inline { position: static; justify-self: start; transform: rotate(-3deg); }
.vp-home__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.vp-home__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.vp-home__list svg { color: var(--accent-text); margin-top: 3px; }
.vp-home__list--no svg { color: var(--ink-3); }
.vp-home__ready { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s4) var(--s5); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s4); }

/* Which one are you? and the FAQ tabs */
.vp-home__which { justify-items: center; text-align: center; padding-top: var(--s5); }
.vp-home__toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-pill); justify-self: center; }
.vp-home__door { font: inherit; font-weight: 800; cursor: pointer; min-height: 44px; padding: 8px 20px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink);
  transition: background var(--motion-medium) var(--ease-move), color var(--motion-medium) var(--ease-move); }
.vp-home__door:hover { background: var(--surface); }
.vp-home__door[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Steps, stories, statements */
.vp-home__steps, .vp-home__uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.vp-home__uses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vp-home__uses li { border-top: 4px solid var(--accent); }
.vp-home__uses li.vp-home__use--ads { border-top-color: var(--mustard); }
.vp-home__uses li.vp-home__use--podcasts { border-top-color: var(--teal); }
.vp-home__uses li.vp-home__use--agents { border-top-color: var(--ink); }
@media (max-width: 900px) { .vp-home__uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vp-home__steps, .vp-home__uses { grid-template-columns: 1fr; } }
.vp-home__steps p, .vp-home__uses p { color: var(--ink-2); }
.vp-home__stepn { position: absolute; top: var(--s3); right: var(--s4); font-size: 1.6rem; color: var(--accent-text); }
.vp-home__more { font-weight: 800; color: var(--accent-text); display: inline-flex; align-items: center; gap: 4px; }
.vp-home__storycard { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 960px) { .vp-home__storycard { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .vp-home__storycard .vp-home__paper { grid-column: 1 / -1; } }
@media (max-width: 640px) { .vp-home__storycard { grid-template-columns: 1fr; } .vp-home__portrait { max-width: 260px; justify-self: center; } }
.vp-home__storytext { display: grid; gap: var(--s3); min-width: 0; justify-items: start; }
.vp-home__story { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.vp-home__story li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.vp-home__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; background: var(--surface-2); color: var(--ink); }
.vp-home__story li:last-child .vp-home__n { background: var(--accent); color: var(--accent-ink); }
.vp-home__paper { position: relative; background: var(--cert); color: var(--cert-ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4); display: grid; gap: var(--s2); align-content: start; min-width: 0; font-variant-numeric: tabular-nums; }
.vp-home__paper > .vp-home__label { padding-right: 96px; }
.vp-home__paper > .vp-home__stamp { top: -14px; right: var(--s3); background: var(--cert); }
.vp-home__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); border-bottom: 1px dashed var(--line-strong); padding-bottom: 6px; }
.vp-home__row > :last-child { text-align: right; }
.vp-home__row--small { font-size: .9rem; color: var(--ink-2); }
.vp-home__total { font-weight: 800; border-bottom: 0; align-items: center; }
.vp-home__big { font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.vp-home__bar { height: 10px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.vp-home__bar i { display: block; height: 100%; background: var(--ink); }
.vp-home__rows { display: grid; gap: var(--s2); font-variant-numeric: tabular-nums; }

/* Calculators */
.vp-home__calccard { padding-top: clamp(24px, 3.4vw, 34px); }
.vp-home__calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s5); align-items: start; }
.vp-home__sliders { display: grid; gap: var(--s2); min-width: 0; }
.vp-home__sliders .vp-home__label:not(:first-child) { margin-top: var(--s3); }
.vp-home__pricebig { font-weight: 900; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; margin: 0; }
.vp-home input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.vp-home__band { border-radius: var(--radius-sm); padding: var(--s4) var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.vp-home__band > div { display: grid; gap: var(--s2); flex: 1 1 320px; min-width: 0; }
.vp-home__tenline { font-weight: 900; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.vp-home .vp-home__huge { font-weight: 900; font-size: clamp(3.4rem, 9vw, 5.5rem); line-height: 1; color: var(--red-on-dark); margin: 0; }
.vp-home__card > .vp-btn { justify-self: start; }
.vp-home__plans { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vp-home__plans caption { text-align: left; padding-bottom: var(--s3); }
.vp-home__plans th, .vp-home__plans td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; hyphens: manual; }
.vp-home__plans thead th { font-weight: 700; color: var(--ink-3); font-size: .85rem; background: none; white-space: nowrap; }
.vp-home__plans thead th:last-child { white-space: normal; }
.vp-home__plans tbody th { text-transform: none; letter-spacing: normal; font-weight: 700; white-space: nowrap; background: none; font-size: inherit; color: var(--ink); }
.vp-home__num { font-weight: 700; white-space: nowrap; }
.vp-home__tablewrap { overflow-x: auto; }
@media (max-width: 480px) { .vp-home__plans { font-size: .9rem; } .vp-home__plans th, .vp-home__plans td { padding: 8px 4px; } }

/* Terms and the always-on rules */
.vp-home__terms { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s3); }
.vp-home__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.vp-home__rules li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: var(--s2); }
.vp-home__rulen { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Editors */
.vp-home__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.vp-home__chip { font: inherit; font-size: .92rem; font-weight: 700; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 6px 14px; }
li.vp-home__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
button.vp-home__chip { cursor: pointer; }
.vp-home__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }


/* The seal, the questions, early access */
.vp-home__seal { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); margin-top: var(--s5); }
.vp-home__seal > div { display: grid; gap: var(--s4); justify-items: start; }
.vp-home__seal h2 { text-align: left; justify-self: start; }
.vp-home__art--seal { max-width: 260px; justify-self: center; }
@media (max-width: 760px) { .vp-home__seal { grid-template-columns: 1fr; } }
.vp-home__faq { max-width: 760px; width: 100%; justify-self: center; }
.vp-home__qa { display: grid; gap: var(--s2); }
.vp-home__qa details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--s4); }
.vp-home__qa summary { cursor: pointer; font-weight: 800; min-height: 52px; display: flex; align-items: center; }
.vp-home__qa details p { color: var(--ink-2); padding-bottom: var(--s4); margin: 0; }
.vp-home__hand a { color: var(--accent-text); }
.vp-home__early { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 6vw, 64px) var(--s5) clamp(48px, 8vw, 96px); justify-items: center; text-align: center; }
.vp-home__early > :not(canvas) { position: relative; }
.vp-home__early p { color: var(--band-muted); }
.vp-home__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; display: block; opacity: .5; }
.vp-home__earlyform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); width: min(100%, 520px); text-align: left; }
.vp-home__field { display: grid; gap: 4px; min-width: 0; }
.vp-home__field:first-child { grid-column: 1 / -1; }
.vp-home__field label { font-weight: 700; font-size: .9rem; color: var(--band-ink); }
.vp-home__field input, .vp-home__field select { font: inherit; min-height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--band-muted); background: var(--band-ink); color: var(--band); padding: 0 18px; width: 100%; }
.vp-home__earlyform .vp-btn { align-self: end; justify-content: center; }
@media (max-width: 520px) { .vp-home__earlyform { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .vp-home__door, :root:not([data-motion="full"]) .vp-home .vp-btn .vp-home__ico { transition: none; }
}
:root[data-motion="reduce"] .vp-home__door, :root[data-motion="reduce"] .vp-home .vp-btn .vp-home__ico { transition: none; }

/* ===== Public site identity (2026-11 landing design): Nunito, Caveat for handwritten notes, warm cream, red.
   Scoped to the website and the app's public pages (#app[data-shell="site"]); the signed-in app keeps its look.
   Fonts are self-hosted from web/fonts (SIL Open Font License, web/fonts/OFL.txt): latin and latin-ext cover
   English and French. Every text pair below meets WCAG AA in light and dark. --pink and --teal are fills behind dark text (the design pages'
   chips and stamps), so they are the light coral and green; --pink-text and --teal-text are for text. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

#app[data-shell="site"] {
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: var(--sans);
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --bg: #fbf8f2; --surface: #ffffff; --surface-2: #f3efe6;
  --ink: #1f1d18; --ink-2: #4f4b44; --ink-3: #6b655b;
  --line: #e6e1d6; --line-strong: #cfc7b8; --field-border: #8a8172;
  --focus: #1f1d18; --focus-halo: #ffffff;
  --accent: #c8372d; --accent-ink: #ffffff; --accent-soft: #f8d9d5; --accent-text: #a82d24; --info-soft: #f8d9d5;
  --door-v: #f8d9d5; --door-b: #ffe8c4; --door-ink: #1f1d18;
  --sticky: #fff1b8; --sticky-ink: #1f1d18; --cert: #fbf3e2; --cert-ink: #1f1d18;
  --band: #1f1d18; --band-ink: #fbf8f2; --proof: #1f1d18; --proof-line: #3a362e;
  --navy: #1f1d18; --on-navy: #fbf8f2; --pink: #f07a6d; --pink-text: #a82d24; --teal: #5cb88a; --teal-text: #22603c; --yellow: #e1a43b;
  --mustard: #e1a43b; --green: #2e7d4f; --red-on-dark: #f28b7f; --band-muted: #cfc8ba;
  --art-wave-1: #f0c98a; --art-wave-3: #c98c25;
  --art-glow: #ffe8c4; --art-grey: #8f8a80; --art-hair: #c9c2b8; --art-hair-dark: #1f1712;
  --art-skin-1: #e2b48e; --art-skin-2: #e9be98; --art-skin-3: #d9a47a; --art-skin-4: #e3b087;
  --shadow: 0 1px 2px rgba(31, 29, 24, .06), 0 10px 28px rgba(31, 29, 24, .07);
  --radius: 22px; --radius-sm: 12px; --radius-lg: 26px;
  background: var(--bg); color: var(--ink); font-family: var(--sans);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #app[data-shell="site"] {
    --bg: #14130f; --surface: #1e1c17; --surface-2: #27241e; --ink: #f5f1e8; --ink-2: #cfc8ba; --ink-3: #aba393;
    --line: #3a362e; --line-strong: #4d483e; --field-border: #8d8576; --focus: #f5f1e8; --focus-halo: #14130f;
    --accent: #f07a6d; --accent-ink: #1f1d18; --accent-soft: #3a1e1a; --accent-text: #f49b90; --info-soft: #3a1e1a;
    --door-v: #3a1e1a; --door-b: #3b2e17; --door-ink: #f5f1e8; --sticky: #4a4120; --sticky-ink: #f5f1e8; --cert: #27241e; --cert-ink: #f5f1e8; --cert-ink-2: #cfc8ba; --cert-ink-3: #aba393; --cert-line: #4d483e;
    --band: #0c0b09; --art-glow: #3b2e17; --navy: #0c0b09; --pink: #f07a6d; --pink-text: #f49b90; --teal-text: #7fd0a2;
  }
}
:root[data-theme="dark"] #app[data-shell="site"] {
  --bg: #14130f; --surface: #1e1c17; --surface-2: #27241e; --ink: #f5f1e8; --ink-2: #cfc8ba; --ink-3: #aba393;
  --line: #3a362e; --line-strong: #4d483e; --field-border: #8d8576; --focus: #f5f1e8; --focus-halo: #14130f;
  --accent: #f07a6d; --accent-ink: #1f1d18; --accent-soft: #3a1e1a; --accent-text: #f49b90; --info-soft: #3a1e1a;
  --door-v: #3a1e1a; --door-b: #3b2e17; --door-ink: #f5f1e8; --sticky: #4a4120; --sticky-ink: #f5f1e8; --cert: #27241e; --cert-ink: #f5f1e8; --cert-ink-2: #cfc8ba; --cert-ink-3: #aba393; --cert-line: #4d483e;
  --band: #0c0b09; --art-glow: #3b2e17; --navy: #0c0b09; --pink: #f07a6d; --pink-text: #f49b90; --teal-text: #7fd0a2;
}
#app[data-shell="site"] h1, #app[data-shell="site"] h2, #app[data-shell="site"] h3 { font-weight: 900; letter-spacing: -.02em; }
#app[data-shell="site"] h4 { font-weight: 800; }
#app[data-shell="site"] .vp-btn, #app[data-shell="site"] .vp-btn--lg { border-radius: var(--radius-pill); font-weight: 800; }
#app[data-shell="site"] .vp-hand { font-family: var(--hand); font-weight: 600; }
/* The logo: dark waveform bars and a red dot, as in the design, instead of bars on an accent tile. */
#app[data-shell="site"] header a[href="/"] > span[aria-hidden="true"] { background: none !important; width: auto !important; gap: 3px !important; }
#app[data-shell="site"] header a[href="/"] > span[aria-hidden="true"] > i { background: var(--ink) !important; width: 3px !important; }
#app[data-shell="site"] header a[href="/"] > span[aria-hidden="true"]::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--accent); }
#app[data-shell="site"] header a[href="/"] { font-weight: 800 !important; }
