:root {
  --ap-navy: #06132e;
  --ap-blue: #142b68;
  --ap-royal: #214bc2;
  --ap-gold: #d7b35e;
  --ap-cream: #fff3cf;
  --ap-paper: #f5f2e9;
  --ap-ink: #0b1b3b;
  --ap-muted: #657086;
}

.ap-prep-page { color: var(--ap-ink); background: #fff; }
.ap-main { overflow: clip; }
.ap-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.ap-rail {
  position: sticky;
  z-index: 44;
  top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
  background: rgba(5,17,43,.89);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.ap-rail strong { font-size: 12px; font-weight: 780; letter-spacing: .14em; }
.ap-rail > div { display: flex; gap: clamp(24px, 3vw, 44px); }
.ap-rail a { color: rgba(255,255,255,.68); font-size: 13px; font-weight: 650; transition: color 180ms ease; }
.ap-rail a:hover { color: #fff; }

.ap-hero {
  position: relative;
  min-height: calc(100svh - 138px);
  padding: clamp(76px, 10vh, 124px) 0 52px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(52,89,202,.45), transparent 30%),
    radial-gradient(circle at 10% 83%, rgba(215,179,94,.15), transparent 28%),
    linear-gradient(145deg, #030b1e, #0a1b48 58%, #102c75);
}

.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.ap-ring {
  position: absolute;
  border: 1px solid rgba(215,179,94,.22);
  border-radius: 50%;
  pointer-events: none;
  animation: ap-ring-drift 16s ease-in-out infinite alternate;
}

.ap-ring-one { top: 5%; left: -22vw; width: 48vw; aspect-ratio: 1; box-shadow: 0 0 0 70px rgba(215,179,94,.025), 0 0 0 140px rgba(215,179,94,.02); }
.ap-ring-two { right: -16vw; bottom: -42%; width: 50vw; aspect-ratio: 1; border-color: rgba(99,146,255,.18); animation-direction: alternate-reverse; }

.ap-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(52px, 8vw, 120px);
}

.ap-kicker { margin: 0 0 22px; color: #9cc8ff; font-size: 11px; font-weight: 790; letter-spacing: .2em; }
.ap-hero h1 { display: grid; justify-items: start; gap: 14px; margin: 0; letter-spacing: -.07em; }
.ap-hero h1 > span:first-child { font-size: clamp(52px, 5.7vw, 84px); font-weight: 760; line-height: .98; white-space: nowrap; }
.ap-target-score { display: inline-flex; align-items: flex-end; gap: 12px; min-width: 0; color: var(--ap-cream); line-height: .75; }
.ap-hero h1 .ap-target-score strong { font-size: clamp(116px, 12vw, 176px); font-weight: 760; line-height: .75; text-shadow: 0 0 44px rgba(215,179,94,.14); }
.ap-hero h1 .ap-target-score em { padding-bottom: .08em; font-size: clamp(50px, 5.2vw, 76px); font-style: normal; font-weight: 760; line-height: 1; }
.ap-hero h2 { margin: 40px 0 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.ap-lead { max-width: 720px; margin: 30px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.75; letter-spacing: -.02em; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 730;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.ap-button:hover { transform: translateY(-2px); }
.ap-button-gold { color: #07152f; background: linear-gradient(120deg, #fff0bd, #d5ad50); box-shadow: 0 15px 38px rgba(215,179,94,.2); }
.ap-button-ghost { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.07); backdrop-filter: blur(14px); }

.ap-score-card {
  position: relative;
  min-height: 540px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-top: 4px solid var(--ap-gold);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
  box-shadow: 0 46px 100px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(26px);
}

.ap-score-header { display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 770; letter-spacing: .15em; }
.ap-score-five { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; margin-top: 44px; }
.ap-score-five small { grid-column: 1 / -1; color: var(--ap-gold); font-size: 10px; font-weight: 780; letter-spacing: .18em; }
.ap-score-five strong { font-size: 190px; line-height: .86; letter-spacing: -.08em; }
.ap-score-five span { padding-bottom: 16px; color: rgba(255,255,255,.5); font-size: 20px; }
.ap-class-times { position: relative; z-index: 1; display: grid; gap: 0; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.13); }
.ap-class-times article { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.ap-class-times span { color: rgba(255,255,255,.52); font-size: 10px; font-weight: 760; letter-spacing: .12em; }
.ap-class-times strong { font-size: 14px; }
.ap-score-card > p { margin: 18px 0 0; color: var(--ap-cream); font-size: 13px; font-weight: 680; }
.ap-score-logo { position: absolute; right: -30px; bottom: -36px; display: grid; width: 160px; aspect-ratio: 1; overflow: hidden; place-items: center; border-radius: 50%; opacity: .16; background: #071a42; filter: drop-shadow(0 0 40px rgba(82,130,255,.8)); }
.ap-score-logo img { width: 124%; height: 124%; max-width: none; object-fit: cover; }

.ap-benefit-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vh, 108px);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.ap-benefit-strip article { display: grid; gap: 8px; padding: 25px clamp(16px, 2.6vw, 34px); border-right: 1px solid rgba(255,255,255,.14); }
.ap-benefit-strip article:first-child { padding-left: 0; }
.ap-benefit-strip article:last-child { border-right: 0; }
.ap-benefit-strip strong { color: var(--ap-cream); font-size: clamp(30px, 3vw, 44px); letter-spacing: -.055em; }
.ap-benefit-strip span { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 640; }

.ap-section { padding: clamp(104px, 13vw, 180px) 0; }
.ap-heading { display: grid; grid-template-columns: 1fr minmax(300px,.68fr); align-items: end; gap: clamp(50px, 9vw, 130px); margin-bottom: clamp(58px, 8vw, 96px); }
.ap-heading h2 { margin: 0; font-size: clamp(48px, 6.2vw, 88px); line-height: .98; letter-spacing: -.062em; }
.ap-heading h2 em { color: var(--ap-royal); font-style: normal; }
.ap-heading > p { margin: 0; color: var(--ap-muted); font-size: 17px; line-height: 1.82; letter-spacing: -.02em; }

.ap-curriculum { background: #f7f8fb; }
.ap-stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(11,27,59,.14); border-bottom: 1px solid rgba(11,27,59,.14); }
.ap-stage-grid article { position: relative; min-height: 480px; padding: 38px; overflow: hidden; border-right: 1px solid rgba(11,27,59,.14); }
.ap-stage-grid article:first-child { padding-left: 0; }
.ap-stage-grid article:last-child { border-right: 0; }
.ap-stage-grid article > span { color: var(--ap-gold); font-family: Georgia, serif; font-size: 58px; font-weight: 700; }
.ap-stage-grid small { display: inline-flex; margin-left: 12px; padding: 7px 12px; border-radius: 999px; color: #51431e; font-size: 11px; font-weight: 720; background: #f7e7ba; }
.ap-stage-grid h3 { margin: 110px 0 20px; font-size: clamp(33px, 3vw, 44px); letter-spacing: -.05em; }
.ap-stage-grid p { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.75; }
.ap-stage-grid article > div { position: absolute; right: 28px; bottom: 26px; color: rgba(11,27,59,.15); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.ap-stage-grid .ap-stage-featured { color: #fff; background: linear-gradient(145deg, #0a1b43, #163c9d); box-shadow: 0 26px 70px rgba(20,61,158,.17); }
.ap-stage-featured p { color: rgba(255,255,255,.65); }
.ap-stage-grid .ap-stage-featured > div { color: rgba(255,255,255,.2); }

.ap-courses { color: #fff; background: var(--ap-navy); }
.ap-heading-light .ap-kicker { color: #96c7ff; }
.ap-heading-light h2 em { color: var(--ap-cream); }
.ap-heading-light > p { color: rgba(255,255,255,.58); }
.ap-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ap-course-card { padding: clamp(28px, 4vw, 48px); border-top: 5px solid var(--ap-gold); border-radius: 28px; color: var(--ap-ink); background: var(--ap-paper); box-shadow: 0 32px 70px rgba(0,0,0,.2); }
.ap-course-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.ap-course-top > div:first-child > span { color: #9c7b31; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.ap-course-top h3 { margin: 12px 0 12px; font-family: Georgia, serif; font-size: clamp(36px, 4vw, 52px); letter-spacing: -.045em; }
.ap-course-top p { display: inline-flex; margin: 0; padding: 7px 13px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; background: var(--ap-ink); }
.ap-exam-date { display: grid; align-content: start; justify-items: end; }
.ap-exam-date small { color: #aa8b46; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.ap-exam-date strong { color: #a47c28; font-family: Georgia, serif; font-size: 50px; line-height: 1.05; }
.ap-exam-date span { color: var(--ap-muted); font-size: 10px; font-weight: 650; }
.ap-format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
.ap-format-grid > div { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(11,27,59,.14); background: rgba(255,255,255,.66); }
.ap-format-grid strong { font-family: Georgia, serif; font-size: 54px; line-height: 1; }
.ap-format-grid span { font-size: 13px; font-weight: 760; line-height: 1.35; }
.ap-format-grid small { color: var(--ap-muted); font-size: 10px; font-weight: 600; }
.ap-format-bar { display: flex; gap: 3px; height: 16px; margin-top: 16px; }
.ap-format-bar span { width: var(--ap-width); background: var(--ap-ink); }
.ap-format-bar span:last-child { background: var(--ap-gold); }
.ap-format-bar i { width: 2px; background: var(--ap-paper); }
.ap-format-equal span { width: 50%; }
.ap-topic-block { margin-top: 36px; }
.ap-topic-block > small { color: #a88945; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ap-topic-block > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ap-topic-block span { padding: 7px 11px; border-radius: 999px; color: #433715; font-size: 11px; font-weight: 680; background: #f6e5b5; }
.ap-course-note { margin: 32px 0 0; padding-top: 20px; border-top: 1px dashed rgba(11,27,59,.2); color: #4f5b70; font-size: 12px; line-height: 1.75; }

.ap-system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ap-system-grid article { min-height: 350px; padding: 34px; border: 1px solid rgba(11,27,59,.12); border-radius: 26px; background: #fff; box-shadow: 0 24px 70px rgba(11,27,59,.07); }
.ap-system-grid span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 760; background: linear-gradient(145deg, var(--ap-royal), var(--ap-navy)); }
.ap-system-grid h3 { margin: 110px 0 18px; font-size: 30px; line-height: 1.12; letter-spacing: -.05em; }
.ap-system-grid p { margin: 0; color: var(--ap-muted); font-size: 14px; line-height: 1.75; }

.ap-instructor { padding: clamp(100px, 12vw, 160px) 0; color: #fff; background: linear-gradient(145deg, #06132e, #102d70); }
.ap-instructor-grid { display: grid; grid-template-columns: .7fr 1.2fr; align-items: center; gap: clamp(60px, 10vw, 150px); }
.ap-instructor-mark { display: grid; justify-items: center; gap: 24px; }
.ap-instructor-mark > div { display: grid; width: min(280px, 70vw); aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--ap-cream); font-family: Georgia, serif; font-size: 72px; letter-spacing: -.06em; background: radial-gradient(circle at 50% 35%, rgba(74,122,255,.42), transparent 62%); box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.018); }
.ap-instructor-mark span { color: rgba(255,255,255,.4); font-size: 9px; font-weight: 760; letter-spacing: .16em; }
.ap-instructor-copy h2 { margin: 0; font-size: clamp(58px, 7vw, 96px); letter-spacing: -.065em; }
.ap-instructor-copy h2 small { font-size: .35em; font-weight: 600; letter-spacing: -.03em; }
.ap-instructor-copy > p:not(.ap-kicker) { max-width: 680px; margin: 30px 0 0; color: rgba(255,255,255,.64); font-size: 17px; line-height: 1.8; }
.ap-instructor-copy ul { display: grid; gap: 0; margin: 38px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.ap-instructor-copy li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82); font-size: 14px; }

.ap-fit { padding: clamp(100px, 12vw, 160px) 0; background: #f7f8fb; }
.ap-fit h2 { margin: 0; font-size: clamp(50px, 6vw, 84px); line-height: .98; letter-spacing: -.06em; }
.ap-fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid rgba(11,27,59,.14); border-bottom: 1px solid rgba(11,27,59,.14); }
.ap-fit-grid article { min-height: 210px; padding: 28px; border-right: 1px solid rgba(11,27,59,.14); }
.ap-fit-grid article:first-child { padding-left: 0; }
.ap-fit-grid article:last-child { border-right: 0; }
.ap-fit-grid span { color: var(--ap-royal); font-size: 11px; font-weight: 760; }
.ap-fit-grid strong { display: block; margin-top: 80px; font-size: 20px; line-height: 1.35; letter-spacing: -.035em; }

.ap-final { position: relative; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(145deg, #020916, #0a2156); }
.ap-final .ap-shell { position: relative; z-index: 1; }
.ap-final p { margin: 0 0 22px; color: var(--ap-gold); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.ap-final h2 { margin: 0; font-size: clamp(50px, 7vw, 96px); line-height: .98; letter-spacing: -.065em; }
.ap-final .ap-shell > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.ap-final small { display: block; margin-top: 24px; color: rgba(255,255,255,.46); font-size: 12px; }
.ap-final-glow { position: absolute; top: 0; left: 50%; width: 72vw; height: 72vw; transform: translate(-50%, -38%); border-radius: 50%; background: radial-gradient(circle, rgba(42,88,208,.3), transparent 63%); }

@keyframes ap-ring-drift { to { transform: translate3d(28px, -20px, 0) scale(1.04); } }

@media (max-width: 1000px) {
  .ap-hero-grid { grid-template-columns: 1fr; }
  .ap-score-card { min-height: auto; }
  .ap-benefit-strip { grid-template-columns: repeat(2, 1fr); }
  .ap-benefit-strip article:nth-child(2) { border-right: 0; }
  .ap-benefit-strip article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .ap-heading, .ap-instructor-grid { grid-template-columns: 1fr; }
  .ap-course-grid { grid-template-columns: 1fr; }
  .ap-system-grid { grid-template-columns: 1fr; }
  .ap-system-grid article { min-height: 300px; }
  .ap-fit-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-fit-grid article:nth-child(2) { border-right: 0; }
  .ap-fit-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(11,27,59,.14); }
}

@media (max-width: 720px) {
  .ap-shell { width: min(100% - 32px, 1240px); }
  .ap-rail { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 76px; padding: 13px 16px; }
  .ap-rail > div { width: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .ap-rail a { flex: 0 0 auto; }
  .ap-hero { padding-top: 68px; }
  .ap-hero h1 > span:first-child { font-size: 52px; }
  .ap-hero h1 .ap-target-score { gap: 8px; }
  .ap-hero h1 .ap-target-score strong { font-size: 128px; }
  .ap-hero h1 .ap-target-score em { font-size: 58px; }
  .ap-hero h2 { font-size: 42px; }
  .ap-score-card { padding: 22px; border-radius: 27px; }
  .ap-score-five strong { font-size: 140px; }
  .ap-benefit-strip article { min-height: 112px; padding: 22px 14px; }
  .ap-benefit-strip article:first-child { padding-left: 14px; }
  .ap-stage-grid { grid-template-columns: 1fr; }
  .ap-stage-grid article, .ap-stage-grid article:first-child { min-height: 350px; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(11,27,59,.14); }
  .ap-stage-grid .ap-stage-featured { margin-inline: -16px; padding-inline: 16px; }
  .ap-stage-grid h3 { margin-top: 70px; }
  .ap-course-card { padding: 25px 20px; }
  .ap-course-top { grid-template-columns: 1fr; }
  .ap-exam-date { justify-items: start; }
  .ap-format-grid { grid-template-columns: 1fr; }
  .ap-instructor-mark > div { width: 220px; }
  .ap-fit-grid { grid-template-columns: 1fr; }
  .ap-fit-grid article, .ap-fit-grid article:first-child { min-height: 165px; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(11,27,59,.14); }
  .ap-fit-grid strong { margin-top: 52px; }
  .ap-final h2 { font-size: clamp(48px, 14vw, 70px); }
}

@media (prefers-reduced-motion: reduce) {
  .ap-ring { animation: none; }
  .ap-button { transition: none; }
}
