/* ═══════════════════════════════════════════════════════════════
   MockMate — v2 design system
   White-primary, purple accent, DM Sans, pastel cards.
   Locked to light mode.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;

  --bg:        #FFFFFF;
  --bg-2:      #FAFAF8;
  --bg-3:      #F5F5F0;
  --ink:       #252a3f;
  --ink-2:     #545e74;
  --ink-3:     #6b7280;
  --ink-4:     #9CA3AF;

  --rule:      #E5E7EB;
  --rule-2:    #D4D8E3;

  --primary:      #6420FB;
  --primary-hov:  #5015d8;
  --primary-soft: #EBE4FE;
  --chip-bg:      #E6E2F8;
  --chip-ink:     #4B428B;

  /* Compatibility aliases for old class names */
  --paper:    var(--bg);
  --card:     var(--bg);
  --card-2:   var(--bg-2);

  --rec:      var(--primary);
  --rec-soft: var(--primary-soft);
  --brass:    #B45309;
  --brass-2:  #FEF3C7;
  --mint:     #00b899;
  --mint-soft:#DCFCE7;

  /* Stage (interview screen) uses a soft dark cocoon — deliberate exception */
  --deep:      #14141F;
  --deep-2:    #1C1C2A;
  --deep-3:    #2A2A3A;
  --deep-ink:  #EAEBF0;

  --pastel-1:  #F4EFEF;
  --pastel-2:  #F5EEF8;
  --pastel-3:  #EDF2FB;
  --pastel-4:  #EDF8F5;
  --pastel-5:  #E6E1F9;
  --pastel-6:  #EBEEF4;

  --r:   8px;
  --r-2: 14px;
  --r-lg: 20px;
  --shadow:      0 1px 2px rgba(37, 42, 63, .04), 0 8px 24px rgba(37, 42, 63, .06);
  --shadow-lg:   0 12px 40px rgba(37, 42, 63, .08);

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', monospace;

  --display: var(--font-sans);
  --body:    var(--font-sans);
  --mono:    var(--font-mono);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Layout ──────────────────────────────────────────────────── */

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(680px, 92vw); margin-inline: auto; }

.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }

