.investor-demo {
  --demo-bg: #f3f6f2;
  --demo-surface: #ffffff;
  --demo-surface-soft: #eef5f1;
  --demo-surface-strong: #e2eee8;
  --demo-ink: #10231b;
  --demo-ink-soft: #365247;
  --demo-muted: #657a71;
  --demo-border: #cfdcd6;
  --demo-primary: #087b5c;
  --demo-primary-strong: #055a43;
  --demo-primary-pale: #ddf4e9;
  --demo-success: #087b5c;
  --demo-warning: #9a6100;
  --demo-warning-pale: #fff4d8;
  --demo-error: #a13a32;
  --demo-error-pale: #fff0ed;
  --demo-info: #245f97;
  --demo-focus: #1f7aef;
  --demo-radius-sm: 12px;
  --demo-radius: 20px;
  --demo-radius-lg: 30px;
  --demo-shadow-sm: 0 1px 2px rgba(15, 35, 27, 0.06), 0 8px 30px rgba(15, 35, 27, 0.05);
  --demo-shadow: 0 24px 70px rgba(15, 35, 27, 0.1);
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 2%, rgba(8, 123, 92, 0.09), transparent 26rem),
    radial-gradient(circle at 95% 18%, rgba(216, 169, 60, 0.08), transparent 28rem),
    var(--demo-bg);
  color: var(--demo-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.investor-demo *,
.investor-demo *::before,
.investor-demo *::after {
  box-sizing: border-box;
}

.investor-demo [hidden] {
  display: none !important;
}

.investor-demo button,
.investor-demo a,
.investor-demo input,
.investor-demo summary {
  font: inherit;
}

.investor-demo button,
.investor-demo summary {
  -webkit-tap-highlight-color: transparent;
}

.investor-demo button:focus-visible,
.investor-demo a:focus-visible,
.investor-demo input:focus-visible,
.investor-demo summary:focus-visible {
  outline: 3px solid var(--demo-focus);
  outline-offset: 3px;
}

.investor-demo .size-4 { width: 1rem; height: 1rem; }
.investor-demo .size-5 { width: 1.25rem; height: 1.25rem; }
.investor-demo .size-6 { width: 1.5rem; height: 1.5rem; }
.investor-demo .size-7 { width: 1.75rem; height: 1.75rem; }

.demo-page {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 22px 16px 80px;
}

.demo-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(198, 215, 207, 0.9);
  border-radius: var(--demo-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 248, 0.97)),
    var(--demo-surface);
  box-shadow: var(--demo-shadow-sm);
}

