/* ============================================================
   IntelliBots Academy 2.0 — Redesign stylesheet
   Loaded after app.css and overrides the legacy marketing chrome.
   ============================================================ */

:root {
  --sky:         hsl(192,70%,43%);
  --sky-dark:    hsl(192,70%,38%);
  --sky-darker:  hsl(192,70%,33%);
  --sky-light:   hsl(189,64%,98%);
  --sky-tint:    hsl(192,70%,93%);
  --gold:        hsl(47,99%,43%);
  --gold-dark:   hsl(47,99%,38%);
  --purple:      hsl(269,52%,60%);
  --teal:        hsl(180,87%,30%);
  --green:       hsl(73,67%,40%);
  --orange:      hsl(35,99%,42%);
  --grey-light:  hsl(0,0%,82%);
  --grey:        hsl(0,0%,50%);
  --grey-dark:   hsl(0,0%,35%);
  --grey-darker: hsl(0,0%,20%);
  --yellow:      hsl(48,100%,50%);
}

/* ── Scope the redesign to pages that opt-in via body.v2 ────────── */
body.v2 {
  font-family: Ubuntu, Arial, sans-serif;
  background: linear-gradient(175deg, hsl(189,64%,98%) 0%, hsl(270,60%,97%) 100%);
  min-height: 100vh;
  color: var(--grey);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body.v2 *, body.v2 *::before, body.v2 *::after { box-sizing: border-box; }

body.v2 a { color: var(--grey); text-decoration: none; cursor: pointer; transition: .1s; }

/* ── SCROLL REVEAL ── */
body.v2 .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
body.v2 .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
body.v2 .reveal-delay-1 { transition-delay: 0.08s; }
body.v2 .reveal-delay-2 { transition-delay: 0.16s; }
body.v2 .reveal-delay-3 { transition-delay: 0.24s; }
body.v2 .reveal-delay-4 { transition-delay: 0.32s; }
body.v2 .reveal-delay-5 { transition-delay: 0.40s; }
body.v2 .reveal-delay-6 { transition-delay: 0.48s; }

/* ── NAV (v2 frosted glass) ── */
body.v2 nav.v2-nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  position: sticky; top: 0; z-index: 100;
  width: 100%;
}
body.v2 .v2-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
body.v2 .v2-nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
body.v2 .v2-nav-brand svg, body.v2 .v2-nav-brand img { height: 36px; width: auto; }
body.v2 .v2-nav-brand-text { font-size: .95rem; font-weight: 500; color: var(--grey-dark); transition: .1s; }
body.v2 .v2-nav-brand:hover .v2-nav-brand-text { color: var(--sky); }
body.v2 .v2-nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
body.v2 .v2-nav-links li a {
  padding: 6px 8px; border-radius: 6px; font-size: .8rem; font-weight: 500;
  color: var(--grey); transition: color .1s;
}
body.v2 .v2-nav-links li a:hover { color: var(--gold); }
body.v2 .v2-nav-links li a.active { color: var(--sky); }
body.v2 .v2-btn-contact {
  font-family: Ubuntu, sans-serif;
  background: var(--sky); color: white; border: none;
  padding: .5rem 1rem; font-size: .82rem; border-radius: .55rem;
  cursor: pointer; transition: background .1s, transform .1s; margin-left: 12px;
  font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center;
  white-space: nowrap;            /* never wrap to two lines */
  line-height: 1;
}
body.v2 .v2-btn-contact:hover { background: var(--sky-dark); color: white; }
body.v2 .v2-btn-contact:active { background: var(--sky-darker); transform: scale(.98); }

/* Mobile hamburger */
body.v2 .v2-menu-btn { display: none; }
body.v2 .v2-menu-icon { display: none; }

