/* ==========================================================================
   LITTLE STARS NURSERY — "picture-book daytime" design system
   One stylesheet for index / login / portal. Hand-built for this site only.
   Palette: warm paper, sky, sunshine, coral, leaf, deep cocoa.
   Type: Baloo 2 (display) + Nunito (body). All artwork is inline SVG / CSS.
   ========================================================================== */

:root {
  --paper: #FFF9F0;
  --paper-deep: #FFF1DC;
  --white: #FFFFFF;
  --sky: #2D9CDB;
  --sky-deep: #1F7FB5;
  --sky-wash: #E3F2FC;
  --sun: #FFC93C;
  --sun-wash: #FFF1C9;
  --coral: #FF6B57;
  --coral-deep: #E8503C;
  --coral-wash: #FFE4DE;
  --leaf: #58B368;
  --leaf-deep: #3E9150;
  --leaf-wash: #E2F3E6;
  --cocoa: #3E3A36;
  --cocoa-soft: #7C7469;
  --line: #F0E2CC;
  --r-big: 28px;
  --r-mid: 18px;
  --r-small: 12px;
  --paper-shadow: 0 12px 28px rgba(62, 58, 54, .10);
  --lift-shadow: 0 18px 38px rgba(62, 58, 54, .16);
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.14; margin: 0 0 .45em; font-weight: 800; letter-spacing: .2px; }
p { margin: 0 0 1em; }
a { color: var(--sky-deep); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--cocoa); }
::selection { background: var(--sun); color: var(--cocoa); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 74px 0; }
.sec-head { max-width: 640px; margin-bottom: 38px; }
.sec-kicker {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-deep); background: var(--coral-wash);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 14px;
}
.sec-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.sec-sub { color: var(--cocoa-soft); font-weight: 600; margin: 0; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  border-radius: 999px; border: 2.5px solid transparent;
  padding: 12px 26px; text-decoration: none; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(255, 107, 87, .35); }
.btn-coral:hover { background: var(--coral-deep); }
.btn-sky { background: var(--sky); color: #fff; box-shadow: 0 8px 18px rgba(45, 156, 219, .30); }
.btn-sky:hover { background: var(--sky-deep); }
.btn-sun { background: var(--sun); color: var(--cocoa); box-shadow: 0 8px 18px rgba(255, 201, 60, .35); }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--cocoa); }
.btn-ghost:hover { background: var(--cocoa); color: var(--paper); }
.btn-paper { background: var(--white); color: var(--cocoa); border-color: var(--line); }
.btn-paper:hover { border-color: var(--sun); background: var(--sun-wash); }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 12px;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}

/* ---------- scroll reveals ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js [data-delay="1"] { transition-delay: .09s; }
html.js [data-delay="2"] { transition-delay: .18s; }
html.js [data-delay="3"] { transition-delay: .27s; }

/* ---------- toast ---------- */
.toast-pop {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--cocoa); color: var(--paper);
  font-weight: 700; font-size: .92rem; border-radius: 999px;
  padding: 11px 22px; max-width: min(92vw, 480px); text-align: center;
  box-shadow: var(--lift-shadow); transition: opacity .25s ease, transform .25s ease;
}
.toast-pop.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- crayon brand ---------- */
.crayon-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--cocoa); }
.crayon-dots { width: 42px; height: 42px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.32rem; line-height: 1.05; display: block; }
.brand-sub { display: block; font-family: var(--body); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cocoa-soft); }

/* ==========================================================================
   HOME — sticky crayon nav + scalloped cloud edge
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
  transition: box-shadow .25s ease;
}
.topbar.is-stuck { box-shadow: 0 8px 22px rgba(62, 58, 54, .10); }
.topbar-in { display: flex; align-items: center; gap: 22px; padding: 12px 0 10px; }
.top-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; margin-block: 0; padding: 0; }
.top-link {
  display: inline-block; padding: 8px 13px; border-radius: 999px;
  font-weight: 800; font-size: .93rem; color: var(--cocoa); text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.top-link:hover { background: var(--sun-wash); color: var(--coral-deep); }
.top-cta { margin-left: 8px; }
.scallop-nav {
  height: 13px; margin-top: -1px;
  background-image: radial-gradient(circle 13px at 13px 0, rgba(255,255,255,.94) 12px, transparent 13px);
  background-size: 26px 13px; background-repeat: repeat-x;
  position: relative; z-index: 59; pointer-events: none;
}
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border-radius: 14px; border: 2.5px solid var(--cocoa); background: var(--sun-wash);
  padding: 10px; flex-direction: column; justify-content: center; gap: 5px;
}
.burger span { display: block; height: 3.4px; border-radius: 4px; background: var(--cocoa); }
.burger span:nth-child(1) { background: var(--coral); }
.burger span:nth-child(2) { background: var(--sky); width: 80%; }
.burger span:nth-child(3) { background: var(--leaf); width: 60%; }

.menu-scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(62, 58, 54, .45);
  opacity: 0; transition: opacity .3s ease;
}
.menu-scrim.is-open { opacity: 1; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(330px, 88vw); background: var(--paper);
  border-left: 3px dashed var(--sun);
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(105%); transition: transform .32s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.menu-close {
  width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--cocoa);
  background: var(--coral-wash); font-size: 1.05rem; font-weight: 800; color: var(--cocoa);
}
.m-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-mid); text-decoration: none;
  color: var(--cocoa); font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  border: 2px solid transparent;
}
.m-link small { font-family: var(--body); font-weight: 700; color: var(--cocoa-soft); font-size: .76rem; }
.m-link:hover { background: var(--sun-wash); border-color: var(--sun); }
.menu-note { margin-top: auto; padding-top: 16px; font-size: .78rem; color: var(--cocoa-soft); font-weight: 600; }

/* ==========================================================================
   HOME — storybook hero
   ========================================================================== */