.demo-hero::after {
  position: absolute;
  right: -100px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border: 80px solid rgba(8, 123, 92, 0.045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.demo-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  padding: 30px 22px 28px;
}

.demo-eyebrow,
.demo-section-heading p,
.demo-state-heading p,
.demo-processing-heading p,
.demo-card-heading p,
.demo-verification > div:first-child > p,
.demo-what-happened > div > p,
.demo-api-card > div:first-child > p,
.demo-dialog-heading p,
.demo-result-status p {
  margin: 0;
  color: var(--demo-primary-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.demo-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10a878;
  box-shadow: 0 0 0 6px rgba(16, 168, 120, 0.11);
}

.demo-hero h1 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: clamp(38px, 8.8vw, 64px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.demo-lead {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--demo-ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.demo-primary-actions,
.demo-selection-actions,
.demo-error-actions,
.demo-verification-actions,
.demo-api-actions,
.demo-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.demo-primary-actions { margin-top: 26px; }

.demo-button,
.demo-text-action,
.demo-icon-button,
.demo-view-tabs button,
.demo-view-controls button {
  border: 0;
  cursor: pointer;
}

.demo-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.demo-button:hover:not(:disabled) { transform: translateY(-1px); }
.demo-button:disabled { cursor: not-allowed; opacity: 0.55; }

.demo-button-primary {
  background: var(--demo-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 123, 92, 0.22);
}

.demo-button-primary:hover:not(:disabled) { background: var(--demo-primary-strong); }

.demo-button-secondary {
  border-color: #b7cbc2;
  background: #fff;
  color: var(--demo-primary-strong);
}

.demo-button-secondary:hover:not(:disabled),
.demo-button-quiet:hover:not(:disabled) { background: var(--demo-surface-soft); }

.demo-button-quiet {
  border-color: var(--demo-border);
  background: transparent;
  color: var(--demo-ink-soft);
  box-shadow: none;
}

.demo-text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  padding: 9px 7px;
  color: var(--demo-primary-strong);
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(5, 90, 67, 0.28);
  text-underline-offset: 4px;
}

.demo-emoji {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 1.1em;
  place-items: center;
  font-size: 1em;
  line-height: 1;
}

.demo-code-glyph {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.demo-icon-fallback {
  display: none;
}

.demo-zoom-glyph {
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
}

.demo-live-note,
.demo-custody-note {
  display: flex;
  max-width: 680px;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.55;
}

.demo-live-note svg,
.demo-custody-note svg { margin-top: 2px; flex: 0 0 auto; }

.demo-samples,
.demo-state-card,
.demo-result {
  margin-top: 18px;
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius-lg);
  background: var(--demo-surface);
  box-shadow: var(--demo-shadow-sm);
}

.demo-samples { padding: 22px; }

.demo-section-heading,
.demo-state-heading,
.demo-processing-heading,
.demo-card-heading,
.demo-result-topline,
.demo-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-section-heading h2,
.demo-state-heading h2,
.demo-processing-heading h2,
.demo-card-heading h3,
.demo-verification h3,
.demo-what-happened h3,
.demo-api-card h3,
.demo-trust-panel h3,
.demo-dialog-heading h2 {
  margin: 4px 0 0;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.demo-section-heading h2,
.demo-state-heading h2,
.demo-processing-heading h2 { font-size: clamp(24px, 5vw, 34px); }

.demo-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.demo-sample-tile {
  overflow: hidden;
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  background: #fbfdfb;
  padding: 0 0 10px;
  color: var(--demo-ink);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.demo-sample-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #8db9a7;
  box-shadow: 0 10px 24px rgba(15, 35, 27, 0.09);
}

.demo-sample-tile[aria-pressed="true"] {
  border-color: var(--demo-primary);
  box-shadow: 0 0 0 2px rgba(8, 123, 92, 0.13);
}

.demo-sample-tile:disabled { cursor: not-allowed; opacity: 0.55; }
.demo-sample-tile img { display: block; width: 100%; aspect-ratio: 0.71; object-fit: cover; object-position: top; }
.demo-sample-tile strong { display: block; padding-top: 8px; font-size: 12px; font-weight: 850; }

.demo-state-card { padding: 22px; }

.demo-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  background: #fff;
  color: var(--demo-ink-soft);
}

.demo-selection-grid,
.demo-processing-grid { display: grid; gap: 20px; margin-top: 20px; }

.demo-selected-preview,
.demo-processing-preview {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--demo-border);
  border-radius: 20px;
  background: #dfe7e3;
}

.demo-selected-preview { max-height: 620px; }
.demo-selected-preview img,
.demo-processing-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }

.demo-selection-details { align-self: center; }

.demo-file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  background: var(--demo-surface-soft);
  padding: 14px;
}

.demo-file-meta > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--demo-primary);
}

.demo-file-meta strong,
.demo-file-meta small { display: block; overflow: hidden; text-overflow: ellipsis; }
.demo-file-meta strong { font-size: 15px; white-space: nowrap; }
.demo-file-meta small { margin-top: 3px; color: var(--demo-muted); font-size: 13px; }

.demo-guidance { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.demo-guidance li { display: flex; align-items: center; gap: 9px; color: var(--demo-ink-soft); font-size: 15px; }
.demo-guidance svg { color: var(--demo-success); }

.demo-processing { overflow: hidden; }
.demo-processing-heading { align-items: flex-start; }
.demo-processing-heading > div:first-child small { display: block; margin-top: 7px; color: var(--demo-muted); font-size: 13px; }

.demo-elapsed {
  min-width: 108px;
  border: 1px solid #a8cfbf;
  border-radius: 16px;
  background: var(--demo-primary-pale);
  padding: 10px 13px;
  text-align: right;
}

.demo-elapsed span,
.demo-elapsed strong { display: block; }
.demo-elapsed span { color: var(--demo-primary-strong); font-size: 12px; font-weight: 750; }
.demo-elapsed strong { margin-top: 2px; font-variant-numeric: tabular-nums; font-size: 20px; }

.demo-stage-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.demo-stage-list li {
  display: grid;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 8px 11px;
  color: #84928c;
}

.demo-stage-list li[data-status="active"] {
  border-color: #9bcbb7;
  background: #edf8f3;
  color: var(--demo-ink);
}

.demo-stage-list li[data-status="complete"] { color: var(--demo-ink-soft); }
.demo-stage-list strong { font-size: 14px; }
.demo-stage-list time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 750; }

