/* ==========================================================================
   VoiceGlen — AI Voice Agent Reliability Platform
   Acoustic night · sound channels · controlled listening
   ========================================================================== */

:root {
  --mist: #E8EDF4;
  --night: #0A1228;
  --violet: #625CF6;
  --amber: #FFB936;
  --mint: #22C9A6;
  --coral: #F2556B;
  --blue: #4189F5;

  --card-light: #FDFEFF;
  --card-dark: #131E39;
  --border-light: #CBD3E0;
  --border-dark: #2B3A5B;
  --heading-light: #1D2435;
  --heading-dark: #F7F9FF;
  --body-light: #626B7B;
  --body-dark: #C4CEE2;

  --heading: var(--heading-light);
  --body: var(--body-light);
  --card: var(--card-light);
  --border: var(--border-light);
  --page-bg: var(--mist);

  --ok: var(--mint);
  --wait: var(--amber);
  --risk: var(--coral);
  --accent: var(--violet);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

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

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-btn: 8px;

  --shadow-card: 0 14px 36px -18px rgba(10, 18, 40, 0.22);
  --shadow-lift: 0 22px 52px -20px rgba(10, 18, 40, 0.32);
  --shadow-night: 0 24px 60px -16px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 0.84, 0.32, 1);
  --announce-h: 34px;
  --header-h: 56px;
}

/* ---------- Reset ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, p { margin: 0; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

input[type="checkbox"] { accent-color: var(--violet); width: 18px; height: 18px; }
input[type="range"] { accent-color: var(--violet); }

[hidden] { display: none !important; }

[data-site-header], [data-site-footer] { display: contents; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(98, 92, 246, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-shell main { flex: 1; }

.auth-body { margin: 0; min-height: 100vh; }

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.lead {
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
  max-width: 62ch;
}

.text-link {
  color: var(--violet);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(98, 92, 246, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover {
  color: #4f49e8;
  border-bottom-color: rgba(79, 73, 232, 0.55);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-3);
}

.kicker::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

.mono-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body);
}

.hint-line {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.5;
  margin-top: var(--space-4);
}

.is-ok { color: var(--ok) !important; }
.is-warn { color: var(--wait) !important; }
.is-fail { color: var(--risk) !important; }

/* ---------- Layout utilities ---------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide { max-width: 1440px; }

.section {
  padding: var(--space-8) 0;
}

.section--tight { padding: var(--space-6) 0; }

.section--night {
  background: var(--night);
  color: var(--body-dark);
}

.section--night h2,
.section--night h3,
.section--night h4 { color: var(--heading-dark); }

.section--card {
  background: var(--card-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.sec-head {
  margin-bottom: var(--space-6);
  max-width: 720px;
}

.sec-head .lead { margin-top: var(--space-3); }

.sec-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  max-width: none;
}

.mt-s { margin-top: var(--space-4) !important; }
.mt-m { margin-top: var(--space-6) !important; }
.mt-l { margin-top: var(--space-7) !important; }

.reveal {
  animation: reveal-up 0.55s var(--ease) both;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 4px 14px -4px rgba(98, 92, 246, 0.55);
}

.btn-primary:hover {
  background: #524ce8;
  border-color: #524ce8;
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(98, 92, 246, 0.06);
  border-color: rgba(98, 92, 246, 0.35);
  color: var(--violet);
}

.btn-line {
  background: transparent;
  color: var(--violet);
  border-color: rgba(98, 92, 246, 0.45);
}

.btn-line:hover {
  background: rgba(98, 92, 246, 0.08);
  border-color: var(--violet);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* Dark surfaces */

.call-stage .btn-ghost,
.section--night .btn-ghost {
  color: var(--heading-dark);
  border-color: var(--border-dark);
}

.call-stage .btn-ghost:hover,
.section--night .btn-ghost:hover {
  background: rgba(247, 249, 255, 0.06);
  border-color: rgba(98, 92, 246, 0.5);
  color: #fff;
}

.call-stage .btn-line,
.section--night .btn-line {
  color: var(--mint);
  border-color: rgba(34, 201, 166, 0.45);
}

.call-stage .btn-line:hover,
.section--night .btn-line:hover {
  background: rgba(34, 201, 166, 0.1);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}

label.field span {
  font-weight: 500;
  color: var(--body);
  font-size: 12px;
}

.field input,
.field textarea,
.field select,
.form-grid input,
.form-grid textarea,
.form-grid select {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--heading-light);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(98, 107, 123, 0.65); }

.form-msg {
  font-size: 13.5px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(242, 85, 107, 0.08);
  border: 1px solid rgba(242, 85, 107, 0.25);
  color: var(--risk);
}

.form-msg.is-ok {
  background: rgba(34, 201, 166, 0.1);
  border-color: rgba(34, 201, 166, 0.35);
  color: #0d7a66;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--body);
}

.checkbox-row input { margin-top: 3px; flex: none; }

/* ---------- Announce bar — channel ticker ---------- */

