/* QuickStart Exams — Design System */
/* Navy #1E3A5F | Gold #F59E0B */

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

:root {
  --navy:    #1E3A5F;
  --navy-dk: #142840;
  --navy-lt: #2A5082;
  --gold:    #F59E0B;
  --gold-dk: #D97706;
  --gold-lt: #FCD34D;
  --white:   #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-400:#9CA3AF;
  --gray-600:#4B5563;
  --gray-800:#1F2937;
  --red:     #DC2626;
  --green:   #16A34A;
  --radius:  8px;
  --shadow:  0 4px 24px rgba(30,58,95,.15);
  --font:    'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

/* ── Typography ── */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ── Nav ── */
nav {
  background: var(--navy-dk);
  padding: .9rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: var(--gold); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.3px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--gray-200); text-decoration: none; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dk);
}
.btn-gold:hover { background: var(--gold-dk); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-lt); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy-dk); }

.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.15rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .875rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 60%, var(--navy-lt) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.4);
  color: var(--gold-lt);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-200);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-warning {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.4);
  color: #FCA5A5;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--gold); display: block; }
.hero-stat .lbl { font-size: .8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }

/* ── Stakes Section ── */
.stakes { background: var(--gray-50); }
.stakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stake-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  text-align: center;
}
.stake-card .icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.stake-card .amount { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin-bottom: .4rem; }
.stake-card p { color: var(--gray-600); font-size: .95rem; }
.stake-card.danger { border-top-color: var(--red); }
.stake-card.danger .amount { color: var(--red); }
.stake-card.success { border-top-color: var(--green); }
.stake-card.success .amount { color: var(--green); }

