@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ---------------------------------------------------------------------------
   Kindermusik With Friends — conversion variant
   Brand tokens lifted verbatim from the live Divi child theme (kindermuzik)
   so Kim recognizes the design on sight. Do not "improve" these colors.
   Light-only on purpose: the production site has no dark mode and this must
   read as the same brand, not a redesign.
   --------------------------------------------------------------------------- */

:root {
  --purple:        #7D4199;  /* primary brand, from theme h1/link color */
  --purple-dark:   #5E2F73;
  --purple-deep:   #45215480;
  --yellow:        #F9EC5E;  /* CTA accent, from the live JOIN NOW button */
  --lavender:      #C6ADEF;
  --lavender-pale: #F3ECFC;
  --ink:           #3A3A3A;
  --body:          #666666;  /* theme body color */
  --muted:         #696969;  /* KM-90: 5.5:1 on white, 4.8:1 on lavender (WCAG AA) */
  --line:          #E7E1EF;
  --white:         #FFFFFF;
  --surface:       #FBF9FE;

  --go:            #1E7A46;  /* seats available */
  --go-bg:         #E8F5ED;
  --urgent:        #B3341E;  /* 1-2 seats — scarcity, and it is true */
  --urgent-bg:     #FCEDE9;
  --full:          #6C6C6C;
  --full-bg:       #F0F0F0;

  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(69,33,84,.08);
  --shadow:    0 4px 16px rgba(69,33,84,.10);
  --shadow-lg: 0 12px 40px rgba(69,33,84,.16);

  --wrap: 1120px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; scroll-padding-bottom: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  /* NOTE: production site sets user-scalable=0 which blocks pinch zoom.
     Deliberately not reproduced here — it is an accessibility defect. */
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--purple);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
p  { margin: 0 0 1em; }

a { color: var(--purple); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--pale { background: var(--surface); }
.section--lav  { background: var(--lavender-pale); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 .6em;
}

.lede { font-size: 1.1rem; color: var(--body); }

/* ---------- top bar + nav ------------------------------------------------ */

.topbar {
  background: var(--purple);
  color: #EBD9F5;
  font-size: .82rem;
  text-align: center;
  padding: 7px var(--gutter);
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
/* KM-75: call, text, email, Facebook, Instagram: each one tap, with room to tap. */
.topbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.topbar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; }
.topbar__short { display: none; }
@media (max-width: 640px) {
  .topbar { gap: 4px 16px; }
  .topbar__long { display: none; }
  .topbar__short { display: inline; }
}
.proofbar__reviews { color: inherit; text-decoration: none; }
.proofbar__reviews span { text-decoration: underline; text-decoration-color: rgba(125,65,153,.35); }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  max-width: var(--wrap); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.nav__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo-fallback { font-weight: 800; color: var(--purple); font-size: 1.15rem; line-height: 1.05; }
.nav__logo-fallback span { display: block; font-size: .64rem; letter-spacing: .18em; color: var(--purple-dark); }
.nav__links { display: none; gap: 22px; }
.nav__ages { display: flex; gap: 22px; }
.nav__links a { color: var(--body); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav__links a:hover { color: var(--purple); }

@media (min-width: 1100px) {
  .nav__links { display: flex; }
}

/* ---------- buttons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 48px; /* thumb target */
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--yellow); color: var(--purple-dark); box-shadow: var(--shadow); }
.btn--primary:hover { background: #FFF69A; box-shadow: var(--shadow-lg); }

.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); }

.btn--ghost { background: transparent; color: var(--purple); border-color: var(--lavender); }
.btn--ghost:hover { background: var(--lavender-pale); }

.btn--link { background: none; border: none; color: var(--purple); text-decoration: underline; padding: 8px 4px; min-height: 0; font-size: .92rem; }

.btn--sm { padding: 9px 16px; font-size: .88rem; min-height: 44px; }
.btn--block { display: flex; width: 100%; }

/* ---------- hero: mobile-first, CTA above the fold ---------------------- */
/* The production hero eats the entire first phone screen and pushes the page
   title ~640px down. This one keeps headline + proof + CTA + live
   availability inside the first viewport on a 375px device. */

