/* ═══════════════════════════════════════════════════════════════════════
   HOT SEAT — site.css
   The "on the record" design system: dark interrogation-room editorial,
   transcript monospace as the signature motif, ember accent shared with
   the app. No emoji icons, no gradient-text confetti, no glass cards.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0f;
  --bg-raised: #101018;
  --bg-panel: #13131d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ededf2;
  --muted: #8f8f9d;
  --faint: #5c5c68;
  --ember: #f97316;
  --ember-deep: #ea580c;
  --record: #ef4444;
  --sans: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(249, 115, 22, 0.35); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ─── Type scale ─────────────────────────────────────────────────────── */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 16px;
}

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(28px, 4.5vw, 44px); max-width: 640px; }
.section-sub { color: var(--muted); max-width: 560px; margin-top: 16px; font-size: 17px; }

/* ─── Nav ────────────────────────────────────────────────────────────── */

nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 80px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* The 3° monolith tile; wordmark is live text beside it (tiered logo system). */
.brand .brand-mark { height: 42px; width: 42px; border-radius: 10px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand .brand-name {
  font-size: 15px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text); white-space: nowrap;
}
.brand .brand-name b { color: var(--ember); font-weight: 700; }
.brand .brand-tag {
  font-family: var(--mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; margin-top: 3px;
}
/* Phones keep the tagline (founder call) — just a touch smaller to fit. */
@media (max-width: 640px) {
  .brand .brand-name { font-size: 13px; letter-spacing: 0.13em; }
  .brand .brand-tag { font-size: 7px; letter-spacing: 0.16em; }
}
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.btn-cta {
  font-size: 14px; font-weight: 600; color: #0a0a0f !important;
  background: var(--ember); padding: 9px 18px; border-radius: 8px;
  transition: background 0.15s;
}
.btn-cta:hover { background: #fb8b3c; }

/* ─── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; border-radius: 10px;
  padding: 14px 26px; transition: all 0.15s; cursor: pointer;
}
.btn-primary { background: var(--ember); color: #0a0a0f; }
.btn-primary:hover { background: #fb8b3c; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero { padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 0%, rgba(249, 115, 22, 0.13), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: center; position: relative; z-index: 2;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero-sub { color: var(--muted); font-size: 18px; margin: 24px 0 36px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 20px; letter-spacing: 0.04em; }

/* The transcript card — the site's signature object. */
.transcript {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.transcript-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--record);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.transcript-body { padding: 22px 22px 26px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; }
.transcript-body p { margin-bottom: 14px; }
.transcript-body .q { color: var(--ember); }
.transcript-body .a { color: var(--text); }
.transcript-body .stage { color: var(--faint); font-style: italic; font-size: 12px; }
.transcript-meter {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding: 12px 18px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.transcript-meter b { color: var(--ember); font-weight: 600; }

/* ─── Scenario index (the docket) ────────────────────────────────────── */

.docket { margin-top: 56px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.docket-row {
  display: grid; grid-template-columns: 64px 200px 1fr auto;
  gap: 24px; align-items: center;
  padding: 26px 28px; border-bottom: 1px solid var(--line);
  background: var(--bg-raised); transition: background 0.15s;
}
.docket-row:last-child { border-bottom: none; }
.docket-row:hover { background: var(--bg-panel); }
.docket-num { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.docket-name { font-size: 18px; font-weight: 700; }
.docket-desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.docket-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ember);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}

/* ─── Feature split ──────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 56px; }
.split.flip > .split-media { order: 2; }
.split h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.split p { color: var(--muted); font-size: 15.5px; }
.split-media img {
  border-radius: 16px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.ledger { list-style: none; margin-top: 22px; }
.ledger li {
  padding: 10px 0 10px 26px; position: relative;
  color: var(--text); font-size: 14.5px; border-bottom: 1px dashed var(--line);
}
.ledger li:last-child { border-bottom: none; }
.ledger li::before {
  content: "—"; position: absolute; left: 0; color: var(--ember);
  font-family: var(--mono);
}

/* Zero-retention data-flow diagram (index #privacy + trust center) */
.privacy-diagram { margin: 36px 0 0; }
.privacy-diagram img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--line-strong);
}

/* ─── Viral Challenge strip ──────────────────────────────────────────── */

.challenge-strip {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.challenge-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
}
.challenge-card .clock {
  font-family: var(--mono); font-size: 12px; color: var(--ember);
  letter-spacing: 0.14em; margin-bottom: 14px; display: block;
}
.challenge-card h4 { font-size: 19px; margin-bottom: 10px; }
.challenge-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ─── Steps ──────────────────────────────────────────────────────────── */

.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--ember); padding-top: 22px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--faint); display: block; margin-bottom: 12px; letter-spacing: 0.14em; }
.step h4 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ─── Anywhere (web/mobile) ──────────────────────────────────────────── */

