@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

/* Daytona via Adobe Fonts CDN fallback — we'll use @font-face from a CDN-hosted version */
/* Daytona is not on Google Fonts; we approximate with a bold condensed stack and override with JS if available */
/* For Cloudflare Pages, Daytona will be loaded via kit.typekit.net if user has Adobe Fonts, else falls back gracefully */

:root {
  --navy:        #07111f;
  --navy-mid:    #0d1e33;
  --navy-card:   #122542;
  --navy-border: rgba(255,255,255,0.08);
  --steel:       #1a6fc4;
  --steel-mid:   #2483e2;
  --steel-light: #5aaff5;
  --ice:         #e8f4fd;
  --ice-mid:     #b8d9f5;
  --gold:        #f0b429;
  --gold-dim:    #c8922a;
  --gold-light:  rgba(240,180,41,0.12);
  --teal:        #0fa876;
  --teal-light:  rgba(15,168,118,0.12);
  --coral:       #e05252;
  --coral-light: rgba(224,82,82,0.12);
  --pink:        #d4538a;
  --pink-light:  rgba(212,83,138,0.12);
  --amber:       #d4841a;
  --amber-light: rgba(212,132,26,0.12);
  --purple:      #8b5cf6;
  --purple-light:rgba(139,92,246,0.12);
  --text:        #ffffff;
  --text-mid:    rgba(255,255,255,0.65);
  --text-muted:  rgba(255,255,255,0.38);
  --border:      rgba(255,255,255,0.09);
  --border-mid:  rgba(255,255,255,0.16);
  --surface:     rgba(255,255,255,0.04);
  --surface-mid: rgba(255,255,255,0.07);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   26px;

  /* Exam page overrides (light) */
  --ex-bg:       #f4f7fb;
  --ex-surface:  #ffffff;
  --ex-surface2: #f0f4f9;
  --ex-text:     #0f172a;
  --ex-text-mid: #334155;
  --ex-muted:    #64748b;
  --ex-border:   #dde4ee;
  --ex-border2:  #c8d3e2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ─── Typography ─────────────────────────────────────────────── */
/* Daytona — we load it as a web font using a system-level name;
   Cloudflare Pages will serve our local copy from /fonts/ if added,
   otherwise we cascade to a condensed bold fallback */
.font-display {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body {
  font-family: 'DM Mono', 'Courier New', monospace;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ─── HOME: Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(7,17,31,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
}

.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

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

.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--steel); display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 700; font-size: 16px; color: var(--text);
  letter-spacing: 0.02em;
}

.nav-meta {
  font-size: 19px; color: var(--text-muted); letter-spacing: 0.08em;
}

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

.nav-chip {
  font-size: 19px; color: var(--gold);
  border: 1px solid rgba(240,180,41,0.3);
  border-radius: 20px; padding: 4px 12px;
  letter-spacing: 0.05em;
}

/* ─── HOME: Hero ─────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse at center top, rgba(26,111,196,0.18) 0%, transparent 70%);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; letter-spacing: 0.15em; color: var(--steel-light);
  border: 1px solid rgba(90,175,245,0.25);
  border-radius: 20px; padding: 5px 14px;
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-headline {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-headline .line1 { display: block; color: var(--text); }
.hero-headline .line2 { display: block; color: var(--gold); font-style: italic; }
.hero-headline .line3 { display: block; color: var(--text-mid); font-size: 0.65em; }

.hero-sub {
  font-size: 19px; color: var(--text-mid); max-width: 560px;
  line-height: 1.7; margin-bottom: 40px;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 50px;
}

.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 110px;
}

.hero-stat-num {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--text); line-height: 1;
}

.hero-stat-lbl { font-size: 19px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.06em; }

/* ─── HOME: Section header ───────────────────────────────────── */
.section-header { margin-bottom: 32px; }

.section-label {
  font-size: 19px; letter-spacing: 0.15em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 8px;
}

.section-title-home {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 36px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; line-height: 1;
}

/* ─── HOME: Exam grid ────────────────────────────────────────── */
.exams-section { padding: 60px 0 100px; }

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.exam-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
  position: relative; overflow: hidden;
}