.storybook-hero { padding: 52px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 44px; align-items: center; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sun-wash); border: 2px dashed var(--sun);
  color: var(--cocoa); font-weight: 800; font-size: .84rem;
  border-radius: 999px; padding: 6px 16px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.7rem, 5.6vw, 4.35rem); margin-bottom: 18px; }
.hl-word { position: relative; display: inline-block; color: var(--sky-deep); white-space: nowrap; }
.crayon-line { position: absolute; left: -2%; bottom: -12px; width: 104%; height: 16px; overflow: visible; }
.hero-sub { font-size: 1.08rem; color: var(--cocoa-soft); font-weight: 600; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .8rem; font-weight: 800;
}
.trust-chip svg { width: 17px; height: 17px; flex: none; }
.trust-chip small { font-weight: 600; color: var(--cocoa-soft); }
.hero-scene { position: relative; }
.scene-svg { width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(62, 58, 54, .12)); }
.float-slow { animation: bob 6.5s ease-in-out infinite; }
.float-fast { animation: bob 4.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ==========================================================================
   HOME — polaroid room shelf + age filter
   ========================================================================== */
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-chip {
  border: 2.5px solid var(--line); background: var(--white); color: var(--cocoa);
  border-radius: 999px; padding: 7px 17px; font-weight: 800; font-size: .86rem;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.filter-chip:hover { transform: translateY(-2px); border-color: var(--sun); }
.filter-chip[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); }
.room-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.polaroid-card {
  background: var(--white); border-radius: 10px; padding: 12px 12px 20px;
  box-shadow: var(--paper-shadow); border: 1px solid var(--line);
  transition: transform .28s ease, box-shadow .28s ease;
}
.polaroid-card:nth-child(1) { transform: rotate(-2.3deg); }
.polaroid-card:nth-child(2) { transform: rotate(1.7deg) translateY(10px); }
.polaroid-card:nth-child(3) { transform: rotate(-1.4deg); }
.polaroid-card:nth-child(4) { transform: rotate(2.4deg) translateY(8px); }
.polaroid-card:hover { transform: rotate(0) translateY(-7px); box-shadow: var(--lift-shadow); }
.polaroid-card[hidden] { display: none; }
.polaroid-photo { border-radius: 6px; overflow: hidden; background: var(--paper-deep); }
.polaroid-photo svg { width: 100%; height: auto; }
.polaroid-cap { padding: 15px 6px 0; }
.room-name { font-size: 1.42rem; margin-bottom: 6px; }
.age-chip { background: var(--sky-wash); color: var(--sky-deep); }
.room-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 13px 0; }
.room-meta div { background: var(--paper); border-radius: var(--r-small); padding: 7px 11px; }
.room-meta small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cocoa-soft); }
.room-meta b { font-family: var(--display); font-size: .98rem; }
.room-blurb { font-size: .9rem; color: var(--cocoa-soft); font-weight: 600; margin-bottom: 14px; }
.shelf-note { margin-top: 30px; font-size: .82rem; color: var(--cocoa-soft); font-weight: 600; }

/* ==========================================================================
   HOME — our day trail
   ========================================================================== */
