/* =====================================================================
   All In Advising — one stylesheet for the website and the Prep Portal
   Brand: deep navy + sunshine gold · Bebas Neue (display) + Open Sans (text)
   ===================================================================== */
:root {
  --ink: #0B1F3A;          /* deep navy: text, primary surfaces */
  --midnight: #071428;     /* hero / footer */
  --gold: #F5B700;         /* sunshine gold: the one accent */
  --gold-soft: #FFF3C9;
  --paper: #F6F8FC;        /* cool page background */
  --white: #FFFFFF;
  --slate: #556178;        /* secondary text */
  --line: #DCE2EC;
  --ok: #1E8E5E; --watch: #C98A00; --risk: #D2462F; --crit: #9B1020;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --text: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 68ch;
  --r-s: 6px; --r-m: 12px; --r-l: 22px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- type scale (1.25 ratio) ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 8vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
h3 { font-size: 1.75rem; line-height: 1.05; }
h4 { font-size: 1.05rem; margin: 0 0 .35em; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--slate); }
.on-dark .lede, .on-dark p { color: #C8D2E4; }
small, .muted { color: var(--slate); }
.on-dark { color: var(--white); }

/* ---------- layout ---------- */
.wrap { width: min(1180px, 100% - 2 * var(--pad)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--pad)); margin-inline: auto; }
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.band-dark { background: var(--midnight); color: var(--white); }
.band-white { background: var(--white); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; align-items: start; } .split.even { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 20, 40, .97); color: var(--white); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; line-height: 1; }
.brand-word b { color: var(--gold); font-weight: 400; }
.nav { margin-left: auto; display: flex; gap: .25rem; align-items: center; }
.nav a { text-decoration: none; padding: .5rem .75rem; border-radius: var(--r-s); font-size: .95rem; color: #D7DFEE; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white); border-radius: var(--r-s); padding: .45rem .7rem; font: inherit; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; inset: 68px 0 auto 0; background: var(--midnight); flex-direction: column; align-items: stretch; padding: 1rem var(--pad) 1.5rem; gap: .1rem; border-top: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .nav .btn { margin: .75rem 0 0; text-align: center; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1 var(--text); padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFC61A; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #15325C; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { padding: .6rem 1rem; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.hint { font-weight: 400; color: var(--slate); font-size: .88rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-s); padding: .75rem .85rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 183, 0, .45); }
.field { margin-bottom: 1.1rem; }
.fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ink); }
.form-error { background: #FDECEA; color: #8A1C10; border-left: 4px solid var(--risk); padding: .75rem 1rem; border-radius: var(--r-s); margin-bottom: 1rem; }
.form-ok { background: #E7F6EE; color: #10553A; border-left: 4px solid var(--ok); padding: .75rem 1rem; border-radius: var(--r-s); margin-bottom: 1rem; }
.hp { position: absolute; left: -5000px; }

/* ---------- hero ---------- */
.hero { background: var(--midnight); color: var(--white); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -14vw; top: -10vw; width: 46vw; height: 46vw; border-radius: 50%; border: clamp(18px, 3vw, 44px) solid rgba(245, 183, 0, .09); pointer-events: none; }
.hero h1 { max-width: 12ch; }
.hero .lede { color: #C8D2E4; max-width: 46ch; }

/* The memorable thing: the live on-track check */
.check-card { background: var(--white); color: var(--ink); border-radius: var(--r-l); padding: clamp(1.25rem, 3vw, 2rem); position: relative; z-index: 1; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.check-card h2 { font-size: 2rem; margin-bottom: .2em; }
.scoreboard { margin-top: 1.25rem; background: var(--ink); color: var(--white); border-radius: var(--r-m); padding: 1.1rem 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.scoreboard .cell { min-width: 0; }
.scoreboard .num { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.scoreboard .lab { font-size: .78rem; color: #AFC0DA; line-height: 1.3; }
.scoreboard .verdict { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: .75rem; margin-top: .25rem; font-size: .95rem; color: #E6ECF7; }
.flip { animation: flip .5s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { from { transform: translateY(.35em); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- editorial service list ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: 1fr; gap: .25rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .service-list li { grid-template-columns: 15rem 1fr auto; align-items: baseline; } }
.service-list h3 { margin: 0; font-size: 1.9rem; }
.service-list p { margin: 0; color: var(--slate); }
.service-list a.more { font-weight: 700; white-space: nowrap; }

.audience { border-radius: var(--r-l); padding: clamp(1.5rem, 4vw, 2.5rem); }
.audience.home { background: var(--gold-soft); }
.audience.school { background: var(--white); border: 1.5px solid var(--line); }

.path { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: yr; }
@media (min-width: 820px) { .path { grid-template-columns: repeat(4, 1fr); } }
.path li { border-top: 4px solid var(--gold); padding-top: .9rem; }
.path .yr { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.path p { font-size: .97rem; color: #C8D2E4; }

.quote { font-size: 1.35rem; line-height: 1.5; max-width: 40ch; border-left: 4px solid var(--gold); padding-left: 1.25rem; }

/* ---------- tables, panels, misc ---------- */
.panel { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: clamp(1.1rem, 3vw, 1.75rem); }
.panel + .panel { margin-top: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--slate); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #E9EDF4; color: var(--ink); white-space: nowrap; }
.pill.ok { background: #DDF3E8; color: #0F5A3A; } .pill.watch { background: #FFF0C2; color: #6B4A00; }
.pill.risk { background: #FBE1DB; color: #8B2414; } .pill.crit { background: var(--crit); color: #fff; }
.callout { background: var(--gold-soft); border-radius: var(--r-m); padding: 1.1rem 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.08rem; }
.faq details p { margin: .75rem 0 0; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2rem; }
.plan { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 1.5rem; display: flex; flex-direction: column; }
.plan.featured { border: 2.5px solid var(--ink); position: relative; }
.plan.featured .tag { position: absolute; top: -.8rem; left: 1.25rem; background: var(--gold); color: var(--ink); font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.plan h3 { font-size: 1.9rem; margin: 0; }
.plan .price { font-family: var(--display); font-size: 3.2rem; line-height: 1; margin: .5rem 0 .1rem; }
.plan .per { color: var(--slate); font-size: .9rem; margin-bottom: 1rem; }
.plan ul { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; }
.plan li { margin-bottom: .35rem; font-size: .96rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: #AFC0DA; padding-block: 3.5rem 2.5rem; font-size: .95rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

/* =====================================================================
   PREP PORTAL
   ===================================================================== */
.portal-main { padding-block: 2rem 4rem; min-height: 70vh; }
.portal-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.75rem; }
.portal-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.75rem; }
.tabs a { text-decoration: none; padding: .7rem 1rem; font-weight: 600; color: var(--slate); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.test-list { display: grid; gap: .75rem; }
.test-row { display: grid; grid-template-columns: 1fr; gap: .75rem; align-items: center; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.25rem; }
@media (min-width: 760px) { .test-row { grid-template-columns: 4.5rem 1fr auto; } }
.test-row .exam { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.test-row.locked { background: #F1F4F9; }
.big-score { font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); line-height: .85; color: var(--ink); }
.meter { height: 12px; background: #E3E8F1; border-radius: 999px; overflow: hidden; position: relative; }
.meter > span { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--gold); }
.skill-row { display: grid; grid-template-columns: 1fr 120px 3.5rem; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }

/* test-taking screen: calm, distraction-free */
body.testing { background: var(--white); }
.test-bar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--white); }
.test-bar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 58px; }
.test-bar .sec { font-weight: 700; }
.timer { margin-left: auto; font-family: var(--display); font-size: 1.9rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--gold); }
.test-grid { display: grid; gap: 0; grid-template-columns: 1fr; min-height: calc(100vh - 58px - 72px); }
@media (min-width: 980px) { .test-grid.has-passage { grid-template-columns: 1fr 1fr; } }
.passage-pane { padding: 1.5rem var(--pad); border-bottom: 1px solid var(--line); white-space: pre-wrap; line-height: 1.75; font-size: 1.02rem; max-height: none; }
@media (min-width: 980px) { .passage-pane { border-bottom: 0; border-right: 1px solid var(--line); max-height: calc(100vh - 58px - 72px); overflow-y: auto; position: sticky; top: 58px; } }
.passage-pane u { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.passage-pane u.current { background: var(--gold-soft); }
.passage-pane sup { font-weight: 700; font-size: .7em; margin-left: .1em; }
.question-pane { padding: 1.5rem var(--pad) 2rem; }
.q-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--slate); font-size: .9rem; margin-bottom: .75rem; }
.q-stem { font-size: 1.12rem; white-space: pre-wrap; margin-bottom: 1.25rem; max-width: 70ch; }
.choices { display: grid; gap: .6rem; max-width: 70ch; }
.choice { display: grid; grid-template-columns: 2.1rem 1fr; gap: .75rem; align-items: start; text-align: left; font: inherit; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: .85rem 1rem; cursor: pointer; color: var(--ink); }
.choice:hover { border-color: var(--ink); }
.choice .letter { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.choice[aria-pressed="true"] { border-color: var(--ink); background: #EEF2F9; }
.choice[aria-pressed="true"] .letter { background: var(--ink); color: var(--white); }
.choice.is-right { border-color: var(--ok); background: #E9F7F0; }
.choice.is-wrong { border-color: var(--risk); background: #FDEEEA; }
.grid-input { max-width: 14rem; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.test-foot { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); z-index: 20; }
.test-foot .wrap { display: flex; gap: .75rem; align-items: center; min-height: 72px; }
.qnav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }
.qnav button { width: 2.4rem; height: 2.4rem; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--white); font: 600 .9rem var(--text); cursor: pointer; position: relative; }
.qnav button.answered { background: var(--ink); color: var(--white); border-color: var(--ink); }
.qnav button.current { outline: 3px solid var(--gold); outline-offset: 1px; }
.qnav button.flagged::after { content: ''; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--white); }
.flag-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.explain { margin-top: 1rem; background: #F3F6FB; border-left: 4px solid var(--ink); border-radius: var(--r-s); padding: 1rem 1.1rem; max-width: 70ch; }
.modal { position: fixed; inset: 0; background: rgba(7,20,40,.6); display: grid; place-items: center; padding: 1rem; z-index: 60; }
.modal > div { background: var(--white); border-radius: var(--r-l); padding: 1.75rem; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; }

/* graduation planner */
.risk-banner { border-radius: var(--r-l); padding: 1.5rem 1.75rem; color: var(--white); }
.risk-banner.on_track { background: var(--ok); } .risk-banner.watch { background: #8A6400; }
.risk-banner.at_risk { background: var(--risk); } .risk-banner.critical { background: var(--crit); }
.risk-banner .display { font-size: clamp(2.6rem, 7vw, 4rem); margin: 0; }
.req { display: grid; grid-template-columns: auto 1fr auto; gap: .25rem 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.req .dot { width: .8rem; height: .8rem; border-radius: 50%; margin-top: .35rem; }
.req .dot.on_track { background: var(--ok); } .req .dot.watch { background: var(--watch); } .req .dot.at_risk { background: var(--risk); } .req .dot.critical { background: var(--crit); }
.req .detail { grid-column: 2 / -1; color: var(--slate); font-size: .92rem; }
.actions-list { list-style: none; padding: 0; margin: 0; counter-reset: act; }
.actions-list li { counter-increment: act; position: relative; padding: .9rem 0 .9rem 3rem; border-bottom: 1px solid var(--line); }
.actions-list li::before { content: counter(act); position: absolute; left: 0; top: .8rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.actions-list .when { font-size: .85rem; color: var(--slate); font-weight: 600; }
.credit-grid { display: grid; grid-template-columns: 1fr 5.5rem 5.5rem; gap: .5rem .75rem; align-items: center; }
.credit-grid .h { font-size: .82rem; color: var(--slate); font-weight: 600; }
.credit-grid input { padding: .55rem .6rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend { font-family: var(--display); font-size: 1.8rem; margin-bottom: .5rem; padding: 0; }
.step-dots { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.step-dots span { height: 6px; flex: 1; border-radius: 999px; background: var(--line); }
.step-dots span.done { background: var(--ink); }

@media print {
  .site-header, .site-footer, .no-print, .test-foot { display: none !important; }
  body { background: #fff; }
  .risk-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.band-dark .lede, .band-dark p, .hero p { color: #C8D2E4; }
.band-dark .panel p, .band-dark .panel { color: var(--ink); }
.plans > .panel, .split > .panel, .split > div > .panel:first-child { margin-top: 0; }
.site-footer a, .site-footer li { overflow-wrap: anywhere; }