.exam-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--card-accent, var(--steel)), transparent);
  opacity: 0; transition: opacity 0.18s;
}

.exam-card:hover { border-color: var(--border-mid); transform: translateY(-3px); background: rgba(18,37,66,0.9); }
.exam-card:hover::before { opacity: 1; }

.card-eyebrow {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

.card-num {
  font-size: 19px; letter-spacing: 0.12em; color: var(--text-muted);
}

.card-status {
  font-size: 18px; letter-spacing: 0.08em; padding: 3px 9px;
  border-radius: 12px; font-weight: 500;
}

.status-new { background: var(--teal-light); color: var(--teal); border: 1px solid rgba(15,168,118,0.3); }
.status-done { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.status-coming { background: rgba(255,255,255,0.03); color: var(--text-muted); border: 1px solid var(--border); opacity: 0.5; }

.card-title {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text);
  line-height: 1.1; margin-bottom: 10px; letter-spacing: 0.01em;
}

.card-desc {
  font-size: 16px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 20px;
}

.card-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
}

.card-pill {
  font-size: 18px; padding: 3px 9px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text-muted); letter-spacing: 0.04em;
}

.card-pill.gold { border-color: rgba(240,180,41,0.35); color: var(--gold); }
.card-pill.teal { border-color: rgba(15,168,118,0.35); color: var(--teal); }
.card-pill.pink { border-color: rgba(212,83,138,0.35); color: var(--pink); }

.card-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--border);
}

.card-cta-text {
  font-size: 16px; font-weight: 500; color: var(--steel-light); letter-spacing: 0.04em;
}

.card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-mid); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-mid);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.exam-card:hover .card-arrow { background: var(--steel); color: #fff; transform: translateX(3px); }

/* Coming soon card */
.exam-card.coming-soon {
  opacity: 0.45; pointer-events: none;
}

/* ─── HOME: Study guide strip ────────────────────────────────── */
.guide-strip {
  background: var(--navy-mid); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin-bottom: 0;
}

.guide-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.guide-text h3 {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}

.guide-text p { font-size: 16px; color: var(--text-muted); }

.guide-phases { display: flex; flex-wrap: wrap; gap: 8px; }

.phase-tag {
  font-size: 19px; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-mid);
}

/* ─── HOME: Footer ───────────────────────────────────────────── */
.footer {
  background: var(--navy); padding: 36px 0;
  border-top: 1px solid var(--border); text-align: center;
}

.footer p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }

.footer-target {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 18px; color: var(--gold); letter-spacing: 0.05em;
  display: block; margin-bottom: 8px;
}

/* ─── EXAM PAGE ──────────────────────────────────────────────── */
body.exam-page { background: var(--ex-bg); color: var(--ex-text); }

.exam-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  height: 58px; display: flex; align-items: center;
}

.exam-nav-inner {
  max-width: 860px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 16px;
}

.back-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; color: rgba(255,255,255,0.5);
  text-decoration: none; letter-spacing: 0.04em;
  transition: color 0.15s;
}
.back-link:hover { color: rgba(255,255,255,0.9); }

.exam-nav-title {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 19px; font-weight: 700; color: #fff; letter-spacing: 0.03em;
}

.timer-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px; padding: 5px 14px;
}

.timer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: blink 1.5s ease-in-out infinite; }
.timer-num { font-size: 18px; font-weight: 500; color: #fff; font-family: 'DM Mono', monospace; letter-spacing: -0.02em; }
.timer-lbl { font-size: 18px; color: rgba(255,255,255,0.38); letter-spacing: 0.06em; }
.timer-num.urgent { color: var(--coral); }

/* Exam progress bar */
.exam-progress-bar {
  background: var(--navy-mid); padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 58px; z-index: 190;
}

.progress-inner-bar {
  max-width: 860px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
}

.prog-track { flex: 1; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--steel), var(--teal)); border-radius: 3px; transition: width 0.3s ease; }
.prog-label { font-size: 19px; color: rgba(255,255,255,0.35); white-space: nowrap; font-family: 'DM Mono', monospace; }

