/* Success Tutoring Checks: same brand tokens and fonts as games.successtutoring.com (src/assets/css/site.css). Mobile first. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/nunito-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'); size-adjust: 101.2%; ascent-override: 99.8%; descent-override: 34.9%; line-gap-override: 0%; }
:root {
  --brand: #2b59c3; --brand-dark: #1d3f94; --brand-soft: #e8eeff;
  --accent: #ff8a1f; --accent-dark: #d96a00;
  --ok: #17a36b; --ok-soft: #dff7ec; --mid: #c27c00; --mid-soft: #fff4dc; --low: #b4235a; --low-soft: #fde8ef;
  --ink: #1b2340; --ink-soft: #4a5578; --line: #dfe4f2; --bg: #f6f8ff; --card: #fff;
  --radius: 18px; --shadow: 0 6px 24px rgba(27, 35, 64, .08);
  --font: 'Nunito', 'Nunito Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo small { display: block; font-weight: 700; font-size: .72rem; color: var(--ink-soft); }
.foot { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.foot p { margin: 0 0 .4em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 var(--accent-dark); transition: transform .08s ease, box-shadow .08s ease; min-height: 48px; }
.btn:hover { filter: brightness(1.05); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-big { font-size: 1.1rem; padding: 14px 28px; width: 100%; }
.btn-ghost { background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.eyebrow { font-weight: 900; color: var(--brand); margin-bottom: .4em; }
.lead { font-size: 1.25rem; font-weight: 700; }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 10px; }

/* Landing */
.hero { padding: 28px 0 8px; }
.hero .wrap { display: grid; gap: 20px; }
.hero .mascot { width: 120px; margin: 0 auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 6px; font-weight: 700; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.start h2 { margin-bottom: 12px; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.field > span, .field legend { display: block; font-weight: 800; margin-bottom: 6px; }
.field em { font-weight: 400; font-style: normal; color: var(--ink-soft); }
input, select { font: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--brand); outline: none; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: 6px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 9px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; cursor: pointer; background: #fff; }
.pill input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); }
.resume { margin-bottom: 16px; }
.how { margin-top: 24px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.strand-list { display: grid; gap: 12px; margin: 16px 0 24px; }
.faq { background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--line); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.cards { display: grid; gap: 14px; margin-bottom: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.card.live { border: 3px solid var(--brand); }
.card.soon { opacity: .75; }
.card-emoji { font-size: 2rem; }
.card-title { font-weight: 900; font-size: 1.2rem; }
.card .btn { margin-top: 6px; align-self: flex-start; }

/* The check */
.app { padding: 20px 0 8px; min-height: 60vh; }
.child .mascot { width: 110px; display: block; margin: 0 auto 10px; }
.mascot.small { width: 64px; display: block; margin: 0 auto 6px; }
.qwrap { max-width: 640px; }
.progress { height: 12px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.qcount { font-weight: 800; color: var(--ink-soft); margin: 10px 0 6px; font-size: .9rem; }
.prompt { font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 800; }
.prompt b { font-weight: 900; color: var(--brand-dark); white-space: nowrap; }
.visual { display: flex; justify-content: center; margin: 4px 0 16px; }
.q-svg { max-height: 200px; width: auto; max-width: 100%; height: auto; }
.visual .q-svg { min-width: 120px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choices.pics { grid-template-columns: 1fr; }
.choice { font: inherit; font-size: 1.25rem; font-weight: 900; min-height: 64px; padding: 10px; border: 3px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); cursor: pointer; }
.choice .q-svg { max-height: 90px; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }
.answer-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 16px; }
.num-in { font-size: 1.6rem; font-weight: 900; text-align: center; max-width: 220px; }
.unit { font-weight: 900; font-size: 1.2rem; }
.qnav { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qnav .btn-big { width: 100%; }
.cheer { min-height: 1.5em; text-align: center; font-weight: 800; color: var(--ok); }
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; font-weight: 900; margin: 0 2px; }
.fr span:first-child { border-bottom: 2px solid currentColor; padding: 0 3px; }

/* Results */
.results { max-width: 980px; }
.verdict { border-radius: var(--radius); padding: 20px; margin-bottom: 18px; background: var(--ok-soft); }
.verdict.tone-mid { background: var(--mid-soft); }
.verdict.tone-low { background: var(--low-soft); }
.verdict h1 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); margin: 10px 0 8px; }
.verdict p { margin: 0; font-size: 1.05rem; }
.verdict-chip { display: inline-block; font-weight: 900; background: #fff; border-radius: 999px; padding: 4px 12px; color: var(--ok); }
.tone-mid .verdict-chip { color: var(--mid); }
.tone-low .verdict-chip { color: var(--low); }
.locked-wrap { position: relative; margin-bottom: 18px; }
.locked { background: #fff; border-radius: var(--radius); padding: 16px; filter: blur(3px); user-select: none; }
.locked-wrap .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.locked-wrap .lock { font-weight: 900; font-size: 1.1rem; }
.locked-wrap .lock::before { content: ''; }
.lock { text-shadow: 0 0 8px #fff, 0 0 2px #fff; }
.lrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 8px 0; font-weight: 800; }
.lbar { flex: 0 0 40%; height: 12px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.lbar i { display: block; height: 100%; background: var(--brand); }
.gate h2 { margin-bottom: 6px; }
.field > .phone, .field > .find { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.dial { font-weight: 900; padding: 0 4px; }
.find .btn { flex: none; }
.centres { margin: -4px 0 12px; }
.centre { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.centre input, .consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 12px; }
.err { color: var(--low); font-weight: 800; min-height: 1em; }
.cols { display: grid; gap: 20px; }
.strand { background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.strand-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.strand-name { font-weight: 900; }
.chip { font-size: .85rem; font-weight: 900; border-radius: 999px; padding: 2px 10px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.st-building .chip { background: var(--mid-soft); color: var(--mid); }
.st-gap .chip { background: var(--low-soft); color: var(--low); }
.bar { height: 10px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.st-building .bar i { background: #e8a800; }
.st-gap .bar i { background: var(--low); }
.strand p { margin: 0; }
.tip { margin-top: 8px !important; font-size: .92rem; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.book { border: 3px solid var(--brand); position: relative; }
.book h2 { font-size: 1.25rem; }
.book.booked { border-color: var(--ok); }
.centre-name { margin: 0 0 2px; }
.days, .times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.day, .time { font: inherit; font-weight: 800; padding: 8px 12px; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.day.on, .time.on { border-color: var(--brand); background: var(--brand-soft); }
.when { font-weight: 900; font-size: 1.15rem; margin: 6px 0 10px; }
.secondary { display: grid; gap: 8px; margin-top: 12px; }
.prose { max-width: 760px; }

/* Review page */
.review h2 { margin-top: 36px; }
.rv-cur { border-collapse: collapse; font-size: .85rem; margin: 6px 0 12px; background: #fff; }
.rv-cur th, .rv-cur td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.verify { background: var(--mid-soft); color: var(--mid); font-weight: 900; border-radius: 6px; padding: 0 6px; font-size: .8rem; }
.rv-item { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); break-inside: avoid; }
.rv-item h4 { margin: 0 0 8px; }
.rv-samples { display: grid; gap: 10px; }
.rv-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .9rem; }
.rv-q .q-svg { max-height: 100px; }
.rv-choices { margin: 6px 0; padding-left: 20px; }
.rv-choices li.ok { font-weight: 900; color: var(--ok); }
.rv-choices .q-svg { max-height: 50px; }
.rv-ans, .rv-exp { margin: 4px 0; }
.rv-sign { display: flex; gap: 8px; align-items: center; font-weight: 800; margin-top: 8px; }
.rv-sign input { width: 20px; height: 20px; min-height: 0; }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero:not(.check-hero) .wrap { grid-template-columns: 1fr auto; }
  .hero .mascot { width: 160px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .strand-list { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .col-side { position: sticky; top: 16px; }
  .rv-samples { grid-template-columns: repeat(3, 1fr); }
  .choices.pics { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .rv-sign input { display: none; } body { background: #fff; } .rv-item { box-shadow: none; border: 1px solid #ccc; } }

/* SEO landing pages */
.trust { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; color: var(--ink-soft); }
.trust strong { color: var(--ink); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; font-size: .85rem; color: var(--ink-soft); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.year-grid { display: grid; gap: 14px; margin-bottom: 20px; }
.year-col p { margin: 0 0 6px; }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.year-chips a { display: inline-block; padding: 8px 14px; background: #fff; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); }
.year-chips a:hover { border-color: var(--brand); }
.areas { display: grid; gap: 12px; margin-bottom: 18px; }
.area { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.area h3 { margin-bottom: 4px; }
.area ul { margin: 6px 0; padding-left: 20px; }
.samples { display: grid; gap: 12px; margin-bottom: 24px; }
.sample { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.sample-q { font-weight: 800; font-size: 1.1rem; }
.sample .visual .q-svg { max-height: 140px; }
.sample-choices { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sample-choices li { border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; font-weight: 800; }
.sample-choices .q-svg { max-height: 50px; }
.sample summary { cursor: pointer; font-weight: 800; color: var(--brand); }
.year-links { line-height: 2; }
@media (min-width: 760px) {
  .year-grid { grid-template-columns: repeat(3, 1fr); }
  .areas, .samples { grid-template-columns: 1fr 1fr; }
}
.timer { height: 8px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; margin: 8px 0 0; }
.timer span { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 999px; transition: width .1s linear; }
.timer span.low { background: var(--low); }
.timed .timer { margin-bottom: 18px; }
.timed .prompt { font-size: clamp(2.2rem, 11vw, 3.4rem); text-align: center; margin: 10px 0 18px; }
.timed .num-in { font-size: 2.2rem; }
.share, .next-check { margin-top: 16px; }
.next-check { border: 2px solid var(--accent); }
.next-check .eyebrow { margin-bottom: 2px; }
.jump { margin: 0 0 18px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 30; }
.sticky-cta .btn { width: 100%; }
.results { padding-bottom: 72px; }
@media (min-width: 760px) { .jump, .sticky-cta { display: none; } .results { padding-bottom: 0; } }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/andika-latin-400-normal.woff2') format('woff2'); }
/* Reading Check: the passage, in Andika (designed for beginning readers) */
.passage { background: #fffdf5; border: 2px solid #f1e3b5; border-radius: 16px; padding: 16px 18px; margin: 4px 0 16px; font-family: 'Andika', var(--font); font-size: 1.12rem; line-height: 1.7; }
.passage h3 { font-family: var(--font); margin-bottom: 6px; }
.passage p { margin: 0 0 .7em; }
.passage-meta { font-family: var(--font); font-size: .82rem !important; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.reading-level { background: #fff; border: 3px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin: -6px 0 18px; }
.rl-big { font-size: 1.6rem; font-weight: 900; margin: 0 0 4px; }

/* Spelling & Grammar: the sentence a question is about, in the reading font so letter shapes are clear. */
.prompt .sentence { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card, #fff); border: 2px solid #f0e3b8; font-family: 'Andika', var(--font); font-weight: 400; font-size: 1.15em; line-height: 1.45; }

/* Parent guides */
.guide .prose { max-width: 760px; }
.guide .prose h2 { margin-top: 1.6em; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table.chart { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; }
table.chart th, table.chart td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6e9f2; vertical-align: top; }
table.chart th { background: #eef2fc; font-weight: 800; white-space: nowrap; }
.guide-cta { margin-top: 28px; }
.year-cards { display: grid; gap: 10px; margin: 12px 0; }
.year-card { background: #fff; border: 1px solid #e6e9f2; border-radius: 12px; padding: 12px 14px; }
.year-card p { margin: 0; }
.yc-years { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 800; margin-bottom: 6px !important; }