.hero { position: relative; background: var(--purple); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* Was a flat 78-88% wash that drowned the one warm asset on the page.
     Angled and lighter at the top so faces stay visible, deepening only
     behind the text block where contrast is actually needed. */
  background: linear-gradient(158deg,
    rgba(69,33,84,.42) 0%,
    rgba(69,33,84,.62) 38%,
    rgba(69,33,84,.86) 100%);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__in { text-shadow: 0 1px 3px rgba(40,18,50,.6); position: relative; z-index: 2; padding: 30px var(--gutter) 34px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: .35em; }
/* Kim, line 2: the name never splits. Wide screens keep one line; narrower ones put "Welcome to"
   on its own line and size the name to fit one line. */
.hero h1 .brandline { white-space: nowrap; }
@media (max-width: 1023px) {
  .hero h1 { font-size: min(clamp(1.9rem, 6vw, 3.1rem), 6.3vw); }
  .hero h1 .welcome { display: block; font-size: .62em; font-weight: 600; letter-spacing: .01em; margin-bottom: .1em; }
}
/* Kim, 2026-11-08 #8: the age group, big and white, where the small yellow line was. */
.hero__ages { color: #fff; font-weight: 800; font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.2; margin: 0 0 .5em; }
.hero__sub { font-size: 1.06rem; color: #F0E4F7; margin-bottom: 20px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: #E6D6F0; }
.hero__proof b { color: var(--yellow); }

@media (min-width: 900px) {
  .hero__in { padding: 64px var(--gutter) 70px; }
}

/* ---------- live availability badge ------------------------------------- */

.avail {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: .86rem; font-weight: 600; margin-bottom: 16px;
}
.avail__dot { width: 8px; height: 8px; border-radius: 50%; background: #7BE8A8; box-shadow: 0 0 0 0 rgba(123,232,168,.7); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123,232,168,.7); }
  70%  { box-shadow: 0 0 0 9px rgba(123,232,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,232,168,0); }
}
@media (prefers-reduced-motion: reduce) { .avail__dot { animation: none; } }

/* ---------- proof bar ---------------------------------------------------- */

.proofbar { background: var(--lavender-pale); border-block: 1px solid var(--line); }
.proofbar__in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 22px var(--gutter); max-width: var(--wrap); margin: 0 auto; text-align: center; }
.proofbar b { display: block; color: var(--purple); font-size: 1.35rem; line-height: 1.1; }
.proofbar span { font-size: .8rem; color: var(--body); }
@media (min-width: 760px) { .proofbar__in { grid-template-columns: repeat(4, 1fr); } }
/* Each item spans two shared rows, so every title sits on one line of the grid and
   every caption on the next, whether a title takes one line or two. */
.proofbar__in > * { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 4px; }
.proofbar__in > * > b { align-self: end; }
.proofbar__in > * > span { align-self: start; }
@media (min-width: 1000px) { .proofbar b { white-space: nowrap; } }

/* ---------- age matcher -------------------------------------------------- */

.matcher {
  background: #fff; border: 2px solid var(--lavender);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
}
.matcher h3 { margin-bottom: .25em; }
.matcher__hint { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.matcher__row { display: flex; flex-wrap: wrap; gap: 10px; }
.matcher__row input {
  flex: 1 1 180px; min-width: 0;
  font-family: var(--font); font-size: 1rem;
  padding: 13px 14px; border: 2px solid #8E7BA3; border-radius: var(--r);
  color: var(--ink); background: #fff; min-height: 48px;
}
.matcher__row input:focus { outline: none; border-color: var(--purple); }
.matcher__result { margin-top: 16px; }

.match-card {
  background: var(--lavender-pale); border-radius: var(--r);
  padding: 16px; border-left: 5px solid var(--purple);
}
.match-card__age { font-size: .84rem; color: var(--muted); }
.match-card h4 { margin: 2px 0 6px; color: var(--purple); font-size: 1.2rem; }

/* ---------- class section cards ----------------------------------------- */

.classlist { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .classlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* KM-90: the time never wraps; when the card is narrow, the buttons drop below. */
.class { flex-wrap: wrap; row-gap: 10px; }
.class__main { flex: 1 1 190px; }
.class__when { white-space: nowrap; }
.class__act { margin-left: auto; }
/* Teachers page: the classes sit in a narrow column, so one per row. */
@media (min-width: 720px) { .tprofile .classlist { grid-template-columns: 1fr; } }

.class {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.class--urgent { border-color: #F0C4B9; background: #FFFBFA; }
.class--full   { background: var(--full-bg); border-color: #E2E2E2; }
.class--full .class__when { color: var(--full); }

.class__main { flex: 1; min-width: 0; }
.class__when { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.class__meta { font-size: .84rem; color: var(--muted); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.pill--go     { background: var(--go-bg);     color: var(--go); }
.pill--urgent { background: var(--urgent-bg); color: var(--urgent); }
.pill--full   { background: #E4E4E4;          color: #555; }

.class__act { flex: 0 0 auto; }
.class__act .btn { min-width: 108px; }

/* ---------- price -------------------------------------------------------- */

.price {
  display: grid; gap: 14px; background: #fff; border: 2px solid var(--lavender);
  border-radius: var(--r-lg); padding: 22px;
}
/* Kim, line 12: the amount says what kind of price it is (Fall classes already in session). */
.price__label { font-size: .86rem; font-weight: 800; color: var(--purple); letter-spacing: .01em; margin-bottom: 2px; }
.price__fig { font-size: 2rem; font-weight: 800; color: var(--purple); line-height: 1; }
.price__note { font-size: .86rem; color: var(--muted); }
.price__fig + .price__note { margin-top: 10px; }
.price__pro { display: block; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.price ul { margin: 0; padding-left: 20px; }
.price li { margin-bottom: 6px; }

.price__placeholder {
  background: #FFF8E1; border: 1px dashed #D9B94A; color: #6B540B;
  font-size: .8rem; padding: 8px 12px; border-radius: var(--r-sm);
}

/* ---------- ladder (three CTAs by intent temperature) ------------------- */

.ladder { display: grid; gap: 12px; }
@media (min-width: 820px) { .ladder { grid-template-columns: repeat(3, 1fr); } .ladder:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
.rung {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.rung--hot { border-color: var(--purple); box-shadow: var(--shadow); }
.rung h3, .rung h4 { margin: 0; color: var(--purple); font-size: 1.05rem; }
.rung p { font-size: .9rem; margin: 0; flex: 1; }

/* ---------- video -------------------------------------------------------- */

.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #241129; box-shadow: var(--shadow); }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(69,33,84,.35); border: 0; cursor: pointer; width: 100%; height: 100%;
}
.video__play::after {
  content: ""; width: 0; height: 0;
  border-left: 26px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent;
  margin-left: 6px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.video__ring { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.8); }

/* ---------- cohort cards ------------------------------------------------- */

.cohorts { display: grid; gap: 16px; }
@media (min-width: 820px) { .cohorts { grid-template-columns: repeat(3, 1fr); } }
.cohort {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
@media (hover: hover) { .cohort:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.cohort__top { padding: 20px 20px 0; }
.cohort__age { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--purple-dark); }
.cohort h3 { margin: 4px 0 8px; text-align: center; }
.cohort p { font-size: .92rem; }
.cohort__foot {
  margin-top: auto; padding: 14px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cohort__foot .btn { width: 100%; }

/* ---------- modal -------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(40,18,50,.6); }
.modal__box {
  position: relative; background: #fff; max-width: 520px; margin: 0 auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px;
  box-shadow: var(--shadow-lg); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  position: absolute; left: 0; right: 0; bottom: 0;
}
@media (min-width: 640px) {
  .modal__box { position: relative; top: 50%; transform: translateY(-50%); border-radius: var(--r-lg); }
}
/* Brent, 2026-11-07: the close control and the class being looked at stay in view while the pop-up scrolls.
   The box has 24px of padding, so sticky offsets are 24px less than where the thing sits. */
.modal__close { position: sticky; top: -16px; z-index: 5; display: block; width: 44px; margin: -16px -16px -44px auto; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1; min-height: 44px; }
.modal__head { position: sticky; top: -24px; z-index: 4; background: #fff; margin: -24px -24px 12px; padding: 24px 24px 10px; box-shadow: 0 8px 14px -12px rgba(40,18,50,.35); }
.modal__head h3 { margin-bottom: 4px; }
.modal__head .modal__for { margin: 0; }
.modal h3 { padding-right: 32px; }

.field { margin-bottom: 14px; }
.field label, .field .field__label { display: block; font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem;
  padding: 12px 13px; border: 2px solid #8E7BA3; border-radius: var(--r);
  color: var(--ink); background: #fff; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); }
.field__hint { font-size: .79rem; color: var(--muted); margin-top: 4px; }

.success { text-align: center; padding: 8px 0; }
.success__mark { width: 58px; height: 58px; border-radius: 50%; background: var(--go-bg); color: var(--go); display: grid; place-items: center; font-size: 1.9rem; margin: 0 auto 12px; }

/* ---------- sticky mobile CTA ------------------------------------------- */

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center;
  transform: translateY(110%); transition: transform .24s ease;
  box-shadow: 0 -4px 20px rgba(69,33,84,.10);
}
.sticky { visibility: hidden; transition: transform .24s ease, visibility 0s .24s; }
.sticky.show { transform: translateY(0); visibility: visible; transition: transform .24s ease; }
.sticky__txt { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.25; }
.sticky__txt b { display: block; color: var(--purple); font-size: .94rem; }
/* Brent, 2026-11-07: on a phone the label sat in about 100px beside two buttons and wrapped to four tiny
   lines. Only the bold line shows there; the second line is on the page already. */
@media (max-width: 520px) { .sticky__sub { display: none; } .sticky__txt b { font-size: 1rem; line-height: 1.25; } }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---------- footer ------------------------------------------------------- */

.footer { background: var(--purple); color: #E3D2ED; padding: 40px var(--gutter) 90px; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }
.footer__in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 760px) { .footer__in { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h4, .footer .footer__h { color: #fff; font-size: .96rem; margin: 0 0 10px; }
.footer a { color: #E3D2ED; text-decoration: none; display: block; padding: 9px 0; margin: 0; font-size: .9rem; }
.footer a:hover { color: var(--yellow); }
.footer__legal { max-width: var(--wrap); margin: 24px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .78rem; color: #EBDDF3; }

/* ---------- misc --------------------------------------------------------- */

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.grid-2 { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 44px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.note {
  background: #FFF8E1; border-left: 4px solid #D9B94A; color: #6B540B;
  padding: 12px 16px; border-radius: var(--r-sm); font-size: .88rem;
}

/* debug panel — only visible with ?debug=1 */
.debug {
  position: fixed; right: 10px; bottom: 76px; z-index: 300;
  width: min(340px, calc(100vw - 20px)); max-height: 46vh; overflow-y: auto;
  background: #1C1022; color: #D8C6E4; border-radius: var(--r); padding: 12px 14px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: var(--shadow-lg);
}
.debug b { color: var(--yellow); display: block; margin-bottom: 6px; }
.debug div { border-top: 1px solid #3A2545; padding: 4px 0; }
@media (min-width: 900px) { .debug { bottom: 10px; } }

/* ===========================================================================
   KM-21 — age picker without a birthdate
   ---------------------------------------------------------------------------
   Replaces the date input. Asking a stranger's website for a baby's exact
   date of birth before it has given the parent anything is both an
   identity-theft-shaped question and one of the highest-friction inputs on
   mobile. Taps instead: no PII collected at all.
   =========================================================================== */

.agepick { display: grid; gap: 10px; }
@media (min-width: 680px) { .agepick { grid-template-columns: repeat(3, 1fr); } }

.agecard {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 18px 14px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--r);
  cursor: pointer; font-family: var(--font); color: var(--body);
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
  min-height: 48px;
}
@media (hover: hover) { .agecard:hover { border-color: var(--lavender); transform: translateY(-2px); box-shadow: var(--shadow); } }
.agecard[aria-pressed="true"] { border-color: var(--purple); background: var(--lavender-pale); box-shadow: var(--shadow); }
.agecard__emoji { font-size: 1.9rem; line-height: 1; }
.agecard__name  { font-weight: 800; color: var(--purple); font-size: 1.06rem; }
.agecard__age   { font-size: .82rem; color: var(--muted); }

.agehelp { text-align: center; margin-top: 14px; font-size: .9rem; }

/* Developmental tiebreaker for the 15-18 month band. Her own site links a
   "Foundations or Level 2?" explainer, which is proof the numeric answer is
   not the useful one. Stage beats birthdate here. */
.stagepick { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 620px) { .stagepick { grid-template-columns: repeat(3, 1fr); } }
.stagecard {
  padding: 14px; text-align: center; cursor: pointer; font-family: var(--font);
  background: #fff; border: 2px solid var(--line); border-radius: var(--r);
  color: var(--body); font-size: .92rem; min-height: 48px;
}
.stagecard:hover { border-color: var(--lavender); }
.stagecard b { display: block; color: var(--purple); }

/* ===========================================================================
   Warmth pass — photography and colour carrying the emotional weight
   =========================================================================== */

.photoband { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .photoband { grid-template-columns: repeat(4, 1fr); } }
.photoband img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.photoband img:nth-child(odd)  { border-bottom-right-radius: var(--r-lg); }
.photoband img:nth-child(even) { border-top-left-radius: var(--r-lg); }

/* Soft musical wash behind pale sections — brand colour doing emotional work
   rather than the page being white by default. */
.section--pale, .section--lav { position: relative; overflow: hidden; }
.section--lav::before {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,236,94,.34) 0%, rgba(249,236,94,0) 70%);
  pointer-events: none;
}
.section--pale::after {
  content: ""; position: absolute; bottom: -90px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,173,239,.30) 0%, rgba(198,173,239,0) 70%);
  pointer-events: none;
}
.section--lav > .wrap, .section--pale > .wrap { position: relative; z-index: 1; }

.matcher { background: linear-gradient(180deg, #FFFFFF 0%, #FDFBFF 100%); }

/* Inline class times revealed by the picker — no page hop to answer the most
   common question a parent arrives with. */
.inline-times { margin-top: 18px; }
.inline-times__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  margin-bottom: 12px; padding-top: 16px; border-top: 2px solid var(--line);
}
.inline-times__head h4 { margin: 0; font-size: 1.15rem; }
.inline-times__head span { font-size: .88rem; color: var(--muted); }

/* --- KM-22 age-grouped class times on the home page ---------------------- */
.agegroup { margin-bottom: 34px; }
.agegroup__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.agegroup__head h3 { margin: 0; }
.agegroup__age { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.agegroup__more { margin-top: 14px; text-align: center; }
/* Less empty space under the class list on a phone. */
@media (max-width: 640px) {
  #classes { padding-bottom: 24px; }
  #classes .wrap > p.center { margin-bottom: 0; }
}

/* ===========================================================================
   KM-28 — the "we can't make it" page
   ---------------------------------------------------------------------------
   Reached from a one-tap link in the weekly email. No login, no form, no
   reason field. The whole design goal is that a parent with a sick child at
   7am can finish this in under two seconds and feel nothing about it.
   =========================================================================== */

.tapcard {
  max-width: 460px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 22px; box-shadow: var(--shadow); text-align: center;
}
.tapcard__who { font-size: .9rem; color: var(--muted); margin: 0 0 4px; }
.tapcard__class {
  font-size: 1.45rem; font-weight: 800; color: var(--purple);
  line-height: 1.2; margin: 0 0 6px;
}
.tapcard__when { font-size: .95rem; color: var(--body); margin: 0 0 24px; }

/* Deliberately the largest target on the page. */
.tapcard .btn--primary { font-size: 1.08rem; padding: 18px 26px; }

.tapcard__secondary {
  margin-top: 16px; font-size: .9rem; color: var(--muted);
}
.tapcard__secondary button {
  background: none; border: 0; color: var(--purple);
  text-decoration: underline; cursor: pointer; font-family: var(--font); font-size: .9rem;
}

.donecard__mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--go-bg); color: var(--go);
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px;
}
.donecard h1, .donecard h2 { font-size: 1.6rem; margin-bottom: .2em; }
.donecard__sub { color: var(--body); margin: 0 0 20px; }

/* The make-up is offered as a gift after the fact, never as a task before it. */
.makeup {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  text-align: left;
}
.makeup h3 { font-size: 1.05rem; margin-bottom: .3em; }
.makeup p { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }

.undo { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.undo button {
  background: none; border: 0; color: var(--purple); text-decoration: underline;
  cursor: pointer; font-family: var(--font); font-size: .86rem;
}

/* email preview */
.mail {
  max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
}
.mail__chrome {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px 18px; font-size: .84rem; color: var(--muted);
}
.mail__chrome b { color: var(--ink); display: block; font-size: .95rem; }
.mail__body { padding: 24px 22px; }
.mail__body h2 { font-size: 1.25rem; }

/* Teachers — her own photos and bios, from her teachers page. */
.teachers { display: grid; gap: 22px; }
.teacher { display: grid; gap: 16px; align-items: start; align-content: start; background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.teacher img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; border-radius: var(--r); }
.teacher h3 { margin: 0; }
.teacher__role { margin: 2px 0 10px; font-size: .88rem; color: var(--purple); font-weight: 600; }
@media (min-width: 760px) {
  .teachers { grid-template-columns: 1fr 1fr; }
}

/* KM-45: before-you-come rules and the What to Expect page. */
.beforelist { max-width: 760px; margin: 0 auto; }
.beforelist ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.beforelist li { background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; align-content: start; }
.beforelist li strong { color: var(--purple); }
.beforelist--compact { background: var(--lavender-pale); border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; }
.beforelist--compact ul { gap: 6px; margin: 6px 0 8px; }
.beforelist--compact li { display: block; background: none; box-shadow: none; padding: 0; font-size: .9rem; }
.beforelist--compact li strong { color: var(--ink, inherit); }
.beforelist__title { margin: 0; font-weight: 700; font-size: .92rem; }
.beforelist--compact a { font-size: .88rem; font-weight: 600; }
@media (min-width: 760px) { .beforelist ul { grid-template-columns: 1fr 1fr; } }
.page-title { margin-top: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { font-size: .86rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: var(--r-pill); background: #fff; color: var(--purple); min-height: 40px; display: inline-flex; align-items: center; }
.rules h3 { margin: 26px 0 6px; }
.rules ul { padding-left: 20px; }
.rules li { margin-bottom: 8px; }

/* KM-46: children stepper in the enroll popup. */
.kids { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.kids__label { font-weight: 600; }
.kids__step { display: inline-flex; align-items: center; gap: 4px; }
.kids__step button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; color: var(--purple); cursor: pointer; }
.kids__step button:disabled { opacity: .35; cursor: default; }
.kids__step output { min-width: 32px; text-align: center; font-size: 1.2rem; font-weight: 700; }

/* KM-48: Continue stays in view at the bottom of the enroll popup. */
.modal__foot { position: sticky; bottom: -24px; margin: 8px -24px -24px; padding: 12px 24px 16px;
  background: #fff; box-shadow: 0 -8px 16px -12px rgba(40,18,50,.35); }

/* KM-56: the one-screen registration page. */
.reg__wrap { max-width: 980px; }
.reg__grid { display: grid; gap: 20px; align-items: start; }
.reg__summary, .reg__form, .reg__done { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.reg__class { font-size: 1.6rem; margin: 2px 0 6px; }
.reg__when { margin: 0 0 14px; }
.reg__line { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.reg__total { font-weight: 800; font-size: 1.15rem; color: var(--purple); }
.reg__incl { margin: 12px 0 0; padding-left: 18px; font-size: .9rem; }
.reg__form h2 { font-size: 1.25rem; margin: 0 0 12px; }
.reg__pair { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.reg__opt { font-weight: 400; color: var(--muted); }
.reg__more summary { cursor: pointer; color: var(--purple); font-weight: 600; font-size: .92rem; }
.reg__express { display: grid; gap: 10px; }
.reg__paybtn { min-height: 50px; border-radius: 999px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.reg__paybtn--dark { background: #111; color: #fff; border: 0; }
.reg__paybtn--light { background: #fff; color: #111; border: 2px solid #111; }
.reg__or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.reg__or::before, .reg__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.reg__bad { border-color: #C0392B !important; }
.reg__err { color: #A8341B; font-size: .9rem; text-align: center; margin: 8px 0 0; }
.reg__done { max-width: 640px; margin: 0 auto; text-align: center; }
.reg__done h1 { font-size: 1.7rem; margin: 6px 0 8px; }
@media (min-width: 860px) {
  .reg__grid { grid-template-columns: 340px 1fr; }
  .reg__express { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.reg__card { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; }
.reg__card span { border: 2px solid var(--line); border-radius: 10px; padding: 12px; font-size: .88rem; color: var(--muted); background: #FBFAFD; }
@media (max-width: 420px) { .reg__card { grid-template-columns: 1fr 1fr; } .reg__card span:first-child { grid-column: 1 / -1; } }
.reg__saved { color: var(--go); }
.reg__optout { font-size: inherit; padding: 0; margin-left: 2px; color: var(--purple); text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* KM-59: one calendar button suited to the device, the rest tucked away. */
.cal { margin-top: 6px; }
.cal__more { margin: 12px 0 6px; font-size: .92rem; }
.cal__more summary { cursor: pointer; color: var(--purple); font-weight: 600; }
.cal__more p { margin: 8px 0 0; }

.nav__in > .btn { white-space: nowrap; }

/* KM-66: share one class. */
.class__act { display: flex; align-items: center; gap: 8px; }
.class__share { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; color: var(--purple); cursor: pointer; display: grid; place-items: center; }
.class__share:hover { border-color: var(--purple); }
.class--shared { outline: 3px solid var(--yellow); outline-offset: 3px; }
.class__shared { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--yellow); color: #45215A; font-size: .75rem; font-weight: 700; }
.enroll__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.enroll__meta p { margin: 0; font-size: .94rem; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 450; transform: translate(-50%, 20px); max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px; background: #2B1633; color: #fff; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(40,18,50,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast--select { user-select: all; overflow-wrap: anywhere; }
.reg__invite { margin: 22px auto 0; padding: 18px; border-radius: var(--r); background: var(--lavender-pale); max-width: 480px; }
.reg__invite h2 { font-size: 1.2rem; margin: 0 0 6px; }
.reg__invite p { margin: 0 0 12px; }

/* KM-30: her own photos through the page body. */
.photo { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.photo--store { max-width: 460px; margin: 0 auto 22px; }
.rules .photo { margin: 6px 0 18px; }
.photopair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.ph { margin: 0; position: relative; }
.photopair .ph img, .photostrip .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); display: block; }
.photostrip { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.photostrip .ph:first-child { grid-column: 1 / -1; }
.photostrip .ph:first-child img { aspect-ratio: 16 / 10; object-position: center 30%; }
@media (min-width: 760px) {
  /* One large photo, two stacked beside it, filling the same height. */
  .photostrip { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .photostrip .ph:first-child { grid-column: 1; grid-row: 1 / 3; }
  .photostrip .ph:first-child img { aspect-ratio: 4 / 3; }
  .photostrip .ph:not(:first-child) img { height: 100%; aspect-ratio: auto; }
}
.learn { align-items: center; }
.section--photos { padding-top: 8px; padding-bottom: 8px; }
.ph.photo--store { margin: 0 auto 22px; max-width: 460px; }

/* KM-74: Music at home */
.songs { list-style: none; padding-left: 0 !important; }
.songs li { padding: 10px 0; border-bottom: 1px solid rgba(125,65,153,.12); margin: 0 !important; }
/* The whole line is the link, a big target for a thumb. */
.songs li a { display: block; padding: 8px 0; min-height: 44px; box-sizing: border-box; }
.giftcard { margin-top: 30px; padding: 22px; border-radius: 16px; background: var(--lavender-pale); }
.giftcard h3 { margin-top: 0; }

/* Trial: pick the age group, then the time */
.pick { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.pick legend { font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.pick__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick__row--3 { grid-template-columns: repeat(3, 1fr); }
.pick__row .field__hint { grid-column: 1 / -1; margin: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.intro-grid .field { margin-bottom: 12px; }
@media (min-width: 520px) {
  .intro-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .chips--days { grid-template-columns: repeat(6, 1fr); }
  .chips--days .pick__opt span { padding: 8px 2px; font-size: .88rem; }
}
.chips .pick__opt span { min-height: 48px; align-items: center; justify-content: center; text-align: center; padding: 8px 6px; }
.pick__opt { position: relative; cursor: pointer; }
.pick__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__opt span { display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 48px; box-sizing: border-box; padding: 10px 8px; border: 2px solid var(--lavender); border-radius: 12px; font-size: .76rem; line-height: 1.25; color: var(--muted); text-align: center; justify-content: flex-start; }
.pick__opt strong { font-size: .95rem; color: var(--purple); }
.pick__opt input:checked + span { border-color: var(--purple); background: var(--lavender-pale); box-shadow: inset 0 0 0 1px var(--purple); }
.pick__opt input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }

/* The Kindermusik class name, then who it is for */
.modal__for, .reg__for { margin: -4px 0 6px; font-size: .9rem; font-weight: 600; color: var(--purple); }

/* KM-73: Teachers page */
.promise { display: grid; gap: 14px; margin-top: 22px; }
.promise__item { background: #fff; border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.promise__item h2, .promise__item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.promise__item p { margin: 0; }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(3, 1fr); } .promise--one { grid-template-columns: 1fr; max-width: 720px; } }
.tprofile { display: grid; gap: 22px; align-items: start; }
.tprofile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; border-radius: var(--r-lg); }
@media (min-width: 860px) { .tprofile { grid-template-columns: 5fr 7fr; gap: 36px; } }
.tprofile h2 { margin-bottom: 2px; }
.teacher__group { margin: 22px 0 8px; font-weight: 700; color: var(--purple); font-size: .92rem; }
.tprofile__classes > h3 { margin: 26px 0 0; }

/* KM-70: service area and privacy link, restored from today's footer */
.footer__area { margin: 8px 0 0; font-size: .8rem; }
.footer__area a { color: inherit; }

/* KM-16: real reviews */
.reviews { display: grid; gap: 16px; }
@media (min-width: 860px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews__col { display: contents; }
@media (max-width: 859px) { .reviews__col .review:nth-child(n+2) { display: none; } }
@media (min-width: 860px) {
  .reviews__col { display: flex; flex-direction: column; gap: 16px; }
  .reviews__col .review:last-child { flex: 1; }
}
.review { margin: 0; background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.review__stars { color: #E8B800; letter-spacing: 2px; font-size: .95rem; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); flex: 1; }
.review figcaption { font-size: .84rem; color: var(--muted); }
.review figcaption a { color: var(--purple); }
.review--compact { box-shadow: none; border: 1px solid var(--line); padding: 14px 16px; margin-top: 14px; }
.review--compact blockquote { font-size: .94rem; }

/* KM-84: the basics a searcher asks first (cost, ages, trial) */
.basics { background: #fff; border-radius: var(--r-lg); padding: 16px 18px; margin: 18px 0 4px; box-shadow: var(--shadow); }
.basics p { margin: 4px 0; font-size: .95rem; }

/* KM-90: accessibility and print, from the site audit */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 0; }
.reg__fielderr { margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: #B42318; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky, .toast, .btn, .cohort, .agecard { transition: none !important; }
  .cohort:hover, .agecard:hover { transform: none; }
}
@media print {
  .topbar, .nav, .sticky, .toast, .modal, .video__play, #km-debug { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 16px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* KM-90: iPhone home bar and small phones */
.modal { overscroll-behavior: contain; }
.modal__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
html { -webkit-tap-highlight-color: rgba(125,65,153,.15); }

/* KM-90: human-eye polish */
.footer p a { display: inline; padding: 0; margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
@media (max-width: 480px) {
  .pick__row--3 { grid-template-columns: 1fr; }
  .pick__row--3 .pick__opt span { flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; padding: 12px 14px; }
}

/* KM-95: a menu on phones. Below 900px the links used to be hidden with
   nothing to open them, so Teachers, Pricing and What to expect were only
   reachable from the footer. */
.nav__menu { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 2px solid var(--lavender); border-radius: var(--r-pill); color: var(--purple); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
@media (min-width: 1100px) { .nav__menu { display: none; } }
@media (max-width: 1099px) {
  .nav__links { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(40,18,50,.25); padding: 6px var(--gutter) 14px; flex-direction: column; gap: 0; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .nav__links.is-open { display: flex; }
  .nav__links a, .nav__ages a { display: flex; align-items: center; min-height: 48px; font-size: 1rem; border-bottom: 1px solid rgba(125,65,153,.1); }
  .nav__ages { display: flex; flex-direction: column; gap: 0; }
}

/* KM-96: ages under each age group in the menu */
.nav__ages a { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.nav__age { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
@media (max-width: 1099px) {
  .nav__ages a { flex-direction: row; justify-content: space-between; align-items: center; }
  .nav__age { font-size: .86rem; font-weight: 400; }
}

/* Kim's feedback: the age group's offer sits at the top of its class list */
.offerbox { background: #FFFEF5; border: 2px solid var(--yellow); border-radius: var(--r); padding: 12px 16px; margin: 0 0 14px; font-size: .95rem; }
.offerbox strong { display: block; color: var(--purple); }
.offerbox strong.em { display: inline; font-weight: 800; color: #45215A; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }

/* D-029: the ages sit inside the group's name, never on a separate line */
.nameage { display: inline-block; margin-left: 6px; font-size: .78em; font-weight: 700; color: var(--purple); letter-spacing: .01em; white-space: nowrap; }

/* Kim: wherever "Class times" is a heading, the line beneath it is the same size */
.timeshead { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; }
/* Kim, 2026-11-08 #2 and #3: the schedule's name is the heading; the dates and prorating sit under it, smaller and not bold. */
.timeshead small { display: block; margin-top: .35em; font-size: .6em; font-weight: 400; line-height: 1.35; color: var(--body); }
p.timeshead--sub { font-weight: 400; color: var(--body); margin: 8px 0 22px; }

.btn[aria-pressed="true"] { background: var(--lavender-pale); border-color: var(--purple); color: var(--purple); }

/* Waitlist pop-up: the nearest open times, each one tap from Enroll */
.altlist { display: grid; gap: 8px; margin: 10px 0 6px; }
.altrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 12px; padding: 10px 12px; }
.altrow small { color: var(--muted); }

/* Policy copy: each of Kim's policies is its own card, so a long page can be scanned. */
.policy { background: #fff; border: 1px solid rgba(125,65,153,.16); border-radius: var(--r-lg); padding: 6px 22px 14px; margin: 16px 0; scroll-margin-top: 90px; }
.rules .policy h3 { margin: 16px 0 8px; font-size: 1.12rem; color: var(--purple); }
.rules .policy h4 { margin: 20px 0 4px; font-size: 1rem; color: var(--purple); }
.policy strong { color: var(--ink); }
.rules .policy p { margin: 0 0 12px; }
.rules--plain .policy { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 34px; }
.rules--plain .policy h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 1.3rem; color: var(--purple); }
.rules--plain .policy h4 { margin: 20px 0 4px; font-size: 1rem; color: var(--purple); }
.rules--plain .ico { flex: none; display: inline-flex; width: 34px; height: 34px; color: var(--purple); }
.rules--plain .ico svg { width: 100%; height: 100%; }
.prow--top, .prow--health { max-width: 640px; margin-left: auto; margin-right: auto; }
.prow--health { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
/* Kim, 2026-11-09: a purple title in the center above her last seven paragraphs */
.rules--plain .wte-title { text-align: center; margin: 8px 0 18px; }
@media (min-width: 860px) {
  .prow--two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
}
.policies__in { color: var(--muted); font-size: .9rem; margin: -4px 0 6px; }
.section--tight .jump { margin-top: 0; }

/* The choice above a class list: when do you want to start? */
.sempick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 0 auto 22px; }
.sempick__card { text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; min-height: 44px; }
.sempick__card b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--purple); }
.sempick__card span { display: block; font-size: .9rem; color: var(--body); line-height: 1.35; }
.sempick__card em { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: .82rem; background: #E4F6EA; color: #17663A; border-radius: 999px; padding: 3px 10px; }
.sempick__card[aria-checked="true"] { border: 3px solid var(--purple); padding: 12px 12px 10px; }
.sempick__card:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
@media (max-width: 520px) { .sempick { gap: 8px; } .sempick__card { padding: 12px 10px 10px; } .sempick__card[aria-checked="true"] { padding: 10px 8px 8px; } .sempick__card span { font-size: .84rem; } }

/* The price sits on every class, beside its button. */
.class__price { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; margin-right: 2px; }
.class__price b { font-size: 1.05rem; font-weight: 800; color: var(--purple); }
.class__price small { font-size: .74rem; color: var(--muted); }
.class--full .class__price b { color: var(--muted); }

/* Phone: a shorter list. Day chips, open classes first, full ones folded away. */
.daychips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.daychip { font: inherit; font-weight: 700; font-size: .95rem; min-height: 44px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--purple); cursor: pointer; }
.daychip[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.daychip:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.fullfold { margin-top: 6px; }
.fullfold > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--purple); font-weight: 700; font-size: .95rem; }
.fullfold > summary::-webkit-details-marker { display: none; }
.fullfold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.fullfold[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.fullfold > summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 8px; }

/* The two semester cards are the same height, with the spots badge on the bottom edge. */
.sempick__card { display: flex; flex-direction: column; }
.sempick__card em { margin-top: auto; align-self: flex-start; }
.sempick__card em { margin-top: 8px; }
.sempick__card em.sempick__full { background: var(--lavender-pale); color: var(--muted); }
.sempick__card span:last-of-type { margin-bottom: 8px; }

/* Urgency text is readable: spots left, and the small labels. */
.pill { font-size: .875rem; padding: 3px 11px; }
.eyebrow { font-size: .82rem; }

@media (max-width: 640px) {
  /* One row of contact links; the social icons live in the footer. */
  .topbar a[data-km-cta="facebook"], .topbar a[data-km-cta="instagram"] { display: none; }
  /* The nav already carries "Try a class"; the hero keeps one main button. */
  .hide-phone { display: none !important; }
  .timeshead { font-size: 1.3rem; line-height: 1.25; text-wrap: balance; }
  p.timeshead--sub { font-size: 1.1rem; }
  .footer a, .footer p a, .footer__legal a, .footer__area a { display: inline-block; padding: 12px 6px; }
}

@media (max-width: 640px) {
  /* A class on a phone: time and teacher across the top, price on the left and the buttons on the right below. */
  .class__main { flex: 1 1 100%; }
  .class__act { flex: 1 1 100%; margin-left: 0; justify-content: flex-end; }
  .class__price { order: -1; margin-right: auto; align-items: flex-start; }
}

.offerbox--request { background: #FFF; border-color: var(--purple); }
.offerbox--request strong { color: var(--ink); }

.beforelist__short li { padding: 0; }
.beforelist__short a { display: grid; gap: 2px; padding: 14px 16px; color: inherit; text-decoration: none; border-radius: var(--r); min-height: 44px; }
.beforelist__short a:hover strong, .beforelist__short a:focus-visible strong { text-decoration: underline; }

.jump--in { margin: 0 0 14px; }
.jump--in a { background: var(--lavender-pale); }

[id^="km-rev"] + .btn, [data-km-rev] + .btn { margin-top: 20px; }

.teacher { position: relative; }
.teacher h3 a { color: inherit; text-decoration: none; }
.teacher h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.teacher:hover h3 a, .teacher h3 a:focus-visible { text-decoration: underline; }
.teacher:has(h3 a:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }

.sticky__btns { display: flex; gap: 8px; align-items: center; flex: none; }

/* Kim, 2026-11-08 #4: the closing band's two Join buttons sit in the same row as Try a class. */
.joinpair { display: contents; }
.btn--off { opacity: .55; cursor: default; pointer-events: none; }

/* One line under a prorated schedule's heading, saying what the prices on the rows are (2026-11-15). */
.km-pronote { display: block; margin-top: 10px; font-size: .95rem; font-weight: 600; color: var(--purple, #7D4199); }
