:root {
  --navy: #0E1A32; --navy2: #20345F; --navy3: #2B447A;
  --yellow: #FFD23F; --pink: #E0457B; --teal: #2BA59A; --red: #E8484A;
  --cream: #F7F4EE; --paper: #FFFFFF; --ink: #0E1A32; --muted: #56617A; --line: #E6E1D7;
  --radius: 16px; --shadow: 0 10px 30px rgba(14, 26, 50, .10); --shadow-lg: 0 24px 60px rgba(14, 26, 50, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-weight: 900; font-size: clamp(2.1rem, 6vw, 3.7rem); }
h2 { font-weight: 800; font-size: clamp(1.55rem, 3.6vw, 2.3rem); }
h3 { font-weight: 800; font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
/* yellow is hard to see on white and cream, so light areas get a navy ring */
main :focus-visible { outline-color: var(--navy2); }
main .hero :focus-visible, main .cta-band :focus-visible { outline-color: var(--yellow); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; border-radius: 999px; padding: 11px 20px; font-size: .98rem; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 0 #C9A11F; }
.btn-primary:hover { box-shadow: 0 8px 0 #C9A11F; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #C9A11F; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-yt { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-disabled { background: #E9E5DC; color: #8A8F9C; cursor: default; }
.btn-disabled:hover { transform: none; }
.btn-ghost-d { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost-d:hover { box-shadow: inset 0 0 0 2px var(--navy); }

/* header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 900; letter-spacing: .01em; font-size: 1.12rem; white-space: nowrap; }
.brand b { font-weight: 900; } .brand i { font-style: normal; color: var(--yellow); }
.btn-sub { box-shadow: none; padding: 9px 14px; font-size: .95rem; }
/* browse bar: always visible, scrolls sideways on phones */
.catbar { background: #15244A; border-top: 1px solid rgba(255,255,255,.07); }
.cat-in { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-top: 9px; padding-bottom: 9px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-in::-webkit-scrollbar { display: none; }
.cat { flex: none; color: #DCE3F2; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.07); white-space: nowrap; }
.cat:hover, .cat[aria-current] { color: var(--navy); background: #fff; }
.cat small { font-weight: 600; font-size: .72rem; opacity: .7; margin-left: 2px; }
.cat-free { background: var(--yellow); color: var(--navy); }
.cat-free:hover, .cat-free[aria-current] { background: #fff; }
.cat-soon { opacity: .55; }
.cat-label { flex: none; color: var(--yellow); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; white-space: nowrap; }
@media (max-width: 760px) {
  .top-in { min-height: 58px; }
  .brand { font-size: 1rem; }
  .btn-sub { padding: 8px 11px; font-size: .88rem; }
}

/* hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, var(--navy3) 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 48px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--yellow); }
.hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 88px; } .hero-in { grid-template-columns: 1.02fr 1fr; gap: 48px; } }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--yellow); display: block; }
.lead { font-size: 1.15rem; color: #C9D3E8; max-width: 38em; }
.page-head .lead, .sec .lead { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; color: var(--pink); margin-bottom: .8em; }
.eyebrow-y { color: var(--yellow); }
.eyebrow-p { color: var(--pink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-media .now { margin: 14px 2px 0; color: #AFBBD6; font-size: .95rem; }
.hero-media .now a { color: #fff; font-weight: 700; }
.hero-media { transform: rotate(-1.2deg); }
.hero-media .player { box-shadow: 0 30px 70px rgba(0,0,0,.45); }

/* player */
.player { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); transition: transform .15s; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.player:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-soon { cursor: default; }
.player.is-soon img { filter: saturate(.35) brightness(.55); }

/* sections */
.sec { padding: 56px 0; }
.sec-tight { padding: 32px 0 56px; }
.sec-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.more { font-weight: 800; text-decoration: none; color: var(--navy2); white-space: nowrap; }
.more:hover { color: var(--pink); }
.sub { margin: 40px 0 14px; }

.how { padding: 56px 0 8px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px 24px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 900; font-size: 1.25rem; margin-bottom: 14px; color: #fff; }
.n1 { background: var(--pink); } .n2 { background: var(--teal); } .n3 { background: var(--yellow); color: var(--navy); }

/* cards */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card[hidden] { display: none; }
.thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--navy); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur, .soon { position: absolute; right: 10px; bottom: 10px; background: rgba(14,26,50,.88); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 8px; border-radius: 6px; }
.soon { background: var(--yellow); color: var(--navy); font-weight: 800; }
.soon.big { right: 50%; bottom: 50%; transform: translate(50%, 50%); font-size: 1.05rem; padding: 10px 18px; border-radius: 999px; }
.is-soon .thumb img { filter: saturate(.45) brightness(.8); }
.card-body { padding: 16px 18px 18px; }
.tool-num { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.card h2, .card h3 { font-size: 1.22rem; margin: 0 0 6px; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card a:hover { color: var(--pink); }
.hook { color: var(--muted); margin: 0; font-size: .97rem; }

/* contests + grades */
.contests { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .contests { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contests { grid-template-columns: repeat(5, 1fr); } }
.contest { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); padding: 22px 20px; color: #fff; min-height: 180px; transition: transform .18s; position: relative; overflow: hidden; }
.contest:hover { transform: translateY(-4px); }
.contest h3 { font-size: 1.25rem; }
.contest p { opacity: .9; font-size: .95rem; flex: 1; }
.contest span { font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.18); align-self: flex-start; padding: 4px 10px; border-radius: 999px; }
.c-kangaroo { background: var(--pink); }
.c-noetic { background: var(--teal); }
.c-mathcounts { background: var(--navy2); }
.c-amc { background: #6B5BD2; }
.c-olympiad { background: #E58A2E; }
.contest.is-soon { opacity: .82; }
.grades { display: flex; flex-wrap: wrap; gap: 10px; }
.grade { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; border: 1.5px dashed #CFC8B9; color: #8A8F9C; text-decoration: none; min-width: 112px; }
.grade b { color: inherit; font-size: 1.05rem; }
.grade span { font-size: .82rem; }
.grade.on { border: 0; background: var(--navy); color: #fff; }
.grade.on span { color: var(--yellow); font-weight: 700; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 56px 0; overflow: hidden; }
.cta-in { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.15fr .85fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D3E8; max-width: 36em; }
.cta-band .eyebrow { color: var(--yellow); }
.paper { display: block; max-width: 380px; justify-self: center; transform: rotate(3deg); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; transition: transform .2s; }
.paper:hover { transform: rotate(1deg) translateY(-4px); }
.cta-band .paper { max-height: 380px; }
.cta-band .paper img { object-fit: cover; object-position: top; }

/* page heads */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* filters */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 18px; }
.f-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-label { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-width: 70px; }
.f { font: inherit; font-weight: 700; font-size: .92rem; min-height: 44px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.f:hover:not(:disabled) { border-color: var(--navy2); }
.f[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.f:disabled { cursor: default; }
.f-note { color: var(--muted); font-size: .88rem; }
.filters select { font: inherit; font-size: 1rem; min-height: 44px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); max-width: 100%; }
.f-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-weight: 600; font-size: .95rem; margin-left: 6px; cursor: pointer; }
.f-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.f-search { flex-wrap: nowrap; }
.f-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #CFC8B9; background: #fff; color: var(--ink); }
.f-search input:focus { border-color: var(--navy2); }
.f-go { flex: none; background: var(--navy); color: #fff; border-color: var(--navy); }
.f-go:hover { background: var(--navy2); }
@media (max-width: 520px) { .f-search .f-label { display: none; } }
.count { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.empty { background: #fff; border-radius: var(--radius); padding: 40px 24px; text-align: center; border: 1px dashed #CFC8B9; }
.empty p { color: var(--muted); }
.empty[hidden] { display: none; }
.f-empty { margin-bottom: 22px; padding: 28px 20px; }
.f-empty h2 { font-size: 1.4rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip { font-size: .8rem; font-weight: 800; text-decoration: none; padding: 4px 11px; border-radius: 999px; color: #fff; }
.chip-kangaroo { background: var(--pink); } .chip-noetic { background: var(--teal); } .chip-mathcounts { background: var(--navy2); }

/* lesson page */
.lesson { padding: 22px 0 40px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: -8px 0 8px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "\203A"; content: "\203A" / ""; margin: 0 8px; color: #A3A9B6; }
.crumbs a { color: var(--muted); display: inline-block; padding: 11px 2px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; padding: 11px 0; }
.lesson-grid { display: grid; gap: 26px; }
@media (min-width: 980px) { .lesson-grid { grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: start; } }
.lesson-side h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin-bottom: .2em; }
.lesson-hook { font-size: 1.15rem; color: var(--muted); font-weight: 500; }
.lesson-actions { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lesson-actions .btn { min-height: 44px; }
.lesson-actions .soon-note { flex-basis: 100%; }
.next-up { margin: 14px 0 0; font-weight: 600; color: var(--muted); }
.next-up a { color: var(--navy2); font-weight: 800; display: inline-block; padding: 10px 0; }
.next-up a:hover { color: var(--pink); }
.soon-note { background: #FFF6D6; border: 1px solid #F3DC85; padding: 10px 14px; border-radius: 12px; margin: 0; }
.facts { margin: 0; display: grid; gap: 12px; }
.fact { background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 6px solid var(--teal); }
.fact dt { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-weight: 600; }
.f-prob { border-left-color: var(--navy2); }
.f-trap { border-left-color: var(--red); }
.f-tool { border-left-color: var(--yellow); background: #FFFBEA; }
.also { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.pn a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 800; }
.pn a:hover { border-color: var(--navy); }
.pn small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.pn-next { text-align: right; }

/* tests */
.tests { display: grid; gap: 22px; align-items: start; }
@media (min-width: 980px) { .tests { grid-template-columns: 1fr 1fr .9fr; } }
.test-card { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.test-free { border-top: 6px solid var(--yellow); }
.test-pack { border-top: 6px solid var(--pink); }
.price { font-size: 1.1rem; color: var(--muted); }
.price b { font-size: 2rem; color: var(--ink); font-weight: 900; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.small { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.paper-lg { margin: 0; max-width: 420px; transform: rotate(2deg); }
.paper-lg figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; background: #fff; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose p { font-size: 1.08rem; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem !important; color: var(--muted); }

/* footer */
.foot { background: var(--navy); color: #C9D3E8; padding: 52px 0 26px; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a:not(.btn) { color: #C9D3E8; text-decoration: none; }
.foot a:not(.btn):hover { color: #fff; text-decoration: underline; }
.brand-foot { margin-bottom: 12px; }
.fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #8F9CBA; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .hero-media, .paper { transform: none; } }

/* single tests list (mock tests page) */
.test-singles { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); box-shadow: var(--shadow); order: 5; }
@media (min-width: 980px) { .test-singles { grid-column: 1 / -1; } }
.singles { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
@media (min-width: 700px) { .singles { grid-template-columns: 1fr 1fr; column-gap: 18px; } }
.singles li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; }
.singles li > span:first-child { flex: 1; display: flex; flex-direction: column; }
.singles small { color: var(--muted); font-size: .82rem; }
.singles em { font-style: normal; font-weight: 800; color: var(--navy); }
.soon-tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); white-space: nowrap; }
.btn-buy { padding: .45rem 1rem; font-size: .9rem; background: var(--yellow, #FFD23F); color: #0E1A32; border-radius: 999px; font-weight: 800; white-space: nowrap; text-decoration: none; }

/* search box (home hero, 404): a plain GET form to lessons/?q= */
.qform { margin: 0 0 28px; max-width: 30em; }
.qform label { display: block; font-weight: 700; margin-bottom: 8px; }
.qrow { display: flex; gap: 8px; }
.qrow input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 2px solid transparent; background: #fff; color: var(--ink); }
.qrow .btn { flex: none; min-height: 48px; box-shadow: none; }
.qrow .btn:hover { box-shadow: none; }
.hero .qform label { color: #fff; }
.page-head .qform { margin-top: 24px; }
.page-head .qrow input { border-color: #CFC8B9; }

.go { display: inline-block; padding: 10px 0 4px; font-weight: 800; color: var(--navy2); text-decoration: none; }
.go:hover { color: var(--pink); text-decoration: underline; }

/* home hero, Nov 11: one offer, one button */
.btn-wide { min-width: 240px; }
.hero-cta { align-items: center; margin: 22px 0 18px; }
.hero-alt { color: #DCE3F2; font-weight: 700; text-decoration: none; padding: 10px 2px; }
.hero-alt:hover { color: #fff; text-decoration: underline; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #C9D3E8; font-size: .92rem; font-weight: 600; }
.hero-trust li { position: relative; padding-left: 22px; }
.hero-trust li::before { content: ""; position: absolute; left: 0; top: .28em; width: 15px; height: 15px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero h1 { font-size: clamp(1.9rem, 5.4vw, 3.3rem); }
.steps .go { margin-top: 8px; }
.sec-lead { color: var(--muted); margin: -6px 0 20px; max-width: 46em; }
.sec .qform { margin: 30px 0 0; }
.sec .qrow input { border-color: #CFC8B9; }
@media (max-width: 760px) {
  .hero { padding: 26px 0 40px; }
  .hero-in { gap: 26px; }
  .hero .lead { font-size: 1.04rem; margin-bottom: 0; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 4px; margin: 20px 0 14px; }
  .hero-alt { text-align: center; }
  .hero-media { transform: none; }
  .how { padding-top: 40px; }
}

/* phones: header slides away on scroll down; free-test bar pinned to the bottom (Nov 11) */
.top { transition: transform .25s ease; }
.top-hide { transform: translateY(-100%); }
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(14,26,50,.25); border-top: 3px solid var(--yellow); transition: transform .25s ease; }
  .mcta p { flex: 1; min-width: 0; margin: 0; line-height: 1.25; }
  .mcta b { display: block; font-size: .98rem; }
  .mcta small { display: block; color: #AFBBD6; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mcta .btn { flex: none; min-height: 46px; padding: 10px 18px; box-shadow: 0 4px 0 #C9A11F; }
  .mcta-off { transform: translateY(110%); }
  .foot { padding-bottom: 110px; }
}
@media (max-width: 340px) { .mcta small { display: none; } }

/* sample pages (home, /free, mock tests): a swipe row on phones, three across on wide screens */
.samples { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: thin; }
.sample { margin: 0; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.sample a { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.sample img { width: 100%; height: auto; }
.sample figcaption { padding: 12px 14px 14px; font-size: .92rem; color: var(--muted); }
.sample figcaption b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
@media (min-width: 720px) { .samples { grid-auto-columns: 46%; } }
@media (min-width: 960px) { .samples { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; } }
.sec-cta { text-align: center; margin: 26px 0 0; }

/* FAQ */
.faq { max-width: 820px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; }
.qa summary { cursor: pointer; font-weight: 800; padding: 16px 48px 16px 18px; list-style: none; position: relative; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 800; color: var(--pink); }
.qa[open] summary::after { content: "\2212"; }
.qa p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* /free landing */
.hero-free h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }
.form-note { color: #AFBBD6; font-size: .92rem; margin: 0; max-width: 32em; }
.hero-paper { max-width: 300px; }
@media (max-width: 760px) { .hero-paper { max-width: 230px; max-height: 260px; } .hero-paper img { object-fit: cover; object-position: top; } }
.free-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .free-grid { grid-template-columns: 1fr 1fr; } }
.free-grid h2 { font-size: 1.5rem; }
.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.next-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.next-steps li b { color: var(--ink); }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: var(--yellow); font-weight: 900; display: grid; place-items: center; }

/* mock tests pricing (Nov 11) */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.plan h2 { font-size: 1.5rem; margin-bottom: .2em; }
.plan .price { margin: 0 0 14px; }
.plan .price s { color: var(--muted); font-size: 1rem; margin-left: 6px; }
.plan .ticks { flex: 1; }
.plan .btn { align-self: stretch; }
.plan-free { border-top: 6px solid var(--yellow); }
.plan-pack { border: 2px solid var(--pink); }
.ribbon { position: absolute; top: -13px; right: 18px; margin: 0; background: var(--pink); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.eyebrow-n { color: var(--navy2); }
.btn-disabled { box-shadow: none; }
.ticks-2 { margin-bottom: 28px; }
@media (min-width: 760px) { .ticks-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.singles-box { max-width: 820px; margin-bottom: 34px; }
.singles-box .singles { padding: 0 14px; margin-top: 0; }
@media (min-width: 700px) { .singles-box .singles { grid-template-columns: 1fr; } }

/* lesson pages: free test box under the lesson (Nov 11) */
.test-box { margin-top: 30px; display: grid; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.test-box h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.test-box p { color: #C9D3E8; margin: 0; }
.test-box .eyebrow { color: var(--yellow); margin-bottom: .5em; }
.test-box :focus-visible { outline-color: var(--yellow); }
@media (min-width: 820px) { .test-box { grid-template-columns: 1fr auto; padding: 28px 32px; gap: 30px; } }

/* /free grade picker (Nov 11): one page for every grade */
.hero-free { padding-bottom: 48px; }
.gpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 14px; max-width: 720px; }
@media (min-width: 620px) { .gpick { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .gpick { grid-template-columns: repeat(6, 1fr); } }
.gp { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed rgba(255,255,255,.25); color: #8F9CBA; text-decoration: none; line-height: 1.2; }
.gp b { font-size: 1.02rem; color: #C9D3E8; }
.gp span { font-size: .78rem; font-weight: 600; margin-top: 3px; }
.gp-on { border: 0; background: var(--yellow); color: var(--navy); box-shadow: 0 5px 0 #C9A11F; transition: transform .15s ease; }
.gp-on b { color: var(--navy); font-size: 1.1rem; }
.gp-on span { font-weight: 800; }
.gp-on:hover { transform: translateY(-2px); }
.ticks-3 { margin-bottom: 26px; }
@media (min-width: 820px) { .ticks-3 { grid-template-columns: repeat(3, 1fr); } }
.contests-short .contest { min-height: 120px; justify-content: space-between; }
.how h2 { margin-bottom: 0; }
@media (max-width: 819px) {
  .steps { gap: 12px; margin-top: 20px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 18px 12px; }
  .steps li .n { grid-row: span 3; margin: 0; }
  .steps .go { padding-top: 6px; }
}

/* pricing, round 3: fact chips, savings badge, compare table */
.facts-row { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; align-items: flex-start; }
.facts-row li { font-size: .82rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--navy); }
.save { display: inline-block; vertical-align: middle; margin-left: 4px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--teal); padding: 3px 9px; border-radius: 999px; }
.cmp-wrap { overflow-x: auto; margin: 0 0 8px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; }
.cmp th, .cmp td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 800; font-size: .9rem; }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--muted); }
.cmp .cmp-best { background: #FFF1F5; }
.cmp thead .cmp-best { color: var(--pink); }
.cmp tbody tr:last-child td { font-weight: 800; color: var(--ink); }
.yes { display: inline-block; width: 20px; height: 20px; vertical-align: middle; border-radius: 6px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-note { margin: 10px 0 26px; }
@media (max-width: 520px) { .cmp { font-size: .86rem; } .cmp th, .cmp td { padding: 10px 6px; } }

/* sample page viewer (dialog), round 3 */
.sample a { position: relative; }
.sample a::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/20px no-repeat; box-shadow: 0 4px 12px rgba(14,26,50,.3); }
.lb { width: min(860px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: var(--navy); color: #fff; }
.lb::backdrop { background: rgba(14,26,50,.85); }
.lb[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.lb-n { flex: 1; text-align: center; font-weight: 800; }
.lb-btn { font: inherit; font-size: 1.6rem; line-height: 1; width: 48px; height: 48px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-x { margin-left: 8px; background: var(--yellow); color: var(--navy); }
.lb-body { flex: 1; overflow: auto; padding: 0 12px 16px; }
.lb-body img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.lb-cap { color: #C9D3E8; margin: 10px 2px 0; font-size: .95rem; }
@media (min-width: 900px) { .lb { height: 94dvh; margin-top: 3dvh; border-radius: 16px; } }

/* trust strip under the home hero, round 3 (true facts only) */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-in { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
@media (min-width: 860px) { .trust-in { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; line-height: 1.25; color: var(--navy); }
.trust li::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 10px; background-color: var(--teal); background-position: center; background-repeat: no-repeat; background-size: 20px; }
.t-orig::before { background-color: var(--pink) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3C/svg%3E"); }
.t-check::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.t-qr::before { background-color: var(--navy2) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 3h7v7H3zM5 5v3h3V5zM14 3h7v7h-7zM16 5v3h3V5zM3 14h7v7H3zM5 16v3h3v-3zM14 14h3v3h-3zM18 18h3v3h-3zM18 14h3v2h-3zM14 18h2v3h-2z'/%3E%3C/svg%3E"); }
.t-yt::before { background-color: #FF0033 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7l8 5-8 5z'/%3E%3C/svg%3E"); }
.teacher-note { margin: 10px 0 0; display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #DCE3F2; font-size: .92rem; padding: 8px 14px; border-radius: 12px; }
.teacher-note b { color: var(--yellow); }
