@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600;
  size-adjust: 105.5%;
  ascent-override: 99.5%;
  descent-override: 33.2%;
  line-gap-override: 9.5%;
}
@font-face {
  font-family: "Source Sans 3 fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 600;
  size-adjust: 93.3%;
  ascent-override: 109.7%;
  descent-override: 42.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Poppins fallback Roboto";
  src: local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 600;
  size-adjust: 111.3%;
  ascent-override: 94.4%;
  descent-override: 31.5%;
  line-gap-override: 9%;
}
@font-face {
  font-family: "Source Sans 3 fallback Roboto";
  src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
  font-weight: 400 600;
  size-adjust: 93.7%;
  ascent-override: 109.3%;
  descent-override: 42.7%;
  line-gap-override: 0%;
}

:root {
  --navy: #141933;
  --navy-deep: #0E1226;
  --text-2: #3A4062;
  --coral: #FF604A;
  --coral-dark: #C24735;
  --deep-red: #A3301F;
  --coral-light: #FF8A78;
  --border: #EFE6DA;
  --border-2: #E4DACB;
  --tint: #FFF1EC;
  --tint-2: #F5EDE1;
  --on-dark: #D4D7E3;
  --on-dark-2: #C3C7D6;
  --on-dark-3: #9AA0B8;
  --rule-dark: #23284A;
  --font-head: "Poppins", "Poppins fallback", "Poppins fallback Roboto", sans-serif;
  --font-body: "Source Sans 3", "Source Sans 3 fallback", "Source Sans 3 fallback Roboto", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --section-y: clamp(56px, 8vw, 120px);
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--navy);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
button { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: #FFFFFF; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.tint { background: var(--tint-2); }
.navy { background: var(--navy); color: #FFFFFF; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--coral-dark);
}
.tint .eyebrow { color: var(--deep-red); }
.navy .eyebrow { color: var(--coral-light); }

h1, h2, h3, .step-title {
  font-family: var(--font-head);
  font-weight: 600;
}
.h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 820px;
  text-wrap: balance;
}
h2.h2:first-child { margin-top: 0; }
.lede {
  margin-top: 18px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 540px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.btn:hover { color: var(--navy); text-decoration: underline; }
.btn-sm { min-height: var(--tap); padding: 11px 22px; font-size: 15px; white-space: nowrap; }
.link-strong { display: inline-block; padding: 12px 0; font-size: 17px; font-weight: 600; }
.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: flex; align-items: center; min-height: var(--tap); }
.logo img { width: auto; height: 34px; }
.menu-btn {
  min-height: var(--tap);
  padding: 0 18px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.menu-btn[hidden] { display: none; }
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 0 var(--gutter) 12px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.is-open .site-nav { display: flex; }
.site-nav a:not(.btn) {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav .btn { display: none; }

/* Breadcrumb (inner pages) */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-2);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; color: inherit; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(24px, 4.5vw, 64px);
  align-items: center;
  padding-top: clamp(20px, 3.5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 80px);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .eyebrow { margin-bottom: 12px; }
.relation {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-2);
}
.relation img { flex: none; width: 24px; height: 24px; }
.hero .kite-string {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.kite-string path {
  stroke-dasharray: 1400;
  opacity: 0.55;
  animation: kite-draw 2.4s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes kite-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .kite-string path { animation: none; }
}

/* Photos */
.photo { display: block; min-width: 0; }
.photo img { width: 100%; height: auto; border-radius: 8px; }
.photo-block { padding-bottom: clamp(36px, 5vw, 80px); }
.photo-block .photo { max-width: 720px; }

/* What your child will do */
.do-grid {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px 32px;
}
.list-head {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  font-size: 18px;
}
.list-head-ai { border-bottom-color: var(--coral); }
.list { list-style: none; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--border-2); line-height: 26px; }
.list-muted li { color: var(--text-2); }
.teacher-line { margin-top: 24px; line-height: 28px; max-width: 560px; }

/* A class */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.h2-xl {
  margin-top: 14px;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.accent-coral { color: var(--coral); }
.on-dark { margin-top: 14px; line-height: 28px; color: var(--on-dark); max-width: 440px; }
.cadence { margin-top: 18px; line-height: 28px; font-weight: 600; }
.steps-head { font-size: 18px; color: var(--on-dark); }
.timeline { list-style: none; margin-top: 16px; padding: 0; }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 13.25px;
  top: 27px;
  bottom: 0;
  width: 1.5px;
  background: var(--text-2);
}
.timeline li:last-child::after { display: none; }
.step-title { display: block; font-size: 21px; line-height: 30px; }
.timeline p { margin-top: 4px; line-height: 28px; color: var(--on-dark); }

