/* ========================================================================
   LISA Academy · Parent–Teacher Conference
   Design system copied from Kinder Screening 2026 (neomorphic + colorful)
   ======================================================================== */

:root {
  --red:        #ee5a3c;
  --red-soft:   #f58876;
  --red-deep:   #d94420;
  --blue:       #1e4a8a;
  --blue-soft:  #6b8bc4;
  --blue-deep:  #0e2954;
  --yellow:     #f5b93b;
  --green:      #5aa678;

  --bg:         #e8ecf2;
  --surface:    #edf1f7;
  --surface-2:  #f4f6fb;
  --text:       #1a2540;
  --text-soft:  #4a5b7c;
  --muted:      #8090a8;

  --sh-out:
    10px 10px 24px rgba(160, 175, 205, 0.48),
    -10px -10px 24px rgba(255, 255, 255, 0.92);
  --sh-out-md:
    7px 7px 16px rgba(160, 175, 205, 0.42),
    -7px -7px 16px rgba(255, 255, 255, 0.92);
  --sh-out-sm:
    4px 4px 10px rgba(160, 175, 205, 0.38),
    -4px -4px 10px rgba(255, 255, 255, 0.92);
  --sh-in:
    inset 5px 5px 12px rgba(160, 175, 205, 0.45),
    inset -5px -5px 12px rgba(255, 255, 255, 0.92);
  --sh-in-sm:
    inset 3px 3px 7px rgba(160, 175, 205, 0.40),
    inset -3px -3px 7px rgba(255, 255, 255, 0.92);

  --r-xl:  28px;
  --r-lg:  22px;
  --r-md:  16px;
  --r-sm:  12px;
  --r-pill: 999px;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============ Animated background blobs ============ */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.10;
  animation: float 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 380px; height: 380px; background: #ee5a3c;          top: -120px; left: -100px; animation-delay: 0s; }
.blob.b2 { width: 320px; height: 320px; background: #f5b93b;          top: 35%;    right: -80px; animation-delay: -5s; }
.blob.b3 { width: 360px; height: 360px; background: #1e4a8a;          bottom: -120px; left: 22%; animation-delay: -10s; }
.blob.b4 { width: 260px; height: 260px; background: #d94420;          top: 8%;     left: 50%; animation-delay: -15s; }
.blob.b5 { width: 280px; height: 280px; background: #5aa678;          bottom: 30%; right: 25%; animation-delay: -8s; }

@keyframes float {
  0%   { transform: translate(0, 0)         scale(1); }
  50%  { transform: translate(60px, -40px)  scale(1.08); }
  100% { transform: translate(-40px, 50px)  scale(0.95); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 80px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

/* ============ Topbar ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  background: var(--surface);
  border-radius: 24px;
  padding: 12px 16px;
  box-shadow:
    10px 10px 28px rgba(180,190,210,0.55),
    -10px -10px 28px rgba(255,255,255,0.95);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.brand-logo {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow:
    4px 4px 10px rgba(180,190,210,0.5),
    -4px -4px 10px rgba(255,255,255,0.9);
  display: grid; place-items: center;
  padding: 6px;
  flex-shrink: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: none; }

.chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(76,185,68,0.22);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(76,185,68,0); } }

.back-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: box-shadow .2s, color .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-transform: none;
}
.back-chip:hover { box-shadow: var(--sh-in-sm); color: var(--red); }

.social-icons-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a2e;
  transition: color .18s, background .18s;
}
.nav-icon-btn svg { color: #1a1a2e; transition: color .18s; }
.nav-icon-btn:hover { background: rgba(0,0,0,0.05); }
.nav-icon-btn:hover svg { color: var(--yellow); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-left: 4px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 2px 0;
  transition: color .2s;
  font-family: inherit;
}
.lang-btn:hover { color: var(--blue-deep); }
.lang-btn.active { color: var(--red); }
.lang-divider { font-size: 11px; color: var(--muted); opacity: 0.4; }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 52px;
  position: relative;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 20px 0 36px;
  }
}
.hero-text { padding-right: 16px; }

/* Eyebrow label above the heading */
.hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.hero h1 .accent {
  color: var(--red);
  font-style: italic;
}

.hero .lead {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 44ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }


.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-card {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow:
    16px 16px 40px rgba(163, 177, 200, 0.55),
    -16px -16px 40px rgba(255, 255, 255, 0.9);
  animation: floaty 7s ease-in-out infinite;
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--surface);
  color: var(--blue-deep);
  box-shadow: var(--sh-out-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); color: var(--blue); }
.btn:active { box-shadow: var(--sh-in-sm); transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-date {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.55;
  letter-spacing: 0.02em;
  empty-cells: hide;
}
.btn-date:empty { display: none; }

.btn-primary,
.btn.primary {
  background: var(--surface);
  color: var(--red);
  box-shadow:
    6px 6px 16px rgba(160,175,205,0.42),
    -6px -6px 16px rgba(255,255,255,0.92);
  border: none;
  position: relative;
  overflow: hidden;
  padding: 18px 36px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  transition: color 0.25s, box-shadow 0.25s, transform 0.18s;
}
.btn-primary::before,
.btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* yellow marker swipe from left */
  background: #ffe135;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.30s cubic-bezier(.4,0,.2,1), opacity 0.20s;
}
.btn-primary:hover::before,
.btn.primary:hover::before { opacity: 1; transform: scaleX(1); }
.btn-primary:hover,
.btn.primary:hover {
  color: #1a2540;
  box-shadow:
    8px 8px 20px rgba(160,175,205,0.48),
    -8px -8px 20px rgba(255,255,255,0.95);
}
.btn-primary:active,
.btn.primary:active {
  box-shadow: var(--sh-in-sm);
  transform: translateY(0);
}
/* ensure button text renders above ::before yellow fill */
.btn-primary > span,
.btn.primary > span { position: relative; }

.btn-blue {
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--sh-out-sm);
}
.btn-blue:hover { color: var(--blue-deep); box-shadow: var(--sh-out-md); }

.btn-ghost,
.btn.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
  padding: 15px 20px;
}
.btn-ghost:hover,
.btn.ghost:hover { background: var(--surface); box-shadow: var(--sh-out-sm); color: var(--blue-deep); }

/* ============ Section heading ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 80px 0 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.025em;
  font-weight: 900;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
.section-head h2 em {
  color: var(--red);
  font-style: italic;
}

/* ============ Stats Band ============ */
.stats-band {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.stats-text-full {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.stats-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.0vw, 40px);
  font-weight: 900;
  color: var(--blue-deep);
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.stats-band h2 em { color: var(--red); font-style: italic; }

.stats-lead {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.stats-charts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .stats-charts-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .stats-charts-row { grid-template-columns: 1fr; } }

.stat-chart-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-out-md);
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-chart-num {
  font-family: var(--font);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-chart-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.35;
  margin-bottom: 14px;
}

.stat-chart-wrap {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-in-sm);
  padding: 16px;
}
.stat-chart-wrap svg { width: 100%; height: auto; display: block; }

.stat-chart-caption {
  font-size: 11.5px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.4;
}

.stats-source {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.stats-source a { color: var(--muted); text-underline-offset: 2px; }
.stats-source a:hover { color: var(--blue-deep); }

.section-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(160,175,205,0.38) 10%, rgba(160,175,205,0.38) 90%, transparent);
  margin: 8px 0;
}

/* ============ Campus band / info band ============ */
.campus-band,
.info-band {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-out);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) {
  .campus-band, .info-band { grid-template-columns: 1fr; padding: 28px; }
}

.campus-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--sh-in-sm);
}
.campus-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.campus-copy h3,
.info-band h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
.campus-copy p,
.info-band p {
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 15px;
}