.day-section { background: var(--sky-wash); }
.day-trail {
  display: flex; gap: 18px; list-style: none; margin: 0; padding: 6px 2px 22px;
  overflow-x: auto; scroll-snap-type: x proximity; position: relative;
}
.day-trail::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 52px;
  border-top: 3.5px dashed rgba(45, 156, 219, .5);
}
.trail-stop {
  position: relative; z-index: 1; flex: 1 0 190px; scroll-snap-align: start;
  background: var(--white); border-radius: var(--r-mid); padding: 18px 16px;
  border: 2.5px solid var(--line); box-shadow: var(--paper-shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.trail-stop:hover { transform: translateY(-5px); }
.stop-time { font-family: var(--display); font-weight: 800; color: var(--sky-deep); font-size: .95rem; }
.stop-ic {
  width: 52px; height: 52px; border-radius: 50%; margin: 10px 0 12px;
  display: grid; place-items: center; border: 3px solid var(--white);
  box-shadow: 0 5px 12px rgba(62, 58, 54, .14);
}
.stop-ic svg { width: 27px; height: 27px; }
.ic-sky { background: var(--sky-wash); color: var(--sky-deep); }
.ic-sun { background: var(--sun-wash); color: #C79312; }
.ic-leaf { background: var(--leaf-wash); color: var(--leaf-deep); }
.ic-coral { background: var(--coral-wash); color: var(--coral-deep); }
.ic-cocoa { background: var(--paper-deep); color: var(--cocoa); }
.stop-name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; margin-bottom: 3px; }
.stop-sub { font-size: .82rem; color: var(--cocoa-soft); font-weight: 600; margin: 0; }
.trail-stop.is-now { border-color: var(--leaf); }
.now-chip {
  display: inline-block; margin-left: 8px; background: var(--leaf); color: #fff;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; border-radius: 999px; padding: 2px 9px;
  vertical-align: 2px;
}
.day-note { font-size: .85rem; color: var(--cocoa-soft); font-weight: 600; margin: 8px 0 0; }

/* ==========================================================================
   HOME — care & safety band
   ========================================================================== */
.care-band { background: var(--leaf-wash); border-top: 3px dashed var(--leaf); border-bottom: 3px dashed var(--leaf); }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.care-item { display: flex; gap: 13px; align-items: flex-start; background: var(--white); border-radius: var(--r-mid); padding: 17px 18px; border: 2px solid #CDE8D3; }
.care-check { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; }
.care-check svg { width: 18px; height: 18px; }
.care-item h3 { font-size: 1.04rem; margin-bottom: 2px; }
.care-item p { font-size: .84rem; color: var(--cocoa-soft); font-weight: 600; margin: 0; }
.care-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.care-stat {
  flex: 1 1 170px; text-align: center; background: var(--white);
  border-radius: var(--r-mid); padding: 16px 12px; border: 2px dashed var(--leaf);
}
.care-stat b { display: block; font-family: var(--display); font-size: 2rem; color: var(--leaf-deep); line-height: 1.1; }
.care-stat small { font-weight: 700; color: var(--cocoa-soft); font-size: .8rem; }

/* ==========================================================================
   HOME — parent voices (handwritten notes)
   ========================================================================== */
.voice-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.note-card {
  position: relative; padding: 34px 24px 22px; border-radius: 6px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(45, 156, 219, .16) 27px 28px),
    #FFFDF6;
  border: 1px solid var(--line); box-shadow: var(--paper-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.note-card:nth-child(1) { transform: rotate(-1.6deg); }
.note-card:nth-child(2) { transform: rotate(1.1deg) translateY(12px); }
.note-card:nth-child(3) { transform: rotate(-.8deg); }
.note-card:hover { transform: rotate(0) translateY(-5px); box-shadow: var(--lift-shadow); }
.tape {
  position: absolute; top: -13px; left: 50%; width: 108px; height: 27px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 201, 60, .65); border-left: 2px dashed rgba(255, 255, 255, .8);
  border-right: 2px dashed rgba(255, 255, 255, .8); border-radius: 3px;
}
.note-text { font-style: italic; font-weight: 600; font-size: .97rem; line-height: 28px; margin-bottom: 14px; }
.note-sign { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--sky-deep); margin: 0; }
.note-sign small { display: block; font-family: var(--body); font-weight: 700; color: var(--cocoa-soft); font-size: .74rem; }
.sample-tag { display: inline-block; margin-top: 26px; font-size: .8rem; font-weight: 700; color: var(--cocoa-soft); background: var(--paper-deep); border-radius: 999px; padding: 5px 15px; }

/* ==========================================================================
   HOME — gallery snap strip + peek lightbox
   ========================================================================== */
.snap-strip {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 2px 24px;
  scroll-snap-type: x proximity;
}
.snap-tile {
  flex: 0 0 285px; scroll-snap-align: start; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 13px;
  box-shadow: var(--paper-shadow); text-align: left;
  transition: transform .24s ease, box-shadow .24s ease;
}
.snap-tile:nth-child(odd) { transform: rotate(-1.3deg); }
.snap-tile:nth-child(even) { transform: rotate(1.2deg); }
.snap-tile:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--lift-shadow); }
.snap-tile svg { width: 100%; height: auto; border-radius: 6px; }
.snap-cap { padding: 10px 5px 0; }
.snap-cap b { font-family: var(--display); font-size: 1.02rem; display: block; }
.snap-cap small { color: var(--cocoa-soft); font-weight: 600; font-size: .78rem; }
.peek {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(62, 58, 54, .62); padding: 22px; opacity: 0; transition: opacity .25s ease;
}
.peek.is-open { opacity: 1; }
.peek-card {
  background: var(--white); border-radius: var(--r-big); padding: 16px;
  width: min(760px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--lift-shadow);
}
.peek-fig svg { width: 100%; height: auto; border-radius: var(--r-mid); }
.peek-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 6px 2px; }
.peek-meta h3 { margin-bottom: 2px; font-size: 1.3rem; }
.peek-meta p { margin: 0; color: var(--cocoa-soft); font-weight: 600; font-size: .9rem; }
.peek-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid var(--cocoa); background: var(--sun-wash);
  font-size: 1.05rem; font-weight: 800; color: var(--cocoa);
}

