@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=Roboto:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   THE TWO-MINUTE TEST - Styles
   Clean, authoritative. Feels like a serious operator built it.
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Figtree', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #F8F7F4;
  color: #1A1A1A;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Color tokens ─────────────────────────────────────────── */
:root {
  --navy:   #012526;
  --gold:   #ff9f1c;
  --text:   #1A1A1A;
  --muted:  #6B7280;
  --border: #E2E0D8;
  --bg:     #F8F7F4;
  --white:  #FFFFFF;
  --card:   #FFFFFF;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
}

/* ── Progress bar ─────────────────────────────────────────── */
#progress-bar-wrap {
  position: fixed;
  top: 61px; left: 0; right: 0;
  height: 4px;
  background: #E2E0D8;
  z-index: 100;
}
#progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.4s ease;
  width: 0%;
}

/* ── Section visibility ───────────────────────────────────── */
.section { display: none; }
.section.active,
.section:not(.hidden) { display: block; }
.hidden { display: none !important; }

/* ── Containers ───────────────────────────────────────────── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.landing-container { max-width: 680px; }
.quiz-container    { max-width: 600px; }
.gate-container    { max-width: 520px; }
.results-container { max-width: 640px; }
.center-container  {
  max-width: 480px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.landing-headline {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.landing-sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.5;
}

.landing-quote {
  border-left: 4px solid var(--gold);
  background: var(--white);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.landing-quote p {
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.6;
}

.landing-quote cite {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.landing-body {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.7;
}

.muted { color: var(--muted) !important; font-size: 14px !important; }

.fine-print {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   QUIZ SECTIONS
   ══════════════════════════════════════════════════════════ */
.step-header { margin-bottom: 28px; }

.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.step-title {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.step-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Question-specific ────────────────────────────────────── */
.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.q-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.q-criterion-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 159, 28, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
}

.q-context {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px;
}

.q-text {
  font-size: clamp(18px, 3.5vw, 23px);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--navy);
}

/* ── Radio cards ──────────────────────────────────────────── */
.radio-cards { display: flex; flex-direction: column; gap: 10px; }

.radio-cards.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.radio-cards.horizontal .radio-card {
  flex: 1;
  min-width: 140px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}

.radio-card:hover {
  border-color: #94a3b8;
}

.radio-card input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
}

.radio-card.selected,
.radio-card input[type="radio"]:checked + .radio-card-text {
  border-color: var(--navy);
}

.radio-card.selected {
  border-color: var(--navy);
  background: rgba(1, 37, 38, 0.04);
  box-shadow: 0 0 0 3px rgba(1, 37, 38, 0.08);
}

.radio-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-card-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.radio-card-text small {
  font-size: 12px;
  color: var(--muted);
}

.answer-card { align-items: center; }

.answer-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: #011a1b; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: #C5C0B8;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.full-width { width: 100%; display: block; margin-top: 8px; }

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-secondary:hover { background: rgba(1,37,38,0.06); }

.btn-ghost {
  padding: 8px 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}

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

/* ══════════════════════════════════════════════════════════
   CALCULATING
   ══════════════════════════════════════════════════════════ */
.calculating-wrap { text-align: center; }

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.calculating-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.calculating-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   CRITERIA ROWS
   ══════════════════════════════════════════════════════════ */
.criteria-list { display: flex; flex-direction: column; gap: 16px; }

.criterion-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.criterion-label-col {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.criterion-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.criterion-score-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.criterion-bar-col {
  background: var(--border);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.criterion-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.criterion-feedback {
  font-size: 13.5px;
  color: #3D3D3D;
  line-height: 1.6;
}

/* Teaser locked section */
.locked-section {
  position: relative;
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 244, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 8px;
  backdrop-filter: blur(3px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.lock-icon { font-size: 28px; }

.lock-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  padding: 0 20px;
}

.locked-blur {
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.criterion-row.blurred {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.criterion-row.blurred .criterion-bar-col {
  flex: 1;
  margin-bottom: 0;
  background: var(--border);
  height: 8px;
}

.criterion-score-col {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.gate-cta { margin-top: 24px; text-align: center; }

.gate-tease {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════════════════
   EMAIL GATE
   ══════════════════════════════════════════════════════════ */
.gate-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gate-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.gate-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.gate-body {
  font-size: 15px;
  color: #3D3D3D;
  line-height: 1.65;
  margin-bottom: 28px;
}

.gate-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   FULL RESULTS
   ══════════════════════════════════════════════════════════ */
.grade-badge-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.grade-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  font-weight: 900;
  flex-shrink: 0;
}

.grade-score-text { display: flex; flex-direction: column; }

.score-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.score-denom {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.grade-headline {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.grade-body-text {
  font-size: 16px;
  color: #3D3D3D;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-context-line {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.section-subhead {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub-body {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Fix first list */
.fix-list { display: flex; flex-direction: column; gap: 16px; }

.fix-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.fix-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.fix-content { flex: 1; }

.fix-criterion {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.fix-score {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.fix-suggestion {
  font-size: 14px;
  color: #3D3D3D;
  line-height: 1.65;
}

.all-green {
  font-size: 15px;
  color: #16a34a;
  font-weight: 500;
  padding: 16px;
  background: #f0fdf4;
  border-radius: var(--radius);
  border: 1px solid #bbf7d0;
}

/* Results footer */
.results-footer {
  text-align: center;
}

.results-footer-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.results-footer-attribution {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.results-action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-confirm {
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════
   BONUS READING LIST
   ══════════════════════════════════════════════════════════ */
.bonus-section { margin-bottom: 8px; }

.bonus-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.bonus-tagline {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.bonus-intro-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.book-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.book-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.book-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.book-content { flex: 1; }

.book-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.book-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.book-body {
  font-size: 14px;
  color: #3D3D3D;
  line-height: 1.65;
}

.bonus-close {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 20px 20px 20px;
  box-shadow: var(--shadow);
}

.bonus-close-intro {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.bonus-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bonus-bullets li {
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.bonus-bullets li::before {
  content: '•';
  color: var(--gold);
  font-weight: 900;
  position: absolute;
  left: 0;
}

.bonus-close-body {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  background: #012526;
  padding: 12px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-logo {
  height: 60px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 32px 20px 60px; }

  .gate-box { padding: 28px 20px; }

  .grade-badge-wrap { flex-direction: column; text-align: center; gap: 12px; }

  .radio-cards.horizontal { flex-direction: column; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn-ghost { text-align: center; }

  .results-action-row { flex-direction: column; align-items: center; }

  .fix-item { flex-direction: column; gap: 10px; }
  .fix-number { width: 24px; height: 24px; min-width: 24px; }
}