/* ── Free vs Paid ── */
.compare { background: var(--white); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.compare-card {
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--gray-200);
}
.compare-card.featured {
  border-color: var(--gold);
  background: #FFFBEB;
  position: relative;
}
.compare-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dk);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  white-space: nowrap;
}
.compare-card h3 { margin-bottom: .5rem; }
.compare-card .price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: .75rem 0; }
.compare-card .price span { font-size: 1rem; font-weight: 400; color: var(--gray-600); }
.feature-list { list-style: none; margin: 1.25rem 0; }
.feature-list li { padding: .4rem 0; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.feature-list li.no::before { content: '✕'; color: var(--red); }
.feature-list li.no { color: var(--gray-400); text-decoration: line-through; }

/* ── How it works ── */
.how { background: var(--navy); color: var(--white); }
.how h2 { color: var(--white); text-align: center; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--gold);
  color: var(--navy-dk);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { color: var(--gold-lt); margin-bottom: .5rem; }
.step p { color: var(--gray-200); font-size: .95rem; }

/* ── CTA / Stripe ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dk), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: var(--gray-200); max-width: 540px; margin: 0 auto 2rem; }
.stripe-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--gold);
  color: var(--navy-dk);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 1.1rem 3rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.stripe-btn:hover { background: var(--gold-dk); transform: translateY(-2px); }
.stripe-badge {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--gray-400);
}
.stripe-badge svg { width: 16px; height: 16px; fill: var(--gray-400); }

/* ── Guarantee ── */
.guarantee {
  background: var(--gray-50);
  text-align: center;
  padding: 4rem 0;
}
.guarantee-box {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: 600px;
  box-shadow: var(--shadow);
}
.guarantee-icon { font-size: 3rem; flex-shrink: 0; }
.guarantee-box h3 { color: var(--green); margin-bottom: .4rem; }
.guarantee-box p { color: var(--gray-600); font-size: .95rem; }

/* ── Footer ── */
footer {
  background: var(--navy-dk);
  color: var(--gray-400);
  padding: 2.5rem 0;
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { color: var(--gold); font-weight: 800; font-size: 1.05rem; }
footer a { color: var(--gray-400); text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: .5rem; }
.section-header h2 { color: var(--navy); }
.section-sub { text-align: center; color: var(--gray-600); max-width: 580px; margin: .5rem auto 0; }

/* ══════════════════════════════════════════
   QUIZ STYLES
══════════════════════════════════════════ */
.quiz-page { background: var(--gray-50); min-height: 100vh; }

.quiz-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.quiz-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.quiz-title { font-weight: 800; font-size: 1.05rem; }
.quiz-meta { display: flex; gap: 1.5rem; align-items: center; }
.timer {
  font-size: 1.3rem; font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--gold);
  background: rgba(0,0,0,.3);
  padding: .3rem .8rem;
  border-radius: 6px;
}
.timer.warning { color: #FCA5A5; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.progress-text { font-size: .9rem; color: var(--gray-200); }

.progress-bar { height: 4px; background: rgba(255,255,255,.2); }
.progress-fill { height: 100%; background: var(--gold); transition: width .3s; }

.quiz-body { padding: 2rem 0 4rem; }
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

/* Question card */
.question-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.q-domain {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dk);
  background: #FEF3C7;
  padding: .25rem .7rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1rem;
}
.q-num { font-size: .85rem; color: var(--gray-400); margin-bottom: .5rem; }
.q-text { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.5; }
.choices { display: flex; flex-direction: column; gap: .7rem; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: .97rem;
  line-height: 1.45;
}
.choice:hover { border-color: var(--navy-lt); background: #EFF6FF; }
.choice.selected { border-color: var(--navy); background: #EFF6FF; }
.choice.correct { border-color: var(--green); background: #DCFCE7; }
.choice.incorrect { border-color: var(--red); background: #FEE2E2; }
.choice-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.choice.selected .choice-letter { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice.correct .choice-letter { background: var(--green); border-color: var(--green); color: var(--white); }
.choice.incorrect .choice-letter { background: var(--red); border-color: var(--red); color: var(--white); }

.explanation {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #EFF6FF;
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
  display: none;
}
.explanation.visible { display: block; }
.explanation strong { color: var(--navy); }

.q-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

/* Sidebar */
.quiz-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.sidebar-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: .9rem; }
.q-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.q-dot {
  width: 30px; height: 30px;
  border-radius: 4px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s;
  color: var(--gray-600);
}
.q-dot.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.q-dot.answered { background: var(--navy-lt); color: var(--white); border-color: var(--navy-lt); }
.q-dot.correct { background: var(--green); color: var(--white); border-color: var(--green); }
.q-dot.incorrect { background: var(--red); color: var(--white); border-color: var(--red); }
.q-dot:hover { transform: scale(1.1); }

/* Score screen */
.score-screen {
  display: none;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}
.score-screen.visible { display: block; }
.score-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800;
  border: 8px solid var(--gray-200);
}
.score-circle.pass { border-color: var(--green); }
.score-circle.fail { border-color: var(--red); }
.score-circle .pct { font-size: 2.5rem; line-height: 1; }
.score-circle .lbl { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }
.score-verdict { font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; }
.score-verdict.pass { color: var(--green); }
.score-verdict.fail { color: var(--red); }
.score-breakdown { display: flex; justify-content: center; gap: 2rem; margin: 1.5rem 0; flex-wrap: wrap; }
.breakdown-item { text-align: center; }
.breakdown-item .val { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.breakdown-item .key { font-size: .8rem; color: var(--gray-400); }

/* ══════════════════════════════════════════
   STUDY GUIDE STYLES
══════════════════════════════════════════ */
.study-page {}

.study-hero {
  background: linear-gradient(135deg, var(--navy-dk), var(--navy));
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.study-hero h1 { color: var(--white); }
.study-hero p { color: var(--gray-200); margin-top: .75rem; }

.study-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  padding: .75rem 0;
  position: sticky; top: 0; z-index: 40;
}
.study-nav .container { display: flex; gap: 1rem; overflow-x: auto; flex-wrap: nowrap; }
.study-nav a {
  white-space: nowrap;
  padding: .45rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  transition: all .15s;
}
.study-nav a:hover,
.study-nav a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.study-content { padding: 3rem 0 5rem; }
.study-domain {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.domain-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.domain-num {
  background: var(--gold);
  color: var(--navy-dk);
  font-weight: 800;
  font-size: .85rem;
  padding: .25rem .7rem;
  border-radius: 100px;
  white-space: nowrap;
}
.domain-header h2 { color: var(--white); font-size: 1.3rem; }
.domain-pct { margin-left: auto; font-size: .85rem; color: var(--gold-lt); white-space: nowrap; }

.domain-body { padding: 2rem; }
.topic { margin-bottom: 2rem; }
.topic h3 { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: .4rem; margin-bottom: 1rem; display: inline-block; }
.topic ul,
.topic ol { padding-left: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.topic li { font-size: .95rem; line-height: 1.55; }
.topic p { font-size: .95rem; line-height: 1.65; margin-bottom: .75rem; }

.tip-box {
  background: #FEF3C7;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: .9rem;
}
.tip-box strong { color: var(--gold-dk); }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { background: var(--navy); color: var(--white); padding: .6rem 1rem; text-align: left; }
td { padding: .55rem 1rem; border-bottom: 1px solid var(--gray-200); }
tr:nth-child(even) td { background: var(--gray-50); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-sidebar { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
  .hero-stats { gap: 1.5rem; }
  .guarantee-box { flex-direction: column; text-align: center; }
  footer .container { flex-direction: column; text-align: center; }
  .domain-header { flex-wrap: wrap; }
}