.terminal {
  background: var(--bg-panel); border: 1px solid var(--line-strong);
  border-radius: 12px; overflow: hidden; font-family: var(--mono);
}
.terminal-bar {
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--faint); letter-spacing: 0.08em;
}
.terminal-body { padding: 20px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.terminal-body b { color: var(--text); font-weight: 500; }
.terminal-body .ok { color: var(--ember); }

/* ─── Pricing (two tiers) ────────────────────────────────────────────── */

.price-grid {
  margin-top: 56px; max-width: 920px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 36px;
  position: relative; display: flex; flex-direction: column;
}
.price-card .btn { margin-top: auto; text-align: center; }
.tier-flag {
  position: absolute; top: -11px; left: 32px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  background: var(--bg-panel); color: var(--muted); font-weight: 700;
  border: 1px solid var(--line-strong); text-transform: uppercase;
  padding: 4px 12px; border-radius: 5px;
}
.price-card.featured { border-color: rgba(249, 115, 22, 0.55); }
.price-card.featured .tier-flag {
  background: var(--ember); color: #0a0a0f; border-color: var(--ember);
}
.price-amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price-amount .per { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-minutes {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 16px;
}
.price-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.price-list { list-style: none; margin-bottom: 30px; }
.price-list li {
  font-size: 14px; padding: 7px 0 7px 22px; position: relative;
  break-inside: avoid; color: var(--text);
}
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ember); font-weight: 700; }
/* Enterprise strip — firms and teams talk to us; no public price. */
.price-enterprise {
  margin-top: 24px; max-width: 920px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--bg-raised);
  padding: 32px 36px; position: relative;
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.price-enterprise .ent-copy { flex: 1 1 380px; }
.price-enterprise h3 { font-size: 22px; margin-bottom: 8px; }
.price-enterprise p { color: var(--muted); font-size: 14px; max-width: 600px; }
.price-enterprise .btn { flex: none; }

.price-meta {
  margin-top: 24px; max-width: 920px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-raised);
  padding: 18px 24px;
  font-family: var(--mono); font-size: 12.5px; line-height: 2;
  color: var(--muted); letter-spacing: 0.02em;
}
.price-meta b { color: var(--ember); font-weight: 500; }
.price-meta span { color: var(--text); }

/* ─── Footer ─────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 16px;
}
.footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-tag { color: var(--muted); font-size: 14px; max-width: 300px; margin-top: 14px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > .split-media { order: 0; }
  .challenge-strip, .steps { grid-template-columns: 1fr; }
  .docket-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; row-gap: 8px; }
  .docket-desc { grid-column: 2; }
  .docket-tag { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links a:not(.btn-cta) { display: none; }
}

/* ─── Grand-opening promo banner ─────────────────────────────────────── */

