/* ═══════════════════════════════════════════════════════════
   Hostile Jellyfish — Editorial Executive Theme
   Stripe Docs meets Harvard Business Review
   Fonts: Playfair Display (serif headlines) + DM Sans (body/UI)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors — preserve brand */
  --bg:           #0A0E1A;
  --bg-card:      #0F1624;
  --bg-card-alt:  #0D1320;
  --fg:           #EEF0F4;
  --fg-muted:     #7A8499;
  --fg-subtle:    #4A5366;
  --accent:       #BFFF00;
  --accent-dim:   rgba(191, 255, 0, 0.10);
  --accent-mid:   rgba(191, 255, 0, 0.20);
  --ring-bg:      #1A2435;
  --ring-fill:    #BFFF00;
  --warn:         #FF6B35;
  --border:       rgba(255, 255, 255, 0.07);
  --border-mid:   rgba(255, 255, 255, 0.11);

  /* Type scale */
  --font-serif:   'Playfair Display', 'Georgia', serif;
  --font-sans:     'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --px:           64px;
  --sp-sm:        8px;
  --sp-md:        16px;
  --sp-lg:        32px;
  --sp-xl:        64px;
  --sp-2xl:       96px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ──────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { color: var(--fg-muted); line-height: 1.7; }

a { color: inherit; }

/* ─── Nav ─────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg); }

/* ─── Section Headers (Editorial style) ───────────────── */

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 640px;
}

.section-headline--full {
  max-width: 100%;
}

.section-headline--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-rule-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.section-rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-body {
  font-size: 17px;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Hero ────────────────────────────────────────────── */

.hero {
  padding: 96px var(--px) 80px;
  max-width: 1100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-family: var(--font-sans);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 28px;
  max-width: 760px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 52px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-link:hover { color: var(--fg); }

/* ─── Stats Row ───────────────────────────────────────── */

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 560px;
}

.hero-stat {
  flex: 1;
  padding: 20px 24px;
}

.hero-stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* ─── Hero Score Ring (large visual) ───────────────────── */

.hero-score-section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 var(--px) 96px;
  max-width: 1100px;
}

.hero-score-ring {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.hero-ring-svg { width: 100%; height: 100%; }

.hero-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-ring-num {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-ring-denom {
  font-size: 16px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.hero-ring-tier {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  margin-top: 8px;
  background: rgba(255, 107, 53, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
}

.hero-score-sub {
  max-width: 420px;
}

.hero-score-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-sans);
  margin-bottom: 10px;
}

.hero-score-desc {
  font-size: 17px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ─── Scorecard (AI Health Score sample) ─────────────── */

.scorecard {
  padding: 0 var(--px) 80px;
}

.scorecard-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  max-width: 860px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}

.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  grid-column: 1 / -1;
}

.scorecard-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.scorecard-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-sans);
}

/* Score ring */
.score-ring {
  position: relative;
  width: 180px;
  height: 180px;
}

.ring-svg { width: 100%; height: 100%; }

.ring-bg {
  fill: none;
  stroke: var(--ring-bg);
  stroke-width: 9;
}

.ring-fill {
  fill: none;
  stroke: var(--ring-fill);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s cubic-bezier(.4, 0, .2, 1);
}

.ring-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-score-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.ring-score-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-family: var(--font-sans);
}

/* Breakdown bars */
.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 16px;
}

.breakdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  font-family: var(--font-sans);
}

.breakdown-bar {
  height: 5px;
  background: var(--ring-bg);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.8s ease;
}

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

.breakdown-score {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  letter-spacing: -0.02em;
}

.breakdown-score-warn { color: var(--warn); }

/* ─── How It Works ────────────────────────────────────── */

.howitworks {
  padding: var(--sp-xl) var(--px);
  background: var(--bg-card-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 900px;
}

.step {
  padding: 32px 32px 32px 0;
}

.step:not(:last-child) {
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

.step:not(:first-child) {
  padding-left: 32px;
}

.step-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── Disciplines Grid ────────────────────────────────── */

.disciplines {
  padding: var(--sp-xl) var(--px);
}

.disc-two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 1040px;
  align-items: start;
}

.disc-cards-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disc-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.15s;
}
.disc-row-card:hover { border-color: var(--border-mid); }
.disc-row-warn { border-color: rgba(255,107,53,0.2); }

.drc-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.drc-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  width: 24px;
  padding-top: 2px;
  flex-shrink: 0;
}

.drc-info { flex: 1; }

.drc-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.drc-tools {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.drc-diagnosis {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.5;
}

.drc-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.drc-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.drc-ring svg { position: absolute; top: 0; left: 0; }

.drc-ring-score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.drc-ring-warn { color: var(--warn); }

.drc-adoption {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Right column: breakdown bars ── */

.disc-breakdown-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 24px;
}

.disc-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

.disc-breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.db-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.db-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}

.db-bar {
  height: 5px;
  background: var(--ring-bg);
  border-radius: 100px;
  overflow: hidden;
}

.db-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.9s ease;
}

.db-fill-ok { background: var(--accent); }
.db-fill-warn { background: var(--warn); }

.db-score {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  letter-spacing: -0.02em;
}

.db-score-ok { color: var(--accent); }
.db-score-warn { color: var(--warn); }