.demo-stage-mark {
  width: 12px;
  height: 12px;
  border: 2px solid #b5c2bc;
  border-radius: 50%;
}

[data-status="active"] > .demo-stage-mark {
  border-color: var(--demo-primary);
  background: var(--demo-primary);
  box-shadow: 0 0 0 6px rgba(8, 123, 92, 0.1);
  animation: demo-pulse 1.4s ease-in-out infinite;
}

[data-status="complete"] > .demo-stage-mark {
  border-color: var(--demo-success);
  background: var(--demo-success);
  box-shadow: inset 0 0 0 3px #fff;
}

.demo-processing-preview { min-height: 360px; max-height: 560px; }
.demo-processing-preview img { opacity: 0.9; }

.demo-scan-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0bc991 20%, #0bc991 80%, transparent);
  box-shadow: 0 0 18px rgba(11, 201, 145, 0.9);
  animation: demo-scan 2.4s ease-in-out infinite;
}

.demo-processing > .demo-button { margin-top: 20px; }

.demo-error {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  border-color: #e3b7b0;
  background: #fffafa;
}

.demo-error-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: var(--demo-error-pale);
  color: var(--demo-error);
}

.demo-error h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -0.035em; }
.demo-error p { max-width: 720px; margin: 10px 0 0; color: var(--demo-ink-soft); }
.demo-error small { display: block; margin-top: 9px; color: var(--demo-muted); font-family: ui-monospace, monospace; font-size: 12px; }
.demo-error-actions { margin-top: 18px; }

.demo-result { scroll-margin-top: 78px; padding: 14px; }
.demo-result-topline { justify-content: flex-end; padding: 0 0 10px; }
.demo-result-topline .demo-button { min-height: 38px; padding: 7px 12px; }

.demo-result-summary {
  display: grid;
  gap: 14px;
  border: 1px solid #b8d6c9;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0faf5, #fff);
  padding: 18px;
}

.demo-result-status { display: flex; align-items: center; }
.demo-result-status h2 { margin: 0; font-size: clamp(24px, 6vw, 34px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; }

.demo-pu-summary {
  min-width: 0;
  border-top: 1px solid #cbe0d7;
  border-bottom: 1px solid #cbe0d7;
  padding: 12px 0 13px;
}

.demo-pu-summary > span,
.demo-pu-summary > small { display: block; }
.demo-pu-summary > span { color: var(--demo-muted); font-size: 13px; font-weight: 750; }
.demo-pu-summary > small { margin-top: 8px; color: var(--demo-ink-soft); font-size: 13px; font-weight: 750; line-height: 1.4; }

.demo-pu-code-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
  margin-top: 7px;
}

.demo-pu-code-row > strong {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  overflow-wrap: anywhere;
  border: 1px solid #b9d3c8;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: #fff;
  padding: 10px 12px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(20px, 5.8vw, 31px);
  font-weight: 900;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.demo-pu-code-row > a {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--demo-primary);
  border-radius: 0 14px 14px 0;
  background: var(--demo-primary);
  padding: 8px 12px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 123, 92, 0.2);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.demo-pu-code-row > a:hover { background: var(--demo-primary-strong); }

.demo-result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.demo-result-facts > div { min-width: 0; border: 1px solid #d6e4de; border-radius: 15px; background: #fff; padding: 10px 11px; }
.demo-result-facts span,
.demo-result-facts strong { display: block; }
.demo-result-facts span { color: var(--demo-muted); font-size: 12px; font-weight: 750; }
.demo-result-facts strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 18px; font-variant-numeric: tabular-nums; }