/* ==========================================================================
   HOME — visit booking desk
   ========================================================================== */
.visit-section { background: var(--paper-deep); }
.visit-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; }
.book-card {
  background: var(--white); border-radius: var(--r-big); padding: 30px;
  border: 2px solid var(--line); box-shadow: var(--paper-shadow); position: relative;
}
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; }
.ls-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ls-field label { font-weight: 800; font-size: .88rem; }
.req { color: var(--coral-deep); }
.ls-field input, .ls-field select, .ls-field textarea {
  border: 2.5px solid var(--line); border-radius: 15px; background: var(--paper);
  padding: 12px 15px; font-size: .97rem; font-weight: 600; width: 100%;
  transition: border-color .18s ease, background .18s ease;
}
.ls-field textarea { resize: vertical; min-height: 88px; }
.ls-field input:focus, .ls-field select:focus, .ls-field textarea:focus {
  outline: none; border-color: var(--sky); background: var(--white);
}
.ls-field.has-error input, .ls-field.has-error select, .ls-field.has-error textarea { border-color: var(--coral); background: #FFF6F4; }
.err-line { display: none; color: var(--coral-deep); font-size: .78rem; font-weight: 800; }
.ls-field.has-error .err-line { display: block; }
.hint-line { color: var(--cocoa-soft); font-size: .76rem; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.book-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.book-note { font-size: .78rem; color: var(--cocoa-soft); font-weight: 600; margin: 0; max-width: 34ch; }
.book-done { display: none; text-align: center; padding: 26px 8px; }
.book-card.is-sent form { display: none; }
.book-card.is-sent .book-done { display: block; }
.done-ic {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--leaf-wash); color: var(--leaf-deep); display: grid; place-items: center;
  border: 3px dashed var(--leaf);
}
.done-ic svg { width: 36px; height: 36px; }
.ref-chip {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  background: var(--sun-wash); border: 2.5px dashed var(--sun); border-radius: 14px;
  padding: 7px 22px; margin: 8px 0 14px; letter-spacing: .06em;
}
.side-card {
  background: var(--sky); color: #fff; border-radius: var(--r-big); padding: 28px;
  box-shadow: var(--paper-shadow); position: sticky; top: 96px;
}
.side-card h3 { color: #fff; font-size: 1.35rem; }
.step-list { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: grid; gap: 15px; }
.step-list li { counter-increment: step; display: flex; gap: 13px; align-items: flex-start; }
.step-list li::before {
  content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sun); color: var(--cocoa); font-family: var(--display); font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
}
.step-list b { display: block; font-family: var(--display); font-size: 1.02rem; }
.step-list small { font-weight: 600; opacity: .92; font-size: .82rem; line-height: 1.45; display: block; }
.contact-lines { display: grid; gap: 8px; border-top: 2px dashed rgba(255, 255, 255, .5); padding-top: 17px; font-size: .88rem; font-weight: 700; }
.contact-lines a { color: #fff; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.hours-mini { margin-top: 18px; border-top: 2px dashed rgba(255, 255, 255, .5); padding-top: 15px; display: grid; gap: 4px; }
.hours-line { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.hours-line.is-today { background: rgba(255, 255, 255, .18); }
.today-chip { background: var(--sun); color: var(--cocoa); border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .1em; padding: 1px 8px; margin-left: 7px; vertical-align: 1px; }

/* ==========================================================================
   HOME — FAQ accordion
   ========================================================================== */
.ask-list { max-width: 780px; display: grid; gap: 13px; }
.ask-item { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-mid); overflow: hidden; transition: border-color .2s ease; }
.ask-item.is-open { border-color: var(--sun); }
.ask-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; text-align: left; padding: 17px 20px;
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; color: var(--cocoa);
}
.ask-ic {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun-wash);
  color: var(--cocoa); display: grid; place-items: center; font-size: 1.15rem; font-weight: 800;
  transition: transform .25s ease, background .25s ease;
}
.ask-item.is-open .ask-ic { transform: rotate(45deg); background: var(--sun); }
.ask-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.ask-item.is-open .ask-a { grid-template-rows: 1fr; }
.ask-a-in { overflow: hidden; }
.ask-a-in p { padding: 0 20px 18px; margin: 0; color: var(--cocoa-soft); font-weight: 600; font-size: .93rem; }

