/* ============================================================
   DECIBOT DESIGN SYSTEM — "the record of the conversation"
   Ground: blue-green charcoal · Accent: VU amber · REC red
   Display: Bricolage Grotesque · Body: Instrument Sans · Mono: JetBrains Mono
   Speaker + status palettes validated (OKLCH band, CVD, contrast)
   ============================================================ */

:root {
  /* Ground & surfaces */
  --ground: #0e1315;
  --ground-deep: #0a0e10;
  --surface: #161d20;
  --surface-2: #1c2529;
  --surface-3: #232e33;
  --line: rgba(237, 242, 240, 0.09);
  --line-strong: rgba(237, 242, 240, 0.16);

  /* Ink */
  --ink: #edf2f0;
  --ink-2: #a6b3b0;
  --ink-3: #6c7a77;

  /* Accent — scientific indigo-violet (WCAG AAA contrast, zero chromatic aberration) */
  --accent: #8866ff;
  --accent-bright: #a38bff;
  --accent-dim: #6c4ce0;
  --on-accent: #0b002b;
  --accent-tint: rgba(136, 102, 255, 0.08);
  --accent-tint-line: rgba(136, 102, 255, 0.24);

  /* REC — recording state only */
  --rec: #e85b4f;
  --rec-tint: rgba(232, 91, 79, 0.14);

  /* Speaker marks (validated, fixed order) */
  --speaker-1: #3e97c9;
  --speaker-2: #4baa6e;
  --speaker-3: #a96bc0;
  --speaker-4: #bc7f1e;
  /* Brighter text-variants for speaker names on dark (text contrast, not mark) */
  --speaker-1-text: #6db9e4;
  --speaker-2-text: #74c795;
  --speaker-3-text: #c393d6;
  --speaker-4-text: #e0a34a;

  /* Status (validated marks + text variants for pills) */
  --ok: #3fa368;
  --ok-text: #6fcf97;
  --ok-tint: rgba(63, 163, 104, 0.14);
  --warn: #bc7f1e;
  --warn-text: #f59e0b;
  --warn-tint: rgba(188, 127, 30, 0.14);
  --crit: #c64c44;
  --crit-text: #f07e72;
  --crit-tint: rgba(198, 76, 68, 0.14);

  /* Discord vernacular — used ONLY inside literal Discord depictions */
  --discord-blurple: #5865f2;
  --discord-bg: #313338;
  --discord-side: #2b2d31;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1120px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.3, 0.9, 0.3, 1);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

::selection { background: rgba(232, 163, 61, 0.28); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-dim);
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.05rem;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 6px 24px rgba(232, 163, 61, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-dim);
  color: var(--accent-bright);
  background: var(--accent-tint);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 13px 16px;
}

.btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-discord-mark {
  width: 18px;
  height: 14px;
  flex: none;
}

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.pill-ok   { background: var(--ok-tint);   color: var(--ok-text); }
.pill-ok   .pill-dot { background: var(--ok); }
.pill-warn { background: var(--warn-tint); color: var(--warn-text); }
.pill-warn .pill-dot { background: var(--warn-text); }
.pill-crit { background: var(--crit-tint); color: var(--crit-text); }
.pill-crit .pill-dot { background: var(--crit); }
.pill-neutral { background: var(--surface-2); color: var(--ink-2); }
.pill-neutral .pill-dot { background: var(--ink-3); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.logo-icon { font-size: 1.2rem; line-height: 1; } /* legacy (legal pages) */
.logo-text { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
}

.nav-links a { transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.nav-portal-btn {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 7px 16px;
  border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.nav-portal-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent-bright) !important;
  background: var(--accent-tint);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
}

.hero::before {
  /* one quiet amber wash behind the capture window — the single glow on the page */
  content: "";
  position: absolute;
  top: -180px;
  right: -220px;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 800;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--ink-2);
  font-size: 1.12rem;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes svg { width: 13px; height: 13px; color: var(--accent-dim); flex: none; }

/* ----- The capture window (hero visual) ----- */
.capture {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-size: 0.9rem;
}

.capture-voicebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
  transition: background 0.3s;
}

.capture.is-recording .rec-dot {
  background: var(--rec);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--rec-tint); }
  50% { box-shadow: 0 0 0 6px var(--rec-tint); }
}

.capture-channel {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.capture.is-recording .capture-status { color: var(--rec); }

.capture-speakers {
  display: flex;
  gap: 8px;
}

.speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.25s, color 0.25s;
}