@media (max-width: 1100px) {
  body.v2 .v2-nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    max-height: 0; overflow-y: auto;        /* scroll if it ever needs more room */
    transition: max-height .3s ease;
    padding: 0 5%;
    -webkit-overflow-scrolling: touch;
  }
  body.v2 .v2-menu-btn:checked ~ .v2-nav-links {
    /* Take all remaining viewport height below the 64px nav so 8+ items always fit. */
    max-height: calc(100vh - 64px);
    padding: .5rem 5%;
  }
  body.v2 .v2-nav-links li a {
    display: block; padding: .75rem .5rem; font-size: .95rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  body.v2 .v2-menu-icon {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 36px; height: 36px; cursor: pointer; gap: 5px;
  }
  body.v2 .v2-menu-icon span {
    display: block; width: 22px; height: 2px;
    background: var(--grey-dark); border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  body.v2 .v2-menu-btn:checked ~ .v2-menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.v2 .v2-menu-btn:checked ~ .v2-menu-icon span:nth-child(2) { opacity: 0; }
  body.v2 .v2-menu-btn:checked ~ .v2-menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.v2 .v2-btn-contact { display: none; }
}

/* ── LOCATION STRIP ── */
body.v2 .loc-strip {
  background: var(--sky);
  color: rgba(255,255,255,.92);
  font-size: .75rem; font-weight: 500;
  padding: 7px 5%;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap;
}
body.v2 .loc-item { display: flex; align-items: center; gap: 5px; }
body.v2 .loc-item.primary { color: white; font-weight: 700; }
body.v2 .loc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
body.v2 .loc-dot.primary { background: var(--gold); width: 7px; height: 7px; }

/* ── MAIN LAYOUT ── */
body.v2 main { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; flex-direction: column; align-items: center; }

/* ── HERO ── */
body.v2 .hero-section {
  padding: clamp(4rem,9vh,7rem) 0 clamp(3rem,7vh,5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
@media (max-width: 820px) {
  body.v2 .hero-section { grid-template-columns: 1fr; gap: 2rem; }
}
body.v2 .hero-left { display: flex; flex-direction: column; gap: 1.1rem; }
body.v2 .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-tint); color: var(--sky-dark);
  border-radius: 9999px; padding: 5px 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  width: fit-content;
}
body.v2 .hero-eyebrow svg { flex-shrink: 0; }
body.v2 h1 {
  font-size: clamp(2rem,3.5vw,3rem); font-weight: 700;
  color: var(--sky); line-height: 1.15; margin: 0;
}
body.v2 .tagline {
  font-size: clamp(1rem,1.8vw,1.25rem); color: var(--grey-darker);
  font-weight: 400; line-height: 1.5; margin: 0;
}
body.v2 .subtitle {
  font-size: clamp(.88rem,1.3vw,1rem); color: var(--grey);
  line-height: 1.9; max-width: 34rem; margin: 0;
}
body.v2 .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-top: .3rem; }

body.v2 .btn-primary,
body.v2 .btn-secondary {
  font-family: Ubuntu, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;                    /* prevent baseline drift */
  padding: .9rem 2rem;
  margin: 0;                         /* override legacy app.css margins */
  border-radius: .6rem;
  border: 2px solid transparent;     /* reserve identical box on both */
  box-sizing: border-box;            /* explicit, so border doesn't expand box */
  height: auto;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: background .1s, color .1s, transform .1s;
}
body.v2 .btn-primary {
  background: var(--sky);
  color: white;
}
body.v2 .btn-primary:hover { background: var(--sky-dark); color: white; }
body.v2 .btn-primary:active { background: var(--sky-darker); transform: scale(.98); }
body.v2 .btn-secondary {
  background: transparent;
  color: var(--sky);
  border-color: var(--sky);
}
body.v2 .btn-secondary:hover { background: var(--sky); color: white; }

body.v2 .hero-right { display: flex; flex-direction: column; gap: 12px; }
body.v2 .hero-stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.v2 .hero-stat {
  background: white; border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
}
body.v2 .hero-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--sky); line-height: 1; }
body.v2 .hero-stat-label { font-size: .72rem; color: var(--grey); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
body.v2 .hero-location-card {
  background: var(--sky); border-radius: 1.25rem;
  padding: 1rem 1.25rem; color: white;
  display: flex; align-items: center; gap: 12px;
}
body.v2 .hero-location-card .loc-icon { flex-shrink: 0; opacity: .8; }
body.v2 .hero-location-main { font-weight: 700; font-size: .9rem; }
body.v2 .hero-location-sub { font-size: .75rem; opacity: .8; margin-top: 1px; }

/* ── DIVIDER ── */
body.v2 .divider { width: 100%; border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 0; }

/* ── SECTION ── */
body.v2 .section { margin-top: clamp(3rem,6vh,5rem); width: 100%; display: flex; flex-direction: column; align-items: center; }
body.v2 .section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--sky); margin-bottom: .5rem;
}
body.v2 h2 {
  font-size: clamp(1.5rem,2.8vw,2rem); font-weight: 700;
  color: var(--gold); margin: 0 0 .5rem; text-align: center;
}
body.v2 h3 { font-size: clamp(1.1rem,2vw,1.4rem); font-weight: 500; color: var(--grey-dark); text-align: center; margin: 0 0 .5rem; }

