/* =============================================================
   PEEKINDUCK · BOOTH STAGE — Customer Journey
   Design system: Peekinduck public-demo canvas — teal liquid glass,
   Instrument Serif display + Inter UI (matches DemoMeetingPage /
   StartDemoMeetingPage in frontend-ts).
   ============================================================= */

:root {
  --bg: #004970;                            /* teal canvas base */
  --bg-2: #0d3450;                          /* opaque deep-teal surface (stacked pages, product mocks) */
  --panel: rgba(255, 255, 255, 0.05);       /* glass panel fill */
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-3: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.15);
  --border-soft: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(74, 158, 245, 0.4);

  --glass-heavy: rgba(3, 42, 66, 0.92);     /* popovers / captions over content */

  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.75);
  --text-mute: rgba(255, 255, 255, 0.50);
  --text-faint: rgba(255, 255, 255, 0.35);

  --accent: #4A9EF5;
  --accent-2: #6BB0F7;
  --accent-soft: rgba(74, 158, 245, 0.14);
  --accent-soft-2: rgba(74, 158, 245, 0.22);
  --accent-glow: rgba(74, 158, 245, 0.32);
  --highlight: #FEDC01;                     /* serif hero highlight */

  --good: #34D399;
  --good-soft: rgba(52, 211, 153, 0.16);
  --warn: #F59E0B;
  --warn-soft: rgba(245, 158, 11, 0.16);
  --bad: #F87171;
  --bad-soft: rgba(248, 113, 113, 0.16);

  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 8px 32px rgba(2, 20, 34, 0.4), 0 0 24px rgba(74, 158, 245, 0.18);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}
body {
  /* Teal radial canvas — identical recipe to the public demo pages */
  background:
    radial-gradient(120% 90% at 12% 8%, #0a5a86 0%, rgba(10, 90, 134, 0) 55%),
    radial-gradient(90% 80% at 100% 100%, #013a5c 0%, rgba(1, 58, 92, 0) 60%),
    radial-gradient(40% 40% at 100% 0%, rgba(74, 158, 245, 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

button { font-family: inherit; cursor: pointer; }

/* ============= SHELL =============
   The booth has a FIXED design size (1640×940). We scale it via CSS
   transform to fit whatever viewport we're on — fullscreen, windowed,
   or anything in between. Everything is always visible, just minified
   when the window is smaller than the design size.
   ============================================= */
.booth {
  position: relative;
  z-index: 1;
  width: 1640px;
  height: 940px;
  flex-shrink: 0;
  padding: 22px 28px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  transform: scale(var(--booth-scale, 1));
  transform-origin: center center;
}

/* ============= HEADER ============= */
.booth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700; letter-spacing: -0.02em; font-size: 18px;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.brand .wordmark { display: flex; align-items: center; gap: 10px; }
.brand .sep { color: var(--text-faint); }
.brand .subtitle {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 11px; color: var(--text-mute); letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kiosk-controls {
  display: flex; gap: 8px;
}

/* ===== INTRO SCENE (Act 0 — context before the journey) ===== */
.intro {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  padding: 20px 24px;
  overflow: hidden;
}
.intro-top { text-align: center; }
.intro-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.intro-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-top: 10px;
  color: var(--text);
}
.intro-headline em {
  font-style: italic;
  color: var(--highlight);
  font-weight: 400;
}
.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.intro-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
}
.intro-card-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.intro-card-logo {
  height: 52px;
  width: auto;
  margin: 2px 0;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}
.intro-card-mark {
  height: 52px;
  display: flex;
  align-items: center;
}
.intro-card-mark .nova-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
}
.intro-card-mark .nova-mark::after {
  inset: 10px;
  border-width: 3px;
}
.intro-card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.intro-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-top: 2px;
}
.intro-journey {
  background: rgba(74, 158, 245, 0.07);
  border: 1px solid rgba(74, 158, 245, 0.18);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 22px 26px;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;   /* label fixed, list fills */
  gap: 14px;
}
.intro-journey-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.intro-journey-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* spread the rows across the full list height */
}
.intro-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
}
.intro-step .step-num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-align: center;
  border-right: 1px solid rgba(74, 158, 245, 0.2);
  padding-right: 14px;
}
.intro-step .step-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.intro-step .step-text strong {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

/* Non-numbered timeline buttons (INTRO + INSIGHTS) — both sit outside the
   4-act customer-journey arc, so they share an accent-tinted styling. */
.act.act-extra {
  background: rgba(74, 158, 245, 0.05);
  border-color: rgba(74, 158, 245, 0.25);
}
.act.act-extra .act-num {
  color: var(--accent);
}

/* Divider + secondary label inside the intro-journey panel */
.intro-journey-divider {
  height: 1px;
  background: rgba(74, 158, 245, 0.2);
  margin: 14px 0 12px;
}
.intro-journey-label-secondary {
  color: var(--text-dim);
  margin-bottom: 4px;
}
.step-num.step-num-extra {
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
}
.kbtn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}
.kbtn:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
a.kbtn, .kbtn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.kbtn .key {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: 999px;
  margin-right: 6px;
  font-size: 10px;
}