/* ==========================================================================
   FOOTER — scalloped cloud top
   ========================================================================== */
.scallop-foot {
  height: 15px; margin-bottom: -1px;
  background-image: radial-gradient(circle 15px at 15px 15px, var(--cocoa) 14px, transparent 15px);
  background-size: 30px 15px; background-repeat: repeat-x;
}
.cloud-footer { background: var(--cocoa); color: #EFE7DA; padding: 48px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.cloud-footer .crayon-brand { color: var(--paper); }
.cloud-footer .brand-sub { color: #B8AE9F; }
.foot-blurb { font-size: .9rem; font-weight: 600; color: #CFC5B6; max-width: 34ch; margin-top: 14px; }
.foot-col h4 { color: var(--sun); font-size: 1.02rem; letter-spacing: .05em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-col a { color: #EFE7DA; text-decoration: none; font-weight: 700; font-size: .9rem; }
.foot-col a:hover { color: var(--sun); }
.foot-col address { font-style: normal; font-size: .9rem; font-weight: 600; color: #CFC5B6; line-height: 1.9; }
.foot-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 2px dashed rgba(255, 255, 255, .22);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  font-size: .78rem; font-weight: 600; color: #B8AE9F;
}
.credit-line { color: #B8AE9F; text-decoration: none; font-weight: 700; }
.credit-line b { color: var(--sun); }
.credit-line:hover b { text-decoration: underline; }

/* ==========================================================================
   LOGIN — friendly split gate card
   ========================================================================== */
.gate-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.gate-wrap {
  width: min(1060px, 100% - 40px); margin: auto; padding: 40px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
}
.gate-scene {
  background: var(--sky-wash); border-radius: var(--r-big) 0 0 var(--r-big);
  border: 2px solid var(--line); border-right: 0; padding: 34px;
  display: flex; flex-direction: column; gap: 18px;
}
.gate-scene-svg { width: 100%; height: auto; margin-block: auto; filter: drop-shadow(0 12px 20px rgba(62, 58, 54, .12)); }
.gate-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gate-points li { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: .88rem; }
.gate-points svg { width: 20px; height: 20px; flex: none; color: var(--leaf-deep); }
.gate-card {
  background: var(--white); border-radius: 0 var(--r-big) var(--r-big) 0;
  border: 2px solid var(--line); padding: 38px 36px; box-shadow: var(--paper-shadow);
}
.sun-badge { width: 64px; height: 64px; margin-bottom: 14px; }
.gate-title { font-size: 2rem; margin-bottom: 4px; }
.gate-sub { color: var(--cocoa-soft); font-weight: 600; font-size: .93rem; margin-bottom: 20px; }
.demo-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--sun-wash); border: 2.5px dashed var(--sun); border-radius: var(--r-mid);
  padding: 13px 16px; margin-bottom: 18px;
}
.demo-chip small { display: block; font-weight: 800; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #A87F0A; }
.demo-chip code { display: block; font-family: var(--body); font-weight: 800; font-size: .84rem; color: var(--cocoa); }
.demo-fill {
  border: 2.5px solid var(--cocoa); background: var(--white); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .88rem; padding: 8px 17px;
  transition: background .18s ease, transform .18s ease;
}
.demo-fill:hover { background: var(--sun); transform: translateY(-2px); }
.already-note {
  display: none; align-items: center; gap: 8px; background: var(--leaf-wash);
  border: 2px solid var(--leaf); color: var(--leaf-deep); border-radius: var(--r-mid);
  padding: 10px 15px; font-weight: 700; font-size: .86rem; margin-bottom: 16px;
}
.already-note.is-show { display: flex; }
.already-note a { color: var(--leaf-deep); }
.gate-error {
  display: none; align-items: flex-start; gap: 10px; background: var(--coral-wash);
  border: 2px solid var(--coral); color: var(--coral-deep); border-radius: var(--r-mid);
  padding: 11px 15px; font-weight: 700; font-size: .86rem; margin-bottom: 16px;
}
.gate-error.is-show { display: flex; }
.gate-error svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.gate-form { display: grid; gap: 16px; }
.gate-field { display: flex; flex-direction: column; gap: 6px; }
.gate-field label { font-weight: 800; font-size: .88rem; }
.gate-field input {
  border: 2.5px solid var(--line); border-radius: 17px; background: var(--paper);
  padding: 14px 17px; font-size: 1rem; font-weight: 600; width: 100%;
  transition: border-color .18s ease, background .18s ease;
}
.gate-field input:focus { outline: none; border-color: var(--sky); background: var(--white); }
.gate-field.has-error input { border-color: var(--coral); background: #FFF6F4; }
.gate-field .err-line { display: none; }
.gate-field.has-error .err-line { display: block; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 54px; }
.pw-peek {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent;
  color: var(--cocoa-soft); display: grid; place-items: center;
}
.pw-peek:hover { background: var(--sun-wash); color: var(--cocoa); }
.pw-peek svg { width: 22px; height: 22px; }
.remember-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .87rem; cursor: pointer; }
.remember-row input { width: 19px; height: 19px; accent-color: var(--sky); cursor: pointer; }
.gate-submit { position: relative; margin-top: 4px; }
.spin {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: twirl .7s linear infinite;
}
.gate-submit.is-loading .spin { display: inline-block; }
@keyframes twirl { to { transform: rotate(360deg); } }
.gate-note { font-size: .76rem; color: var(--cocoa-soft); font-weight: 600; margin: 16px 0 0; }
.gate-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; font-weight: 800; font-size: .88rem; text-decoration: none; }
.gate-back:hover { text-decoration: underline; }
.gate-foot { text-align: center; padding: 0 20px 26px; font-size: .76rem; font-weight: 600; color: var(--cocoa-soft); }
.gate-foot a { color: var(--cocoa-soft); font-weight: 800; }

/* shake (shared) */
.shake { animation: wobble .45s ease; }
@keyframes wobble {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

/* ==========================================================================
   PORTAL — parent nest dashboard
   ========================================================================== */
.pre-auth .nest-shell { visibility: hidden; }
.nest-shell { min-height: 100vh; display: flex; flex-direction: column; }
.nest-top {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 3px dashed var(--sun);
}
.nest-top-in { display: flex; align-items: center; gap: 16px; padding: 11px 0; flex-wrap: wrap; }
.nest-id { display: flex; align-items: center; gap: 11px; }
.nest-id .crayon-dots { width: 36px; height: 36px; }
.nest-id-text b { font-family: var(--display); font-size: 1.08rem; display: block; line-height: 1.1; }
.nest-id-text small { font-weight: 700; color: var(--cocoa-soft); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.nest-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-child {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sky-wash);
  color: var(--sky-deep); border-radius: 999px; padding: 6px 15px; font-weight: 800; font-size: .85rem;
}
.top-child::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); }
.nest-btn {
  border: 2.5px solid var(--cocoa); background: var(--white); color: var(--cocoa);
  border-radius: 999px; padding: 7px 17px; font-family: var(--display); font-weight: 700;
  font-size: .88rem; text-decoration: none; display: inline-block;
  transition: background .18s ease, transform .18s ease;
}
.nest-btn:hover { background: var(--sun-wash); transform: translateY(-1px); }
.nest-btn-warn { border-color: var(--coral); color: var(--coral-deep); }
.nest-btn-warn:hover { background: var(--coral-wash); }
.nest-main { flex: 1; padding: 34px 0 56px; }
.nest-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 2px; }
.nest-head p { color: var(--cocoa-soft); font-weight: 600; font-size: .9rem; margin-bottom: 22px; }

.kid-switch { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 22px; }
.kid-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--white); border: 2.5px solid var(--line); border-radius: var(--r-mid);
  padding: 11px 18px 11px 12px; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.kid-btn:hover { transform: translateY(-2px); border-color: var(--sun); }
.kid-btn.is-on { border-color: var(--sky); background: var(--sky-wash); }
.kid-av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  color: #fff; font-size: 1rem;
}
.kid-name { font-family: var(--display); font-weight: 800; font-size: 1.02rem; display: block; line-height: 1.15; }
.kid-room { font-size: .74rem; font-weight: 700; color: var(--cocoa-soft); }