.disc-cta-card {
  background: var(--accent-dim);
  border: 1px solid rgba(191,255,59,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.disc-cta-card:hover {
  border-color: rgba(191,255,59,0.4);
  background: rgba(191,255,0,0.13);
}

.disc-cta-headline {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}

.disc-cta-sub {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Legacy grid (kept for backwards compat if needed) */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
}

.discipline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.discipline-card-cta {
  border-color: rgba(191, 255, 0, 0.25);
  background: var(--accent-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.discipline-card-cta:hover {
  border-color: rgba(191, 255, 0, 0.45);
  background: rgba(191, 255, 0, 0.14);
}

.disc-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.disc-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.disc-metric {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.disc-detail {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.disc-cta-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.disc-cta-sub {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── Closing / CTA section ───────────────────────────── */

.closing {
  padding: var(--sp-2xl) var(--px);
  background: var(--bg-card-alt);
}

.closing-inner {
  max-width: 760px;
}

.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 580px;
  font-weight: 300;
  line-height: 1.75;
}

.closing-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

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

.footer {
  padding: 40px var(--px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.footer-brand-mark {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.footer-brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-left: 4px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 15px 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.btn-secondary:hover { color: var(--fg); }

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ─── Quiz Modal ──────────────────────────────────────── */

.quiz-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.quiz-modal.quiz-open { display: flex; }

.quiz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.quiz-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 52px 48px 44px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  z-index: 1;
  margin: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.quiz-progress-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ring-bg);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 20px 20px 0 0;
  transition: width 0.35s ease;
  width: 0%;
}

.quiz-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.15s;
}
.quiz-close-btn:hover { color: var(--fg); }

.quiz-step-hidden { display: none !important; }

/* Quiz intro */
.quiz-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.quiz-headline {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.quiz-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  font-weight: 300;
}

/* Question */
.quiz-q-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.quiz-q-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 28px;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.quiz-choice {
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s;
}
.quiz-choice:hover { background: rgba(255,255,255,0.07); border-color: var(--border-mid); }
.quiz-choice-selected {
  background: var(--accent-dim);
  border-color: rgba(191,255,59,0.45);
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Buttons */
.quiz-btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: -0.01em;
}
.quiz-btn-primary:hover { opacity: 0.88; }
.quiz-btn-primary.quiz-btn-disabled { opacity: 0.3; cursor: not-allowed; }
.quiz-btn-primary.quiz-btn-sm { padding: 10px 20px; font-size: 13px; }

.quiz-btn-ghost {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
  font-family: var(--font-sans);
}
.quiz-btn-ghost:hover { color: var(--fg); }

/* Results */
.quiz-results-score-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
}

.quiz-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.quiz-ring-fill { transition: stroke-dasharray 1.4s cubic-bezier(.4,0,.2,1); }

.quiz-result-grade {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin-bottom: 8px;
}

.quiz-result-grade-sub {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Breakdown */
.quiz-breakdown {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.quiz-bd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.quiz-bd-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  font-family: var(--font-sans);
}

.quiz-bd-score {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quiz-bd-score-ok { color: var(--accent); }
.quiz-bd-score-warn { color: var(--warn); }

.quiz-bd-bar-wrap {
  height: 5px;
  background: var(--ring-bg);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.quiz-bd-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.9s ease;
}

.quiz-bd-bar-warn { background: var(--warn); }

.quiz-bd-diagnosis {
  font-size: 12px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
  font-weight: 300;
}

/* Next action */
.quiz-next-action {
  background: var(--accent-dim);
  border: 1px solid rgba(191,255,59,0.18);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.quiz-action-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.quiz-action-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  font-weight: 400;
}

/* Email capture */
.quiz-email-wrap {
  background: var(--bg-card-alt);
  border: 1px solid rgba(191,255,59,0.18);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.quiz-email-label {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.quiz-email-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.quiz-email-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-email-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--font-sans);
}
.quiz-email-input::placeholder { color: var(--fg-muted); }
.quiz-email-input:focus { outline: none; border-color: rgba(191,255,59,0.4); }

.quiz-btn-email {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.quiz-btn-email:hover { opacity: 0.88; }
.quiz-btn-email:disabled { opacity: 0.4; cursor: not-allowed; }

.quiz-email-privacy {
  font-size: 11px;
  color: var(--fg-muted);
  opacity: 0.65;
  margin: 0;
  line-height: 1.4;
}

.quiz-email-sent {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 14px 0;
}

.quiz-retake {
  margin-top: 20px;
  display: block;
  width: 100%;
  text-align: center;
}

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

@media (max-width: 900px) {
  :root { --px: 32px; }
  .scorecard-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 28px; }
  .step:not(:first-child) { padding-left: 0; padding-top: 28px; }
  .disciplines-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-score-section { flex-direction: column; gap: 32px; padding-bottom: 64px; }
  .disc-two-col { grid-template-columns: 1fr; }
  .disc-breakdown-col { position: static; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  :root { --px: 20px; }
  .disciplines-grid { grid-template-columns: 1fr; }
  .quiz-panel { padding: 44px 24px 32px; margin: 8px; }
  .quiz-headline { font-size: 28px; }
  .quiz-q-text { font-size: 19px; }
  .quiz-results-score-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .quiz-email-row { flex-direction: column; }
  .breakdown-row { grid-template-columns: 90px 1fr 36px; gap: 12px; }
  .scorecard-inner { padding: 32px 24px; }
  .score-ring { width: 140px; height: 140px; }
  .ring-score-num { font-size: 40px; }
  .hero-score-ring { width: 180px; height: 180px; }
  .hero-ring-num { font-size: 52px; }
  .drc-right { display: none; }
  .db-bar-row { grid-template-columns: 80px 1fr 30px; }
}