/* Exponential design system — clean and credible, built for growth-minded learners
   and the parents and teachers who choose for them. Inter for calm readability,
   sticker-like subject colours, purposeful structure. */
:root {
  /* Khan-Academy-inspired: neutral ink on white, a confident blue for actions,
     green for progress and success, modest radii, calm restrained type. */
  --ink: #21242C;
  --ink-2: #4E5561;
  --ink-3: #8B909B;
  --paper: #FFFFFF;
  --lilac: #F7F8FA;
  --lilac-2: #EEF1F5;
  --line: #E3E5E8;
  --violet: #1865F2;
  --violet-d: #0E4BC4;
  --sun: #FFB100;
  --sun-d: #D98A00;
  --coral: #D92916;
  --mint: #00A60E;
  --sky: #1865F2;
  --ok: #00A60E;
  --warn: #D92916;
  --focus: #1865F2;

  --maths: #1865F2;
  --english: #D92662;
  --science: #00A60E;
  --history: #E07B00;
  --computing: #7A54E0;
  --economics: #0E9FB5;
  --test-prep: #D92916;
  --life-skills: #4E9A06;
  --partners: #7A54E0;
  --free: #8B909B;

  --r-s: 3px;
  --r-m: 4px;
  --r-l: 8px;
  --head: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; font-weight: 700; }