.demo-result-workspace { display: grid; gap: 12px; margin-top: 10px; }
.demo-viewer-card,
.demo-readings-card,
.demo-verification,
.demo-vote-protection,
.demo-timings,
.demo-what-happened,
.demo-api-card,
.demo-trust-panel {
  border: 1px solid var(--demo-border);
  border-radius: 24px;
  background: #fff;
  padding: 18px;
}

.demo-card-heading h3,
.demo-verification h3,
.demo-vote-protection h3,
.demo-what-happened h3,
.demo-api-card h3,
.demo-trust-panel h3 { font-size: 22px; }
.demo-card-heading > h3 { margin: 0; }

.demo-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 16px;
  border-radius: 15px;
  background: var(--demo-surface-soft);
  padding: 4px;
}

.demo-view-tabs button {
  min-height: 44px;
  border-radius: 11px;
  background: transparent;
  padding: 8px 5px;
  color: var(--demo-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.demo-view-tabs button[aria-selected="true"] { background: #fff; color: var(--demo-primary-strong); box-shadow: 0 3px 12px rgba(15, 35, 27, 0.08); }

.demo-form-viewer {
  position: relative;
  height: min(66vh, 760px);
  min-height: 420px;
  overflow: auto;
  margin-top: 10px;
  border: 1px solid var(--demo-border);
  border-radius: 18px;
  background: #dfe6e2;
  overscroll-behavior: contain;
}

.demo-form-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
  transform-origin: top center;
  transition: transform 150ms ease;
}

.demo-form-stage img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: contain; object-position: top center; }
.demo-form-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.demo-view-controls { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; }
.demo-view-controls button { display: grid; min-width: 44px; min-height: 44px; place-items: center; border-radius: 12px; background: var(--demo-surface-soft); color: var(--demo-ink-soft); font-size: 13px; font-weight: 800; }
.demo-view-controls output { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 800; }

.demo-review-count { border-radius: 999px; background: var(--demo-warning-pale); padding: 7px 10px; color: var(--demo-warning); font-size: 12px; font-weight: 850; }

.demo-result-section { margin-top: 14px; border: 1px solid var(--demo-border); border-radius: 16px; background: #fbfdfb; }
.demo-result-section summary { display: flex; min-height: 52px; cursor: pointer; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-weight: 850; }
.demo-result-section summary strong { color: var(--demo-primary-strong); font-size: 13px; }
.demo-field-list { display: grid; border-top: 1px solid var(--demo-border); }

.demo-field-row {
  display: grid;
  min-height: 50px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5ece8;
  padding: 8px 12px;
}

.demo-field-row:last-child { border-bottom: 0; }
.demo-field-name { min-width: 0; overflow: hidden; color: var(--demo-ink-soft); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.demo-field-state { border-radius: 999px; background: var(--demo-surface-soft); padding: 5px 7px; color: var(--demo-muted); font-size: 11px; font-weight: 800; }
.demo-field-state[data-state="DIGITS"] { background: var(--demo-primary-pale); color: var(--demo-primary-strong); }
.demo-field-state[data-review="true"] { background: var(--demo-warning-pale); color: var(--demo-warning); }
.demo-field-value { width: 70px; min-height: 38px; border: 1px solid #c6d5ce; border-radius: 10px; background: #fff; padding: 6px 8px; color: var(--demo-ink); font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 850; text-align: right; }
.demo-field-value[readonly] { border-color: transparent; background: transparent; }

.demo-arithmetic-card { display: grid; gap: 8px; margin-top: 14px; border: 1px solid #b9d8ca; border-radius: 18px; background: #eff9f4; padding: 14px; }
.demo-arithmetic-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-arithmetic-card span { color: var(--demo-ink-soft); font-size: 14px; }
.demo-arithmetic-card strong { font-variant-numeric: tabular-nums; }
.demo-arithmetic-card p { margin: 5px 0 0; border-top: 1px solid #c9dfd5; padding-top: 10px; color: var(--demo-primary-strong); font-size: 14px; font-weight: 800; }
.demo-arithmetic-card[data-status="warn"] { border-color: #e5c77e; background: var(--demo-warning-pale); }
.demo-arithmetic-card[data-status="warn"] p { color: var(--demo-warning); }

.demo-verification,
.demo-vote-protection,
.demo-timings,
.demo-what-happened,
.demo-api-card,
.demo-trust-panel { margin-top: 12px; }

.demo-verification > div:first-child > span,
.demo-api-card > div:first-child > span { display: block; max-width: 760px; margin-top: 8px; color: var(--demo-ink-soft); }
.demo-verification-actions,
.demo-api-actions { margin-top: 18px; }

.demo-problem-panel { display: grid; gap: 8px; margin-top: 16px; border: 1px solid #e5c77e; border-radius: 16px; background: var(--demo-warning-pale); padding: 14px; color: #704600; }
.demo-problem-panel .demo-button { margin-top: 4px; justify-self: start; }

.demo-vote-protection {
  display: grid;
  gap: 18px;
  background: #102f26;
  color: #fff;
}

.demo-vote-protection-heading p {
  margin: 0;
  color: #8fddbf;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.demo-vote-protection-heading h3 {
  margin: 5px 0 0;
}

.demo-vote-protection-heading > span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.demo-vote-protection ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-vote-protection li {
  display: grid;
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(143, 221, 191, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 12px;
}

.demo-vote-protection li > span {
  font-size: 18px;
}

.demo-vote-protection li > strong {
  font-size: 13px;
  line-height: 1.35;
}

.demo-timings { overflow: hidden; }
.demo-timings summary { display: flex; min-height: 48px; cursor: pointer; align-items: center; justify-content: space-between; gap: 12px; }
.demo-timings summary > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; }
.demo-timings summary > strong { color: var(--demo-primary-strong); font-size: 14px; }
.demo-timing-groups { display: grid; gap: 16px; margin-top: 14px; border-top: 1px solid var(--demo-border); padding-top: 16px; }
.demo-timing-groups h3 { margin: 0 0 8px; font-size: 14px; }
.demo-timing-groups section > div { display: grid; gap: 7px; }
.demo-timing-row { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 16px; border-radius: 11px; background: var(--demo-surface-soft); padding: 8px 10px; color: var(--demo-ink-soft); font-size: 13px; }
.demo-timing-row strong { color: var(--demo-ink); font-variant-numeric: tabular-nums; }

.demo-what-happened { display: grid; gap: 16px; background: #102f26; color: #fff; }
.demo-what-happened > div > p { color: #8fddbf; }
.demo-what-happened ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.demo-what-happened li { position: relative; padding-left: 25px; color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.demo-what-happened li::before { position: absolute; top: 7px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: #62d5aa; content: ""; }

.demo-api-card { display: grid; gap: 16px; border-color: #adcbbf; background: linear-gradient(135deg, #f6fbf8, #fff); }
.demo-api-actions { align-self: center; }

.demo-trust-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; background: #f6f8f6; }
.demo-trust-panel > span { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 16px; background: var(--demo-primary-pale); color: var(--demo-primary); }
.demo-trust-panel p { max-width: 860px; margin: 8px 0 0; color: var(--demo-ink-soft); font-size: 14px; }
.demo-trust-panel nav { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 12px; }
.demo-trust-panel a { color: var(--demo-primary-strong); font-size: 14px; font-weight: 800; text-underline-offset: 3px; }

.demo-json-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid var(--demo-border);
  border-radius: 24px;
  background: #fff;
  padding: 18px;
  color: var(--demo-ink);
  box-shadow: var(--demo-shadow);
}

.demo-json-dialog::backdrop { background: rgba(6, 25, 18, 0.72); backdrop-filter: blur(4px); }
.demo-json-dialog > p { color: var(--demo-muted); font-size: 14px; }
.demo-json-dialog pre { max-height: 58vh; overflow: auto; border-radius: 16px; background: #0e211a; padding: 16px; color: #d4f7e9; font: 13px/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.demo-dialog-actions { margin-top: 14px; }

.demo-toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  max-width: min(390px, calc(100vw - 32px));
  border-radius: 14px;
  background: #102f26;
  padding: 13px 16px;
  color: #fff;
  box-shadow: var(--demo-shadow);
  font-size: 14px;
  font-weight: 750;
}

.demo-viewer-card:fullscreen { overflow: auto; border: 0; border-radius: 0; padding: 18px; background: #eef3f0; }
.demo-viewer-card:fullscreen .demo-form-viewer { height: calc(100vh - 190px); max-height: none; }

@keyframes demo-pulse { 0%, 100% { transform: scale(0.92); opacity: 0.75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes demo-scan { 0% { top: 4%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 96%; opacity: 0; } }

@media (max-width: 559px) {
  .demo-page { padding-inline: 10px; }
  .demo-hero-copy { padding-inline: 18px; }
  .demo-primary-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .demo-primary-actions .demo-button { min-width: 0; padding-inline: 9px; font-size: 13px; }
  .demo-primary-actions .demo-text-action { padding-inline: 4px; font-size: 14px; }
  .demo-section-heading { align-items: flex-end; }
  .demo-section-heading .demo-text-action { min-width: auto; white-space: nowrap; }
  .demo-processing-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .demo-processing-heading h2 { font-size: 23px; }
  .demo-elapsed { min-width: 93px; padding-inline: 10px; }
  .demo-elapsed strong { font-size: 18px; }
  .demo-result { padding: 10px; }
  .demo-result-summary { gap: 12px; border-radius: 21px; padding: 16px; }
  .demo-result-status h2 { font-size: 27px; }
  .demo-pu-code-row > strong { padding-inline: 9px; font-size: clamp(18px, 5.2vw, 21px); }
  .demo-pu-code-row > a { min-height: 46px; gap: 4px; padding-inline: 9px; font-size: 13px; }
  .demo-result-facts > div { padding: 9px 10px; }
  .demo-result-facts strong { font-size: 17px; }
  .demo-viewer-card,
  .demo-readings-card,
  .demo-verification,
  .demo-vote-protection,
  .demo-timings,
  .demo-api-card,
  .demo-trust-panel { border-radius: 20px; padding: 15px; }
  .demo-view-tabs button { font-size: 12px; }
  .demo-form-viewer { min-height: 390px; height: 62vh; }
  .demo-verification-actions,
  .demo-api-actions { display: grid; }
  .demo-verification-actions .demo-button,
  .demo-api-actions .demo-button { width: 100%; }
  .demo-timings summary { align-items: flex-start; }
  .demo-timings summary > strong { text-align: right; }
  .demo-json-dialog { padding: 14px; border-radius: 20px; }
}

@media (min-width: 560px) {
  .demo-page { padding: 30px 24px 90px; }
  .demo-hero-copy { padding: 44px 38px; }
  .demo-sample-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .demo-state-card { padding: 30px; }
  .demo-result { padding: 20px; }
  .demo-result-summary { padding: 26px; }
  .demo-timing-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-vote-protection ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-what-happened { grid-template-columns: minmax(220px, 0.8fr) 1.2fr; padding: 24px; }
  .demo-what-happened ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 780px) {
  .demo-selection-grid { grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr); }
  .demo-processing-grid { grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr); }
  .demo-result-summary { grid-template-columns: 1.05fr 1.25fr; align-items: center; }
  .demo-result-facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .demo-vote-protection { grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr); align-items: start; }
  .demo-api-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .demo-api-actions { justify-content: flex-end; }
}

@media (min-width: 1000px) {
  .demo-hero-copy { padding: 54px 58px; }
  .demo-result-summary { grid-template-columns: 1.1fr 1fr 1.45fr; }
  .demo-result-facts { grid-column: auto; }
  .demo-result-workspace { grid-template-columns: minmax(0, 1.4fr) minmax(380px, 0.86fr); align-items: start; }
  .demo-readings-card { max-height: 920px; overflow: auto; }
  .demo-form-viewer { height: min(76vh, 880px); }
  .demo-vote-protection ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .demo-sample-grid { grid-template-columns: repeat(13, minmax(0, 1fr)); }
}

@media (min-width: 1500px) {
  .demo-page { padding-top: 38px; }
  .demo-hero-copy { padding: 62px 70px; }
  .demo-result { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .investor-demo *,
  .investor-demo *::before,
  .investor-demo *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