.speaker-chip .avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #0d1112;
  flex: none;
}

.speaker-chip[data-speaker="1"] .avatar { background: var(--speaker-1); }
.speaker-chip[data-speaker="2"] .avatar { background: var(--speaker-2); }
.speaker-chip[data-speaker="3"] .avatar { background: var(--speaker-3); }

.speaker-chip.speaking { border-color: var(--line-strong); color: var(--ink); }
.speaker-chip.speaking .avatar { animation: speak-ring 1.1s ease-out infinite; }

@keyframes speak-ring {
  0% { box-shadow: 0 0 0 0 rgba(237, 242, 240, 0.28); }
  100% { box-shadow: 0 0 0 6px rgba(237, 242, 240, 0); }
}

.capture-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.capture-filename {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex: none;
}

.view-toggle button {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-toggle button.active {
  background: var(--accent-tint);
  color: var(--accent-bright);
}

.capture-body {
  padding: 18px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.t-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: baseline;
}

.t-time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.t-body { font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }

.t-name {
  font-weight: 700;
  margin-right: 6px;
  color: var(--ink);
}

.t-line[data-speaker="1"] .t-name { color: var(--speaker-1-text); }
.t-line[data-speaker="2"] .t-name { color: var(--speaker-2-text); }
.t-line[data-speaker="3"] .t-name { color: var(--speaker-3-text); }

.t-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

/* raw markdown view */
.capture-body.raw-view {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--ink-2);
  gap: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.capture-body.raw-view .md-punct { color: var(--ink-3); }
.capture-body.raw-view .md-strong { color: var(--ink); }

.capture-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  min-height: 45px;
}

.capture-footer .delivered { color: var(--ok-text); display: none; }
.capture.is-delivered .capture-footer .delivered { display: inline; }

.capture-replay {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.capture-replay:hover { color: var(--accent-bright); border-color: var(--accent-dim); }

/* ============================================================
   SEGMENTS — who it's for
   ============================================================ */
.segments {
  padding: 40px 0 96px;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.segment-card {
  min-width: 0; /* let the grid track shrink so .segment-sample wraps instead of blowing out the row */
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s var(--ease);
}

.segment-card:hover { border-color: var(--line-strong); }

.segment-card h3 { font-size: 1.05rem; font-weight: 700; }

.segment-card p { font-size: 0.92rem; color: var(--ink-2); }

.segment-sample {
  /* auto pushes the excerpt to the card's bottom edge, so the three samples sit
     on one shared baseline across the equal-height grid row */
  margin-top: auto;
  padding: 12px 16px;
  border-left: 2px solid var(--accent-dim);
  background: var(--ground-deep);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--ink-3);
  overflow-wrap: break-word;
}

.segment-sample b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.how-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-cmd {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-line);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  align-self: flex-start;
}

.how-output {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-1);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  align-self: flex-start;
}

.how-step.output-step {
  border-style: dashed;
  border-color: var(--ink-3);
  background: var(--surface-2);
}

.how-step h3 { font-size: 1rem; }

.how-step p { font-size: 0.9rem; color: var(--ink-2); }

.how-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.how-note code {
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ============================================================
   COMPARISON — the wedge
   ============================================================ */
.compare {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-card.featured {
  border-color: var(--accent-tint-line);
  background: linear-gradient(180deg, rgba(232, 163, 61, 0.05), var(--surface) 55%);
}

.compare-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.compare-card.featured .compare-label { color: var(--accent); }

.compare-card h3 { font-size: 1.12rem; }

.compare-card > p { font-size: 0.93rem; color: var(--ink-2); flex-grow: 1; }

.compare-out {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-out svg { width: 15px; height: 15px; flex: none; }

.compare-card.featured .compare-out { color: var(--accent-bright); }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-glyph {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-line);
  display: grid;
  place-items: center;
  color: var(--accent-bright);
}

.feature-glyph svg { width: 19px; height: 19px; }

.feature-card h3 { font-size: 1.02rem; }

.feature-card p { font-size: 0.92rem; color: var(--ink-2); }

/* ============================================================
   TRUST / CONSENT
   ============================================================ */
.trust {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}

.trust-copy { display: flex; flex-direction: column; gap: 16px; }

.trust-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

.trust-copy > p { color: var(--ink-2); font-size: 1.02rem; }

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.trust-list li {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  align-items: flex-start;
}

.trust-list li + li { border-top: 1px solid var(--line); }

.trust-list svg {
  width: 18px;
  height: 18px;
  color: var(--ok-text);
  flex: none;
  margin-top: 3px;
}

.trust-list strong { display: block; font-size: 0.97rem; margin-bottom: 3px; }

.trust-list span { font-size: 0.9rem; color: var(--ink-2); }

.trust-fineprint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.trust-fineprint a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.trust-fineprint a:hover { color: var(--accent-bright); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

/* Free tier strip */
.free-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--accent-tint-line);
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.07), var(--surface) 60%);
  border-radius: var(--r-md);
  padding: 18px 24px;
  margin-bottom: 18px;
}

