/* =========================================================
   Rhythmic Tuition — main stylesheet
   ---------------------------------------------------------
   1. Design tokens (colours, fonts, spacing) — edit here first
   2. Base / reset
   3. Layout helpers
   4. Components (buttons, eyebrow, cards…)
   5. Page sections, in the order they appear in index.html
   6. Cookie banner
   7. Animations & accessibility
   ========================================================= */

/* 1. DESIGN TOKENS ---------------------------------------- */
:root {
  /* Brand colours */
  --green-900: #038542;   /* logo green (from rhythmic-tuition-logo.svg) */
  --green-950: #02703A;   /* darker logo green — hover */
  --green-300: #E2F7EA;   /* light text on green */
  --green-100: #F0FBF4;
  --red-600:   #C8322B;   /* primary red (CTAs) */
  --red-700:   #A9241E;   /* red hover */
  --red-300:   #F09A95;   /* red accent on dark */

  /* Neutrals */
  --white:     #FFFFFF;
  --ink:       #14201C;   /* main text / footer bg */
  --text:      #45544E;   /* body copy */
  --text-soft: #6B7772;   /* captions */
  --surface:   #F6F8F6;   /* alternate section bg */
  --line:      #E4EAE6;   /* card borders */
  --line-strong: #CFDAD4;
  --field-bg:  #FBFCFB;

  /* Typography */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Shape & layout */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1180px;
  --section-pad: 96px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2. BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* keep hidden elements hidden even when a class sets display */
a { color: var(--green-900); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-600); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; color: var(--green-900); margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}
::placeholder { color: #8C9691; }

/* 3. LAYOUT ----------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--green-900); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
}
.split--top { align-items: start; }

/* 4. COMPONENTS ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { font-size: 13.5px; padding: 11px 18px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--red-600); color: var(--white); box-shadow: 0 10px 26px rgba(200,50,43,.24); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--outline { background: var(--white); color: var(--green-900); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--green-900); background: #F4F8F6; color: var(--green-900); }
.btn--green { background: var(--green-900); color: var(--white); box-shadow: 0 8px 20px rgba(3,133,66,.22); }
.btn--green:hover { background: var(--green-950); color: var(--white); }
.btn--ghost { background: none; color: var(--text-soft); }
.btn--ghost:hover { background: #F2F5F3; color: var(--ink); transform: none; }

.eyebrow {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow--light { color: var(--red-300); }
.section-title { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.18; margin-top: 14px; }
.section-title--light { color: var(--white); }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--text); margin-top: 16px; max-width: 60ch; }

.stat__value { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--green-900); line-height: 1; }
.stat__label { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.logo__text { font-family: var(--font-display); font-size: 21px; color: var(--green-900); }

/* 5. SECTIONS --------------------------------------------- */

/* 5.1 Sticky header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E8EAE6;
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,32,28,.07); }
.site-header__inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 500; color: #3C4A45; }
.site-nav a:hover { color: var(--red-600); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--white);
  color: var(--green-900); font-size: 18px; cursor: pointer;
}

/* 5.2 Hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%); padding: 36px 0 72px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #D8E2DC; background: var(--white);
  border-radius: var(--radius-pill); padding: 6px 14px 6px 8px;
  font-size: 12.5px; font-weight: 600; color: var(--green-900);
}
.hero__pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-600); }
.hero__title { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin-top: 22px; text-wrap: balance; }
.hero__title em { color: var(--red-600); }
.hero__text { margin-top: 20px; font-size: 17.5px; line-height: 1.6; color: var(--text); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; padding-top: 28px; border-top: 1px solid #E3E9E5; }

.hero__media { position: relative; }
.video-card {
  position: relative; border-radius: 26px; overflow: hidden;
  background: var(--green-900);
  box-shadow: 0 30px 70px rgba(3,133,66,.22);
  aspect-ratio: 4 / 3.2;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card__bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, rgba(3,133,66,0) 0%, rgba(3,133,66,.82) 70%);
}
.video-card__title { color: var(--white); font-size: 15px; font-weight: 600; }
.video-card__meta { color: var(--green-100); font-size: 13px; margin-top: 3px; }
.video-card__toggle {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--white); color: var(--green-900);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: background .2s ease, color .2s ease;
}
.video-card__toggle:hover { background: var(--red-600); color: var(--white); }
.rating {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(20,32,28,.05);
  font-size: 13.5px; color: var(--text);
}
.rating__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: #F1F6F3; color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
}
.rating strong { color: var(--green-900); }

/* Hero animated slideshow ("Inside a Rhythmic session")
   Each slide shows for --reel-step, then main.js moves to the next one. */
.video-card--reel { aspect-ratio: auto; height: 420px; }
.reel {
  --reel-step: 5s;
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.09), transparent 60%), var(--green-900);
}
.reel__progress { position: absolute; top: 12px; left: 22px; right: 22px; z-index: 2; display: flex; gap: 6px; }
.reel__seg {
  flex: 1; padding: 8px 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.22); background-clip: content-box;
}
.reel__seg span { display: block; height: 4px; background: var(--white); transform: scaleX(0); transform-origin: left; }
.reel__seg.is-done span { transform: none; }
.reel__seg.is-active span { animation: reel-fill var(--reel-step) linear forwards; }
.reel.is-paused *, .reel.is-offscreen * { animation-play-state: paused !important; }