/* ── Eyebrow ─────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip-ink);
  padding: 5px 12px;
  background: var(--chip-bg);
  border-radius: 999px;
}

/* ── Header / pill nav ───────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 0;
  background: transparent;
}
.masthead .wrap {
  background: color-mix(in srgb, var(--pastel-6) 92%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-dot {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: none;
}
.brand-dot::after { content: 'M'; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: rgba(100, 32, 251, 0.06); color: var(--primary); text-decoration: none; }
.nav a.tiny { padding: 6px 10px; font-size: 0.8rem; color: var(--ink-3); }

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

.btn {
  --bg: var(--primary);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  letter-spacing: -0.005em;
}
.btn:hover { text-decoration: none; }
.btn:hover { background: var(--primary-hov); border-color: var(--primary-hov); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-rec {
  --bg: var(--primary);
  --fg: #fff;
}
.btn-rec:hover { background: var(--primary-hov); border-color: var(--primary-hov); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }

.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Stage (dark) button variant */
.btn-stage {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-stage.is-idle { background: var(--deep-3); border-color: var(--deep-3); color: var(--deep-ink); }
.btn-stage:hover { background: var(--primary-hov); border-color: var(--primary-hov); }

/* ── Cards & panels ──────────────────────────────────────────── */

.panel {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.panel-tight { padding: 1.1rem 1.25rem; }
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.panel-head h3 { margin: 0; }

/* ── Forms ───────────────────────────────────────────────────── */

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field .hint {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.5;
}

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 5.5L10 1' stroke='%23545e74' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.4rem;
}

.switchset { display: flex; flex-wrap: wrap; gap: 8px; }
.switchset input { position: absolute; opacity: 0; pointer-events: none; }
.switchset label {
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  color: var(--ink-2);
}
.switchset label:hover { border-color: var(--primary); color: var(--ink); }
.switchset input:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.switchset input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--rule-2);
  border-radius: var(--r-2);
  padding: 2rem 1.4rem;
  text-align: center;
  background: var(--bg-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone.is-loaded {
  border-style: solid;
  border-color: var(--mint);
  background: var(--mint-soft);
  text-align: left;
}
.dropzone-title { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.dropzone-sub { font-size: 0.85rem; color: var(--ink-2); margin-top: 6px; }

/* ── Alerts ──────────────────────────────────────────────────── */

.alert {
  padding: 14px 16px;
  border-radius: var(--r);
  border-left: 3px solid;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.alert-bad  { background: #FEF2F2; border-color: #DC2626; color: #7F1D1D; }
.alert-good { background: var(--mint-soft); border-color: var(--mint); color: #14532D; }
.alert-warn { background: #FEF3C7; border-color: #B45309; color: #713F12; }

/* ── Numbers & meters ────────────────────────────────────────── */

.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-val { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric-lab {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.meter { display: flex; gap: 2px; height: 10px; align-items: stretch; }
.meter-seg {
  flex: 1;
  background: var(--rule);
  border-radius: 2px;
  transition: background 0.25s ease;
}
.meter-seg.on { background: var(--primary); }
.meter-seg.on.warn { background: #F59E0B; }
.meter-seg.on.bad  { background: #EF4444; }

.meter-row {
  display: grid;
  grid-template-columns: 150px 1fr 46px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.meter-row:last-child { border-bottom: 0; }
.meter-row .lab { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.meter-row .val { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; text-align: right; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.b-strong { background: var(--mint-soft); color: #14532D; }
.b-good   { background: var(--mint-soft); color: #14532D; }
.b-mixed  { background: #FEF3C7;         color: #713F12; }
.b-weak   { background: #FEE2E2;         color: #7F1D1D; }
.b-poor   { background: #FEE2E2;         color: #7F1D1D; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
}

/* ── Landing hero ────────────────────────────────────────────── */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 48ch;
  margin-bottom: 1.8rem;
  line-height: 1.55;
}

/* Gradient headline text */
.gradient-text {
  background: linear-gradient(90deg, #6420FB 0%, #C724B1 50%, #00b899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 1s steps(1) infinite;
  font-weight: 400;
  margin-left: 2px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ── Landing product mock (was: .console) ────────────────────── */

.console {
  background: linear-gradient(135deg, #1a1128 0%, #22193c 100%);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.15);
  color: var(--deep-ink);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}
.console::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(100, 32, 251, 0.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 184, 153, 0.15), transparent 40%);
  pointer-events: none;
}
.console > * { position: relative; z-index: 1; }
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rec-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FFA0A0;
}
.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E85555;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 0 rgba(232,85,85,0.55); }
  50%      { opacity: .5; box-shadow: 0 0 0 6px rgba(232,85,85,0); }
}
.timecode {
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--deep-ink);
}
.console-q {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 4.2em;
  margin-bottom: 1.1rem;
}

/* VU meter */
.vu { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.vu-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), #C724B1);
  border-radius: 1px 1px 0 0;
  height: 8%;
  transition: height .08s linear;
  opacity: .9;
}

.console-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B8DA0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Landing sections (feature grid, steps, band) ────────────── */

section.band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
section.band + section.band { border-top: 1px solid var(--rule); }
section.band.tinted { background: var(--bg-2); }

/* Steps (kept for landing) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  padding: 1.8rem 1.6rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--rule-2); }
.step-n {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
}
.feature h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.35rem;
}
.feature h3::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex: none;
}
.feature p { font-size: 0.9rem; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* Pastel feature tiles for landing */
.tile {
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--rule-2);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile.p1 { background: var(--pastel-1); }
.tile.p2 { background: var(--pastel-2); }
.tile.p3 { background: var(--pastel-3); }
.tile.p4 { background: var(--pastel-4); }
.tile-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tile h3 { margin: 0; font-size: 1.08rem; font-weight: 700; }
.tile p { font-size: 0.92rem; color: var(--ink); margin: 0; line-height: 1.55; flex: 1; }
.tile-cta {
  align-self: flex-start;
  padding: 9px 16px;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.15s ease;
  text-decoration: none;
}
.tile-cta:hover { gap: 12px; text-decoration: none; }

/* Stats glass */
.stats-outer {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-soft) 100%);
}
.stats-glass {
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 32px;
  padding: 3rem 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  max-width: 1080px;
  margin: 0 auto;
}
.stats-glass h2 {
  text-align: center;
  margin: 0 0 2.6rem;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-cell { text-align: center; }
.stat-cell .big {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--primary) 0%, #C724B1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.stat-cell .rule {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--primary), #C724B1);
  margin: 16px auto;
  border-radius: 999px;
}
.stat-cell .label {
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 500;
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.4;
}

/* FAQ */
.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--r-2);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.faq-item summary {
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1;
  font-weight: 300;
  flex: none;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ── Interview stage ─────────────────────────────────────────── */

body.stage-mode { background: var(--deep); color: var(--deep-ink); }

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--deep-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7C8792;
}

.progress-pips { display: flex; gap: 4px; }
.pip {
  width: 22px; height: 3px;
  background: var(--deep-3);
  border-radius: 2px;
}
.pip.done { background: var(--mint); }
.pip.now  { background: var(--primary); }

.stage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.q-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B58AF0;
  margin-bottom: 1rem;
  font-weight: 700;
}

.q-text {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 3.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 2rem;
  color: var(--deep-ink);
}
.q-text.is-followup { color: #B58AF0; }

.live-text {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #B8B4D4;
  min-height: 3.4em;
  text-align: left;
  border-left: 2px solid var(--deep-3);
  padding-left: 14px;
}
.live-text .interim { color: #7A768E; font-style: italic; }

.stage-foot {
  border-top: 1px solid var(--deep-3);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.stage-foot .vu { width: min(280px, 34vw); height: 34px; }
.stage-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A7D83;
}

.thinking {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #B58AF0; font-weight: 700;
}
.thinking-dots { display: inline-flex; gap: 3px; }
.thinking-dots i { width: 4px; height: 4px; border-radius: 50%; background: #B58AF0; animation: bounce 1.2s infinite; }
.thinking-dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,60%,100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ── Report ──────────────────────────────────────────────────── */

.score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.2rem;
  align-items: center;
}
.score-ring { position: relative; width: 132px; height: 132px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-ring-val b {
  font-family: var(--font-sans);
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.score-ring-val span {
  font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--ink-3); text-transform: uppercase;
  margin-top: 6px; font-weight: 700;
}

.qcard {
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  background: var(--bg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.qcard-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.qcard-head:hover { background: var(--bg-2); }
.qcard-seq { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--ink-3); flex: none; min-width: 34px; }
.qcard-q { flex: 1; font-weight: 500; font-size: 0.96rem; line-height: 1.45; }
.qcard-score { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 800; flex: none; letter-spacing: -0.02em; }
.qcard-caret { flex: none; transition: transform 0.2s ease; color: var(--ink-3); }
.qcard.open .qcard-caret { transform: rotate(180deg); }

.qcard-body { display: none; padding: 0 22px 1.4rem; border-top: 1px solid var(--rule); }
.qcard.open .qcard-body { display: block; }

.transcript {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.ideal {
  background: var(--mint-soft);
  border: 1px solid #A7F3D0;
  border-left: 3px solid var(--mint);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #14532D;
}
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding-left: 18px; font-size: 0.9rem; margin-bottom: 8px; line-height: 1.5; color: var(--ink); }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; }
.bullets.good li::before { background: var(--mint); }
.bullets.bad  li::before { background: #EF4444; }
.bullets.neutral li::before { background: #F59E0B; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.sub-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 1.2rem 0 0.5rem;
}

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-2);
  font-weight: 700;
}
.tbl td { padding: 14px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--bg-2); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty h3 { color: var(--ink); }

/* ── Utility ─────────────────────────────────────────────────── */

.muted { color: var(--ink-2); }
.small { font-size: 0.88rem; }
.tiny  { font-size: 0.8rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.hidden { display: none !important; }

.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.86rem;
  color: var(--ink-3);
  background: var(--bg-2);
}
.footer a { color: var(--primary); }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; justify-items: center; }
  .meter-row { grid-template-columns: 120px 1fr 42px; gap: 10px; }
  .stats-row { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .masthead .wrap { padding: 6px 12px; }
  .nav a { padding: 6px 10px; font-size: 0.82rem; }
  .panel { padding: 1.2rem; }
  .stage-foot { flex-direction: column; align-items: stretch; gap: 1rem; }
  .stage-foot .vu { width: 100%; }
  .q-text { max-width: none; }
  .qcard-head { flex-wrap: wrap; }
  .tbl thead { display: none; }
  .tbl td { display: block; border: 0; padding: 4px 14px; }
  .tbl tr { display: block; border-bottom: 1px solid var(--rule); padding: 12px 0; }
}

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

@media print {
  .masthead, .footer, .btn, .qcard-caret { display: none !important; }
  body { background: #fff; }
  .qcard-body { display: block !important; }
  .panel { break-inside: avoid; box-shadow: none; }
}
