/* Praxsis landing — Counsel palette */

:root {
  --bg-1: #f2efe7;          /* bone */
  --bg-2: #fafaf6;          /* paper */
  --surface: #ffffff;
  --border: #dcd7c7;
  --border-strong: #c9c2a8;
  --ink: #1f1f1f;           /* charcoal — primary text */
  --ink-soft: #4a4a4a;
  --mute: #6f6f77;
  --brand: #14213d;         /* deep ink navy — primary action */
  --brand-hover: #1b2d54;
  --accent: #f5c518;        /* counsel yellow — highlighter / small accents */
  --accent-soft: #fce584;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;

  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
}

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

html {
  background: var(--bg-1);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ------------------------------ Containers */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container.narrow { max-width: 720px; }
.container.centered { text-align: center; }

/* ------------------------------ Nav (charcoal bar) */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.nav-inner {
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--bg-1);
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(242, 239, 231, 0.78);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--bg-1); }

/* ------------------------------ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease,
    border-color 160ms ease, color 160ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Navy — primary action across the site */
.btn-primary {
  background: var(--brand);
  color: var(--bg-1);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Yellow — earned attention, used sparingly */
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-accent:hover { background: #ecbb16; border-color: #ecbb16; }

/* Outline */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: rgba(31, 31, 31, 0.04); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ------------------------------ Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background: var(--bg-1);
  overflow: hidden;
}
.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 400px at 75% 30%, rgba(245, 197, 24, 0.08), transparent 60%),
    radial-gradient(800px 600px at 80% 90%, rgba(20, 33, 61, 0.04), transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero-text { max-width: 560px; padding: var(--s-9) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--s-5);
}

.hero-headline {
  margin: 0 0 var(--s-5);
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.hl {
  display: inline;
  background: var(--accent);
  color: var(--ink);
  padding: 2px 8px;
  margin: 0 -2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 2px;
}

.hero-sub {
  margin: 0 0 var(--s-7);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ------------------------------ Proof strip */

.proof-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) var(--s-6);
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}
.proof-strip em { color: var(--ink); font-style: italic; font-weight: 500; }

/* ------------------------------ Urgency strip */