.announce-bar {
  background: #070e1f;
  border-bottom: 1px solid rgba(98, 92, 246, 0.28);
  color: var(--heading-dark);
}

.announce-bar-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.announce-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--body-dark);
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  font-family: var(--mono);
}

.announce-tick {
  flex: none;
  padding: 2px 6px;
  border: 1px solid rgba(98, 92, 246, 0.5);
  color: var(--violet);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.announce-mono {
  color: var(--amber);
  font-weight: 600;
}

.announce-cta {
  color: var(--mint);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(34, 201, 166, 0.45);
  flex: none;
}

.announce-cta:hover {
  color: #3adbb8;
  border-bottom-color: #3adbb8;
}

@media (max-width: 820px) {
  .announce-text {
    white-space: normal;
    flex-wrap: wrap;
    font-size: 11.5px;
    gap: 6px 10px;
  }
}

/* ---------- Header — light mist bar ---------- */

.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: rgba(253, 254, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 rgba(10, 18, 40, 0.04);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px var(--space-6);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  column-gap: var(--space-4);
  min-height: var(--header-h);
}

.header-left { justify-self: start; min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  flex: none;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { display: block; width: 28px; height: 28px; }

.brand-name {
  color: var(--heading-light);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-main {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px 18px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body-light);
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--violet);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover { color: var(--heading-light); }

.nav-link.is-active {
  color: var(--heading-light);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-signin {
  color: var(--heading-light);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 2px;
}

.header-signin:hover { color: var(--violet); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--heading-light);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 18px;
}

/* Mobile nav */

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-6) var(--space-5);
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: var(--space-3) var(--space-2);
  color: var(--body-light);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.mobile-nav a:hover {
  color: var(--heading-light);
  background: rgba(98, 92, 246, 0.05);
}

.mobile-nav a.is-active {
  color: var(--violet);
  border-left-color: var(--violet);
  background: rgba(98, 92, 246, 0.06);
}

.mobile-nav .btn { margin-top: var(--space-2); align-self: flex-start; }

/* User menu */

.user-menu { position: relative; }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--violet);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 12px;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--space-2);
  z-index: 120;
}

.user-dropdown.is-open { display: block; }

.user-workspace-label {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-1);
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px var(--space-3);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading-light);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(98, 92, 246, 0.07);
  color: var(--violet);
}

/* ---------- Footer — night, 4 cols, no CTA ---------- */

.site-footer {
  background: #0A1228;
  color: var(--body-dark);
  margin-top: auto;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.footer-col h4 {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--heading-dark);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer-col ul { display: grid; gap: var(--space-2); }

.footer-col a {
  font-size: 14px;
  color: var(--body-dark);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--mint); }

.footer-bar {
  border-top: 1px solid var(--border-dark);
}

.footer-bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  font-size: 13px;
}

.footer-tagline {
  color: var(--body-dark);
  font-size: 13px;
  line-height: 1.5;
  max-width: 520px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal a {
  color: var(--body-dark);
  font-size: 13px;
}

.footer-legal a:hover { color: var(--heading-dark); }

/* ---------- Page mast — horizontal ---------- */

.page-mast {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border-light);
  background: var(--mist);
}

.page-mast--night {
  background: var(--night);
  border-bottom-color: var(--border-dark);
  color: var(--body-dark);
}

.page-mast--night .lead { color: var(--body-dark); }
.page-mast--night h1 { color: var(--heading-dark); }
.page-mast--night .kicker { color: var(--mint); }

.page-mast-inner {
  display: grid;
  grid-template-columns: 1.2fr minmax(240px, 0.8fr);
  align-items: stretch;
  gap: var(--space-5) var(--space-7);
}

.page-mast-inner--solo {
  grid-template-columns: 1fr;
}

.page-mast-copy { min-width: 0; }

.page-mast-copy h1 {
  margin: var(--space-2) 0 var(--space-3);
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
}

.page-mast-copy .lead { max-width: 62ch; }

.page-mast-action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: var(--space-4);
  min-height: 100%;
}

.mast-side-panel {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.page-mast--night .mast-side-panel {
  background: var(--card-dark);
  border-color: var(--border-dark);
}

.mast-side-chips {
  display: grid;
  gap: var(--space-3);
}

.mast-side-chip {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.page-mast--night .mast-side-chip { border-bottom-color: var(--border-dark); }

.mast-side-chip span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-light);
}

.page-mast--night .mast-side-chip span { color: var(--body-dark); }

.mast-side-chip b { color: var(--heading-light); font-weight: 600; }
.page-mast--night .mast-side-chip b { color: var(--heading-dark); }

.page-mast-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--body-light);
}

.breadcrumb a:hover { color: var(--violet); }

.page-chip {
  display: inline-flex;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(98, 92, 246, 0.1);
  border: 1px solid rgba(98, 92, 246, 0.22);
  border-radius: var(--radius-sm);
}

/* ---------- Home — Acoustic Night call stage ---------- */

.call-hero {
  background: var(--night);
  color: var(--body-dark);
  min-height: calc(100vh - var(--announce-h) - var(--header-h));
  display: flex;
  flex-direction: column;
}

