:root {
  --bg: #0e0f12;
  --fg: #ededee;
  --muted: #9b9fa8;
  --card: #181a20;
  --card-2: #1f222a;
  --accent: #ffd166;
  --accent-2: #ef476f;
  --good: #06d6a0;
  --bad: #ef476f;
  --border: #2a2d36;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(14,15,18,0.85); backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header .logo { font-weight: 700; font-size: 22px; color: var(--fg);
  white-space: nowrap; }
.site-header .logo .logo-mark { height: 28px; width: auto;
  /* The SVG viewBox is 500×110; the wordmark letters sit at y≈3.8–63 and
     the planet's tail extends from y≈63 to y≈108 (below the letter
     baseline). vertical-align:-12px (≈ -0.427×height) drops the image
     so the chambr letter baseline lands on the "Bench" text baseline;
     the planet then dangles below as it should. */
  vertical-align: -12px;
  margin-right: 10px; }
.site-header .logo span { color: var(--accent); }
.site-header nav a { margin-left: 20px; color: var(--muted); font-size: 14px; }

main {
  max-width: 880px; margin: 0 auto; padding: 32px 24px 80px;
}

.hero {
  padding: 36px 0 24px;
}
.hero h1 {
  font-size: 36px; line-height: 1.15; margin: 0 0 14px;
  font-weight: 700; letter-spacing: -0.02em;
}
.hero .lead { font-size: 18px; color: var(--fg); margin: 0 0 12px; max-width: 720px; }
.hero .meta { color: var(--muted); margin: 6px 0; }
.meta { color: var(--muted); }
.meta.small { font-size: 13px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin: 20px 0;
}
.card h2 { margin-top: 0; font-size: 22px; letter-spacing: -0.01em; }
.card h3 { margin: 12px 0 6px; }

.train-form label { display: block; margin: 14px 0 6px; font-weight: 600; }
.train-form input[type=text],
.train-form input[type=email],
.train-form select,
.train-form textarea {
  width: 100%; padding: 10px 12px; background: var(--card-2);
  border: 1px solid var(--border); border-radius: 10px; color: var(--fg);
  font: inherit;
}
.train-form textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.train-form fieldset {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  margin: 18px 0;
}
.train-form legend { padding: 0 8px; color: var(--muted); }
.radio {
  display: block; padding: 10px 12px; margin: 6px 0;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer;
}
.radio input { margin-right: 10px; }
.radio strong { display: inline-block; }
.radio small { display: block; color: var(--muted); margin-top: 2px; }

button.primary, .button {
  display: inline-block; background: var(--accent); color: #0e0f12;
  font-weight: 700; border: none; padding: 12px 22px; border-radius: 12px;
  cursor: pointer; font-size: 15px;
}
button.primary:hover, .button:hover { filter: brightness(1.05); }

.scorecard-header { text-align: left; }
.scorecard-header h1 { font-size: 28px; margin: 6px 0 12px; }
.sc-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.badge { background: var(--card-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.overall-score { font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 8px 0 14px; }
.score-num { font-size: 64px; color: var(--accent); }
.score-denom { font-size: 22px; color: var(--muted); }
.strength { color: var(--good); margin: 6px 0; }
.weakness { color: var(--bad); margin: 6px 0; }

.layers .layer { margin: 16px 0; }
.layer-head { display: flex; justify-content: space-between; align-items: baseline; }
.layer-label { font-weight: 600; }
.layer-score { color: var(--accent); font-weight: 700; }
.layer-bar { background: var(--card-2); height: 8px; border-radius: 4px; margin: 6px 0 4px; overflow: hidden; }
.layer-fill { background: var(--accent); height: 100%; }

.moment {
  border-left: 3px solid var(--accent-2); padding: 6px 14px; margin: 14px 0;
  background: var(--card-2); border-radius: 10px;
}

.transcript { margin-top: 8px; }
.turn { padding: 10px 14px; margin: 10px 0; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); }
.turn-buyer { border-left: 3px solid var(--accent-2); }
.turn-agent { border-left: 3px solid var(--accent); }
.turn-meta { display: flex; justify-content: space-between; }
.turn-role { font-weight: 700; font-size: 13px; letter-spacing: 0.05em; }
.turn p { margin: 6px 0 0; }

.archetype-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .archetype-grid { grid-template-columns: repeat(3, 1fr); } }
.archetype { background: var(--card-2); padding: 18px; border-radius: 12px; border: 1px solid var(--border); }
.archetype h3 { margin: 0 0 4px; }
.archetype .one-liner { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.archetype p { color: var(--muted); margin: 0; font-size: 14px; }

.subscribe-card form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-card input[type=email] { flex: 1; min-width: 220px; padding: 10px 12px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; color: var(--fg); }
.subscribe-card textarea { width: 100%; min-height: 60px; padding: 10px 12px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; color: var(--fg);
  font: inherit; margin-top: 8px; }

.report-block {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 13px;
}

.history { width: 100%; border-collapse: collapse; }
.history th, .history td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.history th { color: var(--muted); font-weight: 600; font-size: 13px; }

footer { color: var(--muted); padding: 32px 24px; text-align: center; font-size: 13px; }
footer a { color: var(--muted); }

/* Sprint 1.2 S3 — unlock UI */
.unlock-banner {
  background: linear-gradient(180deg, rgba(6,214,160,0.18), rgba(6,214,160,0.06));
  border: 1px solid rgba(6,214,160,0.45);
  color: var(--good);
  padding: 14px 18px;
  border-radius: 12px;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.unlock-banner strong { color: var(--good); }

.demote-banner {
  background: linear-gradient(180deg, rgba(239,71,111,0.16), rgba(239,71,111,0.04));
  border: 1px solid rgba(239,71,111,0.45);
  color: var(--accent-2);
  padding: 14px 18px;
  border-radius: 12px;
  margin: 0 0 18px;
  font-weight: 600;
}
.demote-banner strong { color: var(--accent-2); }

.next-threshold {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: var(--card-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.level-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
}
.level-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: inline-block;
}
.level-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,209,102,0.18);
}

.coming-soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