.urgency-strip {
  width: 100%;
  background: var(--bg-2);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.urgency-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 48px;
  justify-content: space-between;
}
.urgency-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.urgency-stat {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.urgency-label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .urgency-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ------------------------------ Section heads */

.section-head { max-width: 720px; margin: 0 auto var(--s-8); text-align: center; }
.section-h {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.section-sub {
  margin: var(--s-4) auto 0;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.55;
}

/* ------------------------------ Problem cards */

.problem { padding: var(--s-10) 0; background: var(--bg-1); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.card-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.card-icon svg { width: 100%; height: 100%; }
.stat-headline { font-size: 16px; font-weight: 500; color: var(--ink); margin-top: var(--s-2); }
.stat-figure {
  font-size: 56px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: var(--s-2);
}
.stat-source { font-size: 12px; color: var(--mute); }

/* ------------------------------ How it works */

.how { padding: var(--s-10) 0; background: var(--bg-1); }
.how-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-7) 0;
}
.how-row.reverse .how-text { order: 2; }
.how-row.reverse .how-vis { order: 1; }
.how-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--s-4);
}
.how-h {
  margin: 0 0 var(--s-4);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.how-p {
  margin: 0;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 480px;
}

/* ------------------------------ Mock product visuals (How It Works) */

.mock-modal,
.mock-list,
.mock-pdf {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 13px;
  color: var(--ink);
}

.mock-modal-header {
  background: var(--ink);
  padding: 18px 22px;
}
.mock-modal-title { font-size: 15px; font-weight: 600; color: var(--bg-1); }
.mock-modal-sub { font-size: 12px; color: rgba(242, 239, 231, 0.78); margin-top: 4px; }
.mock-modal-body { padding: var(--s-4) var(--s-5); background: var(--surface); }
.mock-finding {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.mock-finding:last-child { border-bottom: 0; }
.mock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px; flex-shrink: 0;
}
.mock-dot-high { background: var(--danger); }
.mock-dot-med { background: var(--accent); }
.mock-finding-type { font-weight: 500; color: var(--ink); font-size: 13px; }
.mock-finding-snippet {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.mock-modal-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--s-4) var(--s-5);
  display: flex;
  gap: var(--s-2);
  justify-content: flex-end;
}
.mock-modal-footer button {
  font: inherit; font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--mute);
  cursor: default;
}
.mock-modal-footer .mock-primary {
  background: var(--brand);
  color: var(--bg-1);
  border-color: var(--brand);
}
.mock-modal-footer .mock-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.mock-list { background: var(--bg-1); }
.mock-list-head,
.mock-list-row {
  display: grid;
  grid-template-columns: 84px 90px 130px 1fr 16px;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-5);
  font-size: 12.5px;
}
.mock-list-head {
  color: var(--mute);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mock-list-row {
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  border-left: 2px solid transparent;
}
.mock-list-row:last-child { border-bottom: 0; }
.mock-list-row.flagged { border-left-color: var(--danger); background: rgba(185, 28, 28, 0.03); }
.mock-mono {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.mock-clip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}
.mock-flag { color: var(--danger); font-size: 16px; line-height: 1; }

/* Chips — shared with dashboard */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: lowercase;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.chip-claude   { background: var(--accent-soft); color: var(--ink);    border-color: var(--accent); }
.chip-chatgpt  { background: #dcfce7;            color: var(--success); border-color: #4ade80; }
.chip-gemini   { background: #fef3c7;            color: var(--warning); border-color: #fbbf24; }
.chip-other    { background: #f3f4f6;            color: var(--ink-soft); border-color: var(--border); }

/* PDF mock with navy header + bone body */
.mock-pdf { padding: 0; }
.mock-pdf-header {
  background: var(--brand);
  color: var(--bg-1);
  padding: var(--s-5) var(--s-6);
}
.mock-pdf-stamp {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid rgba(245, 197, 24, 0.45);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: var(--s-4);
}
.mock-pdf-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bg-1);
}
.mock-pdf-body {
  background: var(--bg-1);
  padding: var(--s-5) var(--s-6) var(--s-6);
  color: var(--ink);
}
.mock-pdf-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3) var(--s-5);
  margin: 0 0 var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border-strong);
  font-size: 12px;
}
.mock-pdf-meta span {
  color: var(--mute);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}