.call-hero-bar {
  padding: var(--space-5) var(--space-6) var(--space-4);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-dark);
}

.call-hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.call-hero-brand .brand-name { color: var(--heading-dark); }

.call-hero-copy h1 {
  color: var(--heading-dark);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  max-width: 24ch;
  margin-top: var(--space-3);
}

.call-hero-copy .mono-label { color: var(--mint); }

.call-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
}

.hero-pulse {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: var(--card-dark);
}

.hero-pulse-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-pulse-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13px;
}

.hero-pulse-list span { color: var(--body-dark); }
.hero-pulse-list b { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.hero-pulse-list b.is-warn { color: var(--amber); }
.hero-pulse-list b.is-fail { color: var(--coral); }

.call-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.call-stage {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-6) var(--space-5);
  --playhead: 0%;
}

.call-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  flex-wrap: wrap;
}

.call-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.call-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding: 5px 10px;
  border: 1px solid rgba(255, 185, 54, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 185, 54, 0.08);
}

.call-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body-dark);
}

.call-scrub-wrap {
  flex: 1;
  min-width: 160px;
  max-width: 420px;
  position: relative;
}

.call-scrub-wrap input[type="range"] {
  width: 100%;
  height: 4px;
}

.call-stage-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  min-height: 0;
  flex: 1;
}

.live-window {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-night);
}

.live-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(98, 92, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34, 201, 166, 0.08), transparent 55%);
  pointer-events: none;
}

.live-window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.live-wave {
  flex: 1;
  min-height: 140px;
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(10, 18, 40, 0.5);
  border: 1px solid var(--border-dark);
  overflow: hidden;
}

.live-wave-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: 3px;
}

.live-wave-bar {
  flex: 1;
  max-width: 6px;
  background: linear-gradient(to top, var(--violet), var(--mint));
  border-radius: 2px;
  opacity: 0.35;
  animation: wave-pulse 1.8s ease-in-out infinite;
}

.live-wave-bar:nth-child(odd) { animation-delay: 0.2s; }
.live-wave-bar:nth-child(3n) { animation-delay: 0.45s; height: 40%; }
.live-wave-bar:nth-child(4n) { height: 65%; }
.live-wave-bar:nth-child(5n) { height: 30%; }

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.25; }
  50% { transform: scaleY(1); opacity: 0.55; }
}

.live-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--playhead);
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 185, 54, 0.6);
  z-index: 2;
  pointer-events: none;
}

.live-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.live-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body-dark);
  opacity: 0.75;
}

.live-meta dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-dark);
  margin: 4px 0 0;
}

.transcript-panel {
  background: rgba(19, 30, 57, 0.65);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.transcript-head {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transcript-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: min(52vh, 520px);
}

.turn-node {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(10, 18, 40, 0.35);
  opacity: 0.35;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s;
}

.turn-node.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.turn-node header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.turn-node header b { color: var(--body-dark); }
.turn-node header span { color: rgba(196, 206, 226, 0.65); }

.turn-node p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--heading-dark);
}

.turn-node.caller {
  border-left: 3px solid var(--blue);
}

.turn-node.agent {
  border-left: 3px solid var(--violet);
}

.turn-node.is-flagged {
  border-color: rgba(242, 85, 107, 0.45);
  background: rgba(242, 85, 107, 0.08);
}

.issue-tag {
  display: inline-flex;
  margin-top: var(--space-2);
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.issue-tag--interrupt {
  color: var(--amber);
  background: rgba(255, 185, 54, 0.12);
  border: 1px solid rgba(255, 185, 54, 0.35);
}

.issue-tag--tool {
  color: var(--coral);
  background: rgba(242, 85, 107, 0.12);
  border: 1px solid rgba(242, 85, 107, 0.35);
}

.issue-tag--outcome {
  color: #ff8fa0;
  background: rgba(242, 85, 107, 0.18);
  border: 1px solid rgba(242, 85, 107, 0.45);
}

.call-stage-foot {
  padding-top: var(--space-4);
}

.call-stage-foot .hint-line {
  color: rgba(196, 206, 226, 0.85);
}

/* Analysis board */

.analysis-board {
  margin-top: var(--space-4);
  background: rgba(253, 254, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  opacity: 1;
  transform: none;
}

.analysis-board[hidden] { display: none !important; }

.analysis-board.is-shown {
  border-color: rgba(242, 85, 107, 0.35);
  box-shadow: 0 0 0 1px rgba(242, 85, 107, 0.12);
}

.analysis-board h3 {
  color: var(--heading-dark);
  font-size: 15px;
  margin-bottom: var(--space-4);
}

.analysis-idle {
  margin: 0 0 var(--space-3);
  font-size: 13.5px;
  color: var(--body-dark);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.analysis-cell {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
}

.analysis-cell b {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-dark);
  margin-bottom: 6px;
}

.analysis-cell p {
  font-size: 13px;
  color: var(--heading-dark);
  line-height: 1.45;
}

.analysis-cell.is-fail {
  border-color: rgba(242, 85, 107, 0.45);
}

.analysis-cell.is-fail b { color: var(--coral); }

/* Signal channel — horizontal failure strip */

.signal-channel {
  background: var(--card-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.signal-channel-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
}

.signal-channel-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body-light);
  margin-bottom: var(--space-4);
}

.signal-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--mist);
}