/* Campus finder dropdown */
.campus-grid-section { margin-bottom: 64px; }
.campus-grid-inner {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-out);
  padding: 32px 36px 36px;
}
.cg-title {
  margin: 6px 0 20px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.campus-dropdown { position: relative; max-width: 480px; }
.cd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: var(--surface-2);
  box-shadow: var(--sh-in-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: box-shadow .18s;
}
.cd-trigger:hover { box-shadow: var(--sh-out-sm); }
.cd-trigger[aria-expanded="true"] { box-shadow: var(--sh-in-sm); }
.cd-value { flex: 1; text-align: left; color: var(--muted); }
.cd-value.chosen { color: var(--text); }
.cd-chevron { transition: transform .22s; color: var(--muted); flex-shrink: 0; }
.cd-trigger[aria-expanded="true"] .cd-chevron { transform: rotate(180deg); }
.cd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 10px 10px 28px rgba(160,175,205,0.48), -10px -10px 28px rgba(255,255,255,0.96);
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}
.cd-panel[hidden] { display: none; }
.cd-group { padding: 6px 0 4px; }
.cd-group + .cd-group { border-top: 1px solid rgba(160,175,205,0.18); padding-top: 6px; }
.cd-group-label {
  display: block;
  padding: 6px 18px 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 18px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.cd-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(160,175,205,0.35);
  flex-shrink: 0;
}
.cd-item:hover { background: rgba(160,175,205,0.1); color: var(--text); }
.cd-item:hover::before { background: var(--red); }
.cd-item.selected { color: var(--text); font-weight: 600; background: rgba(255,225,53,0.15); }
.cd-item.selected::before { background: #ffe135; box-shadow: 0 0 4px rgba(255,225,53,0.6); }
.campus-addr-reveal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  background: var(--surface-2);
  box-shadow: var(--sh-in-sm);
  border-radius: 14px;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--text);
  max-width: 480px;
  transition: box-shadow .18s;
}
.campus-addr-reveal[hidden] { display: none; }
.campus-addr-reveal:hover { box-shadow: var(--sh-out-sm); }
.campus-addr-reveal svg { flex-shrink: 0; color: var(--red); }
.car-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.car-text strong { font-size: 14px; }
.car-text span { font-size: 12px; color: var(--text-soft); }
.car-cta { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.campus-addr-reveal:hover .car-cta { color: var(--red); }
.eyebrow.small,
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* ============ Neo Calendar Section ============ */
.neo-cal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 28px;
}
@media (max-width: 820px) { .neo-cal-section { grid-template-columns: 1fr; } }