.free-strip-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.free-strip-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 11px;
  flex: none;
}

.free-strip-copy p { font-size: 0.94rem; color: var(--ink-2); }
.free-strip-copy b { color: var(--ink); font-weight: 600; }

/* Estimator */
.estimator {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: center;
}

.estimator-copy h3 { font-size: 1.05rem; margin-bottom: 4px; }

.estimator-copy p { font-size: 0.88rem; color: var(--ink-3); }

.estimator-slider-wrap {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--ground);
  cursor: grab;
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--ground);
  cursor: grab;
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}

.estimator-result {
  grid-row: 1 / 3;
  grid-column: 2;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
}

.estimator-hours {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.estimator-plan {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--accent);
}

.estimator-price {
  font-size: 0.92rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s var(--ease);
}

.pricing-card.recommended { border-color: var(--accent-tint-line); }

.pricing-card.popular {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, rgba(232, 163, 61, 0.06), var(--surface) 50%);
}

.popular-tag {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-3);
}

.plan-hours {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--ground-deep);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.plan-hours b {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-bright);
}

.plan-hours span { font-size: 0.82rem; color: var(--ink-3); }

.plan-desc { font-size: 0.9rem; color: var(--ink-2); }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-features svg {
  width: 15px;
  height: 15px;
  color: var(--accent-dim);
  flex: none;
  margin-top: 4px;
}

.pricing-notes {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.pricing-notes span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.pricing-notes svg { width: 14px; height: 14px; color: var(--accent-dim); flex: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.faq-wrap {
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item.active { border-color: var(--line-strong); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.99rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 1rem;
  transition: transform 0.25s var(--ease), color 0.2s;
  flex: none;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.93rem;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-answer code {
  background: var(--surface-2);
  padding: 1px 7px;
  border-radius: 4px;
  color: var(--accent-bright);
  font-size: 0.82em;
}

.faq-answer a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto 0 -320px 0;
  height: 480px;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18ch; }

.cta-band p { color: var(--ink-2); max-width: 46ch; }

.cta-band .hero-actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--ground-deep);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-links a:hover { color: var(--accent-bright); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* ============================================================
   LEGAL PAGES (privacy.html / terms.html)
   ============================================================ */
.legal-main { padding: 72px 0 96px; }

.legal-container {
  width: min(92%, 760px);
  margin: 0 auto;
}

.legal-header { margin-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }

.legal-header h1 { font-size: clamp(2rem, 4vw, 2.6rem); }

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.legal-back:hover { color: var(--accent-bright); }

.legal-notice {
  border: 1px solid var(--accent-tint-line);
  background: var(--accent-tint);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 36px;
}

.legal-toc {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 40px;
  font-size: 0.92rem;
}

.legal-toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--accent-bright); }

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.legal-content h2 {
  color: var(--ink);
  font-size: 1.3rem;
  margin-top: 26px;
}

.legal-content h3 { color: var(--ink); font-size: 1.05rem; margin-top: 10px; }

.legal-content ul, .legal-content ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }

.legal-content a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-content th, .legal-content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.legal-content th { background: var(--surface); color: var(--ink); }

/* ============================================================
   PORTAL — login.html + account.html
   ============================================================ */
.portal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(232, 163, 61, 0.05), transparent 70%),
    var(--ground);
}

/* ----- Login ----- */
.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 64px 0;
}

.login-card {
  width: min(92vw, 430px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.65);
}

.login-card .logo { align-self: flex-start; }

.login-card h1 { font-size: 1.55rem; }

.login-card > p { font-size: 0.95rem; color: var(--ink-2); }

.btn-discord {
  background: var(--discord-blurple);
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
}

.btn-discord:hover {
  background: #6a76f3;
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.35);
}