.promo {
  position: relative;
  display: block;
  /* Dark, faintly tricolor-tinted — lets the bunting above be the one bold element. */
  background:
    linear-gradient(90deg, rgba(229, 52, 47, 0.16), rgba(47, 95, 208, 0.16)),
    var(--bg-raised);
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  overflow: hidden;
}
.promo-inner {
  max-width: 1080px; margin: 0 auto; padding: 11px 48px 11px 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; text-align: center;
  position: relative; z-index: 1;
}
.promo-flag {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; background: #0a0a0f; color: var(--ember);
  padding: 7px 16px; border-radius: 5px; white-space: nowrap;
  border: 1px solid rgba(249, 115, 22, 0.45);
  position: relative; z-index: 1;
  animation: go-pulse 1.5s ease-in-out infinite;
}
@keyframes go-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); transform: scale(1); color: var(--ember); }
  50% { box-shadow: 0 0 18px 3px rgba(249, 115, 22, 0.6); transform: scale(1.06); color: #ffb268; }
}
@media (prefers-reduced-motion: reduce) { .promo-flag { animation: none; } }
/* Subtle grand-opening fireworks canvas, behind the promo content */
.promo-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.promo-text {
  font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0.01em;
}
.promo-text u {
  color: var(--ember); text-decoration-color: var(--ember);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.promo-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255, 255, 255, 0.5);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 6px;
  font-family: var(--sans); z-index: 2;
}
.promo-close:hover { color: #fff; }

/* ─── Grand-opening fan valance (red/white/blue bunting) ─────────────────
   A continuous row of pleated half-round rosettes across the full width.
   Fans are built + sized by valance.js so every one is whole and equally
   spaced; this only styles the strip and its drop shadow. */
.hs-valance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  line-height: 0;
  background: var(--bg);
  overflow: hidden;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.5));
}
.hs-valance .hs-fan { display: block; flex: 0 0 auto; }
.hs-valance:empty { display: none; } /* nothing to show until JS builds it */

/* ─── App-store "coming soon" badges + sticky note (homepage hero) ───────
   Non-clickable ghost badges (apps aren't live yet); the sticky note is the
   one bright element and carries the availability message. */
.appstores { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  opacity: 0.85;
  cursor: default;
  -webkit-user-select: none; user-select: none;
}
.store-badge .ico { height: 23px; width: auto; display: block; flex: 0 0 auto; }
.store-badge b { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; white-space: nowrap; }

.sticky-note {
  position: relative; align-self: center;
  max-width: 176px; padding: 15px 16px 16px;
  background: linear-gradient(170deg, #ffe758, #ffd21c);
  color: #4a3600; font-weight: 700; font-size: 13.5px; line-height: 1.32;
  border-radius: 2px; transform: rotate(-3.5deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.sticky-note b {
  display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8a6500;
}
.sticky-note::before { /* strip of tape */
  content: ""; position: absolute; top: -9px; left: 50%;
  transform: translateX(-50%) rotate(2.5deg);
  width: 66px; height: 18px;
  background: rgba(255, 255, 255, 0.26); border: 1px solid rgba(255, 255, 255, 0.3);
}
@media (max-width: 560px) { .sticky-note { transform: rotate(-2deg); } }

/* ─── Bottom-of-page official app-store badges (coming soon) ───────────── */
.appstore-cta-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; flex-wrap: wrap;
}
.store-badges-official {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.store-official {
  height: 54px; width: auto; display: block; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}
.sticky-note.sticky-note-wide { max-width: 244px; }
.sticky-note a { color: #7a2e00; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* ─── Sub-page hero ──────────────────────────────────────────────────── */

.page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% -10%, rgba(249, 115, 22, 0.12), transparent 65%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 720px; position: relative; }
.page-hero .section-sub { position: relative; }
.page-hero .wrap { position: relative; z-index: 1; }

/* Challenge hero celebration shot — right-edge banner dissolving into the
   dark via the same gradient treatment as the index hero banner. */
.challenge-visual {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  z-index: 0; pointer-events: none;
}
.challenge-visual img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 22%; display: block;
  opacity: 0.55;                     /* founder call: subtle, not in-your-face */
}
.challenge-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(10, 10, 15, 0.9) 32%, rgba(10, 10, 15, 0.5) 66%, rgba(10, 10, 15, 0.22) 100%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%),
    linear-gradient(to top, transparent 85%, rgba(10, 10, 15, 0.6) 100%);
}
@media (max-width: 900px) {
  .challenge-visual { position: relative; width: auto; height: 320px; margin-top: 8px; }
  .challenge-visual::after { background: linear-gradient(to bottom, transparent 45%, var(--bg) 100%); }
}