/* ── WHAT WE TEACH TILES ── */
body.v2 .tiles { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 12px 0; }
body.v2 .tile {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border-radius: 1.25rem; width: 128px; height: 128px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; font-size: .82rem; font-weight: 500; color: var(--grey-dark);
  transition: box-shadow .2s, transform .2s;
}
body.v2 .tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.11); }
body.v2 .tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ── PROGRAM HIGHLIGHT ── */
body.v2 .program-card {
  background: white; border-radius: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 2.5rem 3rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
  width: 100%; max-width: 52rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  body.v2 .program-card { grid-template-columns: 1fr; padding: 1.75rem; }
}
body.v2 .program-card h3 { text-align: left; font-size: 1.3rem; }
body.v2 .program-detail { font-size: .88rem; color: var(--grey); line-height: 1.9; margin-top: .4rem; }
body.v2 .program-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 640px) { body.v2 .program-meta { align-items: flex-start; } }
body.v2 .meta-pill {
  background: var(--sky-tint); color: var(--sky-dark);
  border-radius: 9999px; padding: 5px 14px; font-size: .75rem; font-weight: 700;
  white-space: nowrap;
}

/* ── ACCORDION ── */
body.v2 .accordion { width: 100%; max-width: 50rem; }
body.v2 .ac-item { border-top: 1px solid var(--grey-light); }
body.v2 .ac-item:last-child { border-bottom: 1px solid var(--grey-light); }
body.v2 .ac-label {
  width: 100%; background: none; border: none; padding: .9rem 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: Ubuntu, sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--grey-dark);
  text-align: left; transition: color .1s; gap: 1rem;
}
body.v2 .ac-label:hover { color: var(--sky); }
body.v2 .ac-chevron {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .1s, background .1s;
}
body.v2 .ac-label:hover .ac-chevron { border-color: var(--sky); background: var(--sky-tint); }
body.v2 .ac-chevron-icon { transition: transform .25s ease; }
body.v2 .ac-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
body.v2 .ac-body.open { max-height: 400px; }
body.v2 .ac-body p { padding: .25rem 0 1rem; font-size: .9rem; line-height: 1.85; color: var(--grey); max-width: none; margin: 0; }

/* ── CONTACT ── */
body.v2 .contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; width: 100%; max-width: 52rem; margin-top: 1rem; }
@media (max-width: 720px) { body.v2 .contact-layout { grid-template-columns: 1fr; } }
body.v2 .contact-info-col { display: flex; flex-direction: column; gap: 1rem; }
body.v2 .contact-info-item { display: flex; gap: 10px; align-items: flex-start; }
body.v2 .contact-info-icon { flex-shrink: 0; width: 36px; height: 36px; background: var(--sky-tint); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
body.v2 .contact-info-text .label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
body.v2 .contact-info-text .val { font-size: .88rem; color: var(--grey-dark); margin-top: 1px; }
body.v2 .contact-wrap {
  background: white; border-radius: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem;
}
body.v2 .contact-wrap label { font-size: .8rem; font-weight: 700; color: var(--grey-dark); margin-bottom: 3px; display: block; }
body.v2 .contact-wrap input, body.v2 .contact-wrap textarea, body.v2 .contact-wrap select {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--grey-light);
  border-radius: .6rem; font-family: Ubuntu, sans-serif; font-size: .9rem;
  color: var(--grey-dark); transition: border-color .15s; background: white;
}
body.v2 .contact-wrap input:focus, body.v2 .contact-wrap textarea:focus, body.v2 .contact-wrap select:focus {
  outline: none; border-color: var(--sky);
}
body.v2 .contact-wrap textarea { resize: vertical; min-height: 90px; }

