@font-face {
  font-family: Nunito;
  src: url('/assets/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: Fredoka;
  src: url('/assets/fonts/fredoka-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  font-family: Nunito, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  color: #30334b;
  background: #fcf9f2;
  --ink: #30334b;
  --muted: #6b6b80;
  --line: #e7e1ef;
  --purple: #7550be;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 16px; background: white; z-index: 10; }
.skip-link:focus { transform: none; }

.topbar { border-bottom: 1px solid var(--line); background: #fff; }
.topbar-inner { width: min(100% - 48px, 1040px); margin: auto; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 450 25px Fredoka, sans-serif; letter-spacing: -.5px; }
.brand img { width: 35px; height: 35px; transform: rotate(-5deg); }
.brand sup { font: 750 9px Nunito, sans-serif; vertical-align: top; margin-left: 2px; }
.signin-link { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; text-decoration: none; }
.signin-link:hover { color: var(--purple); }
.wrap { width: min(100% - 40px, 760px); margin: auto; }
.hero { display: grid; gap: 18px; padding-top: 32px; }
.hero-copy { text-align: center; padding-bottom: 4px; }
.hero h1 { font: 450 40px/1.12 Fredoka, sans-serif; letter-spacing: -.9px; margin-bottom: 10px; }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero-description { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 0; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-actions .button { font-size: 17px; }
.button.secondary { background: #fff; color: var(--purple); border: 1px solid #cbbce0; box-shadow: 0 3px 0 #e8deef; }
.button.secondary:hover { background: #f5effb; }
.sample-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.sample-save-link { color: var(--purple); font-size: 16px; font-weight: 800; }
.sample-storage-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
@media (max-width: 420px) { .hero-actions { flex-direction: column; } .sample-actions { align-items: stretch; flex-direction: column; } }

/* Show the payoff at a glance; detail is available on request. */
.progress-preview { border: 1px solid var(--line); border-radius: 20px; background: #f5f0fb; padding: 22px 24px 10px; }
.preview-intro { margin-bottom: 20px; }
.preview-intro p { font: 450 29px/1.2 Fredoka, sans-serif; margin: 8px 0 0; }
.preview-intro em { font-style: normal; color: var(--purple); }
.preview-overview { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; gap: 18px; }
.preview-answer-stat, .preview-score-stat { display: flex; flex-direction: column; }
.preview-answer-stat { border-left: 1px solid #ddd1ea; padding-left: 12px; }
.preview-label { font-size: 16px; font-weight: 750; line-height: 1.4; }
.preview-example { display: inline-block; font-size: 14px; font-weight: 750; color: var(--muted); }
.preview-answer-count { display: flex; align-items: center; font: 450 46px/1.05 Fredoka, sans-serif; min-height: 82px; color: var(--purple); font-variant-numeric: tabular-nums; }
.preview-score-slot { min-height: 82px; display: flex; align-items: center; }
.preview-score-value { white-space: nowrap; font: 450 68px/1.15 Fredoka, sans-serif; color: var(--purple); font-variant-numeric: tabular-nums; }
.preview-score-value span { font-size: .65em; }
.preview-score-value.is-pending { white-space: normal; font: 650 16px/1.4 Nunito, sans-serif; color: var(--muted); }
.preview-demo { margin-top: 4px; }
.preview-score-track { height: 9px; position: relative; background: #e6deef; border-radius: 20px; overflow: hidden; }
.preview-score-band { position: absolute; left: var(--range-start); width: var(--range-width); height: 100%; background: #9574cc; border-radius: inherit; }
.preview-actions { position: relative; margin-top: 5px; }
.preview-motion-control { position: absolute; top: 0; right: -5px; min-height: 44px; min-width: 90px; padding: 5px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--purple); font-size: 16px; font-weight: 750; }
.preview-motion-control:hover { background: #ede5f8; }
.preview-explanation > summary { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 100px); min-height: 44px; font-size: 16px; color: var(--muted); list-style: none; cursor: pointer; border-radius: 4px; }
.preview-explanation > summary::-webkit-details-marker { display: none; }
.preview-explanation > summary:hover { color: var(--purple); }
.preview-chevron { color: var(--muted); }
.preview-explanation[open] .preview-chevron { transform: rotate(180deg); }
.preview-details { border-top: 1px solid var(--line); padding: 17px 0 9px; }
.preview-details > p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 18px; }
.preview-diagnostic-story { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 22px; align-items: center; margin: 22px 0 12px; }
.preview-map-section { min-width: 0; }
.preview-map-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 3px; align-items: center; max-width: 240px; margin: 0 auto; }
.preview-map { display: block; width: 100%; height: auto; }
.preview-map-ring, .preview-map-spoke { fill: none; stroke: #ddd3ec; stroke-width: 1; }
.preview-map-spoke { opacity: .7; }
.preview-map-rim { fill: none; stroke: var(--subject); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.preview-map-band { fill: var(--purple); opacity: .22; }
.preview-map-shape { fill: #7550be15; stroke: var(--purple); stroke-width: 1.8; stroke-linejoin: round; }
.preview-map-dot { fill: var(--purple); stroke: #f5f0fb; stroke-width: 1.2; }
.preview-map-highlight { fill: none; stroke: var(--subject); stroke-width: 1.4; opacity: 0; }
.preview-map-highlight.is-selected { opacity: 1; }
.has-topic-evidence .preview-map-rim.is-selected { stroke-width: 5; opacity: 1; }
.has-topic-evidence .preview-map-band.is-selected { fill: var(--subject); opacity: .3; }
.has-topic-evidence .preview-map-dot.is-selected { fill: var(--subject); }
.preview-map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 7px; font-size: 14px; color: var(--muted); }
.preview-map-legend > span, .preview-map-legend > button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 5px; }
.preview-map-legend > button { font-size: inherit; color: inherit; text-align: left; background: transparent; border: 0; border-radius: 8px; }
.preview-map-legend > button:hover { background: #ebe2f4; }
.preview-map-legend i { width: 7px; height: 7px; background: var(--subject); border-radius: 50%; }
.preview-map-legend > .preview-selected-subject { font-weight: 850; color: var(--subject); background: #ffffffa8; }
.preview-topic-scenes { display: grid; min-width: 0; }
.preview-topic-detail { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; position: relative; padding: 16px; background: #ffffffed; border: 1px solid #e5dbea; border-radius: 15px; box-shadow: 0 5px 18px #65417505; opacity: 0; visibility: hidden; transform: translateX(8px); }
.preview-topic-detail.is-current { opacity: 1; visibility: visible; transform: none; }
.has-topic-evidence .preview-topic-detail { border-color: color-mix(in srgb, var(--subject) 30%, white); box-shadow: 0 5px 18px #6541750a; }
.preview-topic-heading { display: flex; gap: 7px; justify-content: space-between; align-items: center; }
.preview-topic-heading h3 { font-size: 22px; line-height: 1.4; margin: 0; color: var(--subject); }
.preview-topic-caption { font-size: 14px; color: var(--muted); margin: 3px 0 14px; }
.preview-detail-row + .preview-detail-row { margin-top: 12px; }
.preview-detail-label { display: grid; grid-template-columns: minmax(0,1fr) 96px; gap: 10px; align-items: center; font-size: 16px; line-height: 1.4; }
.preview-detail-label > span { font-weight: 750; }
.preview-detail-value { font-size: 18px; font-weight: 800; line-height: 26px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.preview-detail-value.is-pending { font-size: 14px; }
.preview-detail-track { position: relative; height: 9px; margin-top: 6px; background: #eee9f3; border-radius: 10px; overflow: hidden; }
.preview-detail-band { position: absolute; left: var(--range-start); width: var(--range-width); height: 100%; border-radius: inherit; background: #a084cf; }
.preview-detail-signal { display: block; min-height: 21px; margin-top: 5px; font-size: 14px; font-weight: 750; color: var(--muted); opacity: 0; transform: translateY(3px); }
.has-guidance .preview-detail-signal { opacity: 1; transform: none; }
.has-guidance .is-focus .preview-detail-value, .has-guidance .is-focus .preview-detail-signal { color: #97532f; }
.has-guidance .is-focus .preview-detail-band { background: #b16b40; }
.has-guidance .is-strength .preview-detail-value, .has-guidance .is-strength .preview-detail-signal { color: #28735e; }
.has-guidance .is-strength .preview-detail-band { background: #36816b; }
.preview-details > .preview-disclaimer { font-size: 14px; margin: 20px 0 0; }
[data-subject="Math"] { --subject: #a6503c; }
[data-subject="Science"] { --subject: #267662; }
[data-subject="Reading"] { --subject: #3c6ea9; }
[data-subject="English"] { --subject: #7652b4; }

.sample-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; scroll-margin-top: 20px; min-width: 0; }
.sample-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.sample-kicker { font-size: 12px; font-weight: 800; color: var(--subject); }
.sample-count { font-size: 11px; color: var(--muted); }
.sample-card h2 { font-size: 18px; font-weight: 650; line-height: 1.55; margin: 0 0 20px; }
.sample-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 9px; }
.sample-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; font-size: 15px; cursor: pointer; }
.sample-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sample-choice:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 3px; }
.sample-choice:has(input:checked:enabled) { border-color: var(--purple); background: #f8f4ff; }
.sample-choice:hover:has(input:enabled) { border-color: #aa8edc; }
.sample-letter { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; }
.sample-choice:has(input:checked:enabled) .sample-letter { background: var(--purple); color: #fff; border-color: var(--purple); }
.sample-choice.is-correct { background: #eff8f1; border-color: #297460; }
.sample-choice.is-incorrect { background: #fff7e8; border-color: #876329; }
.sample-choice.is-correct .sample-letter { background: #297460; color: #fff; border-color: #297460; }
.sample-choice.is-incorrect .sample-letter { background: #876329; color: #fff; border-color: #876329; }
.sample-choice:has(input:disabled) { cursor: default; }
.answer-mark { margin-left: auto; font-weight: 800; color: #297460; }
.is-incorrect .answer-mark { color: #876329; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; border: 0; border-radius: 11px; padding: 11px 20px; font-size: 14px; font-weight: 800; text-decoration: none; }
.primary { background: var(--purple); color: #fff; box-shadow: 0 2px 0 #593992; }
.primary:hover:not(:disabled) { background: #6540b0; }
.primary:disabled { background: #b4a2d9; box-shadow: 0 2px 0 #a591c8; }
.sample-submit { display: flex; gap: 16px; align-items: center; margin-top: 21px; }
.sample-submit > span { color: var(--muted); font-size: 12px; }
.sample-footnote { font-size: 11px; color: var(--muted); margin: 16px 0 0; }
.sample-passage { border-left: 3px solid #b7cce6; background: #f5f8fc; margin: 0 0 20px; padding: 12px 15px; font-size: 14px; line-height: 1.8; }
.sample-feedback { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.sample-feedback h3 { font: 450 23px Fredoka, sans-serif; margin-bottom: 14px; }
.sample-feedback p { font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
.sample-takeaway { border-left: 3px solid #c5b2e6; padding-left: 14px; color: var(--muted); }
.sample-takeaway strong { display: block; color: var(--ink); }
.sample-feedback .correct-answer { font-size: 13px; }
.sample-finish { margin-top: 24px; padding: 20px; border-radius: 14px; background: #f8f5fd; }
.sample-finish h3 { font-size: 22px; }
.sample-access { display: block; margin-top: 15px; font-size: 12px; font-weight: 750; }
.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 23px 0 25px; color: var(--muted); font-size: 10px; text-align: center; }
.footer p { flex-basis: 100%; margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

@media (min-width: 581px) and (max-width: 799px) {
  .preview-label { min-height: 2.8em; }
}
@media (max-width: 580px) {
  .topbar-inner { width: calc(100% - 36px); min-height: 60px; }
  .brand { font-size: 23px; }
  .brand img { width: 32px; height: 32px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 18px; gap: 12px; }
  .hero h1 { font-size: 33px; letter-spacing: -.6px; margin-bottom: 9px; }
  .hero-description { font-size: 15px; max-width: 340px; margin-inline: auto; }
  .progress-preview { padding: 17px 14px 8px; }
  .preview-intro p { font-size: 26px; }
  .preview-overview { gap: 12px; }
  .preview-label { font-size: 15px; min-height: 2.8em; }
  .preview-answer-label { min-height: 4.2em; }
  .preview-answer-stat { padding-left: 12px; }
  .preview-answer-count { font-size: 40px; min-height: 60px; }
  .preview-score-slot { min-height: 60px; }
  .preview-score-value { font-size: 50px; }
  .preview-score-value.is-pending { font-size: 15px; }
  .preview-diagnostic-story { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 12px; }
  .preview-map-layout { grid-template-columns: minmax(0,165px) 110px; gap: 12px; max-width: 287px; }
  .preview-map-legend { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .preview-topic-detail { padding: 13px 14px; }
  .preview-topic-caption { margin-bottom: 12px; }
  .preview-detail-label > span { max-width: none; }
  .sample-card { padding: 20px 18px; border-radius: 17px; }
  .sample-heading { margin-bottom: 14px; }
  .sample-card h2 { font-size: 17px; margin-bottom: 17px; }
  .sample-choice { min-height: 49px; font-size: 14px; padding: 10px 11px; }
  .sample-submit { margin-top: 19px; gap: 13px; }
  .button { font-size: 13px; padding: 11px 17px; }
  .sample-submit > span { font-size: 11px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 30px; }
  .preview-intro p { font-size: 24px; }
  .preview-label { min-height: 4.2em; }
  .preview-score-value { font-size: 42px; }
  .preview-answer-count { font-size: 36px; }
  .preview-detail-label { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .preview-detail-value { font-size: 18px; min-height: 26px; text-align: left; }
  .sample-card { padding-inline: 15px; }
  .sample-choice { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .preview-score-band { transition: opacity 600ms ease; }
  .preview-detail-band { transition: left 1200ms ease, width 1200ms ease, opacity 600ms ease, background-color 900ms ease; }
  .preview-topic-detail { transition: opacity 500ms ease, transform 500ms ease, border-color 900ms ease, box-shadow 900ms ease; }
  .preview-detail-signal { transition: opacity 900ms ease, transform 900ms ease; }
  .preview-map-rim, .preview-map-band, .preview-map-dot, .preview-map-highlight { transition: stroke-width 900ms ease, fill 900ms ease, opacity 900ms ease; }
}
.progress-preview.is-resetting, .progress-preview.is-resetting * { transition: none !important; }
