/* ==========================================================================
   KID STOP — drop-in child care, Shawnee KS
   One stylesheet, mobile first. Palette comes straight off their logo:
   stop-sign red, black ink and the blue scribble, on a warm cream paper.
   ========================================================================== */

:root {
  --paper: #EFDFC6;
  --paper-2: #E3CEAE;
  --white: #fff;
  --card: #FFFCF5;
  --panel: #FAF2E4;
  --ink: #14110F;
  --ink-72: rgba(20, 17, 15, .74);
  --ink-50: rgba(20, 17, 15, .52);
  --line: rgba(20, 17, 15, .13);
  --line-strong: rgba(20, 17, 15, .24);
  --red: #D62B1F;
  --red-deep: #A31C13;
  --yellow: #FDD000;
  --sky: #A8D4EE;
  --green: #3E6900;

  --r: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 17, 15, .05), 0 18px 40px -24px rgba(20, 17, 15, .34);
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 44px);
  --ease: cubic-bezier(.19, 1, .22, 1);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id], div[id] { scroll-margin-top: 84px; }

.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;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0;
  font-size: .9rem;
  font-weight: 600;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 1.02em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font: 600 .95rem/1 var(--sans);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg {
  width: 1.06em; height: 1.06em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--solid {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 0 var(--red-deep);
}
.btn--solid:hover { background: #E23A2C; transform: translateY(-1px); box-shadow: 0 5px 0 var(--red-deep); }
.btn--solid:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-deep); }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 2px 0 rgba(20, 17, 15, .07);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn--light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3);
}
.btn--light:hover { background: #fff; transform: translateY(-1px); }

/* ---------------------------------------------------------- utility bar -- */
.strip {
  background: var(--ink);
  color: var(--paper);
  font-size: .8rem;
}
.strip__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem 1.2rem;
  padding-block: .58rem;
}
.strip__note { margin: 0; opacity: .68; letter-spacing: .01em; }
.strip__right { display: flex; align-items: center; gap: 1.1rem; margin: 0; }

.status { display: inline-flex; align-items: center; gap: .45rem; }
.status__dot {
  width: .46rem; height: .46rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(253, 208, 0, .2);
  flex: 0 0 auto;
}
.status.is-open .status__dot {
  background: #7BD389;
  box-shadow: 0 0 0 3px rgba(123, 211, 137, .22);
}
.strip__tel {
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 247, 236, .35);
}
.strip__tel:hover { border-color: #fff; }

/* -------------------------------------------------------------- header --- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 247, 236, .88);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-head.is-stuck {
  border-color: var(--line);
  box-shadow: 0 10px 34px -26px rgba(20, 17, 15, .75);
}
.site-head__in {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-block: .62rem;
}

.brand { display: block; flex: 0 0 auto; }
.brand img {
  display: block;
  width: clamp(108px, 15vw, 146px);
  height: auto;
  mix-blend-mode: multiply;   /* drops their white background into the cream */
}

.nav { display: none; margin-left: auto; gap: 1.55rem; font-size: .93rem; font-weight: 600; }
.nav a {
  position: relative;
  padding-block: .3rem;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .28s cubic-bezier(.19, 1, .22, 1);
}
.nav a:hover::after { right: 0; }