/* ── FOOTER (v2) ── */
body.v2 footer.v2-footer {
  margin-top: clamp(4rem,10vh,7rem);
  background: var(--sky); color: rgba(255,255,255,.9);
  padding: 2.5vh 5%; font-size: .8rem; font-weight: 300;
  box-shadow: inset 0 5px 7px rgba(0,0,0,.25);
}
body.v2 .v2-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1.5rem;
}
body.v2 .v2-footer-brand { display: flex; flex-direction: column; gap: 4px; }
body.v2 .v2-footer-brand-name { font-size: .95rem; font-weight: 700; color: white; }
body.v2 .v2-footer-links { list-style: none; display: flex; gap: 0; flex-wrap: wrap; margin: 0; padding: 0; }
body.v2 .v2-footer-links li a { color: rgba(255,255,255,.85); padding: .4rem .7rem; transition: color .1s; display: inline-block; }
body.v2 .v2-footer-links li a:hover { color: var(--yellow); }
body.v2 .v2-footer-locations { font-size: .72rem; opacity: .75; margin-top: 4px; }
body.v2 .v2-footer-contact { font-size: .72rem; opacity: .7; text-align: right; }
body.v2 .v2-footer-contact a { color: rgba(255,255,255,.85); }
body.v2 .v2-footer-contact a:hover { color: var(--yellow); }

/* ── TOAST ── */
body.v2 .toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--grey-darker); color: white; padding: 11px 22px; border-radius: 9999px;
  font-weight: 600; font-size: .85rem; opacity: 0;
  transition: all .3s cubic-bezier(0.22,1,0.36,1); pointer-events: none; z-index: 999;
  white-space: nowrap; letter-spacing: .01em;
}
body.v2 .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── HERO ANIMATION ON LOAD ── */
@keyframes v2FadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.v2 .hero-left > * { animation: v2FadeUp .55s ease both; }
body.v2 .hero-left > *:nth-child(1) { animation-delay: .05s; }
body.v2 .hero-left > *:nth-child(2) { animation-delay: .12s; }
body.v2 .hero-left > *:nth-child(3) { animation-delay: .19s; }
body.v2 .hero-left > *:nth-child(4) { animation-delay: .26s; }
body.v2 .hero-left > *:nth-child(5) { animation-delay: .33s; }
body.v2 .hero-right { animation: v2FadeUp .6s ease .25s both; }

/* ── COURSE GRID (colorful course cards) ── */
body.v2 .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 56rem;
  margin-top: 1rem;
}
body.v2 .course-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  text-decoration: none;
  color: inherit;
  transition: transform .2s cubic-bezier(0.22,1,0.36,1), box-shadow .2s;
  display: flex;
  flex-direction: column;
}
body.v2 .course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
body.v2 .course-card-icon {
  aspect-ratio: 5/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
body.v2 .course-card-icon svg { width: 48px; height: 48px; }
body.v2 .course-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
}
body.v2 .course-card-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--grey-darker);
  line-height: 1.3;
}
body.v2 .course-card-sub {
  font-size: .78rem;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: .35rem;
}
body.v2 .course-card-tag {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  color: white;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── CATEGORY CHIPS (browse by category) ── */
body.v2 .cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 110px;
  height: 110px;
  border-radius: 1.25rem;
  color: white;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: transform .15s cubic-bezier(0.22,1,0.36,1), box-shadow .15s;
}
body.v2 .cat-chip:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  color: white;
}
body.v2 .cat-chip span { color: white; font-size: .82rem; }