.reel__scene {
  position: absolute; inset: 46px 22px 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.reel__scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.reel__art { width: 100%; max-width: 300px; min-height: 0; flex: 0 1 auto; max-height: 62%; overflow: visible; }
.reel__caption { display: grid; gap: 4px; color: var(--white); }
.reel__step { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-300); }
.reel__caption strong { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.reel__caption > span:last-child { font-size: 14px; color: var(--green-100); }
@media (max-width: 480px) {
  .reel__art { max-height: 52%; }
  .reel__caption strong { font-size: 24px; }
}

/* Slide illustrations */
.reel__art .ln { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.reel__art .lbl text { fill: var(--green-300); font: 600 11px var(--font-body); text-anchor: middle; }
.reel__art .cell rect { fill: rgba(255,255,255,.08); }
.reel__art .hot rect { fill: var(--red-600); }
.reel__art .chalk { fill: var(--white); font: 500 17px var(--font-body); }
.reel__art .chalk--hi { fill: var(--red-300); font-weight: 700; }
.reel__art .bar { fill: rgba(255,255,255,.22); }
.reel__art .paper { fill: #FBFCFB; }
.reel__art .q text { fill: var(--green-900); font: 700 11px var(--font-body); }
.reel__art .ink { fill: #A9BCB3; }
.reel__art .tag { fill: var(--red-600); font: 700 10px var(--font-body); letter-spacing: .06em; }
.reel__art .tick, .reel__art .cross { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.reel__art .tick { stroke: #1E7A52; }
.reel__art .cross { stroke: var(--red-600); }
.reel__art .score { fill: var(--green-900); font: 700 13px var(--font-body); text-anchor: middle; }
.reel__art .bubble { fill: var(--white); }
.reel__art .bubble__text { fill: var(--green-900); font: 600 10px var(--font-body); text-anchor: middle; }
.reel__art .notch { fill: rgba(255,255,255,.35); }
.reel__art .msg { fill: rgba(255,255,255,.12); }
.reel__art .msg--hi { fill: var(--red-600); }
.reel__art .msg__k { fill: var(--green-300); font: 600 7.5px var(--font-body); }
.reel__art .msg--hi ~ .msg__k { fill: #FFD9D6; }
.reel__art .msg__v { fill: var(--white); font: 600 9.5px var(--font-body); }

/* Assessment slide */
.reel__art .clip { fill: var(--green-300); }
.reel__art .pill { fill: var(--red-600); }
.reel__art .pill__t { fill: var(--white); font: 700 8.5px var(--font-body); text-anchor: middle; }
/* Workbooks & homework slide */
.reel__art .subj { fill: rgba(255,255,255,.12); }
.reel__art .subj--on { fill: var(--red-600); }
.reel__art .subj__t { fill: var(--white); font: 600 8.5px var(--font-body); text-anchor: middle; }
.reel__art .spine { fill: var(--green-300); }
.reel__art .q-t { fill: var(--green-900); font: 700 10px var(--font-body); }
.reel__art .box { fill: none; stroke: #A9BCB3; stroke-width: 1.5; }
.reel__art .tick--sm { stroke-width: 2.2; }
/* Rewatch slide */
.reel__art .screen { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.35); stroke-width: 2; }
.reel__art .rec { fill: var(--red-600); }
.reel__art .screen__t { fill: var(--white); font: 600 10px var(--font-body); }
.reel__art .play { fill: var(--red-600); }
.reel__art .play__i { fill: var(--white); }
.reel__art .track { fill: rgba(255,255,255,.22); }
.reel__art .track__fill { fill: var(--white); }

/* Slide animations — run each time a slide becomes active; --d sets the delay */
.reel__art .pop, .reel__art .grow, .reel__art .out { transform-box: fill-box; }
.reel__art .pop, .reel__art .out { transform-origin: center; }
.reel__art .grow { transform-origin: left center; }
.reel__scene.is-active .pop { animation: reel-pop .6s var(--ease) var(--d, 0s) both; }
.reel__scene.is-active .grow { animation: reel-grow .7s var(--ease) var(--d, 0s) both; }
.reel__scene.is-active .out { animation: reel-out .4s ease var(--d, 0s) both; }
@keyframes reel-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes reel-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes reel-grow { from { transform: scaleX(0); } }
@keyframes reel-out { to { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) {
  .reel__seg.is-active span { transform: none; }
  .reel__art .out { opacity: 0; }
}

/* 5.3 Subject marquee */
.marquee { background: var(--green-900); padding: 16px 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__group { display: flex; gap: 54px; padding-right: 54px; }
.marquee__group span { color: var(--green-300); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* 5.4 Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 48px; align-items: stretch; }
.package {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; background: var(--white);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.package__name, .package__amount, .package__unit, .package__desc, .package__features li { transition: color .3s ease; }
.package__name { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-900); }
.package__price { display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.package__amount { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); }
.package__unit { font-size: 14px; color: var(--text-soft); }
.package__desc { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #55635D; }
.package__divider { height: 1px; background: #EDF1EE; margin: 24px 0; }
.package__features { display: grid; gap: 11px; }
.package__features li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #3C4A45; }
.package__features li::before { content: "—"; color: var(--red-600); font-weight: 700; }
.package { display: flex; flex-direction: column; }
.package .btn { margin-top: auto; }
.package__features { margin-bottom: 28px; }
.package__badge {
  position: absolute; top: 22px; right: 22px;
  background: var(--red-600); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
/* Active package (turns green) — on mouse hover, on tap (main.js adds .is-active) or keyboard focus */
.package:is(:hover, .is-active, :focus-within) { transform: translateY(-8px); background: var(--green-900); border-color: var(--green-900); box-shadow: 0 26px 60px rgba(3,133,66,.26); }
.package:is(:hover, .is-active, :focus-within) .package__name { color: var(--green-300); }
.package:is(:hover, .is-active, :focus-within) .package__amount { color: var(--white); }
.package:is(:hover, .is-active, :focus-within) .package__unit { color: #E2F7EA; }
.package:is(:hover, .is-active, :focus-within) .package__desc { color: var(--green-100); }
.package:is(:hover, .is-active, :focus-within) .package__divider { background: rgba(255,255,255,.16); }
.package:is(:hover, .is-active, :focus-within) .package__features li { color: #F5FCF7; }
.package:is(:hover, .is-active, :focus-within) .package__features li::before { color: var(--red-300); }
.package:is(:hover, .is-active, :focus-within) .btn--outline { background: var(--red-600); border-color: var(--red-600); color: var(--white); box-shadow: 0 10px 26px rgba(200,50,43,.3); }
.package:is(:hover, .is-active, :focus-within) .btn--outline:hover { background: #E0443C; border-color: #E0443C; }

/* 5.5 Approach */
.steps { display: grid; gap: 6px; margin-top: 30px; }
.step {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.step:hover { border-color: var(--green-900); }
.step__num { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--red-600); }
.step__title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.step__text { font-size: 14px; line-height: 1.55; color: #55635D; margin-top: 4px; }
/* Weekly timetable card ("Same slot. Every week.")
   Slot position comes from --from / --to (24h hours) set in index.html; the bar spans 9am–8pm = 11 hours. */
.week {
  background: var(--green-900); color: var(--white);
  border-radius: 24px; padding: 30px;
  box-shadow: 0 24px 56px rgba(3,133,66,.18);
}
.week__head { display: grid; gap: 14px; }
.week__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.week__tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  font-size: 12.5px; color: var(--green-100);
}
.week__tag strong { font-size: 13.5px; font-weight: 700; color: var(--white); }
.week__title { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--white); }
/* Timeline runs from --tl-start to --tl-start + --tl-span (24h hours): 11am → 7pm */
.week { --tl-start: 11; --tl-span: 8; }
.week__scale { position: relative; height: 16px; margin: 28px 0 8px 52px; font-size: 11.5px; color: var(--green-300); }
.week__scale span { position: absolute; left: calc((var(--at) - var(--tl-start)) / var(--tl-span) * 100%); transform: translateX(-50%); white-space: nowrap; }
.week__scale span:first-child { transform: none; }
.week__scale span:last-child { transform: translateX(-100%); }
.week__days { display: grid; gap: 8px; }
.week__day { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.week__name { font-size: 13.5px; font-weight: 600; }
.week__day--off .week__name { color: rgba(255,255,255,.4); }
.week__track {
  position: relative; height: 36px; border-radius: 10px;
  background:
    linear-gradient(to right, transparent calc(100% - 1px), rgba(255,255,255,.14) 0) 0 0 / 25% 100% repeat-x,
    rgba(255,255,255,.08);
}
/* one block per session; a small gap keeps back-to-back sessions visibly separate */
.week__slot {
  position: absolute; top: 4px; bottom: 4px;
  left: calc((var(--from) - var(--tl-start)) / var(--tl-span) * 100% + 2px);
  width: calc((var(--to) - var(--from)) / var(--tl-span) * 100% - 4px);
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--green-900); border-radius: 7px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.week__slot .s { display: none; } /* short label, used on phones */
.week.is-in .week__slot, .no-js .week__slot { transform: none; }
.week__day:nth-child(2) .week__slot { transition-delay: .08s; }
.week__day:nth-child(3) .week__slot { transition-delay: .16s; }
.week__day:nth-child(4) .week__slot { transition-delay: .24s; }
.week__day:nth-child(5) .week__slot { transition-delay: .32s; }
.week__day:nth-child(6) .week__slot { transition-delay: .4s; }
.week__day:nth-child(7) .week__slot { transition-delay: .48s; }
.week__closed { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 12px; font-size: 12.5px; color: rgba(255,255,255,.38); }
.week__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; line-height: 1.55; color: var(--green-100); }
.week__summary { display: grid; gap: 6px; margin: 0 0 10px; }
.week__summary div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.week__summary dt { font-weight: 700; color: var(--white); }
.week__summary dd { margin: 0; }
/* narrower cards: short session labels so they always fit inside the block */
@media (max-width: 1000px) {
  .week__slot .l { display: none; }
  .week__slot .s { display: inline; }
}
@media (max-width: 480px) {
  /* small phones (iPhone ~390px, Samsung ~360px): give the time bar more room */
  .week { padding: 22px 16px; }
  .week__day { grid-template-columns: 34px 1fr; gap: 8px; }
  .week__scale { margin-left: 42px; font-size: 10.5px; }
  .week__name { font-size: 12.5px; }
  .week__title { font-size: 26px; }
  .week__slot { font-size: 10.5px; letter-spacing: -.01em; }
}

/* 5.6 About */
.about__media { position: relative; }
.about__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px; background: #F1F4F1;
}
.about__placeholder {
  aspect-ratio: 4 / 5; border-radius: 24px;
  background: #F1F4F1; border: 1px dashed #C7D3CC;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 24px; color: #5C6A64; font-size: 13.5px;
}
.about__badge {
  position: absolute; right: -14px; bottom: 28px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 18px;
  box-shadow: 0 14px 34px rgba(20,32,28,.1);
}
.about__badge small { display: block; font-size: 12.5px; color: var(--text-soft); }
.about__badge strong { display: block; font-size: 14px; color: var(--green-900); margin-top: 2px; }
.about p + p { margin-top: 16px; }
.about__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
  margin-top: 32px; padding-top: 26px; border-top: 1px solid #E8EDEA;
}
.about__stats .stat__value { font-size: 26px; }

/* 5.7 Testimonials */
.testimonials__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.testimonials__controls { display: flex; gap: 10px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: transparent;
  color: var(--white); font-size: 16px; cursor: pointer;
  transition: background .2s ease;
}
.round-btn:hover { background: rgba(255,255,255,.12); }
.quotes { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.quote {
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 28px;
  transition: background .25s ease, transform .25s ease, opacity .3s ease;
}
.quote:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.quote__mark { font-family: var(--font-display); font-size: 40px; color: var(--red-300); line-height: .6; height: 20px; }
.quote__text { font-size: 15.5px; line-height: 1.65; color: #F5FCF7; }
.quote__author { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.quote__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.quote__name { font-size: 14.5px; font-weight: 600; color: var(--white); }
.quote__role { font-size: 12.5px; color: var(--green-300); margin-top: 2px; }

/* 5.8 Contact */
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text); }
.contact-list__icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--green-900); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 18px 44px rgba(20,32,28,.06); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: #3C4A45; }
.field__input {
  width: 100%; border: 1px solid #DCE3DF; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14.5px; font-family: inherit;
  color: var(--ink); background: var(--field-bg);
}
textarea.field__input { resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; cursor: pointer;
  font-size: 13.5px; font-weight: 600; padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid #DCE3DF; background: var(--field-bg); color: var(--text);
  transition: all .18s ease;
}
.chip input:checked + span { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--green-900); outline-offset: 2px; }
.form__note { font-size: 12.5px; color: #7C8A84; text-align: center; line-height: 1.5; }
.form__error { font-size: 13px; color: var(--red-700); text-align: center; }
.hp-field { position: absolute; left: -9999px; } /* spam honeypot — keep hidden */
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 8px; }
.form-success__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--green-900); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.form-success h3 { font-size: 24px; }
.form-success p { font-size: 15px; color: #55635D; line-height: 1.6; max-width: 34ch; }

/* 5.9 Footer */
.site-footer { background: var(--ink); padding: 56px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.site-footer .logo__mark { background: var(--red-600); width: 28px; height: 28px; font-size: 14px; }
.site-footer .logo__text { color: var(--white); font-size: 20px; }
.site-footer__about { margin-top: 14px; font-size: 14px; line-height: 1.6; color: #93A19B; max-width: 30ch; }
.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__heading { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6E7C76; }
.site-footer__col a, .site-footer__col span { font-size: 14px; color: #C9D4CF; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 12.5px; color: #6E7C76; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.site-footer__legal a { color: #93A19B; }
.site-footer__legal a:hover { color: var(--white); }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.1fr .7fr 1.3fr 1.25fr; gap: 32px; }
}
/* Footer WhatsApp button */
.site-footer__col .wa-btn {
  position: relative; margin-top: 6px;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px 11px 12px; border-radius: var(--radius-md);
  background: #25D366; color: #06301F;
  box-shadow: 0 10px 24px rgba(37,211,102,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-footer__col .wa-btn:hover { background: #2EE072; color: #06301F; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,.35); }
.wa-btn::before { /* soft pulse that invites a tap */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-btn__icon { flex-shrink: 0; width: 30px; height: 30px; }
.site-footer__col .wa-btn__text { display: grid; gap: 1px; font-size: 14px; color: inherit; }
.wa-btn__text strong { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.wa-btn__text small { font-size: 12px; font-weight: 600; opacity: .8; white-space: nowrap; }
.site-footer__col .wa-btn__arrow { margin-left: auto; font-size: 16px; font-weight: 700; color: inherit; transition: transform .2s ease; }
.wa-btn:hover .wa-btn__arrow { transform: translateX(3px); }
.wa-note { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.45; color: #93A19B; }
.site-footer__col .wa-note__dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #25D366; transform: translateY(-1px); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* Footer map ("Find us") */
.map {
  height: 230px; border-radius: var(--radius-md); overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  height: 100%; padding: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; font-size: 12.5px; line-height: 1.45;
}
.site-footer__col .map__placeholder span { font-size: 12.5px; color: #93A19B; }
.map__placeholder svg { width: 24px; height: 24px; color: var(--red-300); }
.map__btn {
  border: 0; cursor: pointer; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--white); color: var(--green-900);
  transition: background .2s ease, color .2s ease;
}
.map__btn:hover { background: var(--red-600); color: var(--white); }
.site-footer__col .site-footer__address { font-size: 13px; line-height: 1.5; }
.site-footer__heading--social { margin-top: 26px; }
.site-footer__heading--social + .social { margin-top: 12px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #C9D4CF;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social a:hover { background: var(--red-600); color: var(--white); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.social--sm { margin-top: 0; gap: 6px; }
.social--sm a { width: 32px; height: 32px; }
.social--sm svg { width: 15px; height: 15px; }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--green-300); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--white); }

/* Simple content pages (privacy.html, 404.html) */
.page-hero { background: var(--surface); padding: 72px 0 48px; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.15; margin-top: 14px; }
.prose { max-width: 720px; padding: 56px 24px 96px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text); }
.prose ul { list-style: disc; padding-left: 20px; margin-top: 10px; }
.prose p + p { margin-top: 12px; }

/* 5.10 Front page (from the "FRONT PAGE" document) -------- */

/* Service tabs at the top of the hero */
.svc { margin-bottom: 32px; }
.svc__tabs {
  display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%;
  padding: 6px; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 8px 24px rgba(20,32,28,.05);
}
.svc__tab {
  border: 0; background: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); padding: 12px 16px; border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.svc__tab:hover { background: var(--surface); color: var(--green-900); }
.svc__tab[aria-selected="true"] { background: var(--green-900); color: var(--white); }
.svc__desc { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14.5px; color: var(--text); }
.svc__desc::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red-600); }

.hero__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-600); }
.hero .hero__title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; margin-top: 16px; }

/* Why choose us checklist */
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.checklist li:hover { border-color: var(--green-900); transform: translateY(-2px); }
.checklist__icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-900); color: var(--white); font-size: 13px;
}

/* Your Child's Success Starts Here */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 44px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.pillar__num { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--red-600); }
.pillar h3 { font-size: 22px; line-height: 1.25; margin-top: 10px; }
.pillar p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--text); }
.confidence {
  margin-top: 24px; padding: 36px; border-radius: 24px;
  background: var(--green-900);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center;
}
.confidence__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.25; color: var(--white); }
.confidence__title em { color: var(--red-300); }
.confidence p { font-size: 15.5px; line-height: 1.7; color: var(--green-100); }

/* Year tabs + panel */
.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 36px; }
.years__tab {
  padding: 14px 8px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--white);
  font-size: 14.5px; font-weight: 700; color: var(--green-900);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.years__tab:hover { border-color: var(--green-900); transform: translateY(-2px); }
.years__tab[aria-selected="true"] { background: var(--red-600); border-color: var(--red-600); color: var(--white); box-shadow: 0 10px 24px rgba(200,50,43,.24); }
.year-panel { margin-top: 32px; }
.year-panel__badge { display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--green-900); color: var(--white); font-size: 13px; font-weight: 700; }
.year-panel h3 { font-size: 22px; line-height: 1.3; margin-top: 18px; }
.year-panel h3 + p { margin-top: 12px; }
.year-panel p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-top: 10px; max-width: 60ch; }

/* Year focus box (changes with the Year tab) */
.year-focus {
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(20,32,28,.06);
  margin-bottom: 10px;
}
.year-focus.is-changing { animation: year-fade .45s var(--ease); }
@keyframes year-fade { from { opacity: .2; transform: translateY(6px); } }
.year-focus__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.year-focus__chip {
  display: inline-flex; padding: 6px 12px; border-radius: var(--radius-pill);
  background: #FCEDEC; color: var(--red-700); font-size: 12.5px; font-weight: 700;
}
.year-panel .year-focus__title { font-size: 24px; margin-top: 14px; }
.year-panel .year-focus__intro { margin-top: 8px; }
.year-focus__list { display: grid; gap: 10px; margin-top: 16px; }
.year-focus__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.year-focus__list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-900); color: var(--white); font-size: 11px; margin-top: 1px;
}