/* Age groups */
.age-cards {
  list-style: none;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  max-width: 820px;
}
.age-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 20px 24px;
  border: 1.5px solid var(--border-2);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  text-decoration: none;
}
.age-card:hover { border-color: var(--coral-dark); }
.age-card span { color: var(--coral-dark); }

/* Why a teacher */
.why { border-top: 1px solid var(--border); }
.why .wrap { max-width: 1080px; }
.statement {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.statement span { color: var(--coral-dark); }

/* How a family joins */
.join-steps {
  list-style: none;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px 40px;
}
.join-steps li { padding-top: 16px; border-top: 2px solid var(--navy); }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  color: var(--coral-dark);
}
.join-steps h3 { margin-top: 12px; font-size: 21px; line-height: 28px; }
.join-steps p { margin-top: 6px; line-height: 28px; color: var(--text-2); }
.join-actions { margin-top: clamp(32px, 4vw, 48px); gap: 14px 24px; }
.join-actions p { font-size: 17px; line-height: 26px; max-width: 420px; }

/* FAQ */
.faq-wrap { max-width: 920px; }
.faq { margin-top: 28px; border-top: 1px solid var(--border-2); }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 18px 0;
  font-family: var(--font-head);
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; color: var(--coral-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; max-width: 700px; line-height: 28px; color: var(--text-2); }
.more-link { margin-top: 20px; display: inline-block; padding: 8px 0; font-size: 17px; font-weight: 600; }

/* Programme pages */
.fact-card { padding: 24px; border: 1.5px solid var(--border-2); border-radius: 8px; }
.blocks, .class-lists, .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px 48px;
}
.blocks { margin-top: clamp(24px, 3vw, 40px); }
.blocks h3, .outcome h3, .info-grid h2 { font-size: 21px; line-height: 28px; }
.blocks h3 { padding-top: 16px; border-top: 2px solid var(--navy); }
.blocks h3 span { font-family: var(--font-body); font-size: 17px; color: var(--text-2); }
.blocks p, .outcome p, .info-grid p { margin-top: 8px; line-height: 28px; color: var(--text-2); max-width: 600px; }
.all-classes { margin-top: clamp(32px, 4vw, 48px); }
.class-lists { gap: 8px 48px; padding-bottom: 24px; }
.class-lists h3 { margin-top: 8px; font-size: 18px; }
.class-lists ol { margin-top: 8px; padding-left: 32px; }
.class-lists li { padding: 10px 0; border-bottom: 1px solid var(--border-2); line-height: 26px; }
.class-lists li::marker { font-family: var(--font-head); font-weight: 600; color: var(--deep-red); }
.class-lists strong { display: block; font-family: var(--font-head); font-weight: 600; }
.class-lists span { display: block; color: var(--text-2); }
.outcomes {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  max-width: 1000px;
}
.outcome { padding: 24px; border: 1.5px solid var(--border-2); border-radius: 8px; }
.page-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 0 32px; }
.info-grid > div { padding-top: 16px; border-top: 2px solid var(--navy); }

/* How it works */
.blocks .list { margin-top: 4px; }
.device-line { margin-top: 28px; line-height: 28px; max-width: 760px; }

/* FAQ page */
.faq-page { padding-bottom: var(--section-y); }
.faq-page section + section { margin-top: clamp(40px, 5vw, 64px); }
.faq a { color: var(--navy); }

/* About, legal, 404 */
.about-facts { max-width: 760px; }
.legal { max-width: 760px; padding-bottom: var(--section-y); }
.legal section + section { margin-top: 40px; }
.legal h2 { margin-bottom: 12px; font-size: 24px; }
.legal p { line-height: 28px; }
.legal .list { margin-bottom: 12px; }
.pending { padding: 14px 16px; border-left: 3px solid var(--coral); background: var(--tint); color: var(--text-2); }
.not-found-links { margin-top: 28px; }
.not-found-links a { color: var(--navy); }