.signal-node {
  flex: 1 0 180px;
  padding: var(--space-4) var(--space-5);
  border-right: 1px solid var(--border-light);
  position: relative;
  min-width: 160px;
}

.signal-node:last-child { border-right: none; }

.signal-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--violet);
  opacity: 0.5;
}

.signal-node:nth-child(2)::before { background: var(--amber); }
.signal-node:nth-child(3)::before { background: var(--blue); }
.signal-node:nth-child(4)::before { background: var(--coral); }
.signal-node:nth-child(5)::before { background: var(--mint); }
.signal-node:nth-child(6)::before { background: var(--violet); }
.signal-node:nth-child(7)::before { background: var(--amber); }
.signal-node:nth-child(8)::before { background: var(--coral); }
.signal-node:nth-child(9)::before { background: var(--blue); }

.signal-node b {
  display: block;
  font-size: 14px;
  color: var(--heading-light);
  margin-bottom: 4px;
}

.signal-node p {
  font-size: 12.5px;
  color: var(--body-light);
  line-height: 1.45;
}

.signal-node .mono-label {
  display: block;
  margin-bottom: 6px;
  color: var(--violet);
}

/* Home depth — post-signal richness */

.home-depth {
  background: var(--mist);
  border-top: 1px solid var(--border-light);
}

.home-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.depth-card {
  padding: var(--space-5) var(--space-6);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.depth-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.depth-card p {
  font-size: 14px;
  flex: 1;
  margin: 0;
}

/* ---------- Product stage panels ---------- */

.stage-panel {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.stage-panel > .mono-label {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--violet);
}

.stage-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: var(--space-5);
  align-items: stretch;
}

.stage-panel-aside {
  background: var(--mist);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stage-meta {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage-meta li {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.stage-meta span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
}

.stage-meta b { color: var(--heading-light); font-weight: 600; }
.stage-meta b.is-ok { color: var(--mint); }

.ladder-note {
  margin-top: auto;
  font-size: 13px;
  color: var(--body-light);
}

.usage-factors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.channel-quotas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--mist);
}

.quota-bead {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fff;
  --fill: 30%;
  position: relative;
  overflow: hidden;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.quota-bead::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--fill);
  background: rgba(98, 92, 246, 0.14);
  transition: height 0.35s var(--ease);
}

.quota-bead b,
.quota-bead span {
  position: relative;
  z-index: 1;
}

.quota-bead b {
  display: block;
  font-size: 12px;
  color: var(--heading-light);
}

.quota-bead span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body-light);
}

.form-stack {
  display: grid;
  gap: var(--space-4);
}

.form-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-light);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--heading-light);
  font-weight: 500;
}

.plan-feats {
  margin: var(--space-2) 0 0;
  display: grid;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.plan-feats li {
  font-size: 14px;
  color: var(--body-dark);
  padding-left: 16px;
  position: relative;
}

.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--mint);
}

.plan-card--stage {
  margin: 0;
  min-height: 100%;
}

.stage-panel--dark {
  background: var(--card-dark);
  border-color: var(--border-dark);
  color: var(--body-dark);
}

.stage-panel--dark h3 { color: var(--heading-dark); }

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

/* Layer stack — platform */

.platform-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: start;
}

.layer-stack {
  display: grid;
  gap: var(--space-3);
}

.discrepancy-story {
  position: sticky;
  top: calc(var(--announce-h) + var(--header-h) + var(--space-4));
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.discrepancy-story h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: var(--space-2) 0 var(--space-3);
}

.layer-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  opacity: 0.55;
  transform: translateX(-8px);
}

.layer-card.is-inview {
  opacity: 1;
  transform: translateX(0);
}

.layer-card.is-active {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(98, 92, 246, 0.2), var(--shadow-card);
}

.layer-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 92, 246, 0.1);
  border-radius: var(--radius-sm);
}

.layer-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.layer-card p {
  font-size: 13.5px;
  color: var(--body-light);
}

.layer-truth {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-light);
  text-align: right;
}

.layer-card.is-active .layer-truth { color: var(--violet); }

.discrepancy-band {
  margin: var(--space-4) 0;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(242, 85, 107, 0.06);
  border: 1px solid rgba(242, 85, 107, 0.25);
}

.discrepancy-band h4 {
  color: var(--coral);
  font-size: 14px;
  margin-bottom: var(--space-2);
}

.discrepancy-band p { font-size: 14px; color: var(--heading-light); }

/* Casting grid — scenario lab */

.casting-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: start;
}

.caller-roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.caller-card {
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  font: inherit;
  width: 100%;
  color: inherit;
}

.caller-card:hover {
  border-color: rgba(98, 92, 246, 0.4);
}