@media (max-width: 640px) {
  body.v2 .cat-chip { width: 90px; height: 90px; font-size: .75rem; }
  body.v2 .course-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ── MINIMAL HERO (clean centered, no clutter) ── */
body.v2 .hero-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 3.5rem auto 0;
  padding: 0 1rem;
  gap: .85rem;
}
body.v2 .hero-minimal .hero-eyebrow { margin-bottom: 0; }
body.v2 .hero-h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--sky);
  margin: 0;
  letter-spacing: -.01em;
}
body.v2 .hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--grey-dark);            /* AA-contrast body text */
  line-height: 1.6;
  max-width: 38rem;
  margin: 0;
}
body.v2 .hero-minimal .hero-ctas { justify-content: center; margin-top: .5rem; }
body.v2 .hero-minimal > * { animation: v2FadeUp .55s ease both; }
body.v2 .hero-minimal > *:nth-child(1) { animation-delay: .05s; }
body.v2 .hero-minimal > *:nth-child(2) { animation-delay: .12s; }
body.v2 .hero-minimal > *:nth-child(3) { animation-delay: .19s; }
body.v2 .hero-minimal > *:nth-child(4) { animation-delay: .26s; }

/* ── SLIM STATS STRIP (proof bar under carousel) ── */
body.v2 .stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  max-width: 720px;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.55);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.v2 .stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
body.v2 .stats-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}
body.v2 .stats-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--grey-dark);
}
body.v2 .stats-divider {
  width: 1px;
  height: 28px;
  background: hsl(0,0%,82%);
}
@media (max-width: 640px) {
  body.v2 .stats-divider { display: none; }
  body.v2 .stats-strip { gap: 1.2rem; padding: 1rem; }
  body.v2 .stats-num { font-size: 1.2rem; }
}

/* ── FILTER BAR (courses page) ── */
body.v2 .filter-bar {
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  padding: 1.25rem 1.5rem;
  max-width: 60rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.v2 .filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
body.v2 .filter-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey-dark);
  min-width: 64px;
}
body.v2 .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.v2 .filter-chip {
  font-family: Ubuntu, sans-serif;
  font-size: .8rem;
  font-weight: 500;
  background: hsl(192,70%,97%);
  color: var(--grey-dark);
  border: 1.5px solid hsl(192,70%,91%);
  padding: .45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s, transform .12s;
}
body.v2 .filter-chip:hover {
  background: hsl(192,70%,93%);
  border-color: hsl(192,70%,80%);
}
body.v2 .filter-chip.active {
  background: var(--sky);
  color: white;
  border-color: var(--sky);
}

/* ── COURSE CARD METADATA (age + level pills) ── */
body.v2 .course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: .25rem 0 .55rem;
}
body.v2 .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid hsl(0,0%,88%);
  background: hsl(0,0%,97%);
  color: var(--grey-dark);
  white-space: nowrap;
  letter-spacing: .01em;
}
body.v2 .meta-pill svg { flex-shrink: 0; }

/* The course card icon needs `currentColor` to pick up the colored stroke set inline */
body.v2 .course-card-icon { color: var(--sky); }

/* Card tag stays as before */

/* ── COURSE CARD as a <button> (filtering uses clicks now) ── */
body.v2 .course-card {
  background: white;
  border-radius: 1.5rem;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  font-family: Ubuntu, sans-serif;
  color: inherit;
}
body.v2 .course-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.1); }
body.v2 .course-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
body.v2 .course-card-icon {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.v2 .course-card-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
body.v2 .course-card-title { font-size: 1.02rem; font-weight: 700; color: var(--grey-darker); line-height: 1.25; margin-bottom: .15rem; }
body.v2 .course-card-sub   { font-size: .78rem; color: var(--grey-dark); line-height: 1.55; }
body.v2 .course-card-tag {
  align-self: flex-start;
  margin-top: .55rem;
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body.v2 .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 60rem;
}

/* ── COURSE DETAIL MODAL ── */
body.v2 .course-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
body.v2 .course-modal.open { display: block; }
body.v2 .course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,35,55,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: v2FadeUp .22s ease;
}
body.v2 .course-modal-dialog {
  position: relative;
  margin: 4vh auto;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 92vh;
  background: white;
  border-radius: 1.75rem;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .25s cubic-bezier(.22,.94,.34,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
body.v2 .course-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: hsl(0,0%,96%);
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--grey-darker);
  transition: background .12s;
  z-index: 2;
}
body.v2 .course-modal-close:hover { background: hsl(0,0%,92%); }
body.v2 .course-modal-content { padding: 2rem 2.25rem 2rem; }