/* Form groups + request switcher */
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form__legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 10px 6px; border-radius: 10px; cursor: pointer; text-align: center;
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text);
  transition: background .2s ease, color .2s ease;
}
.seg span:hover { color: var(--green-900); }
.seg input:checked + span { background: var(--green-900); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--green-900); outline-offset: 2px; }

@media (max-width: 600px) {
  .hero { padding-top: 20px; }
  /* Phones: all four service tabs visible as a 2 x 2 grid */
  .svc { margin-bottom: 26px; }
  .svc__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .svc__tab { padding: 11px 8px; font-size: 11.5px; letter-spacing: .04em; line-height: 1.3; text-align: center; }
  .hero__actions .btn { flex: 1 1 100%; }
  .confidence { padding: 26px; }
}

/* 5.13 Classroom photo gallery ------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 40px; }
.gallery__item { margin: 0; }
.gallery__open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--line);
  box-shadow: 0 18px 44px rgba(20,32,28,.1);
}
.gallery__open img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__open:hover img, .gallery__open:focus-visible img { transform: scale(1.04); }
.gallery__item figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
/* Photo viewer */
.lightbox {
  width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--ink); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10,20,16,.82); }
.lightbox__img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 16px; font-weight: 700;
}
.lightbox__close:hover { background: var(--red-600); color: var(--white); }