.caller-card.is-selected {
  border-color: var(--violet);
  background: rgba(98, 92, 246, 0.05);
  box-shadow: 0 0 0 1px rgba(98, 92, 246, 0.15);
}

.caller-card b {
  display: block;
  font-size: 14px;
  color: var(--heading-light);
  margin-bottom: 4px;
}

.caller-card span {
  font-size: 12px;
  color: var(--body-light);
  line-height: 1.4;
}

.caller-card small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--body-light);
  opacity: 0.85;
}

.casting-fields {
  display: grid;
  gap: var(--space-3);
}

.casting-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-light);
}

.casting-fields input {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--heading-light);
  background: #fff;
}

.scenario-compose {
  display: grid;
  gap: var(--space-4);
}

.scenario-preview {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  background: var(--mist);
  min-height: 180px;
  font-size: 14px;
}

.scenario-preview .receipt-lines { margin-top: var(--space-3); }

[data-casting-room].is-generated .scenario-preview {
  border-style: solid;
  border-color: rgba(34, 201, 166, 0.45);
  background: rgba(34, 201, 166, 0.06);
}

/* Quartet — call review 2×2 */

.quartet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  --head: 0%;
}

.quartet-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--night);
  border-radius: var(--radius-md);
  color: var(--body-dark);
}

.quartet-scrub-input {
  width: 100%;
  accent-color: var(--violet);
}

.quartet-scrub {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--night);
  border-radius: var(--radius-md);
  color: var(--body-dark);
}

.quartet-scrub input[type="range"] { flex: 1; accent-color: var(--amber); }

.quartet-pane {
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quartet-pane::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--violet);
  transform: scaleY(calc(var(--head) / 100));
  transform-origin: top;
  opacity: 0.6;
}

.quartet-pane.is-flash {
  animation: pane-flash 0.45s var(--ease);
}

@keyframes pane-flash {
  0%, 100% { background: #fff; }
  50% { background: rgba(98, 92, 246, 0.08); }
}

.quartet-pane-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-light);
}

.audio-lane {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 88px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--night);
  overflow: hidden;
}

.audio-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--violet), var(--mint));
  opacity: 0.85;
}

.audio-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--head) * 1%);
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 185, 54, 0.55);
}

.pane-readout {
  margin: 0;
  font-size: 13.5px;
  color: var(--heading-light);
  line-height: 1.45;
}

.state-keys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.state-keys li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.state-keys span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--body-light);
}

.tool-payload {
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--mint);
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.quartet-line {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
}

.quartet-line span {
  display: inline-block;
  min-width: 2.5em;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--violet);
  margin-right: 8px;
}

.quartet-line:hover { background: rgba(98, 92, 246, 0.05); }

.quartet-line.is-selected {
  border-color: var(--violet);
  background: rgba(98, 92, 246, 0.08);
}

.quartet-markers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

[data-quartet].is-loaded .quartet-pane { min-height: 240px; }

/* Occupancy canvas — turn timing */

.occupancy-canvas {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--body-dark);
  --silence: 40%;
  --overlap: 25%;
}

.occupancy-bands {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.occupancy-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: var(--space-4);
}

.occupancy-row label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-dark);
}

.occupancy-track {
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(19, 30, 57, 0.8);
  border: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.occupancy-fill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
}

.occupancy-fill--silence {
  background: rgba(196, 206, 226, 0.35);
}

.occupancy-fill--overlap {
  background: var(--coral);
  opacity: 0.9;
}

.occupancy-fill--speech {
  background: var(--blue);
}

.occupancy-fill--short {
  background: var(--amber);
}

.occupancy-fill--loop {
  background: repeating-linear-gradient(
    90deg,
    var(--coral),
    var(--coral) 3px,
    rgba(242, 85, 107, 0.35) 3px,
    rgba(242, 85, 107, 0.35) 6px
  );
}

.occupancy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--body-dark);
}

.occupancy-legend i {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.leg-speech { background: var(--blue); }
.leg-overlap { background: var(--coral); }
.leg-silence { background: rgba(196, 206, 226, 0.45); }
.leg-short { background: var(--amber); }
.leg-loop {
  background: repeating-linear-gradient(
    90deg,
    var(--coral),
    var(--coral) 3px,
    rgba(242, 85, 107, 0.35) 3px,
    rgba(242, 85, 107, 0.35) 6px
  );
}

.occupancy-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.occupancy-readout {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
}

[data-occupancy].is-applied .occupancy-track {
  box-shadow: 0 0 0 1px rgba(34, 201, 166, 0.35);
}

/* Recovery board */

.recovery-board {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: var(--space-5);
  align-items: start;
}

.recovery-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.recovery-layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: var(--card-dark);
  color: var(--body-dark);
  min-height: 180px;
}

.recovery-layer-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: rgba(98, 92, 246, 0.45);
  line-height: 1;
}

.recovery-layer h3 {
  margin-bottom: 6px;
  color: var(--heading-dark);
  font-size: 15px;
}
.recovery-layer p { font-size: 13.5px; color: var(--body-dark); }