/* Exam hero band */
.exam-hero {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}

.exam-hero-inner { max-width: 860px; margin: 0 auto; }

.exam-hero-eyebrow { font-size: 18px; letter-spacing: 0.14em; color: var(--steel-light); margin-bottom: 8px; }

.exam-hero-title {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.exam-hero-title span { color: var(--gold); font-style: italic; }

.exam-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.ex-chip {
  font-size: 19px; padding: 4px 11px; border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.55);
}

.ex-chip.gold { border-color: rgba(240,180,41,0.4); color: var(--gold); }
.ex-chip.teal { border-color: rgba(15,168,118,0.4); color: var(--teal); }
.ex-chip.pink { border-color: rgba(212,83,138,0.4); color: var(--pink); }

/* Exam content area */
.exam-content { max-width: 860px; margin: 0 auto; padding: 28px 24px 80px; }

/* Section dividers */
.sec-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 36px 0 16px;
}
.sec-divider:first-child { margin-top: 0; }

.sec-bar { width: 4px; height: 44px; border-radius: 2px; flex-shrink: 0; }
.sec-bar.blue   { background: var(--steel); }
.sec-bar.teal   { background: var(--teal); }
.sec-bar.purple { background: var(--purple); }
.sec-bar.pink   { background: var(--pink); }
.sec-bar.amber  { background: var(--amber); }