/* 5.12 App — coming soon ------------------------------------ */
.app__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: #FCEDEC; color: var(--red-700);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.app__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); animation: app-blink 1.6s ease-in-out infinite; }
@keyframes app-blink { 50% { opacity: .25; } }
.app__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 22px; margin-top: 30px; }
.app__features li { display: flex; gap: 14px; align-items: flex-start; }
.app__features strong { display: block; font-size: 15px; color: var(--ink); }
.app__features li span:not(.app__icon) { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text); }
.app__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--green-900);
}
.app__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app__access { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--text-soft); }
.app__pill { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--green-900); color: var(--white); font-size: 13px; font-weight: 600; }

/* Phone mock-up */
.app__media { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 290px; max-width: 100%; padding: 12px;
  border-radius: 42px; background: var(--ink);
  box-shadow: 0 40px 80px rgba(3,133,66,.28), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone__notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 0 0 14px 14px; background: var(--ink); z-index: 2; }
.phone__screen {
  display: grid; gap: 10px; padding: 44px 14px 20px; border-radius: 32px;
  background: linear-gradient(180deg, var(--green-900) 0 120px, var(--surface) 120px);
  min-height: 520px;
}
.phone__top { display: grid; gap: 2px; padding: 0 4px 10px; color: var(--white); }
.phone__hello { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.phone__sub { font-size: 12.5px; color: var(--green-300); }
.phone__card {
  display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(20,32,28,.06);
}
.phone__k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.phone__v { font-size: 14px; font-weight: 600; color: var(--ink); }
.phone__row { display: flex; justify-content: space-between; align-items: baseline; }
.phone__score { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--green-900); }
.phone__bar { height: 6px; border-radius: 3px; background: #E8EEEA; overflow: hidden; margin-top: 4px; }
.phone__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--green-900), #34B36F); transform-origin: left; }
.phone__card--warn { border-color: #F3C9C6; background: #FFF6F5; }
.phone__card--warn .phone__k { color: var(--red-600); }
.phone__card--msg { background: var(--green-900); border-color: var(--green-900); }
.phone__card--msg .phone__k { color: var(--green-300); }
.phone__card--msg .phone__v { color: var(--white); font-weight: 500; }
.app__note { margin-top: 14px; font-size: 12px; color: var(--text-soft); }
/* cards rise in one by one when the phone scrolls into view */
.app__media .phone__card { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d) + .3s); }
.app__media.is-in .phone__card, .no-js .phone__card { opacity: 1; transform: none; }
.app__media .phone__bar span { transform: scaleX(0); transition: transform 1s var(--ease) 1s; }
.app__media.is-in .phone__bar span, .no-js .phone__bar span { transform: none; }