/* ============= SPECTRUM GLYPH ============= */
.glyph {
  display: inline-flex; gap: 3px; align-items: end;
}
.glyph.glyph-sm { height: 16px; }
.glyph.glyph-md { height: 22px; }
.glyph.glyph-lg { height: 48px; }
.glyph.glyph-xl { height: 80px; }
.glyph span {
  background: var(--accent);
  border-radius: 2px;
  animation: bar 1.4s ease-in-out infinite;
}
.glyph.glyph-sm span { width: 3px; }
.glyph.glyph-md span { width: 3.5px; gap: 4px; }
.glyph.glyph-lg span { width: 6px; border-radius: 3px; }
.glyph.glyph-xl span { width: 9px; border-radius: 4px; }
.glyph span:nth-child(1) { height: 40%; animation-delay: 0s; }
.glyph span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.glyph span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.glyph span:nth-child(4) { height: 70%; animation-delay: 0.45s; }
.glyph span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
.glyph.speaking span { animation-duration: 0.7s; }
.glyph.idle span { animation-play-state: paused; height: 30%; }
@keyframes bar {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1.1); }
}

/* ============= STAGE ============= */
.stage {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), var(--shadow-card);
}

/* ============= VIEWPORT ============= */
.viewport {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-soft);
  min-width: 0;
}
.scene {
  position: absolute; inset: 0;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.995);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.scene.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ============= CHIPS PANEL ============= */
.chips-panel {
  padding: 26px 24px;
  display: flex; flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  min-width: 0;
}
.chips-eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
  color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 2px;
}
.chips-title {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 26px; letter-spacing: -0.8px;
  margin-bottom: 14px; line-height: 1.25;
  color: var(--text);
}
.chips-title em {
  font-style: italic;
  color: var(--accent); font-weight: 400;
}
.chip {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 1.4;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.chip:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(74, 158, 245, 0.12);
}
.chip:disabled { cursor: not-allowed; opacity: 0.55; }
.chip-icon {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
}
/* Chips stay normal-looking after playing — no dim, no "blown out" state. */
/* .chip.played { } — intentionally no styles */
.chip.playing {
  background: var(--accent-soft-2);
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
}
.chip.playing::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  animation: chipProgress var(--chip-duration, 6s) linear forwards;
}
@keyframes chipProgress { from { width: 0; } to { width: 100%; } }
.chips-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 6px 0;
}
/* Workflow group label inside chips panel (Act III) */
.chips-group-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 2px 6px;
  border-bottom: 1px solid rgba(74, 158, 245, 0.18);
  margin-bottom: 2px;
}
.chips-soft-divider {
  height: 14px;
}
.advance-btn {
  margin-top: auto;
  /* Glass pill CTA — same treatment as the demo "Start Demo" button */
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  border: none;
  padding: 15px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(2, 20, 34, 0.35);
}
.advance-btn:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 16px 32px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}
.advance-btn:active { transform: scale(0.98); }
.advance-btn .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  transition: transform 0.2s;
}
.advance-btn:hover .arrow { transform: translateX(4px); }