body.v2 .cd-head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.25rem; }
body.v2 .cd-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.v2 .cd-icon svg { width: 36px; height: 36px; }
body.v2 .cd-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .15rem;
}
body.v2 .cd-title {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--grey-darker);
  line-height: 1.2;
  margin: 0 0 .55rem;
}
body.v2 .cd-meta { display: flex; flex-wrap: wrap; gap: 6px; }
body.v2 .cd-blurb {
  font-size: .92rem;
  color: var(--grey-dark);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}
body.v2 .cd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}
body.v2 .cd-gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}
body.v2 .cd-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.v2 .cd-units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}
body.v2 .cd-unit {
  background: hsl(0,0%,98%);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
body.v2 .cd-unit-head { display: flex; align-items: center; gap: 8px; margin-bottom: .55rem; }
body.v2 .cd-unit-num {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700;
  flex-shrink: 0;
}
body.v2 .cd-unit-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--grey-darker);
  line-height: 1.25;
}
body.v2 .cd-unit-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
}
body.v2 .cd-unit-list li {
  font-size: .76rem;
  color: var(--grey-dark);
  line-height: 1.55;
  padding-left: .95rem;
  position: relative;
}
body.v2 .cd-unit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bullet, var(--sky));
}
body.v2 .cd-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid hsl(0,0%,93%);
}

@media (max-width: 640px) {
  body.v2 .course-modal-content { padding: 1.5rem 1.3rem; }
  body.v2 .cd-units { grid-template-columns: 1fr; }
  body.v2 .cd-head { flex-direction: column; gap: .75rem; }
}

@keyframes v2FadeUp { from { opacity: 0; } to { opacity: 1; } }

/* ── SCHOOLS PAGE — big offer tiles ── */
body.v2 .schools-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
  max-width: 60rem;
}
@media (max-width: 760px) {
  body.v2 .schools-offer-grid { grid-template-columns: 1fr; }
}
body.v2 .schools-offer-tile {
  background: white;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
body.v2 .schools-offer-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
}
body.v2 .schools-offer-image {
  aspect-ratio: 16/8;
  overflow: hidden;
}
body.v2 .schools-offer-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.v2 .schools-offer-body { padding: 1.5rem 1.75rem 1.85rem; }
body.v2 .schools-offer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .85rem;
}
body.v2 .schools-offer-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.v2 .schools-offer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--grey-darker);
  margin: 0;
  line-height: 1.2;
}
body.v2 .schools-offer-blurb {
  font-size: .9rem;
  color: var(--grey-dark);
  line-height: 1.7;
  margin: 0 0 .9rem;
}
body.v2 .schools-offer-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
body.v2 .schools-offer-bullets li {
  font-size: .82rem;
  color: var(--grey-dark);
  line-height: 1.55;
  padding-left: 1.1rem;
  position: relative;
}
body.v2 .schools-offer-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .45rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bullet, var(--sky));
}

/* ── SCHOOLS — photo gallery ── */
body.v2 .schools-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 60rem;
}
body.v2 .schools-gallery-item {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: hsl(192,70%,93%);
}
body.v2 .schools-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
body.v2 .schools-gallery-item:hover img { transform: scale(1.05); }

/* ── SCHOOLS — How It Works steps ── */
body.v2 .schools-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 60rem;
  margin-top: 1rem;
}
@media (max-width: 760px) {
  body.v2 .schools-steps { grid-template-columns: 1fr; }
}
body.v2 .schools-step {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
body.v2 .schools-step-num {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--sky);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.v2 .schools-step-content h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--grey-darker);
  margin: 0 0 .35rem;
  line-height: 1.25;
}
body.v2 .schools-step-content p {
  font-size: .82rem;
  color: var(--grey-dark);
  line-height: 1.65;
  margin: 0;
}

/* ── SCHOOLS — Taught By trust line ── */
body.v2 .schools-taughtby {
  background: white;
  border-radius: 1.25rem;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 52rem;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
body.v2 .schools-taughtby-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: hsl(192,70%,93%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.v2 .schools-taughtby-text {
  font-size: .88rem;
  color: var(--grey-dark);
  line-height: 1.55;
}