.neo-cal-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  color: var(--blue-deep);
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.neo-cal-text h2 em { color: var(--red); font-style: italic; }
.neo-cal-text > p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 44ch;
}

.neo-cal-dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.neo-cal-date-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-in-sm);
  padding: 14px 18px;
}
.neo-cal-date-item.is-next { box-shadow: var(--sh-in-sm), 0 0 0 2px #ffe135; }
.neo-cal-date-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a2540;
  background: #ffe135;
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 4px;
}
.neo-cal-date-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-deep);
}
.neo-cal-date-sub { font-size: 12px; color: var(--muted); }

/* Calendar widget */
.neo-cal-widget { display: flex; justify-content: flex-end; }
.neo-cal-card {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--sh-out);
  padding: 28px 30px 22px;
  width: 100%;
  max-width: 380px;
}
.neo-cal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.neo-cal-month-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.neo-cal-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.neo-cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  border-radius: var(--r-pill);
  padding: 7px 0;
  margin-bottom: 12px;
}
.neo-cal-dow-row span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.neo-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.neo-cal-grid span {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-deep);
  padding: 7px 0;
  border-radius: 8px;
  line-height: 1.3;
}
.neo-cal-grid span.out { color: var(--muted); opacity: 0.35; }
.neo-cal-grid span.hi {
  background: #ffe135;
  color: #1a2540;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 225, 53, 0.5);
}
.neo-cal-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(160, 175, 205, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.neo-cal-dayname {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
}
.neo-cal-badge-open {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* ============ Multi-step booking card ============ */
.stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-out);
  padding: 36px;
}
@media (max-width: 600px) { .card { padding: 24px 20px; } }

.step.hidden { display: none; }
.step-head { margin-bottom: 22px; }
.step-index {
  display: inline-block;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.step-head h1 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
.muted { color: var(--text-soft); margin: 0; font-size: 14.5px; }

/* Intro card wrapper (no card look) */
.card.intro {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* ============ Rows / grids ============ */
.row { display: flex; gap: 12px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

.grid { display: grid; gap: 18px; }
.grid.children { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.teachers { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ============ Selection tiles ============ */
.tile {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-out-md);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 2px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-out); }
.tile.selected {
  border-color: var(--red);
  box-shadow: var(--sh-in-sm);
  transform: translateY(0);
}

/* Gender-based accent stripe on child tiles */
.grid.children .tile[data-gender="female"] { border-top: 4px solid #f5b93b; }
.grid.children .tile[data-gender="male"]   { border-top: 4px solid #6b8bc4; }

/* Subject-color accent stripe on teacher tiles (color set via JS custom property) */
.grid.teachers .tile { border-top: 4px solid var(--subject-color, #8090a8); }

.tile .avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 6px;
  font-size: 14px;
}
.tile .avatar.child-emoji,
.tile .avatar.subject-emoji {
  font-size: 24px;
  width: 52px;
  height: 52px;
  background: var(--surface);
}
.tile .title { font-weight: 700; font-size: 15.5px; color: var(--blue-deep); }
.tile .sub { font-size: 12.5px; color: var(--text-soft); }
.chip.tile-chip,
.tile .chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue-deep);
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  align-self: flex-start;
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ Form fields ============ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span,
.field label {
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 4px;
}
.field input, .field textarea {
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  border: none;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: box-shadow .2s;
}
.field input:read-only { color: var(--text-soft); }
.field input:focus, .field textarea:focus {
  box-shadow: var(--sh-in-sm), 0 0 0 2px var(--red);
}
.field textarea { min-height: 84px; resize: vertical; }

.welcome-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .welcome-body { grid-template-columns: 1fr; }
}

/* ============ Sign-in (stylized signup-style form) ============ */

/* Two-column layout for the sign-in card */
.signin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .signin-layout { grid-template-columns: 1fr; gap: 36px; }
  .signin-right { display: none; }
}

.signin-left { display: flex; flex-direction: column; }

/* Right info panel */
.signin-info-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-in);
  padding: 36px 32px;
  height: 100%;
}
.signin-info-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.signin-info-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  color: var(--blue-deep);
  margin: 0 0 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.signin-info-title em { color: var(--red); font-style: italic; }

.signin-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.signin-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ssi-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--yellow);
}
.signin-step div strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 2px;
}
.signin-step div p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.signin-head { text-align: left; }
.signin-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
  font-weight: 900;
  text-transform: uppercase;
  margin: 6px 0 14px;
}
.signin-title .hl,
.signin-cta .hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}
/* "Sign In" heading: always-visible yellow background highlight */
.signin-title .hl::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 4%;
  height: 38%;
  background: #ffe135;
  opacity: 0.75;
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-6deg);
}
/* Continue button: yellow underline only on hover */
.signin-cta .hl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: #ffe135;
  border-radius: 2px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.signin-cta:hover .hl::before,
