:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #536071;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --blue-soft: #dbeafe;
  --blue-pale: #eff6ff;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --line: #dbe2ec;
  --paper: #ffffff;
  --wash: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }
a:focus-visible, summary:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; }

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 18px auto 0;
  padding: 12px 16px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 30px rgba(37, 99, 235, .08);
}
.brand { color: var(--blue); font-size: 20px; font-weight: 750; }
.nav-links, .footer-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.nav-links a:hover, .footer a:hover { opacity: .62; }
.button {
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}
.button:hover { transform: translateY(-2px); }
.nav .button { min-height: 43px; border-radius: 99px; }
.button.secondary { color: var(--blue); background: white; border: 1px solid #93c5fd; box-shadow: none; }

.hero-wrap { overflow: hidden; background: linear-gradient(180deg, var(--blue-pale), white); }
.hero {
  width: min(1080px, calc(100% - 40px));
  min-height: 560px;
  margin: 0 auto;
  padding: 90px 0 100px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
}
.eyebrow, .section-label { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow::before { width: 9px; height: 9px; content: ""; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(37,99,235,.14); }
h1 { margin: 0; font-size: clamp(48px, 6vw, 74px); line-height: .99; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.hero-copy > p { max-width: 650px; margin: 27px 0 30px; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-card { padding: 30px; position: relative; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 24px 70px rgba(30,64,175,.16); }
.hero-card::before { width: 300px; height: 300px; position: absolute; z-index: -1; top: -55px; right: -75px; content: ""; border-radius: 50%; background: var(--blue-soft); }
.hero-card h2 { margin: 8px 0 18px; font-size: 25px; letter-spacing: -.03em; }
.mini-list { display: grid; gap: 10px; }
.mini-row { padding: 14px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.mini-row b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--blue); font-size: 11px; }
.mini-row strong { font-size: 13px; }
.mini-row span { color: var(--muted); font-size: 11px; }

.section { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 96px 0; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading-wide { max-width: none; }
.section-heading-wide h2 { font-size: clamp(36px, 4.3vw, 50px); white-space: nowrap; }
.section h2 { margin: 12px 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading > p { margin: 0; font-size: 17px; }
.wash { background: var(--wash); }
.blue { color: white; background: var(--blue-dark); }
.blue p { color: #dbeafe; }
.blue .section-label { color: #93c5fd; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.card.accent { background: var(--blue-pale); border-color: #bfdbfe; }
.card-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--blue); font-size: 12px; font-weight: 850; }
.card h3 { margin: 24px 0 8px; font-size: 22px; letter-spacing: -.025em; }
.card p { margin: 0; font-size: 14px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.flow-step { min-height: 185px; padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.07); }
.flow-step b { color: #93c5fd; font-size: 11px; letter-spacing: .1em; }
.flow-step h3 { margin: 28px 0 8px; font-size: 18px; }
.flow-step p { margin: 0; font-size: 13px; }

.question-stack { display: grid; gap: 24px; }
.question-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(30,64,175,.07); }
.question-top { min-height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; background: var(--blue-dark); }
.question-top strong { font-size: 13px; }
.question-top span { color: #bfdbfe; font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.question-body { padding: 30px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; }
.passage { padding: 22px; border-radius: 13px; background: var(--wash); color: #384457; font-family: Georgia, serif; font-size: 15px; line-height: 1.8; }
.passage svg { width: 100%; height: auto; display: block; margin-top: 18px; }
.prompt { margin: 0 0 20px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.55; }
.choices { display: grid; gap: 9px; }
.choice { padding: 11px 13px; position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 10px; color: #3f4b5b; background: white; font-size: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.choice:hover { border-color: #93c5fd; background: #f8fbff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 3px solid #60a5fa; outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); box-shadow: 0 0 0 1px var(--blue); }
.choice b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 11px; }
.choice.correct { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 1px #16a34a; }
.choice.correct b { color: white; background: #16a34a; }
.choice.incorrect { border-color: #dc2626; background: #fef2f2; box-shadow: 0 0 0 1px #dc2626; }
.choice.incorrect b { color: white; background: #dc2626; }
.choice.locked { cursor: default; }
.question-actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.check-answer { min-height: 42px; padding: 0 18px; box-shadow: none; cursor: pointer; }
.check-answer:disabled { cursor: default; opacity: .65; transform: none; }
.answer-feedback { margin: 0; font-size: 13px; font-weight: 800; }
.answer-feedback.needs-answer { color: #b45309; }
.answer-feedback.correct { color: #15803d; }
.answer-feedback.incorrect { color: #b91c1c; }
.answer-explanation { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--wash); }
.answer-explanation[hidden] { display: none; }
.answer-explanation p { margin: 0; font-size: 13px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.prose h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.025em; }
.prose p { margin-top: 0; }
.fact-list { display: grid; gap: 12px; }
.fact { padding: 19px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); }
.fact b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--blue); }
.fact strong, .fact span { display: block; }
.fact strong { margin-bottom: 4px; font-size: 14px; }
.fact span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.final-cta { padding: 92px 20px; text-align: center; background: var(--blue-pale); }
.final-cta h2 { margin: 12px 0 25px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.05em; }
.final-cta p { max-width: 650px; margin: 0 auto 28px; }
.footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: #737c89; font-size: 11px; line-height: 1.6; }
.footer small a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-card { max-width: 620px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 620px) {
  .nav { width: calc(100% - 24px); min-height: 62px; margin-top: 10px; padding-left: 15px; }
  .nav .button { min-height: 38px; padding: 0 13px; font-size: 11px; }
  .hero, .section, .footer { width: calc(100% - 30px); }
  .hero { padding: 62px 0 76px; gap: 50px; }
  h1 { font-size: 48px; }
  .hero-copy > p { font-size: 16px; }
  .section { padding: 72px 0; }
  .card-grid, .flow { grid-template-columns: 1fr; }
  .question-body { padding: 20px; grid-template-columns: 1fr; gap: 22px; }
  .section-heading-wide h2 { font-size: min(28px, 4.7vw); white-space: nowrap; }
  .footer { grid-template-columns: 1fr; }
  .footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