.site-head__cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .55rem .35rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .28s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: grid;
  gap: 1rem;
  padding-block: .4rem 1.4rem;
  border-top: 1px solid var(--line);
}
.drawer[hidden] { display: none; }
.drawer__nav { display: grid; }
.drawer__nav a {
  padding-block: .78rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.drawer__call { justify-self: start; }

/* ---------------------------------------------------------------- hero --- */
.hero { padding: clamp(26px, 5vw, 56px) 0 clamp(38px, 6vw, 76px); }
.hero__in { display: grid; gap: clamp(28px, 5vw, 52px); align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow__dot { width: .42rem; height: .42rem; border-radius: 50%; background: var(--red); }

.hero__title {
  margin: .55rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 5.05rem);
  line-height: .97;
  letter-spacing: -.026em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span {
  display: block;
  transition: transform .95s cubic-bezier(.19, 1, .22, 1);
}
.js .hero__title .line > span { transform: translateY(107%); }
.hero.is-in .hero__title .line > span { transform: none; }
.hero.is-in .line:nth-child(2) > span { transition-delay: .09s; }

/* hand-drawn underline, drawn as an inline SVG so it scales with the word */
.scribble {
  font-style: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.6C14 2.7 26 2 39 3.3 52 4.6 63 6.6 76 5.7 86 5 94 3.5 99 2.1' fill='none' stroke='%23D62B1F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .3em;
  padding-bottom: .05em;
}

.hero__lede {
  max-width: 40ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, .96rem + .3vw, 1.12rem);
  color: var(--ink-72);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: .9rem 1.6rem;
  margin: 2.1rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero__facts b {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero__facts span {
  display: block;
  margin-top: .1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* the play pit ------------------------------------------------------------ */
.hero__art { position: relative; }
.pit {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -40px 70px -40px rgba(96, 66, 34, .38),
    0 26px 50px -30px rgba(20, 17, 15, .55);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, .14) 36%, rgba(198, 224, 238, .28) 64%, rgba(255, 255, 255, .44) 100%),
    radial-gradient(120% 92% at 50% 6%, #E9D3B2 0%, #D8BA8E 55%, #C5A276 100%);
  touch-action: pan-y;
}
/* a single diagonal reflection across the glass */
.pit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 36%, rgba(255, 255, 255, .34) 44%, rgba(255, 255, 255, .06) 50%, transparent 56%);
  mix-blend-mode: screen;
  opacity: .34;
}
.pit__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.pit__canvas:active { cursor: crosshair; }
.pit__face--back .pit__canvas { cursor: pointer; }
.pit__face--back .pit__canvas:active { cursor: pointer; }

/* the case turns over: bubble game on the front, ball pit on the back */
.pit__card {
  position: absolute;
  inset: 0;
  perspective: 1200px;
}
.pit__faces {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .78s cubic-bezier(.52, .02, .28, 1);
  will-change: transform;
}
.pit.is-flipped .pit__faces { transform: rotateY(180deg); }
.pit__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}
.pit__face--back { transform: rotateY(180deg); }
.pit:not(.is-flipped) .pit__face--front,
.pit.is-flipped .pit__face--back { pointer-events: auto; }

.pit__flip {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  margin: 0;
  padding: .44rem .68rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, .93);
  color: var(--ink-50);
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px -14px rgba(20, 17, 15, .6);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pit__flip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pit__flip:hover,
.pit__flip:focus-visible { background: var(--ink); color: var(--paper); border-color: transparent; }
.pit__flip:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .pit__faces { transition: none; }
}