input, select, textarea { font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--violet); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 56ch; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- buttons: purposeful and clear ---------- */
.btn {
  --bg: var(--violet); --fg: #fff; --edge: var(--violet-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  padding: 12px 18px; border-radius: var(--r-s); border: 1px solid var(--edge);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 22, 38, .12); transition: filter .12s, box-shadow .12s, background .12s;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 2px 6px rgba(16, 22, 38, .18); }
.btn:active { filter: brightness(.96); box-shadow: 0 1px 1px rgba(16, 22, 38, .12); }
.btn.secondary { --bg: #fff; --fg: var(--violet); --edge: #C9D6F5; }
.btn.sun { --bg: var(--sun); --fg: #3A2B00; --edge: var(--sun-d); }
.btn.ghost { --bg: #fff; --fg: var(--ink); --edge: var(--line); }
.btn.small { font-size: 14px; padding: 8px 12px; border-radius: var(--r-s); }
.btn.quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--violet); padding: 9px 12px; }
.btn.quiet:hover { background: var(--lilac); color: var(--violet-d); filter: none; box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo svg { height: 34px; width: auto; }
.logo { color: var(--ink); font-weight: 700; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--r-s); font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--lilac); color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .site-nav, .head-cta .btn.ghost { display: none; }
  .menu-btn { display: inline-block; }
  .site-head.open .site-nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  .head-cta { margin-left: 0; }
}
.site-foot { background: var(--ink); color: #D9D5F2; margin-top: 96px; padding: 64px 0 40px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 16px; color: #fff; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: #A9A3D1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--lilac); }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 61, .55), transparent 65%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 span { display: block; color: var(--violet); }
.hero .lede { margin-top: 20px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.trust { margin-top: 28px; display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
.trust b { color: var(--ink); font-family: var(--head); font-size: 18px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } }

/* the signature: a live study party, playing itself */
.live-demo { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-l); box-shadow: 10px 10px 0 var(--ink); padding: 14px; transform: rotate(-1.5deg); }
.live-demo .screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0F0B2E; }
.live-demo .screen img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.live-badge { position: absolute; left: 12px; top: 12px; background: var(--coral); color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.live-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.talk-pill { position: absolute; right: 12px; top: 12px; background: #1A1446; color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 99px; }
.hand-chip { position: absolute; right: 12px; top: 48px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 99px; box-shadow: 0 6px 16px rgba(10, 6, 40, .3); animation: handpop 9s 1.2s infinite; }
@keyframes handpop { 0%, 18% { opacity: 0; transform: translateY(6px); } 26%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hand-chip { animation: none; } }
.demo-q { position: absolute; left: 50%; bottom: 14px; width: calc(100% - 28px); transform: translate(-50%, 130%); background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 12px 30px rgba(10, 6, 40, .35); animation: qin 9s 1.2s infinite; }
@keyframes qin { 0%, 4% { transform: translate(-50%, 130%); } 10%, 88% { transform: translate(-50%, 0); } 96%, 100% { transform: translate(-50%, 130%); } }
.demo-q .q { font-family: var(--head); font-weight: 700; font-size: 16px; line-height: 1.25; }
.demo-q .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.demo-q .o { border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 500; }
.demo-q .o.right { animation: right 9s 1.2s infinite; }
@keyframes right { 0%, 55% { border-color: var(--line); background: #fff; } 60%, 100% { border-color: var(--ok); background: #E6F8F2; } }
.demo-q .timer { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; }
.demo-q .timer circle { fill: none; stroke-width: 4; }
.demo-q .timer .track { stroke: var(--lilac-2); }
.demo-q .timer .run { stroke: var(--violet); stroke-dasharray: 82; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; animation: tick 9s 1.2s infinite linear; }
@keyframes tick { 0%, 10% { stroke-dashoffset: 0; } 55%, 100% { stroke-dashoffset: 82; } }
.batch-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 4px 4px 2px; }
.ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: #fff; font-size: 14px; border: 3px solid #fff; margin-left: -10px; position: relative; }
.ava:first-child { margin-left: 0; }
.ava.done::after { content: '✓'; position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; display: grid; place-items: center; border: 2px solid #fff; animation: pop 9s infinite; }
.ava:nth-child(2).done::after { animation-delay: .4s; } .ava:nth-child(3).done::after { animation-delay: .8s; } .ava:nth-child(4).done::after { animation-delay: 1.4s; }
@keyframes pop { 0%, 30% { transform: scale(0); } 36%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
.batch-row .label { font-size: 14px; color: var(--ink-2); }
.sticker { position: absolute; font-family: var(--head); font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--sun); box-shadow: 4px 4px 0 var(--ink); transform: rotate(4deg); }
.sticker.s1 { right: -18px; top: -22px; }
.sticker.s2 { left: -26px; bottom: -16px; background: var(--mint); color: #fff; transform: rotate(-5deg); }

/* ---------- sections ---------- */
.section { padding: 96px 0 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; }
.stats-band { background: var(--ink); color: #fff; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 24px; }
.stats-band b { display: block; font-family: var(--head); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--sun); }
.stats-band span { color: #CFCAEE; font-size: 15px; }
@media (max-width: 700px) { .stats-band .wrap { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--lilac); border-radius: var(--r-m); padding: 26px 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet); color: #fff; font-family: var(--head); font-weight: 800; font-size: 22px; box-shadow: 0 4px 0 var(--violet-d); margin-bottom: 16px; }
.steps li:nth-child(2)::before { background: var(--coral); box-shadow: 0 4px 0 #C9443A; }
.steps li:nth-child(3)::before { background: var(--mint); box-shadow: 0 4px 0 #0C8C6B; }
.steps li:nth-child(4)::before { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--sun-d); }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: '✓'; width: 26px; height: 26px; border-radius: 8px; background: var(--mint); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: 2px; }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud { border: 2px solid var(--line); border-radius: var(--r-m); padding: 24px; background: #fff; }
.aud .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 26px; }
.aud h3 { font-size: 20px; margin-bottom: 8px; }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* mini timetable illustration */
.tt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 2px 12px rgba(16, 22, 38, .08); padding: 18px; }
.tt-grid { display: grid; grid-template-columns: 56px repeat(5, 1fr); gap: 6px; font-size: 13px; }
.tt-grid .d { font-family: var(--head); font-weight: 700; text-align: center; padding-bottom: 4px; }
.tt-grid .t { color: var(--ink-3); padding-top: 8px; font-variant-numeric: tabular-nums; }
.tt-cell { border-radius: 9px; padding: 7px 8px; color: #fff; font-weight: 600; line-height: 1.2; min-height: 44px; font-size: 12.5px; }
.tt-cell small { display: block; font-weight: 400; opacity: .9; font-size: 11px; }
.tt-cell.live { outline: 3px solid var(--sun); outline-offset: 2px; }

.subj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.subj-tile { display: block; text-decoration: none; color: #fff; border-radius: var(--r-m); padding: 20px; background: var(--c); box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, black); transition: transform .1s; }
.subj-tile:hover { transform: translateY(-3px); }
.subj-tile b { display: block; font-family: var(--head); font-size: 21px; }
.subj-tile span { font-size: 14px; opacity: .92; }

.safety { background: var(--lilac); border-radius: var(--r-l); padding: 48px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr; padding: 28px; } }

.faq { max-width: 820px; }
.faq details { border-bottom: 2px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

.cta-band { margin-top: 96px; background: var(--violet); color: #fff; border-radius: var(--r-l); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; bottom: -200px; background: var(--sun); opacity: .9; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: #E4DEFF; margin-top: 10px; }

/* ---------- inner pages ---------- */
.page-hero { background: var(--lilac); padding: 56px 0 48px; }
.page-hero p { margin-top: 14px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--ink-3); }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 12px 0; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

.search { display: flex; gap: 10px; max-width: 620px; margin-top: 24px; }
.search input { flex: 1; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; font: inherit; background: #fff; }
.course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.course-card { position: relative; display: block; text-decoration: none; color: var(--ink); border: 2px solid var(--line); border-left: 0; border-radius: 0 var(--r-m) var(--r-m) 0; padding: 18px 18px 18px 26px; background: #fff; }
/* The coloured rail is a flat bar painted OVER the grey outline — square top and bottom, no miter. */
.course-card::before { content: ''; position: absolute; left: 0; top: -2px; bottom: -2px; width: 8px; background: var(--c, var(--violet)); }
.course-card:hover { border-color: var(--ink); }
.course-card b { display: block; font-family: var(--head); font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.course-card span { font-size: 14px; color: var(--ink-2); }
.subject-block + .subject-block { margin-top: 56px; }
.subject-block h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 30px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 5px; background: var(--c); }
.unit-block { border: 2px solid var(--line); border-radius: var(--r-m); padding: 22px; margin-top: 16px; }
.unit-block h2 { font-size: 24px; }
.lesson { margin-top: 18px; }
.lesson h3 { font-size: 17px; color: var(--ink-2); margin-bottom: 8px; }
.vrows { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.vrow { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 6px; border-radius: 12px; }
.vrow:hover { background: var(--lilac); }
.vrow img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--lilac-2); }
.vrow .len { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vrow .tag { font-size: 12px; font-weight: 600; color: var(--violet); }
/* Check-ins: a small pill on every video that has them, in the library listing. */
.ivtag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--head); font-weight: 700; font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: 99px; border: 1.5px solid #d9d0ff; background: #f3efff; color: var(--violet-d); white-space: nowrap; vertical-align: middle; margin-left: 4px; }
/* "Fixed a slip": a video where our check-ins correct a narration error. Only shown where one exists. */
.fixtag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--head); font-weight: 700; font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: 99px; border: 1.5px solid #bff0df; background: #e7faf3; color: #0B7A5A; white-space: nowrap; vertical-align: middle; margin-left: 2px; cursor: help; }
/* The green "Fixed a slip" chip on the video page, matching the .chip row. */
.chip.fix { background: #e7faf3; color: #0B7A5A; }
/* The correction note under the player on a video page. */
.corr-note { margin-top: 18px; border: 1.5px solid #bff0df; background: #effbf6; border-radius: 14px; padding: 14px 16px; }
.corr-note b { font-family: var(--head); font-size: 16px; color: #0B7A5A; }
.corr-note p { margin: 6px 0 8px; color: var(--ink); }
.corr-note .corr-foot { font-size: 13px; color: var(--ink-3); }
.corr-jump { border: 1.5px solid #bff0df; background: #fff; color: #0B7A5A; font-family: var(--head); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 99px; cursor: pointer; white-space: nowrap; margin-left: 4px; }
.corr-jump:hover { background: #e7faf3; }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .watch { grid-template-columns: 1fr; } }
/* One clean frame: a soft shadow instead of the offset hard shadow, which read as a second, overlapping frame at two corners. */
.player-frame { border-radius: var(--r-m); overflow: hidden; background: #0F0B2E; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px -18px rgba(26, 20, 70, .55), 0 2px 6px rgba(26, 20, 70, .18); }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; }
.card { border: 2px solid var(--line); border-radius: var(--r-m); padding: 22px; background: #fff; }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--lilac); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.chapters button { all: unset; cursor: pointer; display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 6px 8px; border-radius: 8px; width: 100%; box-sizing: border-box; }
.chapters button:hover { background: var(--lilac); }
.chapters time { color: var(--violet); font-weight: 600; font-variant-numeric: tabular-nums; }
.transcript { max-height: 420px; overflow: auto; font-size: 15px; color: var(--ink-2); }
.transcript p { margin: 6px 0; }
.transcript time { color: var(--ink-3); font-size: 13px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.q-preview { background: var(--lilac); border-radius: var(--r-s); padding: 16px; margin-top: 10px; }
.q-preview b { font-family: var(--head); }
.terms-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.terms-list dt { font-weight: 600; }
.terms-list dd { margin: 0; color: var(--ink-2); }
.attrib { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* timetable illustration on small screens: scroll inside the card, not the page */
.tt { max-width: 100%; overflow-x: auto; }
.tt-grid { min-width: 520px; }
.split > * { min-width: 0; }
@media (max-width: 560px) { .live-demo { transform: none; box-shadow: 6px 6px 0 var(--ink); } .sticker.s1 { right: 6px; } .sticker.s2 { left: 6px; } .cta-band { padding: 32px 24px; } }

/* ---- interactive video on public video pages (public/shared/ivplayer.js) ---- */
.player-frame { position: relative; }
.ivmarks { margin-top: 18px; }
.pinbar { position: relative; height: 34px; }
.pinbar-track { position: absolute; left: 0; right: 0; top: 23px; height: 6px; border-radius: 99px; background: var(--lilac-2); overflow: hidden; }
.pinbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--violet); opacity: .35; transition: width .25s linear; }
.pin { position: absolute; top: 0; transform: translateX(-50%); width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50% 50% 50% 4px; rotate: -45deg; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(26, 20, 70, .25); transition: transform .15s; }
.pin span { rotate: 45deg; font: 800 10px/1 var(--head); color: #fff; letter-spacing: -.02em; }
.pin:hover { transform: translateX(-50%) translateY(-2px); }
.pin.is-done { opacity: .45; }
.pin-mcq { background: var(--violet); } .pin-tf { background: #2B8CFF; } .pin-open { background: var(--coral); }
.pin-pause { background: var(--sun-d); } .pin-note { background: #12A877; } .pin-ref { background: #9B6BFF; }
.pin-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.pin-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pin-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 6px; font: 800 9px/1 var(--head); font-style: normal; color: #fff; }
.ivbox { margin-top: 14px; }
.iv-intro { margin: 0 0 12px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--violet); text-decoration: underline; cursor: pointer; }
.ivpanel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 2px 10px rgba(16, 22, 38, .07); padding: 20px; margin-top: 12px; }
.ivpanel h3 { margin-bottom: 8px; }
.iv + .iv { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.iv-type { font-size: 13px; font-weight: 700; color: var(--violet); margin: 0; }
.iv-q { font-family: var(--head); font-size: 20px; font-weight: 700; margin: 4px 0 12px; line-height: 1.3; }
.iv-q.shake { animation: ivshake .3s; }
@keyframes ivshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r-s); cursor: pointer; background: #fff; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt small { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.opt.is-right { border-color: var(--ok); background: #EAF7F2; }
.opt.is-wrong { border-color: var(--warn); background: #FDEEEC; }
.iv textarea, .iv input[type=text] { width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: var(--r-s); padding: 10px; font: inherit; background: #fff; }
.fb { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--lilac); }
.fb.ok { background: #EAF7F2; } .fb.no { background: #FDEEEC; }
.fb p { margin: 6px 0 0; }
.ivrow { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.live-overlay { position: absolute; left: 16px; right: 16px; top: 16px; pointer-events: none; z-index: 2; }
.live-note { pointer-events: auto; display: inline-block; max-width: 80%; background: var(--sun); color: var(--ink); border-radius: var(--r-m); padding: 10px 14px; box-shadow: 0 6px 0 var(--sun-d); font-size: 15px; }
.note-kind { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 2px; }
.pin-note-note { background: #DDF7EC; box-shadow: 0 6px 0 #12A877; }
.pin-ref-note { background: #EEE6FF; box-shadow: 0 6px 0 #9B6BFF; }
.live-note a { font-weight: 700; color: var(--ink); }

/* Question time: the question sits on the video over a dimmed frame. */
.ivq-overlay { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; padding: 14px; background: transparent; }
.player-frame.asking .ivq-overlay { display: grid; }
.player-frame.asking video { filter: saturate(.6); }
.ivq-card { position: relative; }
.ivq-overlay .ivq-card { margin: 0; width: min(640px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 10px 30px rgba(16, 22, 38, .18); }
/* Close (×) on a check-in card. */
.ivq-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ivq-x:hover, .ivq-x:focus-visible { background: var(--grid); color: var(--ink); outline: none; }
.ivq-overlay .iv-q { font-size: clamp(18px, 2.2vw, 23px); }
.ivq-overlay .opt { padding: 8px 12px; }
.ivq-step { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ivq-in { animation: ivqIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ivqIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.ivq-banner { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; display: none; align-items: center; background: var(--sun); color: var(--ink); font-weight: 700; border-radius: var(--r-s); padding: 8px 10px 8px 16px; box-shadow: 0 6px 0 var(--sun-d); white-space: nowrap; animation: ivqIn .45s ease-out; }
.ivq-banner span { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin-right: 6px; }
.ivq-banner-x { margin-left: 10px; width: 22px; height: 22px; flex: none; border: 0; border-radius: var(--r-s); background: rgba(26, 20, 70, .1); color: inherit; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ivq-banner-x:hover, .ivq-banner-x:focus-visible { background: rgba(26, 20, 70, .22); outline: none; }
.player-frame.asking-below .ivq-banner { display: inline-flex; }
.player-frame.asking-below .ivq-banner.is-hidden { display: none; }
.player-frame.asking-below video { opacity: 1; }
.ivbox .ivq-card { box-shadow: 0 2px 10px rgba(16, 22, 38, .07); }
/* A soft glow as a check-in appears, so it's noticed — especially below the video. */
.ivq-glow { animation: ivqGlow 1.4s ease-out; }
@keyframes ivqGlow { 0% { box-shadow: 0 0 0 0 rgba(91, 61, 245, 0); } 22% { box-shadow: 0 0 0 4px rgba(91, 61, 245, .30), 0 8px 26px rgba(91, 61, 245, .22); } 100% { box-shadow: 0 2px 10px rgba(16, 22, 38, .07); } }
.pin.is-now { animation: pinPulse 1.2s ease-in-out infinite; }
@keyframes pinPulse { 50% { transform: translateX(-50%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .ivq-in, .ivq-banner, .ivq-glow, .pin.is-now { animation: none; } }
.ivq-overlay .opts.answered .opt:not(.is-right):not(.is-wrong) { display: none; }
.ivq-card { scroll-margin-top: 96px; }

/* ---- custom video controls: the question pins sit on the scrub bar itself ---- */
.player-frame video { cursor: pointer; }
.vc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 14px 8px; background: linear-gradient(transparent, rgba(10, 8, 30, .85)); color: #fff; opacity: 0; transition: opacity .2s; }
.player-frame.vc-on .vc, .player-frame.is-paused .vc, .player-frame:focus-within .vc, .player-frame.q-soon .vc { opacity: 1; }
.player-frame.vc-on video::cue { line-height: 1.3; }
.vc-scrub { position: relative; height: 26px; cursor: pointer; touch-action: none; outline: none; }
.vc-track { position: absolute; left: 0; right: 0; bottom: 6px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .28); overflow: hidden; transition: height .15s; }
.vc-scrub:hover .vc-track, .vc-scrub:focus-visible .vc-track { height: 8px; }
.vc-scrub:focus-visible { box-shadow: 0 0 0 2px var(--sun); border-radius: 6px; }
.vc-buf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .25); }
.vc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--sun); }
.vc-warn { position: absolute; top: 0; bottom: 0; width: 0; background: #FF4D4D; opacity: 0; }
.player-frame.q-soon .vc-warn { animation: vcWarn .5s ease-in-out infinite alternate; }
@keyframes vcWarn { from { opacity: .25; } to { opacity: 1; } }
.vc-pins { position: absolute; left: 0; right: 0; bottom: 8px; height: 0; }
.vc-pins .pin { top: auto; bottom: 0; width: 18px; height: 18px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.vc-pins .pin span { font-size: 8px; }
.vc-pins .pin.is-done { opacity: .55; }
.pin.is-soon { animation: pinSoon .45s ease-in-out infinite alternate; box-shadow: 0 0 0 3px #FF4D4D, 0 1px 4px rgba(0, 0, 0, .4); }
@keyframes pinSoon { to { transform: translateX(-50%) translateY(-3px) scale(1.2); } }
.vc-tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(10, 8, 30, .9); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; pointer-events: none; opacity: 0; }
.vc-tip.show { opacity: 1; }
.vc-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.vc-sp { flex: 1; }
.vc-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.vc-btn svg { width: 22px; height: 22px; }
.vc-btn:hover, .vc-btn:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.vc-txt { font: 800 13px/1 var(--head); }
.vc-btn[aria-pressed="false"] { opacity: .5; }
.vc-time { font-size: 13px; font-variant-numeric: tabular-nums; margin-left: 6px; opacity: .9; }
.vc-soon { position: absolute; top: 14px; right: 14px; z-index: 2; background: #FF4D4D; color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: var(--r-s); box-shadow: 0 4px 0 #B32626; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.vc-soon.show { opacity: 1; transform: none; }
.player-frame.is-full { border-radius: 0; }
.player-frame.is-full video { object-fit: contain; }
.player-frame.asking .vc { opacity: 0; pointer-events: none; }
/* question placement setting */
.iv-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font: 600 14px/1.2 var(--body); color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--line); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
/* transcript: readable paragraphs with clickable times */
.transcript p { display: grid; grid-template-columns: 52px 1fr; gap: 10px; margin: 0 0 12px; line-height: 1.6; align-items: start; }
.transcript .t-at { border: 0; background: none; padding: 0; font: 700 13px/1.9 var(--body); color: var(--violet); cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.transcript .t-at:hover { text-decoration: underline; }
.vrow img { background: var(--lilac-2); object-fit: cover; aspect-ratio: 16 / 9; }

/* share card + embed page */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.embed-body { background: #fff; }
.embed { padding: 12px; max-width: 1100px; margin: 0 auto; }
.embed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.embed-foot a { color: var(--ink-2); }

/* ---------- School sign-up pages (/s/<slug>) — added for "Run your own school".
   Scoped to .sp so nothing else on the site changes. --school is the school's
   brand colour (validated #RRGGBB on the server). ---------- */
.sp { --school: var(--violet); }
.sp-hero { background: color-mix(in srgb, var(--school) 9%, white); border-bottom: 4px solid var(--school); }
/* Owner-set page font, headshot photo and background banner (school/tutor profile). */
.sp { font-family: var(--sp-font, inherit); }
.sp-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 12px rgba(0,0,0,.18); flex: none; }
.sp-hero.has-banner { border-bottom: 0; }
.sp-hero.has-banner h1, .sp-hero.has-banner .lede, .sp-hero.has-banner .crumbs a, .sp-hero.has-banner .crumbs span { color: #fff; }
.sp-hero.has-banner .crumbs a { text-decoration: underline; }
@media (max-width: 620px) { .sp-photo { width: 64px; height: 64px; } }
/* Batches within a class on the tutor page — you join a batch, each with its own time. */
.sp-batches { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.sp-batches-h { font-weight: 700; margin: 0 0 8px; }
.sp-batch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sp-batch:last-child { border-bottom: 0; }
.sp-batch-info { min-width: 0; }
.sp-head { display: flex; align-items: center; gap: 22px; }
.sp-head h1 { font-size: clamp(34px, 5vw, 58px); }
.sp-logo { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-m); background: #fff; border: 2px solid var(--line); flex: none; }
.sp-mono { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-m); background: var(--school); color: var(--school-fg, #fff); font-family: var(--head); font-weight: 900; font-size: 38px; box-shadow: 0 5px 0 color-mix(in srgb, var(--school) 70%, black); }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.sp-grid > div > h2 { margin-top: 0; margin-bottom: 18px; }
.sp-grid > aside > :first-child { margin-top: 0; } /* align the Students card top with the Classes heading */
.sp-class { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; padding: 22px 22px 22px 30px; border: 2px solid var(--line); border-left: 0; border-radius: 0 var(--r-m) var(--r-m) 0; background: #fff; }
.sp-class::before { content: ''; position: absolute; left: 0; top: -2px; bottom: -2px; width: 8px; background: var(--school); }
.sp-class + .sp-class { margin-top: 16px; }
.sp-class h3 { font-size: 24px; line-height: 1.15; }
.sp-eyebrow { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--school) 75%, black); margin-bottom: 4px; }
.sp-facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.sp-facts b { display: inline-block; min-width: 92px; color: var(--ink); font-weight: 600; }
.sp-class-side { display: grid; align-content: start; justify-items: start; gap: 8px; padding-left: 20px; border-left: 2px dashed var(--line); }
.sp-price { font-family: var(--head); font-weight: 800; font-size: 26px; line-height: 1.1; }
.sp-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--school) 12%, white); color: color-mix(in srgb, var(--school) 70%, black); }
.sp-class-side .btn { margin-top: 6px; --bg: var(--school); --fg: var(--school-fg, #fff); --edge: color-mix(in srgb, var(--school) 72%, black); }
.sp aside .card p + p { margin-top: 10px; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .sp-class { grid-template-columns: 1fr; } .sp-class-side { padding-left: 0; border-left: 0; border-top: 2px dashed var(--line); padding-top: 14px; } .sp-head { gap: 14px; } .sp-logo, .sp-mono { width: 56px; height: 56px; font-size: 30px; } }
/* ---------- end of school sign-up pages ---------- */

/* ---------- Site restructure (Oct 2026): Puzzicle School (/school), For schools
   (/for-schools), new header with log-in menu, class CTAs on library pages. ---------- */
/* header: log-in menu, compact join button, wider breakpoint for the five-item nav */
.site-head .wrap { gap: 20px; }
.nav-login { display: none; }
.login-menu { position: relative; }
.login-menu > summary { list-style: none; }
.login-menu > summary::-webkit-details-marker { display: none; }
.login-menu > summary::after { content: '▾'; font-size: 12px; margin-left: 2px; opacity: .6; }
.login-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 8px 24px rgba(16, 22, 38, .14); padding: 8px; display: grid; gap: 2px; z-index: 30; }
.login-pop a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 9px; font-weight: 500; font-size: 15px; }
.login-pop a:hover { background: var(--lilac); }
.join-btn .sm { display: none; }
@media (max-width: 1080px) {
  .site-nav, .head-cta .login-menu { display: none; }
  .menu-btn { display: inline-block; margin-left: 0; }
  .head-cta { margin-left: auto; }
  .site-head.open .site-nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(26, 20, 70, .35); margin: 0; }
  .site-head.open .site-nav a { padding: 12px 14px; font-size: 17px; }
  .site-head.open .nav-login { display: grid; gap: 2px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-login > span { padding: 0 14px 4px; }
}
@media (max-width: 560px) {
  .site-head .wrap { gap: 10px; padding: 0 16px; }
  .logo svg { height: 32px; }
  .join-btn .lg { display: none; }
  .join-btn .sm { display: inline; }
  .menu-btn { padding: 7px 10px; }
}
.hero-aside { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.eyebrow { font-family: var(--head); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.section-head .eyebrow { margin-top: 0; }
[id] { scroll-margin-top: 88px; }

/* three paths for schools (home + /for-schools) */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.path-card { position: relative; display: grid; align-content: start; gap: 8px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 24px 56px; box-shadow: 0 2px 10px rgba(16, 22, 38, .07); transition: transform .1s, box-shadow .1s; }
.path-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 22, 38, .12); border-color: var(--ink-3); }
.path-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 6px; }
.path-card b { font-family: var(--head); font-size: 22px; line-height: 1.15; }
.path-card .muted { font-size: 15px; }
.path-who { font-size: 13px; font-weight: 700; color: var(--violet); }
.path-go { position: absolute; left: 24px; bottom: 18px; font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--violet); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path-card { padding-bottom: 24px; } .path-go { left: auto; right: 22px; top: 22px; bottom: auto; } }
.schools-band { background: var(--lilac); border-radius: var(--r-l); padding: 48px; }
@media (max-width: 700px) { .schools-band { padding: 28px 20px; } }

/* /school */
.school-hero .crumbs { margin-bottom: 18px; }
.school-hero h1 { font-size: clamp(40px, 5.6vw, 70px); }
.led-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.led { border: 2px dashed var(--line); border-radius: var(--r-m); padding: 20px 22px; }
.led p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.led-tag { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 99px; background: var(--lilac-2); color: var(--violet-d); }
.led-tag.teacher { background: #FFF3D1; color: #8A5A00; }
.led-tag.catch { background: #DDF6EE; color: #0C7457; }
@media (max-width: 860px) { .led-row { grid-template-columns: 1fr; } }
.day-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.day-style { border: 2px solid var(--line); border-radius: var(--r-m); padding: 20px; background: #fff; border-top: 8px solid var(--c); }
.day-style h3 { font-size: 20px; margin: 14px 0 6px; }
.ds-bar { display: flex; gap: 4px; flex-wrap: wrap; min-height: 28px; }
.ds-bar span { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; background: var(--c); border-radius: 7px; padding: 4px 7px; }
@media (max-width: 960px) { .day-styles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .day-styles { grid-template-columns: 1fr; } }
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lvl { border: 2px solid var(--line); border-radius: var(--r-m); padding: 18px 18px 14px; background: #fff; display: flex; flex-direction: column; }
.lvl:hover { border-color: var(--ink); }
.lvl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid var(--lilac-2); }
.lvl-head b { font-family: var(--head); font-size: 24px; }
.lvl-head span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.lvl-subj { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 15px; }
.lvl-subj li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.lvl-subj .faint { font-size: 13px; font-variant-numeric: tabular-nums; }
.lvl-foot { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.single-courses { margin-top: 44px; }
.single-courses h3 { font-size: 24px; margin-bottom: 6px; }
.course-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.course-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 2px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; background: #fff; }
.course-chip:hover { border-color: var(--ink); }
.course-chip .dot { width: 10px; height: 10px; border-radius: 4px; }
.course-chip .faint { font-size: 12px; }
#batches .cta-row { margin-top: 28px; }
.price-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: stretch; }
.price-card { background: var(--sun); border: 1px solid var(--sun-d); border-radius: var(--r-l); box-shadow: 0 4px 16px rgba(16, 22, 38, .12); padding: 32px; display: grid; gap: 14px; align-content: start; justify-items: start; }
.price-big { font-family: var(--head); font-weight: 900; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; }
.price-card p:not(.price-big):not(.eyebrow) { color: var(--ink); font-size: 15px; }
@media (max-width: 900px) { .price-row { grid-template-columns: 1fr; } }

/* /for-schools */
.fs-hero { padding-bottom: 64px; }
.fs-hero .paths { margin-top: 36px; }
.callout { margin-top: 48px; background: var(--lilac); border-radius: var(--r-m); padding: 20px 24px; color: var(--ink-2); }
.callout b { color: var(--ink); }
.soon { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--sun); color: var(--ink); vertical-align: 1px; white-space: nowrap; }
.checks b { color: var(--ink); font-weight: 600; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 6px 22px rgba(16, 22, 38, .12); padding: 16px; }
.mock-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0F0B2E; }
.mock-player img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.mock-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .35); }
.mock-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--sun); }
.mock-bar i { position: absolute; bottom: 2px; width: 20px; height: 20px; transform: translateX(-50%); border-radius: 50% 50% 50% 4px; rotate: -45deg; display: grid; place-items: center; font: 800 9px/1 var(--head); font-style: normal; color: #fff; z-index: 1; }
.mock-bar i.m1 { background: var(--violet); } .mock-bar i.m2 { background: var(--coral); } .mock-bar i.m3 { background: #12A877; }
.mock-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mock-row .btn { pointer-events: none; }
.mock-code { display: block; margin-top: 12px; background: var(--ink); color: #D9D5F2; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { border: 2px solid var(--line); border-radius: var(--r-m); padding: 22px; background: #fff; }
.feat h3 { font-size: 19px; margin: 14px 0 6px; }
.feat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 0 rgba(26, 20, 70, .18); }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }
.signup-mock { padding: 0; overflow: hidden; transform: rotate(-1deg); }
.sm-top { display: flex; align-items: center; gap: 14px; padding: 18px; background: color-mix(in srgb, #0E9F78 10%, white); border-bottom: 4px solid #0E9F78; }
.sm-top b { display: block; font-family: var(--head); font-size: 22px; line-height: 1.1; }
.sm-top span { font-size: 13px; color: var(--ink-2); }
.sm-mono { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #0E9F78; color: #fff; display: grid !important; place-items: center; font: 900 26px/1 var(--head); }
.sm-class { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px; margin: 14px 18px; padding: 14px 14px 14px 20px; border: 2px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; }
.sm-class::before { content: ''; position: absolute; left: 0; top: -2px; bottom: -2px; width: 6px; background: #0E9F78; }
.sm-class:last-child { margin-bottom: 18px; }
.sm-class small { display: block; font-size: 12px; font-weight: 700; color: #0B7A5C; }
.sm-class b { display: block; font-family: var(--head); font-size: 18px; line-height: 1.2; }
.sm-class span { font-size: 13px; color: var(--ink-2); }
.sm-side { display: grid; justify-items: end; align-content: center; gap: 6px; }
.sm-side b { font-size: 16px; }
.sm-btn { background: #0E9F78; color: #fff !important; font: 700 13px/1 var(--head) !important; padding: 8px 10px; border-radius: 9px; box-shadow: 0 3px 0 #0A7055; white-space: nowrap; }
@media (max-width: 480px) { .sm-class { grid-template-columns: 1fr; } .sm-side { justify-items: start; } .signup-mock { transform: none; } .mock { box-shadow: 6px 6px 0 var(--ink); } }
.start-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; background: var(--lilac); border-radius: var(--r-l); padding: 48px; align-items: start; }
.start-side .card { border-color: transparent; }
.start-steps { list-style: none; counter-reset: st; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.start-steps li { counter-increment: st; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--ink-2); }
.start-steps li::before { content: counter(st); width: 36px; height: 36px; border-radius: 10px; background: var(--violet); color: #fff; display: grid; place-items: center; font: 800 18px/1 var(--head); box-shadow: 0 3px 0 var(--violet-d); }
.start-steps b { color: var(--ink); }
@media (max-width: 900px) { .start-band { grid-template-columns: 1fr; padding: 28px 20px; } }
.cta-band .btn.ghost { --edge: rgba(255, 255, 255, .5); border-color: transparent; }

/* "Learn this with a class" on video and course pages */
.class-cta { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.class-cta h3 { margin-bottom: 8px; }
.class-cta-act { display: grid; justify-items: start; gap: 12px; margin-top: 16px; }
.teacher-link { color: var(--ink-2); }
.teacher-link:hover { color: var(--violet); }
.class-cta.wide { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; background: var(--lilac); }
.class-cta.wide > div:first-child { max-width: 60ch; }
.class-cta.wide .class-cta-act { margin-top: 0; justify-items: end; }
@media (max-width: 700px) { .class-cta.wide .class-cta-act { justify-items: start; } }
.lib-note { margin-top: 14px; }
/* levels on /school, grouped by stage */
.lvl-stage { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 2px solid var(--lilac-2); }
.lvl-stage:first-of-type { border-top: 0; padding-top: 0; }
.lvl-stage-name b { display: block; font-family: var(--head); font-size: 22px; }
.lvl-stage-name span { font-size: 14px; color: var(--ink-3); }
.lvl-stage .lvl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .lvl-stage { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 900px) { .lvl-stage .lvl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lvl-stage .lvl-grid { grid-template-columns: 1fr; } }
.sm-top .sm-mono { font-size: 26px; color: #fff; }
.price-row .safety { grid-template-columns: 1fr; gap: 20px; align-content: center; padding: 40px; }
@media (max-width: 900px) { .price-row .safety { padding: 28px 22px; } }
/* phones: levels scroll sideways per stage; feature cards go compact */
@media (max-width: 560px) {
  .lvl-stage .lvl-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; }
  .lvl-stage .lvl { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .feat { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 18px; }
  .feat-ic { grid-row: span 2; }
  .feat h3 { margin: 2px 0 4px; }
}
/* ---------- end of site restructure ---------- */

/* "Ask about this video" (shared/ask.js) */
.askbox { margin-top: 16px; border: 2px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; background: var(--lilac); display: grid; gap: 10px; }
.askbox[hidden] { display: none; }
.ask-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ask-form { display: grid; gap: 6px; }
.ask-form[hidden] { display: none; }
.ask-form textarea { width: 100%; font: inherit; border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px; resize: vertical; background: #fff; }
.ask-form textarea:focus { outline: none; border-color: var(--ink); }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ask-answer { border: 2px solid #CFC6FF; background: #fff; border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; }
.ask-answer.is-old { opacity: .7; border-width: 1px; }
.ask-answer.is-flagged { border-color: var(--sun-d); background: #FFFBEA; }
.ask-a { white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-err { color: var(--warn); }
.note-box { background: #FFF6DA; border: 1px solid #F0D98A; border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.note-box p { margin: 0; }
.donate-btn { color: var(--coral, #FF6A5C) !important; border-color: currentColor !important; }
@media (max-width: 900px) { .head-cta .donate-btn { display: none; } }
.site-nav > a { white-space: nowrap; }

/* ---------- Live demo (/demo): teacher + student views of one shared party ---------- */
.demo-radio { position: absolute; opacity: 0; pointer-events: none; }
.demo-play { white-space: nowrap; }
.demo-toggle { display: inline-flex; gap: 6px; background: var(--lilac-2); padding: 5px; border-radius: 14px; }
.demo-toggle label { font-family: var(--head); font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.demo-sideview { display: none; } /* desktop: both panes show; the view toggle is for narrow screens */
#dl-side:checked ~ .demo-try .demo-layout label[for="dl-side"],
#dl-stack:checked ~ .demo-try .demo-layout label[for="dl-stack"] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.demo-strip { font-family: var(--head); font-weight: 700; color: var(--ink); background: var(--lilac-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; margin: 0 0 20px; }
.demo-panes { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-top: 10px; }
#dl-stack:checked ~ .demo-panes { grid-template-columns: 1fr; } /* stacked: teacher above student */
.demo-pane { min-width: 0; position: relative; border-radius: var(--r-m); }
/* The tint is a halo (outward box-shadow), not padding: it costs the iframes no width at all. */
.demo-pane[data-side="teacher"] { background: #FFFBF0; box-shadow: 0 0 0 10px #FFFBF0; }
.demo-pane[data-side="student"] { background: #F4F9FF; box-shadow: 0 0 0 10px #F4F9FF; }
.demo-restart { white-space: nowrap; }
/* Per-pane full-screen control (expands that side via the native Fullscreen API; the iframe stays put, so the demo stays synced). */
.demo-fs { position: absolute; top: 2px; right: 2px; z-index: 2; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; opacity: .85; }
.demo-fs:hover, .demo-fs:focus-visible { opacity: 1; }
/* Full screen: both panes side by side, filling the whole screen at full height — just the demo. */
.demo-panes:fullscreen, .demo-panes:-webkit-full-screen {
  width: 100vw; height: 100vh; margin: 0; padding: 14px; gap: 14px; box-sizing: border-box;
  grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff;
}
.demo-panes:fullscreen .demo-pane, .demo-panes:-webkit-full-screen .demo-pane { box-shadow: none; display: block; }
.demo-panes:fullscreen .device, .demo-panes:-webkit-full-screen .device {
  height: 100%; box-shadow: none; border-radius: var(--r-m);
}
.demo-panes:fullscreen .device iframe, .demo-panes:-webkit-full-screen .device iframe { width: 100%; height: 100%; border: 0; }
/* "one party · two sides": a subtle linked cue sitting in the gutter between the two panes (wide only). */
/* Pulsating per-side Play button + "start here"/waiting nudges */
.demo-pulse { animation: demopulse 2s ease-in-out infinite; }
.demo-pulse:hover, .demo-pulse:focus-visible { animation-play-state: paused; }
@keyframes demopulse { 0%, 100% { box-shadow: 0 4px 0 var(--edge), 0 0 0 0 rgba(91, 61, 245, .35); } 50% { box-shadow: 0 4px 0 var(--edge), 0 0 0 12px rgba(91, 61, 245, 0); } }
@media (prefers-reduced-motion: reduce) { .demo-pulse { animation: none; } }
.demo-nudge { margin: 24px auto 0; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--ink-3); }
.demo-nudge.is-live { color: var(--violet); }
.demo-nudge.is-live::before { content: '● '; color: var(--sun-d); }
.demo-preplay.is-teacher h2 { color: var(--ink); }
.demo-peernote { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--violet); }
.demo-peernote.is-waiting { color: var(--ink-3); }
.demo-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 99px; margin-bottom: 14px; border: 1px solid var(--line); }
.demo-chip::after { content: ''; position: absolute; left: 24px; bottom: -6px; width: 11px; height: 11px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.demo-chip.student { background: var(--sky); color: #fff; }
.demo-chip.teacher { background: var(--sun); color: var(--ink); }
.device { border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 10px 24px rgba(26, 20, 70, .14); background: #fff; overflow: hidden; height: 640px; }
.device iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-radio:focus-visible ~ .demo-try .demo-toggle label { outline: 2px solid var(--ink); outline-offset: 2px; }
/* "Things to try": the guided checklist — ticked steps go quiet, the current step stands out. */
.demo-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; margin: 0 0 14px; }
.demo-try-head { margin: 0; font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--ink); }
.demo-try .demo-toggle { margin-left: auto; padding: 4px; }
.demo-try .demo-toggle label { padding: 6px 12px; font-size: 14px; }
.demo-try .demo-sideview { margin-left: auto; }
.demo-try-list { list-style: none; counter-reset: dt; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.demo-try-list li { counter-increment: dt; display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.demo-try-list li::before { content: counter(dt); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.demo-try-list li i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.demo-try-list li.is-current { color: var(--violet); font-weight: 800; }
.demo-try-list li.is-current::before { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 3px var(--lilac-2); }
.demo-try-list li.is-done { color: var(--ink-3); }
.demo-try-list li.is-done::before { content: '✓'; background: var(--mint); border-color: var(--mint); color: #fff; }
@media (max-width: 860px) {
  /* Narrow screens: one pane at a time, chosen with the view toggle; the layout toggle is hidden. */
  .demo-layout { display: none; }
  .demo-sideview { display: inline-flex; }
  .demo-panes, #dl-stack:checked ~ .demo-panes { grid-template-columns: 1fr; }
  .demo-link { display: none; }
  #ds-teacher:checked ~ .demo-try .demo-sideview label[for="ds-teacher"],
  #ds-student:checked ~ .demo-try .demo-sideview label[for="ds-student"] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
  #ds-teacher:checked ~ .demo-panes .demo-pane[data-side="student"],
  #ds-student:checked ~ .demo-panes .demo-pane[data-side="teacher"] { display: none; }
  .device { height: 560px; }
}

/* ---------- Exponential wordmark lockup (header + footer) ---------- */
.logo .brand-mark { display: inline-flex; align-items: center; }
.logo .brand-mark svg { display: block; }
.logo .brand-word { font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; }
.logo .brand-l { font-style: italic; color: var(--violet); font-weight: 800; }
.site-foot .logo .brand-l { color: #7FA8FF; }
.session-actions{display:flex;gap:8px;align-items:center}

body.standard-navigation .site-nav>a[aria-current="page"]:not(.btn){background:transparent;color:var(--violet,#1865F2);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}

/* Home-page audience shortcuts: visible before the hero on desktop and mobile. */
.home-audiences { background:#fff; border-bottom:1px solid #e2e8f0; }
.home-audiences .wrap { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; padding-top:16px; padding-bottom:16px; }
.home-audiences-label { color:var(--ink-2); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.home-audiences a { display:flex; align-items:center; gap:7px; font-size:14px; font-weight:700; color:var(--ink); text-decoration:none; border-radius:8px; padding:7px 9px; background:#f5f7fb; }
.home-audiences a:hover,.home-audiences a:focus-visible { color:#1865f2; background:#edf3ff; text-decoration:underline; text-underline-offset:4px; }
.home-hero .wrap { padding-top:40px; }
.aud[id] { scroll-margin-top:100px; }
@media(max-width:700px) {
 .home-audiences .wrap { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
 .home-audiences-label { grid-column:1/-1; }
 .home-audiences a { font-size:12px; padding:8px 5px; gap:5px; }
}

body.standard-navigation .site-nav>a:not(.btn):is(:hover,:focus-visible){color:#1865f2;background:transparent;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}