.login-why {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-why h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.login-why ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.login-why li { display: flex; gap: 10px; align-items: flex-start; }

.login-why svg { width: 15px; height: 15px; color: var(--ok-text); flex: none; margin-top: 3px; }

.login-foot {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
}

.login-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.login-foot a:hover { color: var(--accent-bright); }

/* ----- Account shell ----- */
.account-main {
  flex: 1;
  width: min(92%, 1040px);
  margin: 0 auto;
  padding: 44px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.account-header h1 { font-size: 1.7rem; }

.account-header .sub {
  font-size: 0.92rem;
  color: var(--ink-3);
  margin-top: 4px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}

.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--speaker-1);
  color: #0d1112;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex: none;
}

.user-chip .discord-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  font-weight: 400;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }

/* Plan panel */
.plan-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.plan-tier {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
}

.plan-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 0.9rem;
}

.plan-meta dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.plan-meta dd { color: var(--ink); font-variant-numeric: tabular-nums; }

.panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

/* Usage meter */
.usage-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.usage-big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.usage-of {
  font-size: 0.95rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--ground-deep);
  border: 1px solid var(--line);
  overflow: visible;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: var(--accent-dim);
  transition: width 0.7s var(--ease), background 0.3s;
  min-width: 0;
}

.meter.warn .meter-fill { background: var(--warn); }
.meter.crit .meter-fill { background: var(--crit); }

.meter-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--line-strong);
}

.meter-tick::after {
  content: attr(data-label);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.usage-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}

.usage-note {
  font-size: 0.86rem;
  color: var(--ink-2);
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
}

.usage-note.warn-note { color: var(--warn-text); }
.usage-note.crit-note { color: var(--crit-text); }

/* Daily usage chart */
.chart-wrap { position: relative; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0;
}

.chart .bar {
  flex: 1;
  min-width: 4px;
  background: var(--accent-dim);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  position: relative;
  cursor: default;
  transition: background 0.12s;
}

.chart .bar.zero { background: var(--surface-3); }

.chart .bar:hover { background: var(--accent); }

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-3);
  padding-top: 7px;
}

.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--ground-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 5;
  font-variant-numeric: tabular-nums;
}

.chart-tip.visible { opacity: 1; }

.chart-tip .tip-dim { color: var(--ink-3); }

/* Sessions table */
.sessions-scroll { overflow-x: auto; }

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.sessions-table th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line-strong);
}

.sessions-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.sessions-table tr:last-child td { border-bottom: none; }

.sessions-table .cell-channel { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); }

.sessions-table .cell-dur { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; }

.sessions-table th.cell-dur { text-align: right; }

.sessions-empty {
  padding: 28px 0 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* Linked Discord */
.linked-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ground-deep);
}

.linked-account .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--speaker-1);
  color: #0d1112;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}

.linked-account .who { flex: 1; min-width: 0; }

.linked-account .who b { display: block; font-size: 0.95rem; }

.linked-account .who span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.linked-hint { font-size: 0.85rem; color: var(--ink-3); }

/* Plan picker (new-user state) */
.picker-intro {
  border: 1px solid var(--accent-tint-line);
  background: var(--accent-tint);
  border-radius: var(--r-md);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.picker-intro b { color: var(--ink); }

/* Demo state switcher (design preview only) */
.demo-switch {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 80;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--ground-deep) 92%, transparent);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.demo-switch-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.demo-switch-row { display: flex; gap: 6px; }

.demo-switch button {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.demo-switch button:hover { color: var(--ink); }

.demo-switch button.active {
  background: var(--accent-tint);
  border-color: var(--accent-tint-line);
  color: var(--accent-bright);
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 560px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .span-7, .span-5 { grid-column: span 12; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground-deep);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 6vw;
    border-top: 1px solid var(--line);
  }

  .nav-links a:first-child { border-top: none; }

  .nav-portal-btn { border: none; border-top: 1px solid var(--line) !important; border-radius: 0; }

  .nav-toggle { display: grid; place-items: center; }

  .segments-grid, .compare-grid, .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .estimator { grid-template-columns: 1fr; }
  .estimator-result { grid-row: auto; grid-column: 1; text-align: left; }

  .hero { padding: 64px 0 72px; }
  .how, .compare, .features, .trust, .pricing, .faq { padding: 72px 0; }

  .capture-speakers { display: none; }

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

  .account-header h1 { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  .how-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .t-line { grid-template-columns: 58px 1fr; gap: 9px; }
  .demo-switch { left: 18px; right: 18px; }
  .demo-switch-row { flex-wrap: wrap; }
}