.nest-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.nest-stat { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-mid); padding: 16px 19px; }
.nest-stat-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cocoa-soft); }
.nest-stat-value { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.2; }
.nest-stat-note { font-size: .78rem; font-weight: 700; color: var(--cocoa-soft); }
.ns-sky { border-top: 5px solid var(--sky); }
.ns-sun { border-top: 5px solid var(--sun); }
.ns-coral { border-top: 5px solid var(--coral); }

.nest-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px;
  border-bottom: 2.5px dashed var(--line);
}
.nest-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  border: 2.5px solid transparent; background: transparent; border-radius: 999px;
  padding: 9px 19px; font-family: var(--display); font-weight: 700; font-size: .97rem;
  color: var(--cocoa-soft); transition: background .18s ease, color .18s ease;
}
.nest-tab:hover { background: var(--sun-wash); color: var(--cocoa); }
.nest-tab.is-on { background: var(--cocoa); color: var(--paper); }
.tab-count {
  background: var(--coral); color: #fff; border-radius: 999px;
  font-family: var(--body); font-size: .7rem; font-weight: 800; padding: 1px 8px;
}
.nest-tab.is-on .tab-count { background: var(--sun); color: var(--cocoa); }
.nest-panel { animation: fadeup .3s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.4rem; margin: 0; }
.panel-head small { color: var(--cocoa-soft); font-weight: 700; font-size: .8rem; }
.soft-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-big); padding: 24px; box-shadow: var(--paper-shadow); }
.panel-note { margin-top: 16px; font-size: .78rem; color: var(--cocoa-soft); font-weight: 600; }