/* ============= ACTS TIMELINE ============= */
.acts {
  display: grid;
  /* 4 numbered acts share the bulk of the width; INTRO + INSIGHTS are
     narrower "extras" that bookend the journey. */
  grid-template-columns: 0.75fr repeat(4, 1fr) 0.75fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 20px;
  padding: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.act {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.act:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.act.active {
  background: linear-gradient(180deg, var(--accent-soft), transparent 70%);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(74, 158, 245, 0.18);
}
.act-num {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
  color: var(--text-mute); letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.act-dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
}
.act.active .act-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.act.played .act-dot { background: var(--good); }
.act-title {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 16px; letter-spacing: -0.01em;
  margin-top: 8px;
}
.act-sub {
  font-size: 11px; color: var(--text-mute);
  margin-top: 3px;
  font-family: 'Inter', sans-serif; letter-spacing: 0.05em;
}

/* ============= FOOTER ============= */
.booth-footer {
  text-align: center;
  color: var(--text-mute);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
}

/* =============================================================
   ACT I — DEMO CALL  (full Zoom-like meeting frame + Nova share)
   ============================================================= */
.call-frame {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.call-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.call-bar-left { display: flex; align-items: center; gap: 14px; }
.call-bar-right { display: flex; align-items: center; gap: 12px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bad-soft);
  color: var(--bad);
  padding: 4px 12px; border-radius: 999px; font-size: 10px;
  letter-spacing: 0.12em; font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.live-pill .rec-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--bad);
  animation: rec 1.5s infinite;
}
@keyframes rec { 50% { opacity: 0.3; } }
.call-title {
  font-family: 'Inter', sans-serif; font-weight: 500;
  color: var(--text); font-size: 13px; letter-spacing: -0.01em;
}
.call-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
}
.call-body {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 14px;
  padding: 14px;
  min-height: 0;
}

/* === Nova product (shared screen) === */
.nova {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  position: relative;
}
.nova-sidebar {
  background: rgba(255, 255, 255, 0.018);
  border-right: 1px solid var(--border-soft);
  padding: 16px 12px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.nova-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: -0.015em;
  padding: 4px 8px 16px;
}
.nova-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4A9EF5 0%, #6366F1 100%);
  position: relative;
  flex-shrink: 0;
}
.nova-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid white;
  border-radius: 3px;
  border-right: none;
  border-bottom: none;
}
.nova-nav-group {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 10px 6px;
}
.nova-nav-item {
  padding: 8px 10px; border-radius: 7px;
  font-size: 12px; color: var(--text-dim);
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.nova-nav-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.nova-nav-item.active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}
.nova-nav-item.active .nav-ico { color: var(--accent); }
.nova-nav-item.glow {
  color: var(--accent);
  background: var(--accent-soft);
  animation: navGlow 1.4s ease-in-out infinite;
}
@keyframes navGlow {
  50% { box-shadow: inset 0 0 0 1px var(--accent), 0 0 20px var(--accent-glow); }
}
.nav-ico {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-mute);
  flex-shrink: 0;
}
.nova-main {
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}
.nova-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.nova-title-group { display: flex; flex-direction: column; gap: 4px; }
.nova-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: var(--text-mute); letter-spacing: 0.16em; text-transform: uppercase;
}
.nova-title {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 18px; letter-spacing: -0.015em;
  color: var(--text);
}
.nova-actions { display: flex; gap: 8px; align-items: center; }
.nova-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nova-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* KPI cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.4s ease;
}
.kpi.pulse {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--accent-glow);
}
.kpi-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mute);
  display: flex; align-items: center; gap: 6px;
}
.kpi-val {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 22px;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.kpi-delta {
  font-size: 11px;
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.kpi-delta.up { color: var(--good); }
.kpi-delta.down { color: var(--bad); }
.kpi-delta.flat { color: var(--text-dim); }

/* Chart */
.chart-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
}
.chart-title {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px;
  color: var(--text-dim);
}
.chart-legend {
  display: flex; gap: 14px; font-size: 10px; color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em;
}
.chart-legend .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
}
.chart-svg {
  width: 100%;
  height: 110px;
  flex: 1;
  min-height: 0;
  transition: filter 0.4s;
}
.chart-svg.pulse { filter: drop-shadow(0 0 16px rgba(74, 158, 245, 0.4)); }