.signin-cta:focus .hl::before {
  transform: scaleX(1);
}

.signin-form {
  max-width: 520px;
  margin: 8px 0 18px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-out-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sf-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.sf-row.two { grid-template-columns: 1fr 1fr; }

.sf-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  transition: box-shadow .2s;
}
.sf-cell:focus-within {
  box-shadow: var(--sh-in-sm), 0 0 0 2px var(--red);
}
.sf-cell > span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.sf-cell input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 2px 0 0;
}
.sf-cell input::placeholder { color: var(--muted); opacity: 0.7; }
.sf-cell input.invalid,
.sf-cell input:invalid:not(:placeholder-shown) { color: var(--red-deep); }

.signin-cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
/* suppress the full-yellow fill from btn-primary on this button */
.signin-cta::before,
.signin-cta:hover::before { content: none !important; }
.signin-cta:hover { color: var(--blue-deep); }

@media (max-width: 560px) {
  .sf-row.two { grid-template-columns: 1fr; }
  .signin-form { padding: 18px; }
}

/* ============ Checkbox ============ */
.check {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  font-size: 14px;
  color: var(--text);
  transition: box-shadow .2s;
}
.check:hover { box-shadow: var(--sh-out-md); }
.check input { display: none; }
.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
  position: relative;
}
.check input:checked + .check-box {
  background: var(--yellow);
  box-shadow:
    inset 3px 3px 7px rgba(160,110,0,0.25),
    inset -3px -3px 7px rgba(255,230,100,0.3);
}
.check input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 10px;
  border: 2.5px solid #1a2542;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ============ Slot picker ============ */
.legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}
.legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot.available { background: var(--green); }
.dot.taken { background: var(--red-soft); }
.dot.break { background: var(--muted); }

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.slot {
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  border-radius: var(--r-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-deep);
}
.slot:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-out-md); }
.slot:disabled { cursor: not-allowed; }
.slot.taken {
  color: var(--muted);
  text-decoration: line-through;
  box-shadow: var(--sh-in-sm);
}
.slot.break {
  color: var(--muted);
  font-weight: 500;
  box-shadow: var(--sh-in-sm);
}
.slot.selected {
  border-color: var(--red);
  box-shadow: var(--sh-in-sm);
  color: var(--red);
  transform: translateY(0);
}
.slot.suggested {
  border-color: var(--yellow);
  border-style: dashed;
}

/* ============ Summary / confirmation ============ */
.summary { display: flex; flex-direction: column; gap: 14px; }
.summary-item {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.summary-item .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 800;
}
.summary-item .time { font-weight: 800; color: var(--blue-deep); }
.summary-item .meta { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.summary-item .tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(76, 185, 68, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Scheduled list */
.scheduled { margin-top: 30px; }
.scheduled.hidden { display: none; }
.scheduled-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.scheduled-head h2 {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}
.count-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-in-sm);
}
.scheduled-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.sched-item {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-out-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.sched-item .sched-time {
  font-weight: 800;
  font-size: 13px;
  color: var(--red);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: center;
  min-width: 80px;
  box-shadow: var(--sh-in-sm);
}
.sched-item .sched-title { font-weight: 700; font-size: 14px; color: var(--blue-deep); }
.sched-item .sched-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.sched-item .sched-flag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #a37515;
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sched-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.sched-action-btn {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sched-action-btn:hover { color: var(--blue-deep); }
.sched-action-cancel { color: var(--red); }
.sched-action-cancel:hover { color: var(--red-deep); }

/* ============ Footer ============ */
.footer,
.foot {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 22px 0 32px;
}
.footer .heart { color: var(--red); }