.recovery-result {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  background: rgba(19, 30, 57, 0.9);
  font-size: 14px;
  min-height: 180px;
  color: var(--body-dark);
}

.recovery-result p { margin-bottom: var(--space-2); }
.recovery-result .is-fail { color: var(--coral); }
.recovery-result .is-ok { color: var(--mint); }

[data-recovery].is-tested .recovery-result {
  border-color: rgba(34, 201, 166, 0.4);
}

.recovery-triggers {
  padding: var(--space-5);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: var(--card-dark);
}

.recovery-triggers .mono-label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--mint);
}

.trigger-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trigger-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: rgba(19, 30, 57, 0.8);
  color: var(--heading-dark);
  font-size: 13px;
  cursor: pointer;
}

.trigger-chip:has(input:checked) {
  border-color: rgba(34, 201, 166, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 201, 166, 0.2);
}

.section--docs {
  border-top: 1px solid var(--border-dark);
  background: rgba(10, 18, 40, 0.55);
}

.section--docs h2 {
  color: var(--heading-dark);
  margin: var(--space-3) 0;
}

.section--docs .lead {
  color: var(--body-dark);
  max-width: 52rem;
}

/* Outcome receipt */

.outcome-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.outcome-receipt {
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  font-size: 14px;
}

.outcome-compare {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--body-dark);
  border: 1px solid var(--border-dark);
  min-height: 100%;
}

.outcome-compare .mono-label { color: var(--mint); }

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.compare-row h4 {
  color: var(--heading-dark);
  font-size: 13px;
  margin-bottom: 6px;
}

.compare-row p {
  font-size: 13.5px;
  margin: 0;
}

.compare-states {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.compare-states li {
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--body-dark);
}

.compare-states li.is-active {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(242, 85, 107, 0.1);
}

.outcome-receipt::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--violet) 0,
    var(--violet) 8px,
    transparent 8px,
    transparent 12px
  );
  border-radius: 0 0 2px 2px;
}

.receipt-lines {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--border-light);
  font-size: 13.5px;
}

.receipt-lines li span { color: var(--body-light); }
.receipt-lines li b { color: var(--heading-light); text-align: right; }

.verify-stamp {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 3px double var(--risk);
  color: var(--risk);
  transform: rotate(-4deg);
}

.verify-stamp.is-ok {
  border-color: var(--ok);
  color: var(--ok);
}

[data-receipt].is-verified {
  box-shadow: 0 0 0 2px rgba(242, 85, 107, 0.2), var(--shadow-card);
}

/* Exception roster — monitor */

.exception-roster {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  padding: var(--space-5);
}

.exception-roster > .mono-label {
  display: block;
  margin-bottom: var(--space-4);
}

.exception-healthy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.exception-list {
  display: grid;
  gap: var(--space-3);
}

.exception-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--mist);
  transition: border-color 0.2s, background 0.2s;
}

.exception-row.is-open {
  background: #fff;
  border-color: rgba(242, 85, 107, 0.45);
  box-shadow: 0 0 0 1px rgba(242, 85, 107, 0.12);
}

.exception-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--mint);
}

.exception-dot.is-fail {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(242, 85, 107, 0.22);
}

.exception-body {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}

.exception-body b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--heading-light);
}

.exception-problem,
.exception-impact,
.exception-owner {
  display: none;
  color: var(--body-light);
}

.exception-row.is-open .exception-problem,
.exception-row.is-open .exception-impact,
.exception-row.is-open .exception-owner {
  display: block;
}

.exception-row.is-open .exception-problem::before { content: "Problem — "; color: var(--coral); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.exception-row.is-open .exception-impact::before { content: "Impact — "; color: var(--amber); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.exception-row.is-open .exception-owner::before { content: "Owner — "; color: var(--blue); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

.roster-head {
  display: grid;
  grid-template-columns: 48px 1fr 120px 100px;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--mist);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body-light);
  border-bottom: 1px solid var(--border-light);
}

.roster-row {
  display: grid;
  grid-template-columns: 48px 1fr 120px 100px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.roster-row:last-child { border-bottom: none; }

.roster-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--mint);
  cursor: pointer;
}

.roster-dot[data-exception="1"] {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(242, 85, 107, 0.2);
}

.roster-detail {
  display: none;
  grid-column: 1 / -1;
  padding: var(--space-4);
  margin-top: var(--space-2);
  background: rgba(242, 85, 107, 0.05);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.roster-row.is-open + .roster-detail,
.roster-row.is-open .roster-detail { display: block; }

.incident-expand {
  grid-column: 1 / -1;
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: rgba(98, 92, 246, 0.04);
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
  display: none;
}

[data-incident].is-open .incident-expand,
.roster-incident.is-open .incident-expand { display: block; }

/* Pattern search */

.pattern-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: start;
}