/* === Presenter strip === */
.presenters {
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.tile {
  flex: 1;
  background: rgba(2, 40, 64, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.tile.ai {
  background:
    radial-gradient(circle at 50% 45%, rgba(74, 158, 245, 0.18), transparent 65%),
    rgba(2, 40, 64, 0.6);
  border-color: rgba(74, 158, 245, 0.35);
}
.tile.ai.speaking {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 32px var(--accent-glow);
}
.tile.human.speaking {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.5);
}
.tile-name {
  position: absolute; bottom: 10px; left: 12px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.tile-name strong { color: var(--text); font-weight: 500; }
.tile.ai .tile-name strong { color: var(--accent); }
.tile-mic {
  position: absolute; bottom: 10px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--good);
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 600;
  color: white; font-size: 22px;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.3);
}
.avatar.avatar-customer {
  background: linear-gradient(135deg, #34D399 0%, #0891B2 100%);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.3);
}

/* Spacious Act I tweak — fewer modules, more breathing room */
.nova-main-spacious { gap: 18px; padding: 22px 26px; }
.nova-main-spacious .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nova-main-spacious .kpi-val { font-size: 26px; }
.chart-wrap-tall { padding: 16px 18px; min-height: 0; }
.chart-wrap-tall .chart-svg { height: 100%; min-height: 140px; }

/* ===== Nova multi-page stage (Act I) ===== */
.nova-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.nova-page {
  position: absolute;
  inset: 0;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow: hidden;
  background: var(--bg-2);
}
.nova-page.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Integrations list (page 2) */
.integ-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px;
}
.integ-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.integ-row.pulse {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--accent-glow);
}
.integ-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 12px;
}
.integ-name {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.integ-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.integ-status {
  font-size: 11px;
  color: var(--good);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}
.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}

/* Field mapping table (page 3) */
.field-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.field-table-head,
.field-row {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 16px;
  padding: 12px 18px;
  align-items: center;
}
.field-table-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border-soft);
}
.field-row {
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.3s;
}
.field-row:last-child { border-bottom: none; }
.field-row.pulse {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.field-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-size: 13px;
}
.field-name.custom { color: var(--accent); }
.field-arrow {
  color: var(--accent);
  font-size: 14px;
  text-align: center;
}
.field-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
}
.field-type.custom {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Billing page (page 4) */
.plan-card {
  background: linear-gradient(135deg, rgba(74, 158, 245, 0.08) 0%, rgba(74, 158, 245, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s;
}
.plan-card.pulse {
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
}
.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.plan-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.plan-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
}
.plan-price .amt {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.plan-price .per {
  font-size: 12px;
  color: var(--text-dim);
}
.plan-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-bullet {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.plan-bullet .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.usage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.usage-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.usage-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.usage-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  margin: 8px 0 6px;
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8B5CF6);
  border-radius: 999px;
}
.usage-meta {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Unified agent cursor (used in Acts I, III, IV) ===== */
.agent-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-200px, -200px);
  transition:
    transform 0.85s cubic-bezier(0.45, 0.05, 0.35, 1),
    opacity 0.3s;
  z-index: 14;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
.agent-cursor svg { width: 100%; height: 100%; }
.agent-cursor.show { opacity: 1; }
/* "click" gesture — quick scale-down + accent burst behind the cursor */
.agent-cursor::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}
.agent-cursor.clicking::before {
  animation: cursorBurst 0.32s ease-out;
}
.agent-cursor.clicking > svg {
  animation: cursorPress 0.22s ease-out;
}
@keyframes cursorBurst {
  0%   { opacity: 0.55; transform: scale(0.35); }
  100% { opacity: 0;    transform: scale(1.8); }
}
@keyframes cursorPress {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.78); }
  100% { transform: scale(1); }
}
.agent-cursor .label {
  position: absolute;
  left: 36px;
  top: 22px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 4px 12px rgba(74, 158, 245, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}
.agent-cursor.with-label .label { opacity: 1; }

/* ===== Sprint list (Act III · Sprints page) ===== */
.nova-btn-lg {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
}
.sprint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px;
}
.sprint-row {
  display: grid;
  grid-template-columns: 1fr 200px 80px;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.sprint-row.pulse {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--accent-glow);
}
.sprint-name {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.sprint-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.sprint-progress {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 10px;
  align-items: center;
}
.sprint-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.sprint-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8B5CF6);
  border-radius: 999px;
}
.sprint-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
}