/* attendance calendar */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-title { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--cocoa);
  background: var(--sun-wash); font-size: 1rem; font-weight: 800; color: var(--cocoa);
  transition: background .18s ease;
}
.cal-nav button:hover { background: var(--sun); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-bottom: 7px; }
.cal-week span { text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cocoa-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: 14px; border: 2.5px solid var(--line);
  background: var(--paper); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-family: var(--display); font-weight: 700;
  font-size: .98rem; color: var(--cocoa); padding: 2px; transition: transform .15s ease, box-shadow .15s ease;
}
.cal-cell:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--paper-shadow); }
.cal-cell:disabled { cursor: default; opacity: .75; }
.cal-cell.is-today { outline: 3px solid var(--sky); outline-offset: 1px; }
.cal-cell.is-picked { border-color: var(--cocoa); }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; }
.st-present { background: var(--leaf-wash); border-color: #BFE3C7; }
.st-present .cal-dot { background: var(--leaf); }
.st-late { background: var(--sun-wash); border-color: #F2DFA0; }
.st-late .cal-dot { background: var(--sun); }
.st-absent { background: var(--coral-wash); border-color: #F6C4BA; }
.st-absent .cal-dot { background: var(--coral); }
.st-away { background: var(--sky-wash); border-color: #BBDFF5; }
.st-away .cal-dot { background: var(--sky); }
.st-closed { background: repeating-linear-gradient(45deg, var(--paper) 0 6px, var(--paper-deep) 6px 12px); color: var(--cocoa-soft); }
.st-holiday { background: var(--sun-wash); border-style: dashed; border-color: var(--sun); color: #A87F0A; }
.st-upcoming { background: var(--white); border-style: dashed; color: var(--cocoa-soft); }
.cal-empty { aspect-ratio: 1 / 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; font-size: .74rem; font-weight: 700; color: var(--cocoa-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.cal-detail { margin-top: 18px; background: var(--paper); border: 2px dashed var(--sun); border-radius: var(--r-mid); padding: 16px 19px; }
.cal-detail h3 { font-size: 1.08rem; margin-bottom: 4px; }
.cal-detail p { font-size: .87rem; font-weight: 600; color: var(--cocoa-soft); margin-bottom: 10px; }
.cal-summary { margin-top: 15px; font-weight: 800; font-size: .86rem; color: var(--sky-deep); }

/* meals & nap logs */
.log-list { display: grid; gap: 15px; }
.log-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-mid); padding: 18px 21px; }
.log-card.is-today { border-color: var(--sun); }
.log-date { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.log-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 600; }
.log-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.log-ic svg { width: 16px; height: 16px; }
.log-row small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cocoa-soft); }
.mood-chip { background: var(--leaf-wash); color: var(--leaf-deep); }
.home-notes { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.home-note-chip { background: var(--sky-wash); color: var(--sky-deep); border-radius: 999px; padding: 3px 12px; font-size: .76rem; font-weight: 800; }
.note-add { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.note-add input {
  flex: 1 1 240px; border: 2.5px solid var(--line); border-radius: 15px;
  background: var(--paper); padding: 11px 15px; font-weight: 600; font-size: .92rem;
}
.note-add input:focus { outline: none; border-color: var(--sky); background: var(--white); }

/* notices feed */
.notice-feed { display: grid; gap: 15px; }
.notice-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-mid); padding: 19px 22px; position: relative; }
.notice-card.is-unread { border-left: 7px solid var(--coral); }
.notice-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.notice-tag { background: var(--sky-wash); color: var(--sky-deep); }
.notice-date { font-size: .76rem; font-weight: 700; color: var(--cocoa-soft); }
.unread-dot { margin-left: auto; background: var(--coral); color: #fff; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 2px 10px; }
.notice-title { font-size: 1.14rem; margin-bottom: 4px; }
.notice-body { font-size: .9rem; font-weight: 600; color: var(--cocoa-soft); margin-bottom: 12px; }
.notice-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.mini-btn {
  border: 2px solid var(--cocoa); background: var(--white); border-radius: 999px;
  padding: 5px 15px; font-weight: 800; font-size: .78rem; color: var(--cocoa);
  transition: background .18s ease;
}
.mini-btn:hover { background: var(--sun-wash); }
.mini-btn-leaf { border-color: var(--leaf-deep); color: var(--leaf-deep); }
.mini-btn-leaf:hover { background: var(--leaf-wash); }
.notice-reply { margin-top: 13px; display: grid; gap: 9px; }
.notice-reply textarea {
  border: 2.5px solid var(--line); border-radius: 14px; background: var(--paper);
  padding: 11px 14px; font-size: .9rem; font-weight: 600; min-height: 74px; resize: vertical; width: 100%;
}
.notice-reply textarea:focus { outline: none; border-color: var(--sky); background: var(--white); }
.reply-sent {
  margin-top: 12px; background: var(--leaf-wash); border: 2px dashed var(--leaf);
  border-radius: var(--r-mid); padding: 11px 15px; font-size: .85rem; font-weight: 700; color: var(--leaf-deep);
}

/* fees */
.fee-summary { font-weight: 800; font-size: .92rem; margin-bottom: 15px; color: var(--sky-deep); }
.fee-wrap { overflow-x: auto; border-radius: var(--r-mid); }
.fee-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.fee-table th {
  text-align: left; font-size: .7rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--cocoa-soft); padding: 10px 14px;
  border-bottom: 2.5px dashed var(--line);
}
.fee-table td { padding: 13px 14px; border-bottom: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; }
.fee-table tr.fee-row { cursor: pointer; transition: background .15s ease; }
.fee-table tr.fee-row:hover { background: var(--sun-wash); }
.fee-id { font-family: var(--display); font-weight: 800; color: var(--sky-deep); }
.fee-num { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 13px; font-size: .74rem; font-weight: 800; }
.pill-ok { background: var(--leaf-wash); color: var(--leaf-deep); }
.pill-warn { background: var(--sun-wash); color: #A87F0A; }
.pill-bad { background: var(--coral-wash); color: var(--coral-deep); }
.pill-mute { background: var(--paper-deep); color: var(--cocoa-soft); }
.fee-detail-row td { background: var(--paper); padding: 15px 18px; }
.fee-detail { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: .84rem; font-weight: 700; color: var(--cocoa-soft); }
.fee-detail b { color: var(--cocoa); }

/* message teacher */
.msg-thread { display: grid; gap: 13px; margin-bottom: 20px; }
.msg-bubble { max-width: 78%; border-radius: 20px; padding: 13px 18px; font-size: .92rem; font-weight: 600; }
.msg-bubble.from-teacher { background: var(--sky-wash); border: 2px solid #BBDFF5; border-bottom-left-radius: 6px; justify-self: start; }
.msg-bubble.from-parent { background: var(--sun-wash); border: 2px solid #F2DFA0; border-bottom-right-radius: 6px; justify-self: end; }
.msg-meta { display: block; font-size: .7rem; font-weight: 800; color: var(--cocoa-soft); margin-bottom: 4px; letter-spacing: .04em; }
.msg-box { display: grid; gap: 11px; }
.msg-box label { font-weight: 800; font-size: .9rem; }
.msg-box textarea {
  border: 2.5px solid var(--line); border-radius: 17px; background: var(--paper);
  padding: 14px 17px; font-size: .95rem; font-weight: 600; min-height: 104px; resize: vertical; width: 100%;
}
.msg-box textarea:focus { outline: none; border-color: var(--sky); background: var(--white); }
.msg-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.msg-box-foot small { color: var(--cocoa-soft); font-weight: 600; font-size: .76rem; max-width: 40ch; }
.nest-foot { padding: 20px 0 30px; text-align: center; font-size: .76rem; font-weight: 600; color: var(--cocoa-soft); }
.nest-foot a { color: var(--cocoa-soft); font-weight: 800; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .top-cta-book { display: none; }
  .room-shelf { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-wall { grid-template-columns: 1fr; max-width: 560px; }
  .note-card:nth-child(2) { transform: rotate(1.1deg); }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-scene { max-width: 540px; }
  .visit-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gate-wrap { grid-template-columns: 1fr; width: min(560px, 100% - 32px); }
  .gate-scene { border-radius: var(--r-big) var(--r-big) 0 0; border-right: 2px solid var(--line); border-bottom: 0; padding: 26px; }
  .gate-scene-svg { max-height: 240px; }
  .gate-card { border-radius: 0 0 var(--r-big) var(--r-big); }
}
@media (max-width: 900px) {
  .top-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 30px); }
  .section { padding: 54px 0; }
  .storybook-hero { padding: 34px 0 46px; }
  .room-shelf { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .polaroid-card:nth-child(n) { transform: rotate(0); }
  .care-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { padding: 22px 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .nest-stats { grid-template-columns: 1fr; }
  .log-rows { grid-template-columns: 1fr; }
  .msg-bubble { max-width: 94%; }
  .gate-card { padding: 28px 22px; }
  .cal-cell { border-radius: 10px; font-size: .85rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .float-slow, .float-fast { animation: none; }
}