/* QuickStart Exams — Real Estate License Prep */
/* Design System: Navy #1E3A5F + Gold #F59E0B */

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

:root {
  --navy: #1E3A5F;
  --navy-dark: #142840;
  --navy-light: #2a4f7c;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --gold-light: #FCD34D;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --green: #059669;
  --green-light: #D1FAE5;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

/* ─── LAYOUT ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: var(--white); }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* ─── NAV ─── */
nav {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--gray-200); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 0.875rem !important;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--navy) !important; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.15rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-200);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ─── SECTION HEADERS ─── */
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 2px solid var(--gray-200);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.1), var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: super; }
.pricing-price .period { font-size: 1rem; font-weight: 400; color: var(--gray-600); }
.pricing-features { list-style: none; margin: 1.5rem 0 2rem; }
.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--green); font-weight: 700; font-size: 1.1rem; }
.pricing-features .dash { color: var(--gray-400); }

/* ─── STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num {
  width: 60px;
  height: 60px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}
.step h3 { margin-bottom: 0.5rem; color: var(--navy); }
.step p { color: var(--gray-600); font-size: 0.95rem; }

/* ─── STAKES ─── */
.stakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stake-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.stake-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stake-label { font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.stake-desc { font-size: 0.875rem; color: var(--gray-600); }

/* ─── GUARANTEE ─── */
.guarantee {
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 700px;
  margin: 3rem auto 0;
}
.guarantee-icon { font-size: 3rem; flex-shrink: 0; }
.guarantee h3 { color: var(--green); margin-bottom: 0.25rem; }
.guarantee p { margin: 0; color: var(--gray-600); font-size: 0.95rem; }

/* ─── QUIZ STYLES ─── */
.quiz-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.quiz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quiz-title { font-size: 1.1rem; font-weight: 700; }
.quiz-meta { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; color: var(--gray-300); }
.timer {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: monospace;
  min-width: 90px;
  text-align: center;
}
.timer.warning { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.4); color: #FCA5A5; }

.quiz-progress-bar { height: 4px; background: var(--gray-200); }
.quiz-progress-fill { height: 100%; background: var(--gold); transition: width 0.3s; }

.quiz-body { padding: 2.5rem 0; }
.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}
.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.question-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.domain-badge {
  font-size: 0.75rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}
.question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.choices { display: flex; flex-direction: column; gap: 0.75rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  font-size: 0.95rem;
  text-align: left;
  width: 100%;
  font-family: var(--font);
}
.choice:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--gray-50);
}
.choice.selected { border-color: var(--navy); background: #EFF6FF; }
.choice.correct { border-color: var(--green); background: var(--green-light); }
.choice.incorrect { border-color: var(--red); background: var(--red-light); }
.choice-letter {
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: var(--gray-600);
}
.choice.correct .choice-letter { background: var(--green); color: white; }
.choice.incorrect .choice-letter { background: var(--red); color: white; }
.choice.selected:not(.correct):not(.incorrect) .choice-letter { background: var(--navy); color: white; }

.explanation {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  display: none;
}
.explanation.show { display: block; }
.explanation strong { color: var(--navy); }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.question-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 400px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background 0.2s;
  cursor: pointer;
}
.dot.answered { background: var(--navy); }
.dot.correct { background: var(--green); }
.dot.incorrect { background: var(--red); }
.dot.current { box-shadow: 0 0 0 2px var(--gold); }

/* ─── RESULTS ─── */
.results-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}
.score-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0%, transparent 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: var(--white);
  border-radius: 50%;
}
.score-num {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.result-stat {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem;
}
.result-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.result-stat-label { font-size: 0.8rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── STUDY GUIDE ─── */
.study-nav {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 1.5rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.study-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.study-content { padding: 2.5rem; max-width: 800px; }
.study-nav h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 1rem; font-weight: 700; }
.study-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
  transition: all 0.15s;
}
.study-nav-link:hover { background: var(--gray-100); color: var(--navy); }
.study-nav-link.active { background: var(--navy); color: var(--white); font-weight: 600; }

.domain-section { margin-bottom: 4rem; }
.domain-section h2 {
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}
.term { margin-bottom: 1.5rem; }
.term dt {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.term dd { color: var(--gray-600); font-size: 0.95rem; margin-left: 0; }
.key-rule {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.key-rule strong { color: var(--navy); }
.tip-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.tip-box::before { content: '💡 '; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  color: var(--gray-400);
  padding: 3rem 0;
  margin-top: 0;
}
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.875rem; color: var(--gray-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: var(--gray-600); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .study-layout { grid-template-columns: 1fr; }
  .study-nav { display: none; }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .guarantee { flex-direction: column; text-align: center; }
  footer .container { flex-direction: column; text-align: center; }
  .quiz-header-inner { flex-wrap: wrap; }
  .question-dots { display: none; }
}

/* ─── UTILITIES ─── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── STRIPE PLACEHOLDER ─── */
.stripe-btn {
  background: #635BFF;
  color: white;
  padding: 1.1rem 3rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99,91,255,0.35);
  font-family: var(--font);
  text-decoration: none;
}
.stripe-btn:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,91,255,0.45);
}
.stripe-lock { font-size: 1rem; }

/* ─── FREE QUIZ GATE ─── */
.free-limit-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}
.free-limit-banner h2 { margin-bottom: 1rem; }
.free-limit-banner p { color: var(--gray-300); margin-bottom: 1.5rem; }