/* "Create pipeline" button pulse target */
#btn-create-pipeline.pulse {
  background: var(--accent-2);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: scale(1.04);
}
#btn-create-pipeline {
  transition: all 0.3s;
}

/* ===== Settings (Act III · Settings page) ===== */
.settings-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  height: 100%;
  min-height: 0;
}
.settings-subnav {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-sub-item {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.3s;
}
.settings-sub-item.active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}
.settings-sub-item.pulse {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 24px var(--accent-glow);
}
.settings-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.settings-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.settings-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.settings-toggle-name {
  font-size: 13px;
  font-weight: 500;
}
.settings-toggle-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.toggle-switch {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch.on .toggle-knob { transform: translateX(16px); }

/* ===== Top-right avatar + dropdown (Act III) ===== */
/* Pages in Act III stop 70px from the right edge so the avatar has its
   own zone and doesn't collide with toolbar buttons like "+ Create pipeline". */
[data-scene="3"] .nova-page { right: 70px; }
.avatar-corner {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 13;
}
.avatar-trigger {
  background: transparent;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s;
}
.avatar-trigger.pulse {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: scale(1.08);
}
.avatar-dropdown {
  position: absolute;
  top: 44px; right: 0;
  background: var(--glass-heavy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  width: 200px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}
.avatar-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.drop-item {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  cursor: default;
  transition: all 0.25s;
}
.drop-item:hover { background: rgba(255, 255, 255, 0.04); }
.drop-item.invite {
  color: var(--accent);
  font-weight: 500;
}
.drop-item.invite.pulse {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}
.drop-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

/* ===== Modal backdrop (Act IV) ===== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 16;
  pointer-events: none;
}
.modal-backdrop.show { opacity: 1; }

/* ===== Toast notification (autoplay interaction guard) ===== */
.toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translate(-50%, -16px);
  background: var(--glass-heavy);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 28px var(--accent-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}
.toast-text { white-space: nowrap; }

/* ===== Play-All / kiosk primary button ===== */
.kbtn-primary {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.kbtn-primary:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 24px var(--accent-glow);
}
.kbtn-primary.playing {
  background: var(--bad-soft);
  border-color: var(--bad);
  color: var(--bad);
}
.kbtn-primary.playing:hover {
  background: var(--bad);
  color: white;
}

/* Caption bar at bottom of call */
.caption-bar {
  padding: 16px 20px;
  /* Matches the live-transcript overlay on DemoMeetingPage */
  background: rgba(2, 40, 64, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text);
  min-height: 56px;
  display: flex; align-items: center; gap: 14px;
}
.caption-bar .speaker-tag {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 11px;
  border-radius: 999px;
  flex-shrink: 0;
}
.caption-bar .speaker-tag.aelios {
  background: var(--accent-soft);
  color: var(--accent);
}
.caption-bar .speaker-tag.sarah,
.caption-bar .speaker-tag.customer {
  background: rgba(52, 211, 153, 0.16);
  color: #6EE7B7;
}
.caption-bar .text {
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 1.4;
}
.caption-bar.show .text { opacity: 1; }
.caption-bar.show .text::after {
  content: '';
  display: inline-block;
  width: 2px; height: 16px;
  background: var(--accent);
  margin-left: 2px;
  animation: caret 0.9s infinite;
  vertical-align: middle;
}
@keyframes caret { 50% { opacity: 0; } }

/* Deals table */
.deals {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.deals-head {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr 0.7fr;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border-soft);
}
.deal-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr 0.7fr;
  padding: 9px 14px;
  font-size: 11.5px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.deal-row:last-child { border-bottom: none; }
.deal-row .company {
  font-family: 'Inter', sans-serif; font-weight: 500;
  color: var(--text);
}
.deal-row .value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
}
.deal-row .owner {
  color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
}
.mini-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-family: 'Inter', sans-serif; font-weight: 500;
  color: white;
  flex-shrink: 0;
}
.stage-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.stage-pill.won { background: var(--good-soft); color: var(--good); }
.stage-pill.neg { background: var(--warn-soft); color: var(--warn); }
.stage-pill.demo { background: var(--accent-soft); color: var(--accent); }
.stage-pill.disc { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); }
.deal-row .updated {
  color: var(--text-mute);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

/* Integration overlay (Act I chip 1 effect) */
.integration-overlay {
  position: absolute;
  top: 18px; right: 18px;
  display: flex; gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.4s;
  z-index: 5;
}
.integration-overlay.show { opacity: 1; transform: translateY(0); }
.int-chip {
  background: var(--glass-heavy);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
  display: flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.int-chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}

/* Pricing overlay (Act I chip 3) */
.pricing-overlay {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--glass-heavy);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  width: 240px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px var(--accent-glow);
  z-index: 6;
}
.pricing-overlay.show { opacity: 1; transform: translateY(0); }
.pricing-overlay .plan {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.16em; color: var(--accent);
  text-transform: uppercase;
}
.pricing-overlay .price {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.pricing-overlay .price .unit {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
}
.pricing-overlay .detail {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
}

/* =============================================================
   ACT II — HANDOFF
   ============================================================= */
.handoff {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  align-items: center;
  gap: 24px;
  padding: 48px 32px;
}
.handoff-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), var(--shadow-card);
  padding: 26px 24px;
  min-height: 320px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.handoff-card .h-label {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase;
}
.handoff-card .h-title {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 27px; letter-spacing: -0.8px;
  line-height: 1.2;
}
.handoff-card .h-title em {
  font-style: italic;
  color: var(--accent); font-weight: 400;
}
.handoff-card .h-thumb {
  margin-top: auto;
  flex: 1;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

/* Mini call thumb */
.thumb-call { display: grid; grid-template-columns: 1fr 60px; padding: 8px; gap: 6px; }
.thumb-call .share-area {
  background: linear-gradient(180deg, rgba(74, 158, 245, 0.08), transparent);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  position: relative;
}
.thumb-call .share-area::before {
  content: '';
  position: absolute; inset: 18% 12%;
  background:
    linear-gradient(180deg, rgba(74, 158, 245, 0.2), transparent 80%);
  border-radius: 4px;
}
.thumb-call .strip { display: flex; flex-direction: column; gap: 4px; }
.thumb-call .mini-tile {
  flex: 1;
  border-radius: 5px;
  border: 1px solid var(--border-soft);
}
.thumb-call .mini-tile.ai {
  background: radial-gradient(circle, rgba(74, 158, 245, 0.3), transparent);
  border-color: var(--accent);
}
.thumb-call .mini-tile.human {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(236, 72, 153, 0.2));
}