.sec-info { flex: 1; }
.sec-name {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--ex-text); letter-spacing: 0.01em;
}
.sec-meta { font-size: 16px; color: var(--ex-muted); margin-top: 2px; }
.sec-pts-badge {
  font-size: 19px; padding: 4px 12px; border-radius: 14px;
  white-space: nowrap; font-family: 'DM Mono', monospace;
}
.badge-b { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-t { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-p { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.badge-pk{ background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
.badge-a { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Question cards */
.q-card {
  background: var(--ex-surface);
  border: 1px solid var(--ex-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 10px;
  transition: border-color 0.12s;
}

.q-card:hover { border-color: var(--ex-border2); }
.q-card.answered { border-color: #93c5fd; }
.q-card.correct-q { background: #f0fdf4; border-color: #86efac; }
.q-card.wrong-q   { background: #fef2f2; border-color: #fca5a5; }

.q-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.q-num {
  font-family: 'DM Mono', monospace; font-size: 19px; color: var(--ex-muted);
}

.q-topic {
  font-size: 18px; background: var(--ex-surface2);
  color: var(--ex-muted); padding: 2px 8px;
  border-radius: 10px; border: 1px solid var(--ex-border);
}

.nat-badge {
  font-size: 18px; background: #fce7f3; color: #9d174d;
  padding: 2px 8px; border-radius: 10px; border: 1px solid #fbcfe8;
  font-family: 'DM Mono', monospace;
}

.q-text {
  font-size: 18px; color: var(--ex-text); line-height: 1.55; margin-bottom: 14px;
  font-family: 'Outfit', 'DM Mono', sans-serif;
}

/* MCQ options */
.options-list { display: flex; flex-direction: column; gap: 6px; }

.opt-btn {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--ex-border);
  background: var(--ex-surface2);
  color: var(--ex-text); font-size: 17px; line-height: 1.4;
  font-family: 'Outfit', 'DM Mono', sans-serif;
  transition: all 0.12s;
}

.opt-btn:hover:not(:disabled) { background: #e8f4fd; border-color: #93c5fd; color: #1e3a5f; }
.opt-btn:disabled { cursor: default; }

.opt-letter {
  font-family: 'DM Mono', monospace; font-size: 19px; font-weight: 500;
  color: var(--ex-muted); min-width: 16px; padding-top: 1px; flex-shrink: 0;
}

.opt-btn.selected { background: #dbeafe; border-color: #3b82f6; color: #1e3a8a; }
.opt-btn.selected .opt-letter { color: #2563eb; }
.opt-btn.correct-opt { background: #dcfce7; border-color: #22c55e; color: #14532d; }
.opt-btn.correct-opt .opt-letter { color: #16a34a; }
.opt-btn.wrong-opt { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.opt-btn.wrong-opt .opt-letter { color: #dc2626; }

/* T/F */
.tf-wrap { display: flex; gap: 8px; }

.tf-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--ex-border); background: var(--ex-surface2);
  color: var(--ex-muted); font-family: 'DM Mono', monospace;
  font-size: 16px; font-weight: 500; cursor: pointer; letter-spacing: 0.05em;
  transition: all 0.12s;
}

.tf-btn:hover:not(:disabled) { background: var(--ex-bg); border-color: var(--ex-border2); }
.tf-btn:disabled { cursor: default; }
.tf-btn.sel-t { background: #dbeafe; border-color: #3b82f6; color: #1e3a8a; }
.tf-btn.sel-f { background: #fef9c3; border-color: #ca8a04; color: #713f12; }
.tf-btn.correct-opt { background: #dcfce7; border-color: #22c55e; color: #14532d; }
.tf-btn.wrong-opt { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }

/* Free response */
.fr-textarea {
  width: 100%; min-height: 95px;
  border: 1px solid var(--ex-border); border-radius: var(--radius-sm);
  background: var(--ex-surface2); color: var(--ex-text);
  font-family: 'Outfit', 'DM Mono', sans-serif; font-size: 17px;
  padding: 10px 13px; resize: vertical; transition: border-color 0.15s;
  line-height: 1.55;
}

.fr-textarea:focus { outline: none; border-color: #3b82f6; background: #fff; }

.answer-reveal {
  margin-top: 12px; padding: 12px 16px;
  background: #f0fdf4; border-left: 3px solid #22c55e;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: none; font-size: 17px; color: #1f2937; line-height: 1.65;
  font-family: 'Outfit', 'DM Mono', sans-serif;
}

.answer-reveal.show { display: block; }

.answer-reveal-lbl {
  font-family: 'DM Mono', monospace; font-size: 18px; letter-spacing: 0.1em;
  color: #15803d; margin-bottom: 6px; font-weight: 500;
}

/* Self-score */
.self-score-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.self-score-lbl { font-size: 19px; color: var(--ex-muted); margin-right: 4px; }

.ss-btn {
  font-size: 19px; font-family: 'DM Mono', monospace; padding: 5px 14px;
  border-radius: 20px; border: 1px solid var(--ex-border);
  background: var(--ex-surface2); color: var(--ex-muted);
  cursor: pointer; transition: all 0.12s; letter-spacing: 0.04em;
}

.ss-btn:hover { background: var(--ex-bg); border-color: var(--ex-border2); }
.ss-btn.full    { background: #dcfce7; border-color: #22c55e; color: #15803d; }
.ss-btn.partial { background: #fef3c7; border-color: #ca8a04; color: #92400e; }
.ss-btn.none    { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }

/* Submit */
.submit-area { text-align: center; margin: 44px 0 16px; }

.submit-btn {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.05em;
  padding: 14px 48px; border-radius: 40px; border: none;
  background: var(--steel); color: #fff; cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.submit-btn:hover { background: #1558a0; transform: translateY(-2px); }
.submit-btn:active { transform: translateY(0); }
.submit-note { font-size: 16px; color: var(--ex-muted); margin-top: 10px; }

/* ─── RESULTS ─────────────────────────────────────────────────── */
.results-section { background: var(--navy-mid); padding: 60px 24px; display: none; border-top: 2px solid var(--border); }
.results-section.show { display: block; }
.results-inner { max-width: 860px; margin: 0 auto; }

.results-eyebrow { font-size: 19px; letter-spacing: 0.15em; color: var(--steel-light); margin-bottom: 8px; }

.results-title {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 40px; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin-bottom: 36px;
}

.score-hero { text-align: center; padding: 32px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }

.score-big {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 90px; font-weight: 700; color: #fff; line-height: 1;
}

.score-denom { font-size: 30px; color: var(--text-muted); font-family: 'DM Mono', monospace; }

.score-grade { font-size: 17px; margin-top: 10px; font-weight: 500; }
.grade-top { color: var(--gold); }
.grade-good { color: var(--teal); }
.grade-ok   { color: var(--amber); }
.grade-low  { color: var(--coral); }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 32px; }

.result-cell {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}

.rc-num { font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.rc-lbl { font-size: 19px; color: var(--text-muted); }

.mistakes-block { margin-bottom: 28px; }
.mistakes-title { font-size: 19px; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 12px; }

.mistake-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 17px; color: var(--text-mid);
}

.mistake-row:last-child { border-bottom: none; }
.mistake-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.all-good { font-size: 17px; color: var(--teal); padding: 8px 0; }

.results-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.res-btn {
  font-family: 'DM Mono', monospace; font-size: 16px; padding: 11px 22px;
  border-radius: 30px; cursor: pointer; transition: all 0.15s; letter-spacing: 0.04em;
}

.res-btn.primary { background: var(--steel); border: none; color: #fff; }
.res-btn.primary:hover { background: #1558a0; }
.res-btn.secondary { background: transparent; border: 1px solid var(--border-mid); color: var(--text-mid); }
.res-btn.secondary:hover { background: var(--surface-mid); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-headline { font-size: 44px; }
  .hero-stats { gap: 8px; }
  .hero-stat { min-width: 90px; padding: 12px 14px; }
  .hero-stat-num { font-size: 24px; }
  .nav-chip { display: none; }
  .container, .container-narrow { padding: 0 16px; }
  .exam-content { padding: 20px 16px 60px; }
  .score-big { font-size: 70px; }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.4s ease both; }

.q-card { animation: fadeUp 0.3s ease both; }

/* ─── INNER PAGES: Checklist & Drills ───────────────────────── */
.inner-page { background: var(--navy); min-height: 100vh; }

.inner-hero {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px 40px;
}

.inner-hero-inner { max-width: 1060px; margin: 0 auto; }

.inner-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 15px; letter-spacing: 0.14em; color: var(--steel-light);
  text-transform: uppercase; margin-bottom: 10px;
}

.inner-title {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px;
}

.inner-title span { color: var(--gold); font-style: italic; }

.inner-sub {
  font-size: 16px; color: var(--text-mid);
  max-width: 600px; line-height: 1.7; margin-top: 8px;
}

.inner-body { max-width: 1060px; margin: 0 auto; padding: 36px 24px 80px; }

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.stat-tile {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
}

.stat-tile-num {
  font-family: 'Daytona', 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 26px; font-weight: 700; color: var(--text); line-height: 1;
}

.stat-tile-lbl {
  font-size: 15px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.05em;
}

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 24px;
}

.filter-lbl { font-size: 15px; color: var(--text-muted); margin-right: 4px; }

.filter-btn {
  font-size: 15px; padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.14s;
  font-family: 'DM Mono', monospace;
}

.filter-btn:hover { background: var(--surface-mid); color: var(--text); }

.filter-btn.active {
  background: rgba(26,111,196,0.15);
  border-color: var(--steel);
  color: var(--steel-light);
}

/* Progress banner */
.progress-banner {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.prog-banner-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 12px; gap: 16px; flex-wrap: wrap;
}

.prog-banner-label { font-size: 16px; font-weight: 500; color: var(--text); }
.prog-banner-pct   { font-family: 'Daytona','Barlow Condensed','Oswald',sans-serif; font-size: 24px; font-weight: 700; color: var(--gold); }

.prog-banner-track {
  height: 8px; background: rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden; margin-bottom: 12px;
}

.prog-banner-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--steel));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.prog-banner-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.prog-chip {
  font-size: 15px; padding: 4px 12px; border-radius: 14px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}

.prog-chip.gold { border-color: rgba(240,180,41,0.35); color: var(--gold); }
.prog-chip.teal { border-color: rgba(15,168,118,0.35); color: var(--teal); }
.prog-chip.pink { border-color: rgba(212,83,138,0.35); color: var(--pink); }

/* Phase blocks */
.phase-block { margin-bottom: 16px; }

.phase-header-btn {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 0.15s;
  font-family: 'Outfit','DM Mono',sans-serif;
}

.phase-header-btn:hover { border-color: var(--border-mid); }

.phase-accent-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}

.phase-header-name {
  font-family: 'Daytona','Barlow Condensed','Oswald',sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  letter-spacing: 0.01em; flex: 1;
}

.phase-header-stats {
  font-size: 15px; color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}

.phase-chevron {
  font-size: 13px; color: var(--text-muted);
  transition: transform 0.2s ease;
}

.phase-chevron.open { transform: rotate(90deg); }

.topics-wrap {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 4px;
  display: none;
}

.topics-wrap.open { display: block; }

.nat-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(212,83,138,0.1);
  border-bottom: 1px solid rgba(212,83,138,0.25);
  padding: 9px 18px;
  font-size: 15px; color: var(--pink); font-family: 'DM Mono', monospace;
}

.topic-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: rgba(255,255,255,0.03); }

.topic-checkbox {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--border-mid);
  background: transparent;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.14s; font-size: 13px; color: #fff;
}

.topic-checkbox.checked {
  background: var(--teal); border-color: var(--teal);
}

.topic-text {
  font-size: 16px; color: var(--text-mid);
  flex: 1; line-height: 1.4;
  font-family: 'Outfit', 'DM Mono', sans-serif;
}

.topic-text.done {
  text-decoration: line-through;
  color: var(--text-muted);
}

.nat-tag-small {
  font-size: 14px; padding: 2px 9px; border-radius: 10px;
  background: rgba(212,83,138,0.12);
  border: 1px solid rgba(212,83,138,0.3);
  color: var(--pink); white-space: nowrap;
  font-family: 'DM Mono', monospace; flex-shrink: 0;
}

.pri-indicator {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

.star-group {
  display: flex; gap: 2px; flex-shrink: 0;
}

.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--border-mid);
  padding: 0; line-height: 1;
  transition: color 0.1s; display: block;
}

.star-btn.lit { color: var(--gold); }
.star-btn:hover { color: rgba(240,180,41,0.6); }

/* ─── DRILLS PAGE ─────────────────────────────────────────────── */
.drill-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.drill-card:hover { border-color: var(--border-mid); }

.drill-header-btn {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; background: none; border: none;
  font-family: 'Outfit', 'DM Mono', sans-serif;
}

.drill-index {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; flex-shrink: 0;
}

.drill-card-title {
  font-family: 'Daytona','Barlow Condensed','Oswald',sans-serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  letter-spacing: 0.01em; flex: 1; text-align: left;
}

.drill-target-pill {
  font-size: 14px; padding: 4px 12px; border-radius: 14px;
  font-family: 'DM Mono', monospace;
  white-space: nowrap; flex-shrink: 0;
}

.drill-pb-pill {
  font-size: 14px; padding: 4px 12px; border-radius: 14px;
  background: rgba(15,168,118,0.12);
  border: 1px solid rgba(15,168,118,0.3);
  color: var(--teal); white-space: nowrap;
  font-family: 'DM Mono', monospace; flex-shrink: 0;
  display: none;
}

.drill-chevron {
  font-size: 14px; color: var(--text-muted);
  transition: transform 0.2s; flex-shrink: 0;
}

.drill-chevron.open { transform: rotate(90deg); }

.drill-body {
  padding: 0 22px 22px;
  display: none; border-top: 1px solid var(--border);
}

.drill-body.open { display: block; }

.formula-block {
  border-left: 3px solid;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin: 18px 0 14px;
}

.formula-block-label {
  font-family: 'DM Mono', monospace;
  font-size: 14px; letter-spacing: 0.1em;
  font-weight: 500; margin-bottom: 8px;
}

.formula-block-text {
  font-family: 'DM Mono', monospace;
  font-size: 16px; color: var(--text); line-height: 1.7;
}

.example-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.example-block-label {
  font-family: 'DM Mono', monospace;
  font-size: 14px; letter-spacing: 0.08em; color: var(--text-muted);
  font-weight: 500; margin-bottom: 8px;
}

.example-block-q {
  font-size: 16px; color: var(--text); line-height: 1.55;
  margin-bottom: 12px;
  font-family: 'Outfit', 'DM Mono', sans-serif;
}

.show-ans-btn {
  background: none; border: 1px solid var(--border-mid);
  border-radius: 20px; padding: 6px 16px;
  font-size: 15px; color: var(--steel-light);
  cursor: pointer; font-family: 'DM Mono', monospace;
  transition: all 0.14s;
}

.show-ans-btn:hover { background: rgba(26,111,196,0.1); }

.example-block-ans {
  margin-top: 12px;
  background: rgba(15,168,118,0.08);
  border: 1px solid rgba(15,168,118,0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px; color: var(--text-mid); line-height: 1.65;
  font-family: 'DM Mono', monospace;
  display: none;
}

.example-block-ans.show { display: block; }

.timer-zone {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0 12px; flex-wrap: wrap;
}

.timer-readout {
  font-family: 'Daytona','Barlow Condensed','Oswald',sans-serif;
  font-size: 42px; font-weight: 700; color: var(--text);
  min-width: 90px; line-height: 1;
  transition: color 0.2s;
}

.timer-readout.running { color: var(--steel-light); }
.timer-readout.under   { color: var(--teal); }
.timer-readout.over    { color: var(--coral); }

.timer-action {
  font-family: 'Daytona','Barlow Condensed','Oswald',sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.05em;
  padding: 10px 26px; border-radius: 30px; border: none;
  cursor: pointer; transition: all 0.14s;
}

.timer-action.start-btn {
  background: var(--steel); color: #fff;
}
.timer-action.start-btn:hover { background: var(--navy-light); }

.timer-action.stop-btn {
  background: var(--coral); color: #fff; display: none;
}
.timer-action.stop-btn:hover { background: #c43d3d; }

.timer-pb {
  font-size: 15px; color: var(--text-muted);
  font-family: 'DM Mono', monospace; margin-top: 6px;
}

.timer-pb .pb-val { color: var(--teal); font-weight: 500; }
.timer-pb .pb-star { color: var(--gold); }

.drill-note {
  background: rgba(240,180,41,0.06);
  border: 1px solid rgba(240,180,41,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px; margin-top: 12px;
  font-size: 15px; color: rgba(240,180,41,0.8);
  line-height: 1.6;
  font-family: 'Outfit','DM Mono',sans-serif;
}

/* ─── SHARED NAV LINKS ────────────────────────────────────────── */
.nav-links {
  display: flex; align-items: center; gap: 4px;
}

.nav-link {
  font-size: 15px; padding: 6px 14px; border-radius: 20px;
  color: var(--text-muted); text-decoration: none;
  font-family: 'DM Mono', monospace;
  transition: all 0.14s; letter-spacing: 0.04em;
}

.nav-link:hover { background: var(--surface-mid); color: var(--text); }
.nav-link.active { background: rgba(26,111,196,0.15); color: var(--steel-light); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .inner-hero { padding: 90px 16px 32px; }
  .inner-body { padding: 24px 16px 60px; }
  .drill-header-btn { padding: 14px 16px; }
  .drill-body { padding: 0 16px 16px; }
  .timer-readout { font-size: 36px; }
  .drill-pb-pill { display: none; }
}

/* ─── Nav links (checklist / drills) ─────────────────────────── */
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 15px; color: rgba(255,255,255,0.55);
  text-decoration: none; padding: 5px 14px;
  border-radius: 20px; border: 0.5px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.02em;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.nav-link.active { color: #fff; background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}
