/* The website: same colours and type as the app, calmer and roomier */
:root {
  --bg: #F7F5F0; --bg-2: #EFEBE2; --card: #FFFFFF; --ink: #17201F; --ink-2: #3F4B49; --muted: #6A7472;
  --line: #E4DFD4; --accent: #0E6B6B; --accent-hover: #0A5555; --accent-tint: #E2EFEC; --accent-ink: #0B5757;
  --gold: #C8902E; --gold-tint: #F6ECD9; --good: #2F8A5B; --on-accent: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(20,30,30,.05); --shadow: 0 1px 2px rgba(20,30,30,.04), 0 18px 40px -12px rgba(20,30,30,.14);
  --serif: 'Fraunces', Georgia, serif; --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101514; --bg-2: #151C1B; --card: #1A2221; --ink: #ECF1EF; --ink-2: #C3CDCA; --muted: #8E9A97;
    --line: #26302F; --accent: #4CB9AC; --accent-hover: #67C9BD; --accent-tint: #16302D; --accent-ink: #86D9CE;
    --gold-tint: #2C2517; --on-accent: #0B1514;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -12px rgba(0,0,0,.55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101514; --bg-2: #151C1B; --card: #1A2221; --ink: #ECF1EF; --ink-2: #C3CDCA; --muted: #8E9A97;
  --line: #26302F; --accent: #4CB9AC; --accent-hover: #67C9BD; --accent-tint: #16302D; --accent-ink: #86D9CE;
  --gold-tint: #2C2517; --on-accent: #0B1514;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -12px rgba(0,0,0,.55); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4.2vw, 44px); text-align: center; }
h2.left { text-align: left; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.fine { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.sub { text-align: center; color: var(--ink-2); max-width: 620px; margin: 0 auto 40px; font-size: 18px; }
.eyebrow { display: block; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.prof .eyebrow { text-align: left; }
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } .sub { font-size: 17px; margin-bottom: 28px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 20px var(--serif); }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 2px; margin-left: 16px; }
.links a, .mobile-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.links a:hover { background: var(--bg-2); color: var(--ink); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }
.mobile-nav { display: grid; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
@media (max-width: 1060px) { .links { display: none; } .menu-btn { display: inline-grid; } .hide-sm { display: none; } }
@media (max-width: 420px) { .bar { gap: 6px; } .brand { font-size: 18px; } .actions .btn.primary { padding: 0 12px; font-size: 14px; min-height: 40px; } }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -160px -10% auto; height: 760px; background: radial-gradient(560px 320px at 78% 30%, var(--accent-tint), transparent 70%), radial-gradient(460px 280px at 8% 8%, var(--gold-tint), transparent 70%); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; letter-spacing: .04em; margin-bottom: 22px; }
h1 { font-size: clamp(42px, 6.6vw, 74px); letter-spacing: -0.03em; }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
@media (max-width: 480px) { .cta .btn { width: 100%; } }

.hero-art { position: relative; padding-bottom: 60px; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; max-width: 460px; margin-left: auto; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.pc-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.pc-title { font: 600 24px var(--serif); }
.pc-weeks { text-align: right; line-height: 1; }
.pc-weeks b { display: block; font: 600 40px var(--serif); color: var(--accent); }
.pc-weeks span { font-size: 12px; color: var(--muted); }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc-list li { display: grid; grid-template-columns: 78px 1fr; gap: 2px 12px; align-items: center; font-size: 14px; }
.pc-list span { color: var(--muted); font-size: 12.5px; }
.pc-list b { font-weight: 500; color: var(--ink-2); }
.pc-list li.done b { color: var(--ink); }
.pc-list li.now b { color: var(--ink); font-weight: 600; }
.pc-list i { grid-column: 2; display: block; height: 5px; border-radius: 3px; background: var(--bg-2); position: relative; overflow: hidden; }
.pc-list i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--accent); transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.7,.2,1) both .3s; }
.pc-list li.now i::after { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.pc-today { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.pc-today .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2.4s ease infinite; }
.float-card { position: absolute; left: 0; bottom: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; animation: float 7s ease-in-out infinite; }
.fc-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.fc-grade { font: 600 30px var(--serif); line-height: 1.1; }
.fc-grade small { font: 500 13px var(--sans); color: var(--good); margin-left: 6px; }
@media (max-width: 920px) { .plan-card { margin: 0 auto; } .float-card { left: 6%; } }
@media (max-width: 480px) { .plan-card { padding: 18px; } .pc-list li { grid-template-columns: 64px 1fr; } .float-card { position: relative; left: auto; margin: -20px 0 0 auto; width: fit-content; } .hero-art { padding-bottom: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Where do you fit */
.fit { background: var(--bg-2); }
.fit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fit-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.fit-card b { font: 600 18px/1.25 var(--serif); }
.fit-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; flex: 1; }
.fit-card .go { font-weight: 600; font-size: 14px; color: var(--accent); }
.status { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.status.now, .status.free { background: var(--accent-tint); color: var(--accent-ink); }
.status.early { background: var(--gold-tint); color: #8A5F14; }
:root[data-theme="dark"] .status.early { color: #E2B866; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.early { color: #E2B866; } }
@media (max-width: 1040px) { .fit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .fit-grid { grid-template-columns: 1fr; } }

/* Countdown tool */
.cd-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.cd-controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cd-controls label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cd-session, .cd-date { flex: 1; min-width: 180px; }
.cd-result { padding: 26px 0 8px; }
.cd-weeks { display: flex; align-items: baseline; gap: 10px; }
.cd-weeks b { font: 600 clamp(56px, 9vw, 84px)/1 var(--serif); color: var(--accent); letter-spacing: -0.03em; }
.cd-weeks span { font: 500 20px var(--serif); color: var(--ink-2); }
.cd-when { color: var(--muted); margin: 6px 0 22px; }
.cd-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 3px; }
.cd-bar span { display: block; height: 100%; border-radius: 4px; transition: flex-grow .5s ease; }
.cd-bar .p1 { background: var(--accent); }
.cd-bar .p2 { background: color-mix(in srgb, var(--accent) 55%, var(--gold)); }
.cd-bar .p3 { background: var(--gold); }
.cd-legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cd-legend li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; }
.cd-legend li::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.cd-legend b { display: block; color: var(--ink); font-weight: 600; }
.cd-tip { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); color: var(--ink-2); font-size: 14.5px; }
.cd-tip:empty { display: none; }
.cd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
@media (max-width: 560px) { .cd-card { padding: 20px; } .cd-legend { grid-template-columns: 1fr; } .cd-foot .btn { width: 100%; } }

/* Shared controls */
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; font: 600 14.5px var(--sans); color: var(--ink-2); padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.seg button small { font-weight: 600; color: var(--good); margin-left: 4px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
select, input[type=date], input[type=email], input[type=text], input:not([type]), input[type=search] { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; min-height: 44px; width: 100%; }
select:focus, input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }

/* Students */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }
.n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); font: 600 17px var(--serif); margin-bottom: 14px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: 64px; }
.inside article { padding-top: 18px; border-top: 1px solid var(--line); }
.inside p { color: var(--ink-2); font-size: 15px; margin: 0; }
.inside .ic { display: inline-block; color: var(--accent); font-size: 20px; margin-bottom: 8px; }
@media (max-width: 920px) { .inside { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .inside { grid-template-columns: 1fr; } }

/* Prof */
.prof { background: var(--bg-2); }
.prof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .prof-grid { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E6B6B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks li b { color: var(--ink); }
.ticks.small { gap: 8px; font-size: 15px; margin: 14px 0 20px; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 10px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.msg.me { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg.prof { justify-self: start; background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--accent-ink); margin-bottom: 2px; }
.js .chat.in .msg { animation: rise .5s ease both; }
.js .chat.in .msg:nth-child(2) { animation-delay: .5s; } .js .chat.in .msg:nth-child(3) { animation-delay: 1.1s; }
.js .chat.in .msg:nth-child(4) { animation-delay: 1.6s; } .js .chat.in .msg:nth-child(5) { animation-delay: 2.2s; }

/* Subjects */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 28px; padding: 4px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; font: 600 15px var(--sans); color: var(--ink-2); padding: 10px 20px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.board-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-bottom: 28px; }
.board-panel:not([hidden]) { animation: rise .35s ease both; }
.level + .level { margin-top: 24px; }
.level h3 { font-size: 17px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 13px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.chips li small { color: var(--muted); margin-left: 6px; font-size: 12px; }
@media (max-width: 560px) { .board-panel { padding: 20px; } }

/* Accessibility */
.access-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.access-grid li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 4px; }
.access-grid b { font-weight: 600; }
.access-grid span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 920px) { .access-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .access-grid { grid-template-columns: 1fr; } }
.langs { text-align: center; margin-top: 28px; color: var(--ink-2); font-size: 17px; }
.langs span { color: var(--muted); font-size: 14px; margin-right: 8px; }
.langs i { font-style: normal; display: inline-block; margin: 4px 6px; padding: 4px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* Devices and downloads */
.devices { background: var(--bg-2); }
.dev-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.dev-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.dev-grid article.feature { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.dev-grid h3 small { font: 500 14px var(--sans); color: var(--muted); margin-left: 6px; }
@media (max-width: 860px) { .dev-grid { grid-template-columns: 1fr; } }
.dl { display: grid; gap: 8px; margin-bottom: 14px; }
.dl .btn { justify-content: flex-start; width: fit-content; }
.dl .alt { font-size: 14px; color: var(--muted); }
.all-dl { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.phone-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .phone-row { grid-template-columns: 1fr; } }
.qr-card { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.qr-card img { background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.qr-card p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.on-phone .qr-card { display: none; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
details summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details ol, details p { margin: 0 0 16px; color: var(--ink-2); }

/* Tutors and pricing */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.t-grid article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.t-grid p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 920px) { .t-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .t-grid { grid-template-columns: 1fr; } }
.pricing { margin-top: 88px; }
.price-h { text-align: center; font-size: clamp(26px, 3.4vw, 34px); }
.price-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.cur { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.cur select { width: auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 6px; transition: transform .2s, box-shadow .2s; }
.plan.popular { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan.fit { transform: translateY(-4px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h3 { margin: 0; }
.plan .who { color: var(--muted); font-size: 15px; min-height: 2.6em; }
.plan .amount { font: 600 44px var(--serif); letter-spacing: -0.02em; }
.plan .per { font: 500 15px var(--sans); color: var(--muted); margin-left: 4px; }
.plan .equiv { font-size: 14px; color: var(--good); min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.soon { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.calc { margin: 28px auto 16px; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.calc label { display: flex; justify-content: space-between; font-weight: 500; }
.calc output { font: 600 22px var(--serif); color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 12px 0; }
.calc-out { color: var(--ink-2); }
.calc-out b { color: var(--ink); }

/* Parents, centres */
.others { background: var(--bg-2); }
.others-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.others-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.others-grid .eyebrow { text-align: left; }
.others-grid p { color: var(--ink-2); }
@media (max-width: 760px) { .others-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq .wrap { display: grid; gap: 10px; }

/* Early access */
.early-box { background: linear-gradient(140deg, #0E6B6B, #0A4747); color: #fff; border-radius: 28px; padding: 44px; box-shadow: var(--shadow); }
.early-box h2 { color: #fff; text-align: left; }
.early-box > p { color: rgba(255,255,255,.85); max-width: 560px; }
.early-box a { color: #fff; }
.ea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 16px; }
.ea-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.ea-grid label small { font-weight: 400; opacity: .8; }
.ea-grid .span2 { grid-column: 1 / -1; }
.early-box input, .early-box select { background: rgba(255,255,255,.96); color: #17201F; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.9); margin-bottom: 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: #fff; flex: none; }
.early-box .btn.primary { background: #fff; color: #0B4F4F; border-color: #fff; }
.early-box .fine { color: rgba(255,255,255,.75); margin-top: 14px; }
.ea-msg { margin: 10px 0 0; font-weight: 600; }
.ea-msg.bad { color: #FFD9C7; }
.ea-done b { display: block; font: 600 28px var(--serif); margin-bottom: 6px; }
.ea-off { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.12); }
@media (max-width: 560px) { .early-box { padding: 26px 20px; } .ea-grid { grid-template-columns: 1fr; } .early-box .btn.big { width: 100%; } }

/* Subjects page */
.page-head { padding: 56px 0 28px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 56px); }
.page-head p { color: var(--ink-2); max-width: 600px; margin: 0 auto; font-size: 18px; }
.finder { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 28px auto 32px; max-width: 760px; }
.finder input { flex: 1; min-width: 220px; }
.all-boards { padding: 0 0 48px; }
.subject-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.subject-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.subject-list li small { color: var(--muted); white-space: nowrap; }
.none-found { text-align: center; color: var(--muted); padding: 20px; }
.request { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; max-width: 760px; margin: 0 auto 80px; }
.request form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: end; margin-top: 14px; }
.request label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.request .ea-msg.bad { color: #B4471F; }
@media (max-width: 640px) { .request form { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; margin-bottom: 28px; }
.foot nav { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot nav b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.legal-line { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { text-align: left; font-size: 24px; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-2); }
.draft { background: var(--gold-tint); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 12px; padding: 12px 16px; margin: 16px 0 24px; }

/* Appear on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.langs i.soon { color: var(--muted); }
.langs i.soon::after { content: ' · soon'; font-size: 12px; }

/* Small phones: the theme switch moves into the menu; the board picker fills the width */
.nav-theme { display: none; text-align: left; border: 0; background: transparent; font: 500 15px var(--sans); color: var(--ink-2); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
@media (max-width: 420px) { .theme-btn { display: none; } .nav-theme { display: block; } }
@media (max-width: 560px) { .cd-controls .seg { width: 100%; flex-wrap: nowrap; } .cd-controls .seg button { flex: 1; padding: 9px 6px; } }

/* ---------- Multi-page site ---------- */
.links a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-tint); }
.eyebrow.left { text-align: left; }

/* Page intros on the inner pages */
.page-hero { padding: 72px 0 16px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: -200px -10% auto; height: 640px; background: radial-gradient(520px 300px at 70% 30%, var(--accent-tint), transparent 70%), radial-gradient(420px 260px at 12% 10%, var(--gold-tint), transparent 70%); z-index: -1; pointer-events: none; }
.page-hero h1 { font-size: clamp(40px, 6vw, 66px); }
.page-hero .center .lead { margin-left: auto; margin-right: auto; }
.cta.center { justify-content: center; }
@media (max-width: 640px) { .page-hero { padding: 48px 0 8px; } }

/* Home: what it is */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pillars article { padding-top: 22px; border-top: 2px solid var(--accent); }
.pillars .num { display: block; font: 600 14px var(--serif); color: var(--accent); margin-bottom: 10px; letter-spacing: .04em; }
.pillars p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; gap: 32px 28px; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Home: who it's for */
.who { background: var(--bg-2); }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who-grid .fit-card { padding: 26px 24px; min-height: 230px; }
.who-grid .fit-card b { font-size: 22px; }
@media (max-width: 1000px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } .who-grid .fit-card { min-height: 0; } }

/* Steps in threes */
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps.three { grid-template-columns: 1fr; } }

/* Home: the countdown band */
.band-wrap { padding: 0 0 96px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 40px 44px; border-radius: 26px; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.band:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.band h2 { margin-bottom: .3em; }
.band p { color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .band { padding: 28px 22px; } .band .btn { width: 100%; } .band-wrap { padding-bottom: 64px; } }

/* Home: boards */
.subj-strip { background: var(--bg-2); }
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.board-card { display: grid; gap: 6px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.board-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.board-card b { font: 600 22px var(--serif); }
.board-card span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .boards { grid-template-columns: 1fr; } }

/* Home: why trust it */
.trust-sec { padding: 72px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust li { display: grid; gap: 4px; align-content: start; }
.trust b { font-weight: 600; }
.trust span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Final call */
.final { padding-top: 24px; }
.final-box { background: linear-gradient(140deg, #0E6B6B, #0A4747); color: #fff; border-radius: 28px; padding: 56px 28px; text-align: center; box-shadow: var(--shadow); }
.final-box h2 { color: #fff; }
.final-box p { color: rgba(255,255,255,.85); }
.btn.on-dark-primary { background: #fff; color: #0B4F4F; border-color: #fff; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.on-dark:hover { border-color: #fff; }

/* Short "get the app" strip on inner pages */
.devices-short { padding: 0 0 96px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 36px 40px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.split > div { max-width: 640px; }
.split h2 { font-size: clamp(24px, 3vw, 32px); }
.split p { margin: 0; }
@media (max-width: 640px) { .split { padding: 26px 22px; } .split .btn { width: 100%; } .devices-short { padding-bottom: 64px; } }

/* Tutors: a marking card */
.t-grid article h3 { font-size: 18px; }
.pricing-sec { background: var(--bg-2); }
.mark-mock { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; }
.mm-head { font-size: 13px; font-weight: 600; color: var(--muted); }
.mm-q { font-weight: 600; }
.mm-q .qn { display: inline-block; font-size: 12px; background: var(--bg-2); padding: 2px 8px; border-radius: 6px; margin-right: 6px; color: var(--ink-2); }
.mm-ans { font: 600 20px 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; color: var(--ink); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.mm-prof { background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 14px; padding: 14px; }
.mm-prof p { margin: 4px 0; color: var(--ink-2); font-size: 15px; }
.mm-prof small { color: var(--muted); }
.mm-top { display: flex; justify-content: space-between; align-items: baseline; }
.mm-top span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); }
.mm-top b { font: 600 22px var(--serif); color: var(--accent-ink); }
.mm-btns { display: flex; gap: 8px; justify-content: flex-end; }
.mm-btns .b { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); }
.mm-btns .b.ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Parents: a report card and what you see */
.report-mock { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; max-width: 460px; margin-left: auto; }
.rm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.rm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rm-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.rm-stats b { display: block; font: 600 20px var(--serif); }
.rm-stats span { font-size: 12px; color: var(--muted); }
.rm-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.rm-bars div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.rm-bars i { display: block; height: 6px; border-radius: 3px; background: var(--bg-2); position: relative; overflow: hidden; }
.rm-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: 3px; transform-origin: left; animation: grow 1.2s ease both .3s; }
.rm-note { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; }
@media (max-width: 920px) { .report-mock { margin: 0 auto; } }
@media (max-width: 420px) { .rm-stats b { font-size: 17px; } .rm-top { flex-direction: column; } }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.two-col > div { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.two-col .dont { background: var(--bg-2); }
.crosses { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.crosses li { position: relative; padding-left: 30px; color: var(--ink-2); }
.crosses li::before { content: '×'; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