/* Scenario detail blocks (scenarios.html) */
.case {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-raised); padding: 36px; margin-top: 28px;
}
.case-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.case-head .docket-num { font-size: 14px; }
.case-head h3 { font-size: 26px; }
.case p { color: var(--muted); font-size: 15px; max-width: 640px; }
.case .quote {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  border-left: 2px solid var(--ember); padding: 10px 0 10px 18px;
  margin: 20px 0; max-width: 620px; line-height: 1.7;
}
.case .quote span { color: var(--ember); }
.case .ledger { max-width: 640px; }

/* Challenge page extras */
.big-clock {
  font-family: var(--mono); font-size: clamp(56px, 10vw, 110px);
  font-weight: 500; letter-spacing: -0.02em; color: var(--ember);
  line-height: 1; margin: 8px 0 4px;
}
.ladder { margin-top: 40px; border-left: 2px solid var(--line-strong); padding-left: 28px; }
.ladder-step { padding: 18px 0; }
.ladder-step .n { font-family: var(--mono); font-size: 11px; color: var(--ember); letter-spacing: 0.18em; display: block; margin-bottom: 6px; }
.ladder-step h4 { font-size: 17px; margin-bottom: 6px; }
.ladder-step p { color: var(--muted); font-size: 14px; max-width: 560px; }

/* Redirect stub pages */
.redirect-note {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 16px;
  padding: 48px 24px;
}
.redirect-note p { color: var(--muted); }

/* ─── Courtroom hero (the witness-stand fade, carried over by request) ── */

.page-hero.courtroom {
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 15, 0.78) 0%, rgba(10, 10, 15, 0.88) 60%, rgba(10, 10, 15, 1) 100%),
    url("witness_stand.png");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Comedy-stage variant — the Viral Challenge leaderboard's open mic. */
.page-hero.stage {
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 15, 0.78) 0%, rgba(10, 10, 15, 0.88) 60%, rgba(10, 10, 15, 1) 100%),
    url("comedy-stage.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* ─── Per-scenario detail pages (deposition.html, witness-stand.html, …) ──
   Founder's art sits as a semi-transparent overlay behind the hero; a dark
   scrim keeps the copy legible. Swap the .art background-image per page. */
.scenario-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 60px; border-bottom: 1px solid var(--line);
}
.scenario-hero .art {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0.42;                        /* ← the semi-transparent overlay */
}
.scenario-hero .scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(249, 115, 22, 0.10), transparent 60%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.50) 0%, rgba(10, 10, 15, 0.78) 62%, var(--bg) 100%);
}
.scenario-hero .wrap { position: relative; z-index: 2; }
.scenario-back {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
}
.scenario-back:hover { color: var(--ember); }
.scenario-hero .docket-num { display: block; margin-bottom: 8px; font-size: 13px; }
.scenario-hero h1 { font-size: clamp(36px, 6vw, 60px); max-width: 720px; }
.scenario-lead {
  color: var(--text); opacity: 0.94; font-size: 18px; line-height: 1.6;
  max-width: 640px; margin-top: 18px;
}
.scenario-body { max-width: 720px; }
.scenario-body .quote {
  font-family: var(--mono); font-size: 14px; color: var(--text);
  border-left: 2px solid var(--ember); padding: 12px 0 12px 20px;
  margin: 4px 0 26px; line-height: 1.7;
}
.scenario-body .quote span { color: var(--ember); }
.scenario-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.scenario-nav {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px;
}
.scenario-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; max-width: 48%; }
.scenario-nav a:hover .nm { color: var(--ember); }
.scenario-nav .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.scenario-nav .nm { font-size: 16px; font-weight: 600; color: var(--text); }
.scenario-nav .next { text-align: right; margin-left: auto; align-items: flex-end; }

