/* audit.css — FC-LEAD-MAGNET-LAUNCH Phase 2 wizard styling.
 *
 * Dark-mode native. Brand palette:
 *   --navy        #070D1A   page background
 *   --navy-mid    #0E1729   secondary surfaces
 *   --navy-card   #172440   card / input background
 *   --teal        #00D4AA   accent (background only — never body text)
 *   --text        #F0F6FF   primary text
 *   --muted       #7A9CC0   secondary text
 *
 * Typography:
 *   Syne (display, 800)
 *   DM Sans (body, 17px)
 *   JetBrains Mono (labels)
 */

:root {
  --navy:        #070D1A;
  --navy-mid:    #0E1729;
  --navy-card:   #172440;
  --teal:        #00D4AA;
  --text:        #F0F6FF;
  --muted:       #7A9CC0;
  --border:      #233456;
  --error:       #B91C1C;
}

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

html, body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

body { display: flex; flex-direction: column; }

/* ── Header ──────────────────────────────────────────────────────────── */

.bc-audit-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}

.bc-brand {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-weight: 800; font-size: 22px;
}

.bc-accent { color: var(--teal); }

.bc-progress-wrap {
  flex: 1; min-width: 0; max-width: 480px;
}

.bc-progress {
  background: var(--navy-card);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.bc-progress-fill {
  background: var(--teal);
  height: 100%;
  width: 0%;
  transition: width 280ms ease-out;
}

.bc-progress-meta {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--muted);
}

.bc-speed-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
  cursor: pointer;
}

/* ── Main + steps ────────────────────────────────────────────────────── */

.bc-audit-main {
  flex: 1;
  padding: 48px 32px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.bc-step { display: none; }
.bc-step.bc-step-active { display: block; }

h1 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 36px; line-height: 1.15;
  margin-bottom: 16px;
}

h2.bc-q-title, h2.bc-results-h, #step-email h2 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 26px; line-height: 1.2;
  margin-bottom: 12px;
}

h3 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 28px 0 12px;
}

.bc-lede {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.bc-q-prompt {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text);
}

/* ── Market selector ─────────────────────────────────────────────────── */

.bc-form-label {
  display: block;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.bc-select, .bc-audit-main input[type="email"],
.bc-audit-main input[type="text"] {
  display: block; width: 100%;
  background: var(--navy-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  padding: 14px 16px;
  margin-bottom: 24px;
  min-height: 48px;
}

.bc-select:focus, .bc-audit-main input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.js-mouse-user .bc-select:focus,
.js-mouse-user .bc-audit-main input:focus {
  outline: none;
}

/* ── Options (5 per question) ───────────────────────────────────────── */

.bc-options {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.bc-opt {
  display: block; width: 100%;
  background: var(--navy-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  text-align: left;
  padding: 16px 20px;
  min-height: 56px;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 80ms;
}

.bc-opt:hover {
  background: var(--navy-mid);
  border-color: var(--muted);
}

.bc-opt:active { transform: scale(0.99); }

.bc-opt-selected {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
  font-weight: 600;
}

/* ── Explanation (post-selection fade-in) ──────────────────────────── */

.bc-explanation {
  background: var(--navy-mid);
  border-left: 3px solid var(--teal);
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 0 8px 8px 0;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.bc-explanation.bc-explanation-shown { opacity: 1; }
.bc-explanation p { color: var(--muted); font-size: 15px; }
.bc-explanation strong { color: var(--text); }
.bc-explanation abbr {
  text-decoration: underline dotted var(--muted);
  cursor: help;
}

.bc-speed-mode .bc-explanation { display: none !important; }

/* ── Dimension break ────────────────────────────────────────────────── */

.bc-dim-break {
  text-align: center;
  padding: 60px 20px;
}

.bc-dim-momentum {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: 22px;
  margin-bottom: 28px;
  color: var(--text);
}

/* ── CTA buttons ────────────────────────────────────────────────────── */

.bc-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms, transform 80ms;
}

.bc-cta:hover { background: #00bf99; }
.bc-cta:active { transform: scale(0.98); }
.bc-cta:disabled {
  background: var(--navy-card);
  color: var(--muted);
  cursor: not-allowed;
}

.bc-trust {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

/* ── Email capture ──────────────────────────────────────────────────── */

.bc-radio-set {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.bc-radio-set legend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  padding: 0 8px;
}

.bc-radio-set label {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 15px;
}

.bc-dismiss {
  text-align: center; margin-top: 20px;
}

.bc-dismiss a {
  color: var(--muted);
  text-decoration: underline;
  font-size: 14px;
}

/* ── Results ────────────────────────────────────────────────────────── */

.bc-score-display {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  margin: 28px 0;
}

.bc-score-number {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.bc-score-band {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bc-provisional {
  background: var(--navy-mid);
  border-left: 3px solid var(--muted);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0 8px 8px 0;
}

.bc-provisional p { color: var(--muted); font-size: 14px; }

.bc-dim-breakdown {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.bc-dim-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.bc-dim-row:last-child { border-bottom: none; }
.bc-dim-name { color: var(--text); font-size: 15px; }
.bc-dim-score {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  font-size: 14px;
}
.bc-dim-excluded { font-style: italic; }

.bc-pdf-cta {
  text-align: center;
  margin-top: 32px;
}

.bc-pdf-cta p { color: var(--muted); margin: 8px 0; }

.bc-anon-reprompt {
  background: var(--navy-card);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 28px;
  margin-top: 32px;
  text-align: center;
}

.bc-anon-reprompt h3 { margin-top: 0; }
.bc-anon-reprompt p { color: var(--muted); margin-bottom: 20px; }

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

.bc-audit-footer {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ── Mobile ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .bc-audit-header { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .bc-audit-main { padding: 32px 20px; }
  h1 { font-size: 28px; }
  h2.bc-q-title, h2.bc-results-h, #step-email h2 { font-size: 22px; }
  .bc-q-prompt { font-size: 17px; }
  .bc-opt { font-size: 15px; padding: 14px 16px; }
  .bc-score-number { font-size: 56px; }
}