/* Mini Nova thumb */
.thumb-app {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 8px;
  gap: 6px;
}
.thumb-app .side {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
}
.thumb-app .main {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  position: relative;
  padding: 6px;
  display: grid;
  grid-template-rows: 12px 1fr;
  gap: 4px;
}
.thumb-app .main::after {
  content: '';
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 12px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent);
}
.thumb-app .row {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  height: 100%;
}

/* The migrating orb */
.handoff-bridge {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  position: relative;
  height: 100%;
}
.handoff-bridge .label-top,
.handoff-bridge .label-bot {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; color: var(--accent);
  text-transform: uppercase;
}
.handoff-bridge .line {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  position: relative;
}
.handoff-bridge .orb {
  position: absolute;
  top: 50%; left: 0;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(74, 158, 245, 0.5) 60%, transparent 100%);
  box-shadow: 0 0 24px var(--accent), 0 0 48px var(--accent-glow);
  animation: orbDrift 4s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
}
.handoff-bridge .orb::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  opacity: 0.95;
}
@keyframes orbDrift {
  0%, 100% { left: 0%; transform: scale(1); }
  50%      { left: calc(100% - 28px); transform: scale(1.15); }
}
.handoff-bridge .center-text {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 22px; letter-spacing: -0.5px;
  text-align: center;
}
.handoff-bridge .center-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* =============================================================
   ACT III & IV — IN-PRODUCT NOVA + WIDGET
   ============================================================= */
.in-product {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
}
.in-product .nova-main { padding: 22px 24px; }