/* 5.11 Slogan band — "Where Learners Find Their Rhythm" ---- */
.rhythm {
  position: relative; overflow: hidden;
  padding: 88px 0 64px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 65%), var(--green-900);
}
.rhythm__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5.2vw, 62px); line-height: 1.12; letter-spacing: -.01em;
  color: var(--white); text-wrap: balance;
}
.rhythm__title em { color: var(--red-300); }
.rhythm__w {
  display: inline-block;
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * 140ms);
}
.rhythm.is-in .rhythm__w, .no-js .rhythm__w { opacity: 1; transform: none; }
/* Learning beat: 5 steps light up in turn (4s loop, 0.8s per beat), starting after the words */
.beat {
  --beat: .8s; --start: 1.3s;
  position: relative; list-style: none; margin: 44px auto 0; padding: 0; max-width: 820px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease) .8s, transform .7s var(--ease) .8s;
}
.rhythm.is-in .beat, .no-js .beat { opacity: 1; transform: none; }
/* track + filling line, running between the first and last dot centres */
.beat::before, .beat::after {
  content: ""; position: absolute; top: 9px; left: 10%; right: 10%; height: 2px; border-radius: 2px;
}
.beat::before { background: rgba(255,255,255,.16); }
.beat::after {
  background: linear-gradient(90deg, var(--red-600), var(--red-300));
  transform: scaleX(0); transform-origin: left;
}
.rhythm.is-in .beat::after { animation: beat-fill calc(var(--beat) * 5) linear var(--start) infinite; }
.beat__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.beat__dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-900); border: 2px solid rgba(255,255,255,.35);
}
.beat__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-300); }
.rhythm.is-in .beat__dot { animation: beat-dot calc(var(--beat) * 5) ease-out calc(var(--start) + var(--i) * var(--beat)) infinite; }
.rhythm.is-in .beat__label { animation: beat-label calc(var(--beat) * 5) ease-out calc(var(--start) + var(--i) * var(--beat)) infinite; }
@keyframes beat-fill {
  0% { transform: scaleX(0); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes beat-dot {
  0% { transform: scale(1.45); background: var(--red-600); border-color: var(--red-300); box-shadow: 0 0 0 9px rgba(200,50,43,.3), 0 0 24px rgba(240,154,149,.75); }
  18% { transform: scale(1); background: var(--red-600); border-color: var(--red-300); box-shadow: 0 0 0 5px rgba(200,50,43,.18); }
  45% { background: var(--red-600); border-color: var(--red-300); box-shadow: 0 0 0 0 rgba(200,50,43,0); }
  100% { background: var(--green-900); border-color: rgba(255,255,255,.35); }
}
@keyframes beat-label {
  0%, 45% { color: var(--white); }
  100% { color: var(--green-300); }
}
@media (max-width: 600px) {
  .rhythm { padding: 64px 0 40px; }
  .beat { margin-top: 32px; }
  .beat__dot { width: 16px; height: 16px; }
  .beat::before, .beat::after { top: 7px; }
  .beat__label { font-size: 10.5px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  /* No animation: show the full rhythm, all steps lit */
  .beat::after { transform: none; }
  .beat__dot { background: var(--red-600); border-color: var(--red-300); }
  .beat__label { color: var(--white); }
}
/* 5.14 Alignment: matching column heights + button layout -- */
/* Hero: text column and timetable card share the same top and bottom edge */
.hero__split { align-items: stretch; }
.hero__content { display: flex; flex-direction: column; }
.hero__content .hero__stats { margin-top: auto; }
.hero__content .hero__actions { margin-bottom: 36px; }
.hero__content .hero__text { font-size: 18px; }
.week { display: flex; flex-direction: column; }
.week__days { margin-bottom: 22px; }
/* Hero buttons: main action full width, the two others side by side */
.hero .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.hero .hero__actions .btn:first-child { grid-column: 1 / -1; }
.hero .hero__actions .btn { padding-left: 16px; padding-right: 16px; }
/* Why Us: compact cards so both columns are similar in height */
.why { align-items: center; }
.why .checklist { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.why .checklist li { padding: 13px 16px; font-size: 14px; }
.why__cta { margin-top: 28px; }
@media (max-width: 600px) {
  .hero .hero__actions { grid-template-columns: 1fr; }
  .week__summary div { grid-template-columns: 1fr; gap: 0; }
}
/* 6. COOKIE BANNER ---------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 16px; display: flex; justify-content: center;
  pointer-events: none;
  transform: translateY(24px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie-banner.is-open { transform: none; opacity: 1; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__panel {
  pointer-events: auto; width: 100%; max-width: 940px;
  background: var(--white); border: 1px solid #DDE5E0; border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20,32,28,.18);
  padding: 24px 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: center;
}
.cookie-banner__head { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; color: var(--green-900); }
.cookie-banner__icon { width: 30px; height: 30px; border-radius: 9px; background: #F1F6F3; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cookie-banner__text { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text); }
.cookie-banner__link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner__actions .btn { font-size: 14px; padding: 12px 20px; }
.cookie-banner__status { grid-column: 1 / -1; font-size: 13px; color: #55635D; background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; }

/* 7. ANIMATIONS & ACCESSIBILITY --------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* RESPONSIVE ---------------------------------------------- */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header__cta { display: none; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid #EEF2EF; }
  .site-nav .btn { margin-top: 14px; border-bottom: none; color: var(--white); }
  .about__badge { right: 12px; }
}
@media (min-width: 901px) {
  .site-nav .btn { display: none; } /* mobile-only CTA inside menu */
}

/* Shared logo asset: assets/img/rhythmic-tuition-logo.svg.
   Replace that one SVG to update every header and footer logo. */
.logo__image { display: block; width: 240px; max-width: 100%; height: auto; }
.site-footer .logo { display: inline-flex; background: transparent; padding: 0; border-radius: 0; }
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header__inner { gap: 18px; }
  .site-nav { gap: 18px; }
  .site-header .logo__image { width: 190px; }
}
@media (max-width: 600px) {
  .site-header .logo__image { width: 190px; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
}