.pit__hint {
  position: absolute;
  left: 50%; bottom: 13px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 3;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding: .3rem .68rem;
  border-radius: 100px;
  background: rgba(255, 252, 245, .82);
  pointer-events: none;
  text-align: center;
  line-height: 1.32;
  transition: opacity .45s ease;
}
.pit__hint b { display: block; }
.pit__hint span {
  display: block;
  margin-top: .16rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  opacity: .68;
  font-variant-numeric: tabular-nums;
}
html:not(.js) .pit__hint { display: none; }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .46rem .82rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 8px 20px -14px rgba(20, 17, 15, .6);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
}
.chip--live { top: 14px; left: 14px; }
.chip--live .status__dot { background: #52B866; box-shadow: 0 0 0 3px rgba(82, 184, 102, .22); }
.chip--lic { top: 14px; right: 14px; background: var(--ink); color: var(--paper); border-color: transparent; }

.hero__caption {
  margin: .7rem 0 0;
  text-align: right;
  font-size: .76rem;
  color: var(--ink-50);
}

/* --------------------------------------------------------------- trust --- */
.trust { padding: clamp(38px, 6vw, 62px) 0; }
.trust__grid { display: grid; gap: 1.4rem; }
.trust__item svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust__item h3 {
  margin: .65rem 0 .2rem;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 700;
}
.trust__item p { margin: 0; font-size: .9rem; color: var(--ink-72); }

/* ------------------------------------------------------------ sections --- */
.section { padding: clamp(54px, 8vw, 104px) 0; }

.sec-head { max-width: 64ch; margin-bottom: clamp(26px, 4vw, 44px); }
.kicker {
  margin: 0 0 .7rem;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker--light { color: rgba(255, 247, 236, .7); }
.sec-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.15rem + 2.7vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.021em;
}
.sec-head__lede {
  max-width: 58ch;
  margin: 1rem 0 0;
  font-size: 1.01rem;
  color: var(--ink-72);
}

/* ------------------------------------------------------------ programs --- */
.programs {
  background: linear-gradient(180deg, transparent, rgba(251, 234, 207, .5) 26%, transparent 92%);
}
.programs__grid {
  display: grid;
  gap: clamp(13px, 2vw, 19px);
  /* Cards keep their own height. Stretching a short card to match a photo card
     leaves an empty box beside it. */
  align-items: start;
}

/* Each card is its own surface: it leans under the pointer, lifts off the page
   and catches the light as it moves. The angles and the light position are
   written by site.js as --rx / --ry / --mx / --my; the transform stays here. */
.card {
  position: relative;
  --pad: clamp(20px, 3vw, 27px);
  padding: var(--pad);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transform:
    perspective(1000px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateZ(var(--tz, 0px));
  transform-origin: 50% 62%;
  transition:
    transform .55s var(--ease),
    box-shadow .45s ease,
    border-color .35s ease;
}
/* While the pointer is on the card the tilt has to track it live, so the easing
   shortens; on the way out the long transition is what settles it back down. */
.card.is-tilting { transition: transform .1s linear, box-shadow .45s ease, border-color .35s ease; }
/* Hover is fenced off from touch. A touch screen fakes :hover and then leaves
   it applied, so the last card you tapped sits there leaning with its light
   still on until you tap a different one. That is not an interaction anyone
   asked for, so only devices that can actually hover get it. */
@media (hover: hover) {
  .card:hover {
    --tz: 12px;
    border-color: var(--line-strong);
    box-shadow: 0 34px 58px -34px rgba(20, 17, 15, .55);
  }
  .card:hover::before { opacity: 1; }
  .card:hover::after { opacity: .85; transform: scaleX(1); }
  .extras:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
}

/* A card in the scroll sequence. The lean itself is written by site.js as
   --rx / --ry / --mx / --my, so it eases in and out through the card's own
   transition; this only lights it up and lifts it. The class is never added on
   a mouse, which leaves the pointer-driven lean exactly as it was. */
.card.is-spot {
  --tz: 10px;
  border-color: var(--line-strong);
  box-shadow: 0 26px 46px -30px rgba(20, 17, 15, .5);
}
.card.is-spot::before { opacity: .95; }
.card.is-spot::after { opacity: .8; transform: scaleX(1); }

/* A pool of light that follows the pointer, and a hairline of the brand red
   along the top edge. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(253, 208, 0, .34), transparent 64%);
  opacity: 0;
  transition: opacity .45s ease;
}
.card.is-tilting::before { opacity: 1; }
.card--accent::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 64%);
}
.card > * { position: relative; z-index: 1; }

.card::after {
  content: "";
  position: absolute;
  left: 14%; right: 14%; top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .4s ease, transform .55s var(--ease);
  pointer-events: none;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--paper-2);
  color: var(--red);
}
.card__icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* A photograph of the room. The slot exists in the markup from the start, but
   an image with no file stays out of the layout entirely, so a card that has no
   picture yet looks exactly as it did before. */
.card__photo { display: none; }
.card__photo[src] {
  display: block;
  width: calc(100% + var(--pad) * 2);
  /* The page-wide img rule caps width at 100%, which would stop the picture
     reaching the card's edges; the height attribute would otherwise pin the
     box, leaving the ratio with nothing to work from. Both are undone here. */
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) var(--pad);
  border-radius: var(--r) var(--r) 0 0;
  object-fit: cover;
  background: var(--paper-2);
}
/* The drawn icon is there to carry a card that has no picture. Once a photo is
   in place it is doing the same job twice, so it steps aside. */
.card:has(.card__photo[src]) .card__icon { display: none; }
.card:has(.card__photo[src]) h3 { margin-top: 0; }

.card h3 { margin: 1rem 0 0; font-family: var(--display); font-size: 1.18rem; }
.card p { margin: 0; font-size: .94rem; color: var(--ink-72); }

.card--accent { background: var(--yellow); border-color: transparent; }
.card--accent .card__icon { background: rgba(255, 255, 255, .55); }
.card--accent p { color: rgba(20, 17, 15, .74); }

/* ----------------------------------------------------------------- how --- */
.how__in { display: grid; gap: clamp(26px, 4vw, 46px); }

.steps { display: grid; gap: 1.55rem; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  content: "";
  position: absolute;
  left: 1.1rem; top: 2.7rem; bottom: -1.55rem;
  width: 1px;
  background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.step h3 { margin: 0 0 .3rem; font-family: var(--display); font-size: 1.13rem; }
.step p { max-width: 46ch; margin: 0; font-size: .95rem; color: var(--ink-72); }

/* ------------------------------------------------------------- pricing --- */
.pricing { background: var(--panel); border-block: 1px solid var(--line); }
.pricing__grid { display: grid; gap: clamp(20px, 3vw, 30px); }

.rates-wrap { display: grid; gap: clamp(22px, 3vw, 32px); align-content: start; }
.rates { width: 100%; border-collapse: collapse; font-size: .97rem; }
.rates thead th {
  padding: 0 .4rem .85rem;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-50);
  text-align: right;
}
.rates thead th:first-child { text-align: left; }
.rates tbody th {
  padding: 1rem .4rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}
.rates tbody th small {
  display: block;
  margin-top: .2rem;
  font-size: .74rem;
  font-weight: 500;
  color: var(--ink-50);
}
.rates tbody td {
  padding: 1rem .4rem;
  border-top: 1px solid var(--line);
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rates tbody td span { margin-left: .08em; font-size: .72rem; font-weight: 500; color: var(--ink-50); }
.rates__alt th, .rates__alt td { background: rgba(253, 208, 0, .14); }
.rates__note { max-width: 60ch; margin: 1.05rem 0 0; font-size: .85rem; color: var(--ink-50); }

.extras {
  position: relative;
  padding: clamp(20px, 3vw, 27px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transform:
    perspective(1000px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s var(--ease), box-shadow .45s ease, border-color .35s ease;
}
.extras.is-tilting { transition: transform .1s linear, box-shadow .45s ease, border-color .35s ease; }

.extras h3 { margin: 0 0 1rem; font-family: var(--display); font-size: 1.14rem; }
.extras__list { display: grid; gap: .72rem; margin: 0; }
.extras__list > div {
  display: grid;
  gap: .08rem;
  padding-bottom: .72rem;
  border-bottom: 1px dashed var(--line);
}
.extras__list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.extras dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.extras dd { margin: 0; font-size: .93rem; font-weight: 600; }
.extras__foot { margin: 1.1rem 0 0; font-size: .81rem; color: var(--ink-50); }

.hours {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.8rem;
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .94rem;
}
.hours__day { display: inline-flex; align-items: baseline; gap: .55rem; margin: 0; }
.hours__day b { font-family: var(--display); font-size: 1.04rem; }
.hours__day--off b { color: var(--ink-50); }

/* ----------------------------------------------------------- preschool --- */
.preschool { padding: clamp(40px, 6vw, 74px) 0; background: var(--ink); color: var(--paper); }
.preschool__in { display: grid; gap: 1.6rem; align-items: center; }
.preschool h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.preschool p { max-width: 52ch; margin: .75rem 0 0; color: rgba(255, 247, 236, .74); }
.preschool .btn { justify-self: start; }

/* ----------------------------------------------------------------- faq --- */
.faq__in { display: grid; gap: clamp(24px, 4vw, 44px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { position: relative; border-bottom: 1px solid var(--line-strong); }

/* A tab-like marker that draws down the open (or hovered) question. */
.qa::before {
  content: "";
  position: absolute;
  left: -16px; top: 1rem; bottom: 1rem;
  width: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .45s var(--ease);
}
.qa:hover::before, .qa[open]::before { transform: scaleY(1); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-size: 1.01rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%2314110F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.qa[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--yellow);
  border-color: transparent;
}
/* The answer's height is animated from site.js, so a question opens and closes
   like a blind instead of snapping. With JS off the paragraph is simply there. */
.qa p {
  max-width: 62ch;
  margin: 0 0 1.3rem;
  font-size: .96rem;
  color: var(--ink-72);
  overflow: hidden;
  transition:
    height .36s var(--ease),
    opacity .3s ease,
    margin-bottom .36s var(--ease);
}

/* --------------------------------------------------------------- visit --- */
.visit__in { display: grid; gap: clamp(24px, 4vw, 42px); align-items: start; }
.visit .sec-head__title, .visit h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.visit__address {
  margin: 1.15rem 0 0;
  font-family: var(--display);
  font-size: 1.32rem;
  font-style: normal;
  line-height: 1.4;
}
.visit__contact { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: .9rem 0 0; }
.visit__contact a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong);
}
.visit__contact a:hover { border-color: var(--red); }
.visit__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }

.visit__hours { width: 100%; max-width: 430px; margin-top: 1.9rem; border-collapse: collapse; font-size: .93rem; }
.visit__hours th { padding-block: .55rem; font-weight: 600; text-align: left; color: var(--ink-72); }
.visit__hours td { padding-block: .55rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.visit__hours tr + tr th, .visit__hours tr + tr td { border-top: 1px solid var(--line); }

.visit__fig { margin: 0; }
.visit__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.visit__fig figcaption { margin-top: .7rem; font-size: .79rem; color: var(--ink-50); }

/* --------------------------------------------------------------- forms --- */
.forms__grid { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.forms__grid a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.forms__grid a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.forms__grid svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.forms__grid small {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* -------------------------------------------------------------- footer --- */
.foot {
  padding: clamp(44px, 6vw, 72px) 0 1.4rem;
  background: var(--ink);
  color: rgba(255, 247, 236, .76);
}
.foot__in { display: grid; gap: 2rem; }
.foot__brand img {
  display: block;
  width: 132px;
  height: auto;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--white);
}
.foot__brand p { max-width: 30ch; margin: .9rem 0 0; font-size: .87rem; }
.foot h3 {
  margin: 0 0 .8rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 247, 236, .46);
}
.foot__col p { margin: 0 0 .8rem; font-size: .91rem; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(255, 247, 236, .24); }
.foot a:hover { color: #fff; border-color: #fff; }
.foot__nav { display: grid; align-content: start; gap: .42rem; }
.foot__nav h3 { margin-bottom: .35rem; }
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 247, 236, .16);
  font-size: .77rem;
  color: rgba(255, 247, 236, .48);
}
.foot__bar p { margin: 0; }

/* ------------------------------------------------------ sticky call bar -- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  padding: .55rem var(--gut) calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 247, 236, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.callbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .82rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.callbar__btn--solid { background: var(--red); border-color: transparent; color: #fff; }
.callbar__btn svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }
}

@media (min-width: 761px) {
  .callbar { display: none; }
}

/* ------------------------------------------------------------- reveals --- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.19, 1, .22, 1), transform .8s cubic-bezier(.19, 1, .22, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 600px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .forms__grid { grid-template-columns: 1fr 1fr; }
  .rates tbody th, .rates tbody td { padding-block: 1.05rem; }
}

@media (min-width: 680px) {
  .programs__grid { grid-template-columns: 1fr 1fr; }
  /* An odd number of cards leaves the final one stranded on the left; centre it. */
  .programs__grid > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - clamp(13px, 2vw, 19px) / 2);
    justify-self: center;
  }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .site-head__cta { display: inline-flex; }
  .burger, .drawer { display: none !important; }

  .hero__in { grid-template-columns: 1.02fr .98fr; }
  .hero__art { justify-self: end; width: 100%; max-width: 520px; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
  .pricing__grid { grid-template-columns: 1.5fr .9fr; align-items: start; }
  .visit__in { grid-template-columns: .92fr 1.08fr; }
  .faq__in { grid-template-columns: .78fr 1.22fr; align-items: start; }
}

@media (min-width: 940px) {
  .how__in { grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 5vw, 70px); align-items: start; }
  .faq__in { grid-template-columns: .8fr 1.2fr; }
}