/* ═══════════════════════════════════════════════════════════════════════
   V2 — the fusion layer: photography, phone frames, glass, motion.
   Everything below deliberately overrides matching v1 rules.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Scroll reveal ──────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Hero v2: photography + floating transcript ─────────────────────── */

.hero { padding: 72px 0 110px; }
.hero::before {
  background:
    radial-gradient(ellipse 75% 55% at 80% 0%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 40% at 8% 90%, rgba(249, 115, 22, 0.06), transparent 70%);
}
.hero-visual { position: relative; }
/* Sign-in style: a large banner bleeding to the right edge, dissolving into
   the flat dark via a linear gradient (matches auth_screen.dart). */
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 56%; margin: 0; z-index: 1; pointer-events: none;
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 28%; display: block; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(10, 10, 15, 0.85) 24%, rgba(10, 10, 15, 0.2) 58%, transparent 82%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%),
    linear-gradient(to top, transparent 88%, rgba(10, 10, 15, 0.45) 100%);
}
@media (max-width: 900px) {
  .hero-visual { position: relative; width: auto; height: 300px; margin-top: 20px; }
  .hero-photo::after { background: linear-gradient(to bottom, transparent 45%, var(--bg) 100%); }
}
.glass-chip {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--text); text-transform: uppercase;
  background: rgba(10, 10, 15, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 12px; border-radius: 100px;
}
.hero-transcript {
  position: relative; margin: -120px 24px 0 -32px;
  background: rgba(19, 19, 29, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
@media (max-width: 900px) {
  .hero-photo img { height: 300px; }
  .hero-transcript { margin: -80px 12px 0 12px; }
}

/* ─── Stats band ─────────────────────────────────────────────────────── */

.stats-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.stats-band-inner {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.stat-cell { display: flex; align-items: baseline; gap: 10px; }
.stat-cell b { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ember); }
.stat-cell span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ─── Phone frame for app screenshots ────────────────────────────────── */

.phone {
  width: min(310px, 86%); margin: 0 auto; border-radius: 38px;
  border: 1px solid var(--line-strong); overflow: hidden;
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, 0.035),
    0 44px 90px rgba(0, 0, 0, 0.65),
    0 0 150px rgba(249, 115, 22, 0.14);
}
.phone img { width: 100%; }
.split-media .phone { transform: rotate(0.5deg); }
.split.flip .split-media .phone { transform: rotate(-0.5deg); }

/* Two-phone duo — the live session beside its deception-settings screen. */
.phone-duo {
  display: flex; gap: 18px; align-items: flex-start; justify-content: center;
}
.phone-duo .phone { width: min(238px, 48%); margin: 0; }
.phone-duo .phone + .phone { margin-top: 44px; }

/* ─── Glass upgrade for cards ────────────────────────────────────────── */

.challenge-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.challenge-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.65;
}
.challenge-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(249, 115, 22, 0.09);
}

.docket-row { position: relative; }
.docket-row:hover .docket-name { color: var(--ember); transition: color 0.15s; }
.docket-row::after {
  content: "→"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%) translateX(-6px);
  color: var(--ember); opacity: 0; transition: all 0.2s ease;
  font-family: var(--mono);
}
.docket-row:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 900px) { .docket-row::after { display: none; } }

.case { transition: border-color 0.25s ease; }
.case:hover { border-color: rgba(249, 115, 22, 0.3); }

.price-card.featured {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.05), rgba(255, 255, 255, 0.01) 40%);
}

/* ─── Section ambience ───────────────────────────────────────────────── */