.mock-pdf-meta strong {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mock-pdf-row {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.mock-pdf-row:last-of-type, .mock-pdf-row.last { border-bottom: 0; }
.mock-pdf-row span { color: var(--ink-soft); }
.mock-pdf-row strong { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-pdf-row strong.ok { color: var(--success); letter-spacing: 0.05em; }
.mock-pdf-foot {
  margin-top: var(--s-4);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: var(--mute);
  font-size: 11px;
}

/* ------------------------------ Standards (inverted, charcoal) */

.standards {
  background: var(--ink);
  color: var(--bg-1);
  padding: var(--s-10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.standards .eyebrow {
  display: block;
  margin-bottom: var(--s-4);
  color: var(--accent);
}
.standards .section-h { color: var(--bg-1); }
.standards-body {
  font-size: 17px;
  color: rgba(242, 239, 231, 0.82);
  line-height: 1.65;
  margin: var(--s-5) auto var(--s-6);
}
.standards-body em { color: var(--bg-1); font-style: italic; font-weight: 500; }

/* ------------------------------ Final CTA */

.final-cta {
  padding: var(--s-10) 0;
  background: var(--bg-1);
}
.final-cta .section-h { margin-bottom: var(--s-4); }
.final-cta .section-sub { margin-bottom: var(--s-6); }
.cta-secondary { margin-top: var(--s-4); }
.cta-secondary a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  transition: color 160ms ease;
}
.cta-secondary a:hover { color: var(--ink); }

/* ------------------------------ Footer */

.footer {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--ink);
  background: var(--bg-2);
}
.footer .wordmark { color: var(--ink); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.footer-meta {
  display: flex;
  gap: var(--s-5);
  color: var(--mute);
  font-size: 13px;
  align-items: center;
}
.footer-meta a:hover { color: var(--ink); }

/* ------------------------------ Reveal animations */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ------------------------------ Responsive */

@media (max-width: 960px) {
  .hero-headline { font-size: 44px; }
  .hero-sub { font-size: 17px; }
  .section-h { font-size: 32px; }
  .how-h { font-size: 26px; }
}

@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { padding: var(--s-8) 0; }
  .hero-headline { font-size: 36px; }

  .card-grid { grid-template-columns: 1fr; }
  .how-row, .how-row.reverse {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding: var(--s-5) 0;
  }
  .how-row.reverse .how-text { order: 1; }
  .how-row.reverse .how-vis { order: 2; }

  .problem, .how, .standards, .final-cta { padding: var(--s-8) 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
}

/* ============================== Hero demo carousel */

.hero-demo {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  perspective: 1200px;
}

/* Caption above the window */
.demo-caption {
  margin-bottom: 16px;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.demo-caption-text {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 280ms ease, transform 280ms ease;
}
.demo-caption-text.swapping {
  opacity: 0;
  transform: translateY(-4px);
}

/* Window frame (unchanged from before, minus the body min-height) */
.demo-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 60px -12px rgba(31, 31, 31, 0.18),
    0 8px 24px -4px rgba(31, 31, 31, 0.10);
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-3deg);
  transform-origin: center center;
  animation: demo-float 8s ease-in-out infinite;
}
@keyframes demo-float {
  0%, 100% { transform: rotateX(2deg) rotateY(-3deg) translateY(0); }
  50%      { transform: rotateX(2deg) rotateY(-3deg) translateY(-6px); }
}

.demo-window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f4f1e8;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.demo-dot-tl {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8d2c0;
}
.demo-dot-tl:nth-child(1) { background: #e8a87c; }
.demo-dot-tl:nth-child(2) { background: #e3c87c; }
.demo-dot-tl:nth-child(3) { background: #b4ce8e; }
.demo-window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 200ms ease;
}

/* Stage — five overlaid scenes, only one .active at a time */
.demo-window-stage {
  position: relative;
  min-height: 380px;
  background: var(--surface);
  overflow: hidden;
}
.demo-scene {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.demo-scene.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.demo-scene-eyebrow {
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Nav dots */
.demo-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.demo-nav-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 220ms ease, width 220ms ease;
}
.demo-nav-dot:hover { background: var(--mute); }
.demo-nav-dot.active {
  background: var(--ink);
  width: 40px;
}
.demo-nav-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- Scene 0: PII intercept ---------- */
.scene-pii-composer {
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  position: relative;
  min-height: 56px;
}
.scene-pii-typed {
  /* Wraps with the parent's word-break behavior; nothing special needed. */
  color: var(--ink);
}
.scene-pii-caret {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--brand);
  vertical-align: -3px;
  margin-left: 1px;
  animation: scene-pii-blink 1s steps(2) infinite;
}
@keyframes scene-pii-blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.scene-pii-modal {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 280ms ease;
}
.scene-pii-modal.show { opacity: 1; }
.scene-pii-modal-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 40px -10px rgba(31,31,31,0.30);
  overflow: hidden;
  transform: translateY(8px);
  transition: transform 280ms ease;
}
.scene-pii-modal.show .scene-pii-modal-inner { transform: translateY(0); }
.scene-pii-modal-header {
  background: var(--ink);
  color: var(--bg-1);
  padding: 12px 14px;
}
.scene-pii-modal-title { font-size: 13px; font-weight: 600; }
.scene-pii-modal-sub   { font-size: 11px; color: rgba(242, 239, 231, 0.75); margin-top: 2px; }
.scene-pii-modal-body  { padding: 10px 14px; }
.scene-pii-finding { display: flex; gap: 10px; padding: 6px 0; }
.scene-pii-finding + .scene-pii-finding { border-top: 1px solid var(--border); }
.scene-pii-finding-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--danger);
  margin-top: 6px;
  flex-shrink: 0;
}
.scene-pii-finding-type    { font-weight: 500; font-size: 12px; color: var(--ink); }
.scene-pii-finding-snippet {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 1px;
}

/* ---------- Scene 1: Citation flag ---------- */
.scene-citation-message {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 12px;
}
.scene-citation-message strong {
  font-weight: 600;
  background: rgba(185, 28, 28, 0.10);
  border-bottom: 2px solid var(--danger);
  padding: 0 2px;
  position: relative;
}
.scene-citation-flag {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.scene-citation-flag.show { opacity: 1; transform: translateY(0); }
.scene-citation-flag-icon { color: var(--danger); flex-shrink: 0; margin-top: 1px; }
.scene-citation-flag-text { font-size: 12px; color: var(--ink); line-height: 1.45; }
.scene-citation-flag-text strong { font-weight: 600; color: var(--danger); display: block; margin-bottom: 2px; }

/* ---------- Scene 2: Audit feed ---------- */
.scene-audit { display: flex; flex-direction: column; gap: 8px; }
.scene-audit-row {
  display: grid;
  grid-template-columns: 56px 72px 1fr 88px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.scene-audit-row.show { opacity: 1; transform: translateY(0); }
.scene-audit-time {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
}
.scene-audit-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  border: 1px solid;
}
.scene-audit-chip.claude  { background: var(--accent-soft); color: var(--ink);     border-color: var(--accent); }
.scene-audit-chip.chatgpt { background: #dcfce7;            color: var(--success); border-color: #4ade80; }
.scene-audit-hash {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--mute);
  text-align: right;
}
.scene-audit-label { color: var(--ink); font-size: 12px; }
.scene-audit-label .pii { color: var(--danger); font-weight: 500; }

/* ---------- Scene 3: Report assembly ---------- */
.scene-report {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  margin-top: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scene-report-header {
  background: var(--brand);
  color: var(--bg-1);
  padding: 12px 16px;
  opacity: 0;
  transition: opacity 320ms ease;
}
.scene-report-header.show { opacity: 1; }
.scene-report-stamp {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 197, 24, 0.45);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.scene-report-title { font-size: 13px; font-weight: 600; }
.scene-report-body  { padding: 12px 16px; flex: 1; }
.scene-report-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.scene-report-line.show { opacity: 1; transform: translateY(0); }
.scene-report-line:last-child { border-bottom: 0; }
.scene-report-line span    { color: var(--mute); }
.scene-report-line strong  { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.scene-report-line strong.ok { color: var(--success); letter-spacing: 0.04em; }
.scene-report-stamp-final {
  align-self: flex-start;
  margin: 14px 0 0 14px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 240ms ease;
}
.scene-report-stamp-final.show { transform: scale(1); opacity: 1; }

/* ---------- Scene 4: Bar rules compliance ---------- */
.scene-rules { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.scene-rules-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 2px;
}
.scene-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.scene-rule.show { opacity: 1; transform: translateY(0); }
.scene-rule-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--accent);
}
.scene-rule-check svg { width: 12px; height: 12px; }
.scene-rule-body { flex: 1; }
.scene-rule-citation {
  font-size: 11px;
  color: var(--mute);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.scene-rule-title { font-size: 13px; color: var(--ink); font-weight: 500; }
.scene-rule-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .hero-demo { max-width: 100%; margin: 32px 0 0; }
  .demo-window { transform: none; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-window      { animation: none; }
  .demo-caption-text { transition: none; }
}