/* Join form */
.btn-outline { background: transparent; border: 1.5px solid var(--navy); }
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px 72px;
  align-items: start;
}
.join-grid > div { max-width: 640px; }
.form-error { margin-bottom: 28px; padding: 20px; border-left: 3px solid var(--deep-red); background: var(--tint); }
.form-error:not(:target) { display: none; }
.form-error h2 { font-size: 21px; line-height: 28px; }
.form-error p { margin: 8px 0 16px; line-height: 28px; color: var(--text-2); }
.lead-form { display: grid; gap: 24px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--text-2);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--navy);
  font: inherit;
}
.field input::placeholder { color: var(--text-2); opacity: 1; }
.field input:focus-visible, .age-options input:focus-visible + span, .check input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.field [aria-invalid="true"] { border-color: var(--deep-red); }
.field-hint { margin-top: 6px; font-size: 16px; line-height: 22px; color: var(--text-2); }
.field-error { margin-top: 6px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--deep-red); }
.age-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.age-options label { position: relative; }
.age-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.age-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1.5px solid var(--text-2);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
}
.age-options input:checked + span { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.track-hint { margin-top: 10px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--coral-dark); }
.track-hint span { display: none; }
.age-field:has(input[value="7"]:checked, input[value="8"]:checked, input[value="9"]:checked) .hint-junior,
.age-field:has(input[value="10"]:checked, input[value="11"]:checked, input[value="12"]:checked, input[value="13"]:checked) .hint-builders { display: inline; }
.check { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-start; }
.check .field-error { flex-basis: 100%; margin: 0 0 0 36px; }
.check input { flex: none; width: 24px; height: 24px; margin: 12px 0 0; accent-color: var(--navy); }
.check label { flex: 1 1 0; padding: 9px 0; line-height: 26px; font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { width: 100%; border: 0; cursor: pointer; }
.lead-form .btn:disabled { opacity: .7; cursor: wait; }
.form-note { font-size: 16px; line-height: 24px; color: var(--text-2); }
.join-aside { padding: 24px; border-radius: 8px; background: var(--tint-2); }
.join-aside h2 { font-size: 24px; line-height: 30px; }
.join-aside p { margin: 8px 0 18px; line-height: 28px; color: var(--text-2); }
.join-aside .aside-number { margin: 12px 0 0; font-weight: 600; color: var(--navy); }
@media (min-width: 420px) {
  .age-options { grid-template-columns: repeat(7, 1fr); }
  .lead-form .btn { width: auto; justify-self: start; }
}

/* Final call to action */
.final-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px 72px;
  align-items: end;
}
.final-grid img { width: 56px; height: 56px; }
.final-grid h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.final-grid p { font-size: 19px; line-height: 29px; color: var(--on-dark); max-width: 460px; }
.final-grid .btn { margin-top: 22px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #FFFFFF; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px 48px;
  padding-top: 48px;
  padding-bottom: 28px;
}
.footer-grid > div > img { width: auto; height: 32px; }
.footer-grid p, .footer-col { font-size: 16px; line-height: 24px; color: var(--on-dark-2); }
.footer-tagline { margin-top: 14px; max-width: 300px; }
.footer-grid h2 { font-size: 15px; color: var(--coral-light); }
.footer-col { margin-top: 8px; display: flex; flex-direction: column; }
.footer-col a { padding: 7px 0; color: #FFFFFF; }
.footer-col a:hover { color: var(--coral-light); }
.footer-nav a { text-decoration: none; }
.footer-grid h2 + p { margin-top: 8px; }
.footer-base {
  padding-top: 16px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule-dark);
  font-size: 15px;
  color: var(--on-dark-3);
}

/* Phone booking bar: fixed, so the page reserves its height (1px border + 10 + 54 + 10). */
body:has(.sticky-cta) { padding-bottom: calc(75px + env(safe-area-inset-bottom)); }
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  transition: transform .2s ease, visibility .2s;
}
.sticky-cta.is-hidden { transform: translateY(100%); visibility: hidden; }
.sticky-cta .btn { display: flex; width: 100%; min-height: 54px; }
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

@media (min-width: 1040px) {
  .menu-btn, .menu-btn[hidden] { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    border: 0;
  }
  .site-nav a:not(.btn) {
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    white-space: nowrap;
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--coral); }
  .site-nav .btn { display: inline-flex; }
  .hero .kite-string { display: block; }
  .footer-base { padding-bottom: 44px; }
  .sticky-cta { display: none; }
  body:has(.sticky-cta) { padding-bottom: 0; }
}