.section { position: relative; }
.section.glow-left::before, .section.glow-right::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.section.glow-left::before {
  background: radial-gradient(ellipse 45% 55% at 0% 40%, rgba(249, 115, 22, 0.07), transparent 65%);
}
.section.glow-right::before {
  background: radial-gradient(ellipse 45% 55% at 100% 40%, rgba(249, 115, 22, 0.07), transparent 65%);
}

/* ─── The Front Desk (chat widget) ───────────────────────────────────── */

.desk { position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: var(--sans); }

.desk-launcher {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--text); cursor: pointer;
  background: rgba(19, 19, 29, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 12px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(249, 115, 22, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.desk-launcher:hover {
  border-color: rgba(249, 115, 22, 0.5); transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(249, 115, 22, 0.16);
}
.desk-open .desk-launcher { display: none; }

.desk-panel {
  position: absolute; right: 0; bottom: 0;
  width: min(390px, calc(100vw - 32px));
  display: flex; flex-direction: column;
  background: rgba(16, 16, 24, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 90px rgba(249, 115, 22, 0.10);
  overflow: hidden;
  animation: desk-rise 0.25s ease;
}
@keyframes desk-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .desk-panel { animation: none; } }

.desk-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.desk-head:hover .desk-close { color: var(--text); }
.desk-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--faint); font-size: 20px; line-height: 1; padding: 2px 4px;
  font-family: var(--sans); transition: color 0.15s;
}
.desk-close:hover { color: var(--text); }

.desk-body {
  height: min(420px, 55vh); overflow-y: auto;
  padding: 18px 18px 8px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.desk-line { margin-bottom: 13px; white-space: pre-wrap; overflow-wrap: break-word; }
.desk-line .q { color: var(--ember); }
.desk-line .a { color: var(--muted); }
.desk-cursor { color: var(--ember); animation: pulse 1s ease-in-out infinite; }

.desk-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 10px; }
.desk-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); background: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 7px 12px; transition: color 0.15s, border-color 0.15s;
}
.desk-chip:hover { color: var(--ember); border-color: rgba(249, 115, 22, 0.45); }

.desk-form { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.desk-input {
  flex: 1; background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-family: var(--mono); font-size: 13px; padding: 11px 14px;
  outline: none; transition: border-color 0.15s;
}
.desk-input::placeholder { color: var(--faint); }
.desk-input:focus { border-color: rgba(249, 115, 22, 0.55); }
.desk-send {
  background: var(--ember); color: #0a0a0f; border: none; cursor: pointer;
  border-radius: 10px; width: 44px; font-size: 17px; font-weight: 700;
  transition: background 0.15s;
}
.desk-send:hover { background: #fb8b3c; }

@media (max-width: 600px) {
  .desk { right: 14px; bottom: 14px; }
  .desk-panel { width: calc(100vw - 28px); }
  .desk-body { height: min(50vh, 380px); }
}

/* ─── Finish pass: focus rings, dark scrollbar ───────────────────────── */

:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2a2a38; border-radius: 100px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a4c; }
.desk-body::-webkit-scrollbar { width: 6px; }
.desk-body::-webkit-scrollbar-thumb { border: none; }

/* hidden must beat the panel's display:flex — the close button depends on it */
.desk-panel[hidden] { display: none; }

/* ─── "For the record" callout — why the challenge is ridiculous ─────── */
.for-record {
  position: relative;
  max-width: 720px; margin-top: 36px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(249, 115, 22, 0.28); border-left: 3px solid var(--ember);
  border-radius: 12px; padding: 22px 26px;
}
.for-record .n {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember);
  display: block; margin-bottom: 10px;
}
.for-record p { color: var(--text); font-size: 15px; line-height: 1.65; max-width: none; }
.for-record p b { color: var(--ember); font-weight: 600; }

/* ─── Mobile chat hardening ──────────────────────────────────────────── */
@media (max-width: 600px) {
  /* iOS Safari zooms the whole page when a focused input is under 16px */
  .desk-input { font-size: 16px; }
  .desk-body { height: min(48dvh, 380px); }
}