/* Kanban */
.board-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}
.board-toggle {
  display: flex; gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 2px;
}
.board-toggle button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
}
.board-toggle button.active {
  background: var(--accent-soft);
  color: var(--text);
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.kanban-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--border-soft);
}
.col-head .name {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mute);
}
.col-head .count {
  font-size: 10px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 999px;
}
.task-card {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 11px;
  display: flex; flex-direction: column;
  gap: 8px;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.task-card:hover {
  border-color: var(--border);
  background: var(--panel-3);
}
.task-card.moving {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow), 0 0 0 1px var(--accent);
  transform: scale(1.03);
  z-index: 5;
}
.task-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.task-priority {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.task-priority.high { background: var(--bad); }
.task-priority.med { background: var(--warn); }
.task-priority.low { background: var(--text-mute); }
.task-title {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}
.task-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9px;
  color: var(--text-mute);
}
.task-assignees {
  display: flex;
}
.task-assignees .mini-avatar {
  width: 18px; height: 18px;
  border: 1.5px solid var(--bg-2);
  margin-left: -5px;
}
.task-assignees .mini-avatar:first-child { margin-left: 0; }
.task-icons {
  display: flex; gap: 8px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
}

/* Peekinduck pill widget */
.pill {
  position: absolute;
  right: 22px; bottom: 22px;
  background: var(--glass-heavy);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 11px 18px 11px 14px;
  display: flex; align-items: center; gap: 11px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  z-index: 15;
}
.pill .name {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.pill .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.pill-caption {
  position: absolute;
  right: 22px;
  bottom: 78px;
  max-width: 320px;
  background: var(--glass-heavy);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s;
  z-index: 14;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.pill-caption.show { opacity: 1; transform: translateY(0); }
.pill-caption .speaker {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: var(--accent); letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.pill-caption.user .speaker { color: #6EE7B7; }
.pill-caption .text { line-height: 1.45; }

/* Ghost cursor */
.ghost-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.3s;
  z-index: 12;
}
.ghost-cursor svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 12px var(--accent));
}
.ghost-cursor.show { opacity: 1; }
.ghost-cursor .label {
  position: absolute; left: 26px; top: 18px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif; font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 4px 12px rgba(74, 158, 245, 0.4);
}

/* Action-mode overlays */
.modal {
  position: absolute;
  top: 50%; right: 20px;
  transform: translate(100%, -50%);
  width: 360px;
  background: var(--glass-heavy);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 18;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), -16px 24px 64px rgba(0, 0, 0, 0.5);
}
.modal.show {
  transform: translate(0, -50%);
  opacity: 1;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-title {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px;
  letter-spacing: -0.015em;
}
.modal-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}
.modal-row .l { color: var(--text-dim); }
.modal-row .v { color: var(--text); font-family: 'JetBrains Mono', monospace; }
.modal-row.amount .v { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; }
.modal-status {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex; align-items: center; gap: 10px;
  background: var(--warn-soft);
  color: var(--warn);
  transition: all 0.4s;
}
.modal-status.success {
  background: var(--good-soft);
  color: var(--good);
}
.modal-status .spinner {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-status.success .spinner { display: none; }
.modal-status .check {
  display: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--good);
  color: white;
  align-items: center; justify-content: center;
  font-size: 10px;
}
.modal-status.success .check { display: inline-flex; }

/* Scheduler popover */
.scheduler {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--glass-heavy);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  width: 360px;
  opacity: 0;
  transition: all 0.4s;
  z-index: 19;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 24px 64px rgba(0, 0, 0, 0.6);
}
.scheduler.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.scheduler-title {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.cal-day {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}
.cal-day .dow { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-mute); letter-spacing: 0.12em; }
.cal-day .dom { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; color: var(--text); margin-top: 4px; }
.cal-slot {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 4px;
  font-size: 9px;
  margin-top: 8px;
}
.cal-day.target {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow);
}
.cal-day.target .cal-slot {
  background: var(--accent);
  color: white;
  font-weight: 500;
}

/* =============================================================
   ACT V — MEMORY (redesigned, spacious grid, no scroll)
   ============================================================= */