.pattern-search-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pattern-search-input textarea {
  min-height: 88px;
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.pattern-results {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}

.pattern-band {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 13px;
}

.pattern-band b {
  color: var(--heading-light);
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pattern-band span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 6px;
}

.pattern-band p {
  margin: 0;
  color: var(--heading-light);
  line-height: 1.45;
}

[data-patterns].is-searched .pattern-band {
  animation: reveal-up 0.4s var(--ease) both;
}

[data-patterns].is-searched .pattern-band:nth-child(2) { animation-delay: 0.08s; }
[data-patterns].is-searched .pattern-band:nth-child(3) { animation-delay: 0.16s; }

/* Runtime split — developers */

.runtime-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.phone-shell {
  background: var(--night);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-night);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  background: var(--card-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  text-align: center;
}

.phone-screen .mono-label { color: var(--mint); }

.phone-mic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid rgba(247, 249, 255, 0.15);
  box-shadow: 0 0 24px rgba(98, 92, 246, 0.45);
}

[data-runtime].is-running .phone-mic {
  animation: mic-pulse 1.2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(98, 92, 246, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 36px rgba(98, 92, 246, 0.65); }
}

.event-feed {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12px;
}

.event-feed-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-dark);
  color: var(--body-dark);
}

.event-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  animation: reveal-up 0.3s var(--ease);
}

.event-row:nth-child(odd) { background: rgba(10, 18, 40, 0.35); }

.event-row code { color: var(--mint); background: transparent; padding: 0; }
.event-row span { color: var(--body-dark); opacity: 0.75; }

[data-runtime].is-complete .event-feed {
  box-shadow: inset 0 0 0 1px rgba(34, 201, 166, 0.25);
}

/* Interview flow — pricing (legacy hooks kept for older markup) */

.interview-flow {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: stretch;
}

.plan-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--body-dark);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-night);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.plan-card h3 {
  color: var(--heading-dark);
  font-size: 1.5rem;
  margin: var(--space-2) 0;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading-dark);
  letter-spacing: -0.03em;
}

.plan-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-dark);
}

.plan-card .receipt-lines li { border-bottom-color: var(--border-dark); }
.plan-card .receipt-lines li span { color: var(--body-dark); }
.plan-card .receipt-lines li b { color: var(--heading-dark); }
.plan-card .mono-label { color: var(--mint); }

/* About — channel timeline */

.channel-timeline {
  position: relative;
  padding-left: var(--space-7);
  display: grid;
  gap: var(--space-7);
}

.channel-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--violet), var(--mint), var(--amber));
  border-radius: 1px;
}

.timeline-node {
  position: relative;
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-7) + 4px);
  top: var(--space-5);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid var(--mist);
  box-shadow: 0 0 0 2px var(--violet);
}

.timeline-node:nth-child(2)::before { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.timeline-node:nth-child(3)::before { background: var(--mint); box-shadow: 0 0 0 2px var(--mint); }
.timeline-node:nth-child(4)::before { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }

.timeline-node h3 { margin-bottom: var(--space-2); }
.timeline-node p { font-size: 14px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: start;
}

.about-channel-panel {
  padding: var(--space-6);
  background: var(--night);
  color: var(--body-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-night);
}

.about-channel-panel .mono-label { color: var(--mint); }

.channel-ladder {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  counter-reset: ladder;
}

.channel-ladder li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: var(--space-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--card-dark);
  counter-increment: ladder;
}

.channel-ladder li::before {
  content: counter(ladder);
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(98, 92, 246, 0.15);
}

.channel-ladder b { color: var(--heading-dark); font-size: 14px; }
.channel-ladder span { color: var(--body-dark); font-size: 12px; grid-column: 2; }

.about-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}

.about-keywords li {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--heading-light);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-card {
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.contact-card h3 { margin-bottom: var(--space-4); }

.contact-list {
  display: grid;
  gap: var(--space-3);
  font-size: 14px;
}

.contact-list a { color: var(--violet); font-weight: 600; }

#demo.contact-anchor {
  scroll-margin-top: calc(var(--announce-h) + var(--header-h) + var(--space-5));
}

/* Legal */

.legal-doc {
  max-width: 760px;
  padding: var(--space-8) 0 var(--space-9);
}

.legal-doc h2 {
  font-size: 1.25rem;
  margin: var(--space-6) 0 var(--space-3);
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-light);
  margin-bottom: var(--space-3);
}

.legal-doc ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.legal-doc a { color: var(--violet); font-weight: 600; }

/* Integrations / webhooks / help / status */

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.link-card {
  padding: var(--space-5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  border-color: rgba(98, 92, 246, 0.4);
  box-shadow: var(--shadow-card);
}

.link-card b {
  display: block;
  color: var(--heading-light);
  margin-bottom: 6px;
}

.link-card p { font-size: 13.5px; }

.status-list {
  display: grid;
  gap: var(--space-3);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.status-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill--ok {
  color: #0d7a66;
  background: rgba(34, 201, 166, 0.12);
}

.status-pill--warn {
  color: #9a6b00;
  background: rgba(255, 185, 54, 0.15);
}

.changelog-list {
  display: grid;
  gap: var(--space-5);
}

.changelog-entry {
  padding: var(--space-5);
  border-left: 3px solid var(--violet);
  background: #fff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid var(--border-light);
  border-left-width: 3px;
}

.changelog-entry time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body-light);
}