@media (min-width: 1000px) {
  .programs__grid { grid-template-columns: repeat(3, 1fr); }
  /* Seven cards fill two rows with one left over — put it in the middle
     column of the last row rather than hanging off the left edge. */
  .programs__grid > .card:last-child:nth-child(3n + 1) {
    grid-column: 2;
    width: auto;
  }
  .card--wide { grid-column: span 2; }
  .forms__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .foot__in { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
}

/* phone-only tightening of the rate table into stacked rows */
@media (max-width: 719px) {
  .rates, .rates tbody, .rates tr, .rates th, .rates td { display: block; }
  .rates thead { display: none; }
  .rates tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem .8rem;
    margin-bottom: .6rem;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
  }
  .rates tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 1.02rem; }
  .rates tbody td {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .rates tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .1rem;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-50);
  }
  .rates__alt th, .rates__alt td { background: transparent; }
  .hours { gap: .4rem 1.2rem; }
}

/* --------------------------------------------------- staggered entrances -- */
/* The section arrives as a block; its contents follow a beat later, one after
   the next, so a grid lands as a row of things. This is an animation rather
   than a transition on purpose: `transition` on these elements belongs to the
   pointer tilt, and one shorthand would overwrite the other. */
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

.js .programs.is-in .card,
.js .trust.is-in .trust__item,
.js .how.is-in .step,
.js .forms.is-in .forms__grid > li,
.js .pricing.is-in .rates tbody tr,
.js .faq.is-in .qa {
  animation: rise .62s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

/* -------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .js .programs.is-in .card,
  .js .trust.is-in .trust__item,
  .js .how.is-in .step,
  .js .forms.is-in .forms__grid > li,
  .js .pricing.is-in .rates tbody tr,
  .js .faq.is-in .qa { animation: none; }
  .card, .extras { transform: none !important; }

  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}