.memory {
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 26px 32px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  overflow: hidden;
}
.memory-header {
  display: flex; justify-content: space-between; align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
}
.memory-title {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 32px;
  letter-spacing: -1px;
}
.memory-title em {
  font-style: italic;
  color: var(--accent); font-weight: 400;
}
.memory-sub {
  font-size: 13px; color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.memory-sub-r {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
  color: var(--text-mute); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content;        /* cards sized to content, no stretching */
  gap: 14px;
  align-content: center;              /* center cards vertically — no huge gap below */
  overflow-y: auto;
  padding-right: 4px;
}
.mem-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
  min-height: 0;
  overflow: hidden;
}
.mem-card.show { opacity: 1; transform: translateY(0); }
.mem-card.flash {
  background: var(--accent-soft);
  border-color: var(--accent);
  border-left-color: var(--accent-2);
  box-shadow: 0 0 32px var(--accent-glow);
}
.mem-tag-row { display: flex; align-items: center; gap: 8px; }
.mem-headline {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 16px; line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.mem-headline strong { color: var(--accent); font-weight: 500; }
.mem-body {
  font-size: 13px; line-height: 1.5;
  color: var(--text-dim);
}
.mem-body strong { color: var(--text); font-weight: 500; }

/* =============================================================
   ACT V — JOURNEY NOTES (legacy, kept for backwards compat)
   ============================================================= */
.journey {
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px 30px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 18px;
  overflow: hidden;
}
.journey-header {
  display: flex; justify-content: space-between; align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.journey-title {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.8px;
}
.journey-title em {
  font-style: italic;
  color: var(--accent); font-weight: 400;
}
.journey-sub {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text-mute); letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: var(--text-mute); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stat-val {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.stat-val .small {
  font-size: 13px;
  color: var(--text-dim);
}
.stat-trend {
  font-size: 10px;
  color: var(--good);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.journey-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}
.journey-chart .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.journey-chart svg { width: 100%; height: 64px; }

.notes-list {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.notes-list::-webkit-scrollbar { width: 6px; }
.notes-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.note {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; gap: 12px;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.5s ease;
}
.note.show { opacity: 1; transform: translateX(0); }
.note.flash {
  background: var(--accent-soft);
  border-left-color: var(--accent-2);
  box-shadow: 0 0 24px var(--accent-glow);
}
.note-body { flex: 1; }
.note-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.note-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 9px;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 10px; border-radius: 999px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.note-tag.support { background: rgba(167, 139, 250, 0.16); color: #C4B5FD; }
.note-tag.risk { background: var(--bad-soft); color: var(--bad); }
.note-tag.insight { background: var(--good-soft); color: var(--good); }
.note-tag.usage { background: var(--warn-soft); color: var(--warn); }
.note-time {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text-mute);
}
.note-text {
  font-size: 13px; line-height: 1.5;
  color: var(--text);
}
.note-text strong { color: var(--accent); font-weight: 500; }

/* No fullscreen-specific overrides needed — scale-to-fit handles it. */

/* =============================================================
   LIQUID GLASS LAYER — bright gradient edge ring + glass sheen.
   Ported from frontend-ts/src/styles/liquid-glass.css so booth
   surfaces match the Peekinduck public demo pages.
   ============================================================= */

/* Static surfaces need a positioning context for the ring */
.acts, .call-frame, .memory, .journey, .intro-card, .intro-journey,
.advance-btn, .form-mock, .explore-browser, .explore-discovered,
.editor-player, .editor-workflows, .narration-preview, .code-block {
  position: relative;
}

/* Bright 1.4px gradient ring around the edge (top + bottom lit).
   Masked so only the border area is painted, following each
   element's own border-radius. */
.stage::before, .acts::before, .call-frame::before, .in-product::before,
.memory::before, .journey::before, .intro-card::before, .intro-journey::before,
.handoff-card::before, .advance-btn::before, .toast::before, .pill::before,
.pill-caption::before, .modal::before, .scheduler::before,
.avatar-dropdown::before, .pricing-overlay::before, .setup-stage::before,
.mode-card::before, .form-mock::before, .explore-browser::before,
.explore-discovered::before, .editor-player::before, .editor-workflows::before,
.narration-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