.changelog-entry h3 { margin: var(--space-2) 0; font-size: 17px; }
.changelog-entry p { font-size: 14px; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.help-topic {
  padding: var(--space-5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

.help-topic h3 { font-size: 16px; margin-bottom: var(--space-2); }
.help-topic p { font-size: 14px; }

.webhook-block {
  padding: var(--space-5);
  background: var(--card-dark);
  color: var(--body-dark);
  border-radius: var(--radius-md);
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
}

.webhook-block code {
  background: transparent;
  color: var(--mint);
}

/* Security list */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.security-item {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.security-item h3 { font-size: 16px; margin-bottom: var(--space-2); }
.security-item p { font-size: 14px; }

/* ---------- Auth — centered single panel (WriteGust pattern) ---------- */

.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(720px 360px at 50% -10%, rgba(98, 92, 246, 0.14), transparent 60%),
    radial-gradient(520px 280px at 80% 100%, rgba(34, 201, 166, 0.08), transparent 55%),
    var(--mist);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
}

.auth-shell--center {
  grid-template-columns: 1fr;
  place-items: center;
  padding: var(--space-7) var(--space-5);
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  text-decoration: none;
}

.auth-brand .brand-name {
  color: var(--heading-light);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card {
  width: 100%;
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--card-light, #fff);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--heading-light);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  text-align: left;
}

.auth-card .lead {
  font-size: 14.5px;
  margin: 0 0 var(--space-5);
  color: var(--body-light);
  line-height: 1.5;
  text-align: left;
  max-width: none;
}

.auth-card .kicker { margin-bottom: var(--space-3); }

.auth-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.auth-alt {
  margin-top: var(--space-4);
  font-size: 14px;
  color: var(--body-light);
  text-align: center;
}

.auth-foot {
  margin: 0;
  font-size: 12.5px;
  color: var(--body-light);
  text-align: center;
  font-family: var(--mono);
}

.linkish {
  border: none;
  background: none;
  color: var(--violet);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Two-column product layouts ---------- */

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.content-block {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-light);
}

.content-block p + p { margin-top: var(--space-4); }

.content-block h3 {
  margin: var(--space-5) 0 var(--space-3);
  color: var(--heading-light);
}

.feature-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.feature-list li {
  padding-left: var(--space-5);
  position: relative;
  font-size: 14px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--violet);
}

/* ---------- Responsive — 1100 / 900 / 600 ---------- */

@media (max-width: 1100px) {
  .nav-main { gap: 2px 12px; }
  .nav-link { font-size: 13px; }

  .call-stage-grid {
    grid-template-columns: 1fr;
  }

  .transcript-scroll {
    max-height: 360px;
  }

  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .casting-grid,
  .interview-flow,
  .about-grid,
  .split-panel,
  .platform-split,
  .outcome-split,
  .recovery-board,
  .home-depth-grid,
  .stage-panel-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell--center {
    padding: var(--space-5) var(--space-4);
  }

  .usage-factors,
  .channel-quotas {
    grid-template-columns: repeat(2, 1fr);
  }

  .recovery-layers {
    grid-template-columns: 1fr;
  }

  .quartet-markers {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card { max-width: none; }

  .runtime-split {
    grid-template-columns: 280px 1fr;
  }

  .pattern-band {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-legal { justify-content: center; }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-main { display: none; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .header-signin { display: none; }

  .page-mast-inner {
    grid-template-columns: 1fr;
  }

  .page-mast-action {
    justify-self: start;
    padding-bottom: 0;
  }

  .call-hero-bar {
    grid-template-columns: 1fr;
  }

  .call-hero-actions {
    align-items: flex-start;
  }

  .caller-roster {
    grid-template-columns: repeat(2, 1fr);
  }

  .quartet {
    grid-template-columns: 1fr;
  }

  .runtime-split {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .interview-fields {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .help-grid,
  .security-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .form-grid--2 {
    grid-template-columns: 1fr;
  }

  .live-meta {
    grid-template-columns: 1fr 1fr;
  }

  .roster-head,
  .roster-row {
    grid-template-columns: 40px 1fr 80px;
  }

  .roster-head span:last-child,
  .roster-row span:last-child { display: none; }

  .occupancy-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container,
  .header-inner,
  .call-stage,
  .call-hero-bar,
  .signal-channel-inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section { padding: var(--space-6) 0; }

  .call-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .call-scrub-wrap {
    max-width: none;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .caller-roster {
    grid-template-columns: 1fr;
  }

  .signal-node {
    flex: 0 0 75vw;
  }

  .pattern-search {
    grid-template-columns: 1fr;
  }

  .pattern-band {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .auth-card {
    padding: var(--space-6) var(--space-5);
  }

  .live-meta {
    grid-template-columns: 1fr;
  }

  .usage-factors,
  .channel-quotas {
    grid-template-columns: 1fr;
  }

  .layer-card {
    grid-template-columns: auto 1fr;
  }

  .layer-truth {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
