

:root {
  --ink:        #15111F;
  --purple:     #5534A5;
  --lilac-soft: #D9CCFA;
  --lilac-line: #C9B6F5;
  --lilac:      #F1EDFB;
  --night:      #241D33;
  --body:       #3B3548;
  --muted:      #5A5468;
  --line:       #E6E2EE;
  --page:       #FFFFFF;
  --on-dark:    #D6D1E0;

  --wrap: 1280px;
  --pad: 40px;
  --radius: 20px;
  --radius-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 900; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.display { font-size: clamp(min(48px, 13vw), 8vw, 112px); line-height: 0.92;
  letter-spacing: -0.055em; text-wrap: balance; }
.h2      { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.045em;
  text-wrap: balance; }
.h3      { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.03em; }
.lede    { font-size: 19px; line-height: 1.5; color: var(--body); max-width: 34em; }
.body    { font-size: 17px; line-height: 1.55; color: var(--body); max-width: 34em; }
.meta    { font-size: 15px; color: var(--muted); }
.kicker  { font-size: 15px; font-weight: 700; color: var(--purple); }

.hl {
  color: var(--purple);
  text-decoration-line: underline;
  text-decoration-color: var(--lilac-line);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.12em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 104px 0; }
.sec-tight { padding: 72px 0; }
.sec-head { max-width: 46rem; margin-bottom: 40px; }
.sec-head .h2 + p { margin-top: 18px; }
.band-ink { background: var(--ink); color: var(--on-dark); }
.band-ink h2, .band-ink h3 { color: #FFFFFF; }
.band-lilac { background: var(--lilac); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .12s ease;
}
.btn-primary { background: var(--purple); color: #FFFFFF; }
.btn-primary:hover { background: var(--ink); color: #FFFFFF; }
.btn-ghost { background: var(--page); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-on-dark { background: #FFFFFF; color: var(--ink); }
.btn-on-dark:hover { background: var(--lilac-soft); color: var(--ink); }
.btn-outline-light { border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { font-weight: 700; color: var(--purple); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.grade {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 600;
}
.grade b { font-size: 16px; font-weight: 900; }
.grade-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none;
}

.pill-tag > span { font-weight: 600; opacity: .62; }
.pill-tag:hover { background: var(--ink); color: #FFFFFF; }
.jump { font-size: clamp(26px, 3vw, 32px); font-weight: 900; letter-spacing: -0.04em; color: var(--ink); }
.jump span { color: var(--purple); }

.card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--page); }
.card-ink { background: var(--night); border: 0; color: var(--on-dark); }

.card-shadow { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); background: var(--page); }

.site-head { position: sticky; top: 0; z-index: 40; background: var(--page); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.wordmark {
  font-size: 24px; font-weight: 600; letter-spacing: .26em;
  color: var(--ink); line-height: 1;
}
.brand:hover .wordmark { color: var(--purple); }
.wordmark-foot { display: block; font-size: 28px; margin-bottom: 4px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 15px; font-weight: 600; text-decoration: none; padding: 0 12px; }
.btn-nav {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--ink); color: #FFFFFF;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.btn-nav:hover { background: var(--purple); color: #FFFFFF; }
.nav-menu {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--page); color: var(--ink); cursor: pointer;
}

.menu-sheet { display: none; position: fixed; inset: 72px 0 0; z-index: 39; background: var(--page); overflow-y: auto; }
.menu-sheet.open { display: block; }
.menu-sheet nav { display: flex; flex-direction: column; padding: 8px 0 32px; }
.menu-sheet nav a {
  display: flex; align-items: center; min-height: 56px;
  padding: 0 var(--pad); border-bottom: 1px solid var(--line);
  font-size: 19px; font-weight: 700; text-decoration: none;
}
.menu-sheet .menu-foot { padding: 24px var(--pad); display: grid; gap: 12px; }
body.menu-open { overflow: hidden; }

.row-scroll { display: grid; gap: 20px; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.site-foot { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 15px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col p:first-child { font-weight: 800; color: var(--ink); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.foot-base a { color: var(--muted); }

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px var(--pad); background: var(--ink); color: #FFFFFF; font-size: 14px;
}
.cookie-bar p { margin: 0; flex: 1 1 20em; min-width: 0; }
.cookie-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.cookie-bar a { color: var(--lilac-soft); }
.cookie-bar button {
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  background: #FFFFFF; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 24px 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 19px; font-weight: 800; color: var(--ink); text-align: left;
}
.acc-q::after { content: '+'; font-size: 26px; font-weight: 400; line-height: 1; color: var(--purple); }
.acc-q[aria-expanded="true"]::after { content: '\2212'; }

.acc-a { padding: 0 0 24px; max-width: 46rem; }
.acc-a[hidden] { display: none; }

.btn, .btn-nav, .pill-tag, .nav-menu, .filter-btn, .board-tab, .acc-q,
.pick, .form-next, .form-back, .cookie-bar button, .avail-cell,
.subj-card, .res-card, .board-card, .price-row, .band-link, .quote, .tutor {
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .btn-nav:active, .pill-tag:active, .nav-menu:active,
.filter-btn:active, .board-tab:active, .pick:active, .form-next:active,
.form-back:active, .cookie-bar button:active {
  transform: scale(0.97);
}
.subj-card:active, .res-card:active, .board-card:active, .price-row:active,
.band-link:active {
  transform: scale(0.995);
}
.pill-tag, .filter-btn, .board-tab, .pick, .form-next, .form-back,
.subj-card, .res-card, .board-card, .price-row, .band-link, .cookie-bar button,
.nav-menu, .btn-nav, .avail-cell {
  transition: background .15s, color .15s, border-color .15s, transform .12s ease;
}

@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }

::view-transition-old(root) { animation: fade-out .14s ease both; }
::view-transition-new(root) { animation: fade-in .22s ease both; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.acc-maths         { --accent: #6AABF7; }
.acc-further-maths { --accent: #A98FD4; }
.acc-biology       { --accent: #6BC98A; }
.acc-chemistry     { --accent: #F4A94E; }
.acc-physics       { --accent: #60C8F0; }
.acc-economics     { --accent: #F0C060; }
.acc-history       { --accent: #D4A0C8; }
.acc-psychology    { --accent: #A0D4A0; }

.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 700; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--purple); }
.crumb [aria-current] { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--lilac); font-size: 14px; font-weight: 700; color: var(--ink);
}
.chip span { color: var(--muted); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 10px; border-radius: 10px; background: var(--lilac);
  font-size: 13px; font-weight: 600; color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.split-body { display: flex; flex-direction: column; gap: 20px; }

.side { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 64px; align-items: start; }

.why-grid { margin-top: 40px; }
.why-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 18px; background: var(--night); }
.why-card h3 { font-size: 24px; letter-spacing: -0.025em; color: var(--lilac-soft); }
.why-card p { font-size: 16px; color: var(--on-dark); }

.stages { list-style: none; margin: 0; padding: 0; }
.stage { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 3px solid var(--ink); }
.stage-num { font-size: 64px; line-height: 0.9; font-weight: 900; letter-spacing: -0.06em; color: var(--purple); }
.stage h3 { font-size: 22px; letter-spacing: -0.02em; }
.stage p { font-size: 16px; }

.who-list { list-style: none; margin: 40px 0 0; padding: 0; }
.who-item { display: flex; gap: 12px; padding: 22px; border: 1.5px solid var(--ink); border-radius: 16px; }
.who-item svg { flex: 0 0 auto; margin-top: 3px; }
.who-item b { display: block; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.who-item span { font-size: 15px; color: var(--body); }

.price-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px; padding: clamp(24px, 4vw, 40px); border: 2px solid var(--ink); border-radius: 24px; }
.price-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.price-num { font-size: clamp(64px, 8vw, 104px); line-height: 0.85; font-weight: 900;
  letter-spacing: -0.06em; color: var(--ink); }
.price-figure b { display: block; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.price-figure .body { display: block; }

.cta-panel { display: flex; flex-direction: column; gap: 24px; align-items: start;
  padding: clamp(32px, 6vw, 72px); border-radius: 28px; background: var(--purple); color: #FFFFFF; }
.cta-panel h2 { max-width: 16em; color: #FFFFFF; font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95; letter-spacing: -0.05em; }
.cta-panel .hl { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, .55); }
.cta-panel p { max-width: 36em; font-size: 18px; color: var(--lilac); }

@media (max-width: 900px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .sec { padding: 64px 0; }
  .sec-tight { padding: 48px 0; }
  .nav-links, .nav-login { display: none; }
  .nav-menu { display: inline-flex; }
  .btn, .btn-row > .btn { width: 100%; }
  .btn-nav { width: auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split, .side { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cookie-bar { flex-wrap: nowrap; gap: 12px; padding: 10px var(--pad); font-size: 13px; }
  .cookie-bar button { min-height: 36px; padding: 0 14px; }
  .price-band .btn { width: 100%; }

  .row-scroll {
    grid-auto-flow: column; grid-auto-columns: 80%;
    grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px;

    scroll-padding-left: var(--pad);
    scrollbar-width: none;
  }
  .row-scroll::-webkit-scrollbar { display: none; }
  .row-scroll > * { scroll-snap-align: start; }
  .row-stack { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
}
