:root {
  --navy: #0a1f3d;
  --navy-2: #102b50;
  --blue: #2e63ff;
  --gold: #ffca57;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #122038;
  --muted: #5f6e82;
  --line: #dbe2ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }

.siteHeader {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 5vw, 76px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brandMark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--gold);
}
.brand strong { display: block; font-size: 18px; letter-spacing: -.2px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 28px; color: #34445a; font-size: 14px; font-weight: 800; }
nav a:hover { color: var(--blue); }
.navButton { padding: 11px 16px; border: 1px solid #bfc9d6; border-radius: 10px; background: white; }

.hero {
  min-height: 650px;
  padding: 72px clamp(22px, 6vw, 96px) 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  align-items: center;
  gap: clamp(42px, 7vw, 108px);
  background:
    radial-gradient(circle at 85% 18%, rgba(46,99,255,.13), transparent 26%),
    radial-gradient(circle at 5% 80%, rgba(255,202,87,.22), transparent 28%),
    var(--cream);
  overflow: hidden;
}
.eyebrow { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 3px; background: currentColor; border-radius: 99px; }
.hero h1 { margin: 0; max-width: 700px; color: var(--navy); font-size: clamp(52px, 6vw, 86px); line-height: .95; letter-spacing: -.065em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.heroLead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; }
.heroActions { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.primaryButton { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 20px; border-radius: 12px; background: var(--blue); color: white; font-size: 15px; font-weight: 900; box-shadow: 0 10px 24px rgba(46,99,255,.24); transition: transform .15s ease, box-shadow .15s ease; }
.primaryButton:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(46,99,255,.3); }
.primaryButton span { font-size: 22px; }
.textLink { color: var(--navy); font-size: 14px; font-weight: 900; border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.heroFacts { display: flex; gap: 36px; margin: 42px 0 0; padding: 0; list-style: none; }
.heroFacts li { display: flex; flex-direction: column; gap: 3px; }
.heroFacts strong { color: var(--navy); font-size: 24px; }
.heroFacts span { color: var(--muted); font-size: 12px; font-weight: 700; }

.mathBoard {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  color: white;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: 0 34px 70px rgba(10,31,61,.27);
  transform: rotate(1.5deg);
}
.mathBoard::before { content: ""; position: absolute; inset: 14px -18px -18px 18px; border: 3px solid var(--gold); border-radius: 26px; z-index: -1; }
.boardTop { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #d8e5f7; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.livePill { padding: 8px 10px; border-radius: 999px; color: #14233a; background: var(--gold); font-size: 10px; }
.boardEquation { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 28px); font-size: clamp(32px, 4vw, 54px); font-weight: 900; }
.mixedNumber, .negativeMixed, .answerNumber { display: inline-flex; align-items: center; gap: .12em; }
.answerNumber { padding: .18em .28em; border-radius: 12px; background: rgba(255,202,87,.15); color: var(--gold); }
.stackedFraction { display: inline-flex; flex-direction: column; min-width: 1.05em; font-size: .72em; line-height: 1; text-align: center; vertical-align: middle; }
.stackedFraction span:first-child { border-bottom: .075em solid currentColor; padding: 0 .08em .07em; }
.stackedFraction span:last-child { padding: .07em .08em 0; }
.boardSteps { display: grid; gap: 9px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.065); color: #e5edf8; font-size: 14px; }
.boardSteps span { display: flex; align-items: center; gap: 12px; }
.boardSteps b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); font-size: 12px; }
.boardFooter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.boardFooter span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #cfe0f5; font-size: 11px; font-weight: 800; }

.reviewsSection { padding: 88px clamp(22px, 6vw, 96px); background: var(--paper); }
.sectionHeading { display: flex; justify-content: space-between; align-items: end; gap: 40px; max-width: 1320px; margin: 0 auto 34px; }
.sectionHeading h2 { margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 52px); letter-spacing: -.045em; }
.sectionHeading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.reviewCard { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 100px 1fr 230px; gap: 32px; align-items: center; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 16px 50px rgba(27,45,75,.08); }
.reviewNumber { align-self: stretch; display: grid; place-items: center; border-radius: 18px; color: var(--gold); background: var(--navy); font-size: 34px; font-weight: 900; }
.reviewLabels { display: flex; gap: 8px; flex-wrap: wrap; }
.reviewLabels span { padding: 6px 9px; border-radius: 7px; color: #33527f; background: #edf3ff; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.reviewContent h3 { margin: 15px 0 10px; color: var(--navy); font-size: 28px; letter-spacing: -.025em; }
.reviewContent > p { margin: 0; max-width: 780px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.skillList { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.skillList span { color: #34445a; font-size: 12px; font-weight: 800; }
.skillList span::before { content: "✓"; margin-right: 6px; color: var(--blue); }
.reviewAction { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.timeBadge { color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; }

.howSection { padding: 88px clamp(22px, 6vw, 96px); color: white; background: var(--navy); }
.sectionHeading.compact { align-items: start; }
.sectionHeading.compact h2 { color: white; }
.eyebrow.light { color: var(--gold); }
.howGrid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.howGrid article { padding: 30px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.14); }
.howGrid article:not(:first-child) { padding-left: 28px; }
.howGrid article:last-child { border-right: 0; }
.howGrid article > span { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.howGrid h3 { margin: 18px 0 10px; font-size: 20px; }
.howGrid p { margin: 0; color: #bdcbe0; font-size: 14px; line-height: 1.65; }

footer { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 26px clamp(22px, 6vw, 96px); background: #06162c; color: #cbd7e8; }
.footerBrand .brandMark { background: white; color: var(--navy); box-shadow: 5px 5px 0 var(--gold); }
.footerBrand strong { color: white; }
.footerBrand small { color: #9db0c9; }
footer p, footer > a { font-size: 12px; font-weight: 700; }
footer > a { color: var(--gold); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .mathBoard { max-width: 680px; width: 100%; justify-self: center; transform: none; }
  .reviewCard { grid-template-columns: 78px 1fr; }
  .reviewAction { grid-column: 2; flex-direction: row; align-items: center; }
  .howGrid { grid-template-columns: repeat(2, 1fr); }
  .howGrid article:nth-child(2) { border-right: 0; }
  .howGrid article:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 700px) {
  .siteHeader { align-items: flex-start; }
  nav a:not(.navButton) { display: none; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .heroFacts { gap: 22px; }
  .mathBoard { padding: 18px; }
  .boardEquation { gap: 10px; min-height: 150px; }
  .sectionHeading { display: block; }
  .sectionHeading > p { margin-top: 18px; }
  .reviewCard { grid-template-columns: 1fr; padding: 22px; }
  .reviewNumber { min-height: 58px; width: 72px; }
  .reviewAction { grid-column: 1; flex-direction: column; align-items: stretch; }
  .howGrid { grid-template-columns: 1fr; }
  .howGrid article, .howGrid article:not(:first-child) { padding: 25px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.14); }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primaryButton { transition: none; }
}
