/* ============================================================
   SparkLab Learning — Main Stylesheet  v2
   Warm, friendly, child-first. Mobile-first; enhance up.
   Display: Fredoka · Body: Nunito
   Brand: Navy · Green · Sun-yellow · Sky-blue
   ============================================================ */

/* ── Tokens ── */
:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #fbf6ec;
  --text: #1f3a5f;          /* navy ink — friendly, high contrast */
  --ink: #1c3d63;
  --muted: #5f6f80;

  /* Green — primary brand accent (from the logo) */
  --accent: #6fae3a;
  --accent-dark: #568a2a;
  --accent-soft: #e9f5dd;

  /* Sky blue — secondary (kept under the --teal name for back-compat) */
  --teal: #4aa8e0;
  --teal-dark: #2f80b8;
  --teal-soft: #e6f4fc;

  /* Sun — playful highlight + main CTA */
  --sun: #f7c948;
  --sun-dark: #e0ad22;
  --sun-soft: #fdf3d2;

  /* Navy accents */
  --navy: #1c3d63;
  --navy-dark: #142d4a;
  --navy-soft: #e7edf5;

  /* Blush — gentle variety (kept under --berry) */
  --berry: #e681a3;
  --berry-soft: #fbe6ee;

  --line: #ecead9;
  --line-cool: #e3ecf3;
  --shadow: 0 14px 38px rgba(28,61,99,.08);
  --shadow-lg: 0 26px 64px rgba(28,61,99,.14);
  --radius: 26px;
  --radius-sm: 15px;
  --touch: 44px;

  --font-display: 'Fredoka', 'Nunito', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--text);
  background:
    radial-gradient(circle at 10% -4%, rgba(247,201,72,.18), transparent 30%),
    radial-gradient(circle at 94% 1%, rgba(74,168,224,.14), transparent 32%),
    radial-gradient(circle at 50% 120%, rgba(111,174,58,.10), transparent 40%),
    linear-gradient(180deg,#fffefb 0%,#fdf8ef 100%);
  background-attachment: fixed;
  line-height: 1.62; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15rem; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .9rem;
  font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 800; color: var(--ink); }
p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 .9rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
img { max-width: 100%; display: block; }

/* Multi-color headline ink helpers */
.ink-navy  { color: var(--navy); }
.ink-green { color: var(--accent); }
.ink-sky   { color: var(--teal); }
.ink-sun   { color: var(--sun-dark); }

/* ── Forms ── */
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .9rem; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .75rem 1rem;
  min-height: var(--touch); border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: 1rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111,174,58,.16); }
textarea { resize: vertical; }
button.button { cursor: pointer; }

/* ── Layout ── */
.page-shell { min-height: 100vh; }
.container { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.section { padding: 1.3rem 0 1.5rem; }
@media (min-width: 860px) { .section { padding: 2rem 0 2.4rem; } }
.relative { position: relative; }

/* ── Grids ── */
.grid { display: grid; gap: 1.1rem; }
.two-up, .three-up, .four-up { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .two-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .four-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 860px) {
  .three-up { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .four-up { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ── Cards ── */
.card, .statement-card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.statement-card { padding: 1.6rem; }
.floating-panel { box-shadow: var(--shadow); }
.accent-edge { background: linear-gradient(180deg,#fff 0%,#f3faec 100%); }
.accent-tint { background: linear-gradient(180deg,#fff 0%,#eef8e3 100%); border-color: #dcedcb; }
.teal-tint  { background: linear-gradient(180deg,#fff 0%,#e8f5fd 100%); border-color: #d3e9f6; }
.sun-tint   { background: linear-gradient(180deg,#fff 0%,#fdf4d6 100%); border-color: #f3e3ad; }
.soft-card  { background: linear-gradient(180deg,#fff 0%,#fbf5ea 100%); }
@media (min-width: 640px) {
  .card { padding: 1.7rem; }
  .statement-card { padding: 2.1rem; }
}

/* ── Hero ── */
.hero-wrap { padding: .75rem 0 .5rem; }
.inner-hero-wrap { padding-bottom: 0; }
.page-hero { position: relative; overflow: hidden; border: 1px solid #e8e2cf;
  border-radius: var(--radius); padding: 1.8rem; margin-top: .5rem;
  background:
    radial-gradient(circle at 90% 6%, rgba(247,201,72,.30), transparent 40%),
    radial-gradient(circle at 4% 96%, rgba(74,168,224,.18), transparent 44%),
    radial-gradient(circle at 60% 120%, rgba(111,174,58,.16), transparent 50%),
    linear-gradient(180deg,#fffdf6 0%,#fdf6e8 100%); }
@media (min-width: 640px) { .page-hero { padding: 2.6rem; } }
.hero-home { padding: 2rem 1.6rem 2.2rem; }
@media (min-width: 860px) { .hero-home { padding: 3.2rem 3rem; } }

/* Hero split for homepage: text + photo */
.hero-grid { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; } }
.hero-grid h1 { margin-bottom: .6rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px;
  margin-bottom: .9rem; padding: .42rem .9rem; background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.eyebrow.teal { background: var(--teal-soft); color: var(--teal-dark); }
.eyebrow.sun  { background: var(--sun-soft); color: #9a6f08; }
.subhead { max-width: 760px; font-size: 1.04rem; color: var(--muted); margin-top: .1rem; }
@media (min-width: 640px) { .subhead { font-size: 1.16rem; } }

/* ── Photo frames (rounded, arched, with soft ring) ── */
.photo-frame { position: relative; border-radius: 30px 30px 30px 30px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.photo-frame.arch { border-radius: 48% 48% 26px 26px / 36% 36% 26px 26px; }
.photo-frame.blob { border-radius: 58% 42% 46% 54% / 54% 44% 56% 46%; }
.photo-frame.round { border-radius: 999px; aspect-ratio: 1/1; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame.round img { aspect-ratio: 1/1; }
.photo-ring { box-shadow: 0 0 0 6px rgba(247,201,72,.30), var(--shadow-lg); }
.photo-ring-green { box-shadow: 0 0 0 6px rgba(111,174,58,.22), var(--shadow-lg); }
.photo-ring-sky { box-shadow: 0 0 0 6px rgba(74,168,224,.22), var(--shadow-lg); }

/* ── Doodles (hand-drawn SVG accents) ── */
.doodle { position: absolute; pointer-events: none; z-index: 2; }
.doodle svg { display: block; width: 100%; height: 100%; }
@media (max-width: 700px){ .doodle.hide-sm { display:none; } }
/* On dark surfaces, recolor doodle strokes to soft white */
.cta-band .doodle svg [stroke] { stroke: rgba(255,255,255,.6); }
.cta-band .doodle svg [fill]:not([fill="none"]) { fill: rgba(255,255,255,.6); }

/* ── Panel labels / tags ── */
.panel-label { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .7rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-dark); }
.mini-tag { display: inline-flex; align-items:center; gap:.35rem; border-radius: 999px; padding: .4rem .8rem; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
.mini-tag.teal { background: var(--teal-soft); color: var(--teal-dark); }
.mini-tag.sun  { background: var(--sun-soft); color: #9a6f08; }
.mini-tag.berry{ background: var(--berry-soft); color: #b34d72; }
.meta-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: .85rem 0 .9rem; }
/* Compact single-line variant: smaller pills that stay on one row in a hero column. */
.meta-row-tight { gap: .4rem; flex-wrap: nowrap; }
.meta-row-tight .mini-tag { font-size: .72rem; padding: .3rem .66rem; letter-spacing: .01em; }
@media (max-width: 420px) { .meta-row-tight { flex-wrap: wrap; } }
.link-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }

/* ── Buttons ── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.4rem; min-height: var(--touch); border-radius: 999px; font-weight: 700;
  font-family: var(--font-display); font-size: .98rem; border: 2px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s, background .15s, border-color .15s, color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; }
.button:hover { text-decoration: none; transform: translateY(-2px); }
/* Primary = sunshine yellow pill w/ navy ink (the signature CTA) */
.button-primary, .button-cta { background: var(--sun); color: var(--navy-dark); border-color: var(--sun);
  box-shadow: 0 12px 24px rgba(247,201,72,.40); }
.button-primary:hover, .button-cta:hover { background: var(--sun-dark); border-color: var(--sun-dark); }
/* Green */
.button-green { background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(111,174,58,.30); }
.button-green:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
/* Sky (kept as button-teal for back-compat) */
.button-teal { background: var(--teal); color: #fff; border-color: var(--teal);
  box-shadow: 0 12px 24px rgba(74,168,224,.28); }
.button-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
/* Secondary = outline */
.button-secondary { color: var(--ink); border-color: #d7e0ea; background:#fff; }
.button-secondary:hover { background: var(--navy-soft); border-color: var(--navy); }
.button-lg { padding: .98rem 1.8rem; font-size: 1.05rem; }

/* ── Nav — top bar ── */
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  flex-wrap: wrap; padding: .55rem 1rem; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); margin-bottom: .5rem; }
.brand-mark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand-logo { height: 40px; width: auto; display: block; }
@media (min-width: 640px){ .brand-logo { height: 46px; } }
.brand-spark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--sun-soft); color: var(--sun-dark); font-size: 1rem; }
.brand-mark small { font-family: var(--font-body); font-size: .6rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); display: block; }
.nav-links { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.nav-links a { font-family: var(--font-display); font-size: .94rem; font-weight: 500; color: var(--navy); }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent-dark); text-decoration: none; }
.nav-links a.nav-cta { color: var(--navy-dark); background: var(--sun); border-radius: 999px;
  padding: .55rem 1.15rem; font-weight: 700; box-shadow: 0 10px 20px rgba(247,201,72,.38); }
.nav-links a.nav-cta:hover { background: var(--sun-dark); color: var(--navy-dark); }

/* ── Nav — dropdown ── */
.site-nav { position: relative; z-index: 20; }
.nav-item.has-dropdown { position: relative; display: inline-flex; }
.nav-item.has-dropdown > a { display: inline-flex; align-items: center; gap: .28rem; }
.nav-caret { font-size: .58rem; opacity: .55; transition: transform .15s; }
.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret,
.nav-item.has-dropdown.open .nav-caret { transform: rotate(180deg); }
/* Outer wrapper carries only the hover-bridge padding so the mouse can travel
   from the trigger to the panel without the dropdown closing. */
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  padding-top: .6rem; opacity: 0; visibility: hidden; z-index: 30;
  transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown,
.nav-item.has-dropdown.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-inner { min-width: 215px; display: flex; flex-direction: column; gap: .1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: .5rem; }
.nav-dropdown-inner a { padding: .55rem .9rem; border-radius: 13px; font-size: .92rem; white-space: nowrap; }
.nav-dropdown-inner a:hover, .nav-dropdown-inner a.is-active { background: var(--accent-soft);
  color: var(--accent-dark); text-decoration: none; }
/* ── Nav — mobile hamburger ── */
.nav-toggle { display: none; }
@media (max-width: 759px) {
  .site-nav { flex-wrap: wrap; border-radius: 28px; padding: .5rem .55rem .5rem .9rem; }
  .site-nav .brand-mark { flex: 1; min-width: 0; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: var(--touch); height: var(--touch); padding: 0; border: 0; border-radius: 999px;
    background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav-toggle:hover, .site-nav.menu-open .nav-toggle { background: var(--navy-soft, #eef3f8); }
  .nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px;
    background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
  .site-nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Collapsed by default; opens as a full-width vertical list inside the same panel. */
  .site-nav .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .1rem;
    padding: .5rem .2rem .35rem; border-top: 1px solid var(--line); margin-top: .35rem; }
  .site-nav.menu-open .nav-links { display: flex; }
  .site-nav .nav-links > a, .site-nav .nav-item.has-dropdown > a { display: flex; align-items: center;
    min-height: var(--touch); padding: .55rem .9rem; border-radius: 14px; font-size: 1.02rem; }
  .site-nav .nav-links > a.is-active, .site-nav .nav-item.has-dropdown > a.is-active { background: var(--accent-soft); }
  .site-nav .nav-item.has-dropdown { display: flex; flex-direction: column; }
  .site-nav .nav-item.has-dropdown > a { justify-content: space-between; }
  .site-nav .nav-caret { font-size: .7rem; }
  /* Dropdown becomes an inline accordion — no floating panel on phones. */
  .site-nav .nav-dropdown { position: static; transform: none; padding: 0; display: none;
    opacity: 1; visibility: visible; transition: none; }
  .site-nav .nav-item.has-dropdown.open .nav-dropdown { display: block; transform: none; }
  .site-nav .nav-item.has-dropdown:hover .nav-dropdown,
  .site-nav .nav-item.has-dropdown:focus-within .nav-dropdown { transform: none; }
  .site-nav .nav-dropdown-inner { min-width: 0; border: 0; box-shadow: none; background: var(--navy-soft, #f4f7fa);
    border-radius: 14px; margin: .1rem 0 .3rem .6rem; padding: .35rem; }
  .site-nav .nav-dropdown-inner a { white-space: normal; font-size: .96rem; min-height: var(--touch); display: flex; align-items: center; }
  .site-nav .nav-links a.nav-cta { justify-content: center; margin: .5rem .2rem .2rem; box-shadow: 0 8px 16px rgba(247,201,72,.3); }

  /* Logged-in header: the two top links are repeated in the scrolling subnav below, so hide them here. */
  .member-top-nav .nav-links { display: none; }
  .member-top-nav { border-radius: 999px; }
}

/* ── Nav — member top bar ── */
.member-top-nav { display: flex; align-items: center; gap: .6rem; }
.member-top-nav .nav-links { flex: 1; }
.nav-member-pill { display: flex; align-items: center; gap: .5rem; background: var(--teal-soft);
  border-radius: 999px; padding: .3rem .65rem .3rem .8rem; flex-shrink: 0; }
.nav-member-name { font-size: .82rem; font-weight: 800; color: var(--teal-dark); white-space: nowrap;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.nav-icon-link { font-size: 1rem; color: var(--teal-dark); line-height: 1; text-decoration: none;
  opacity: .75; min-width: var(--touch); min-height: var(--touch); display: flex; align-items: center; justify-content: center; }
.nav-icon-link:hover, .nav-icon-link.is-active { opacity: 1; text-decoration: none; }

/* ── Nav — member subnav ── */
.member-subnav { padding: .4rem .7rem; margin-bottom: .6rem; background: rgba(255,255,255,.95);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.member-subnav::-webkit-scrollbar { display: none; }
.member-subnav-links { display: flex; gap: .1rem; align-items: center; white-space: nowrap; min-width: max-content; }
.member-subnav-links a { font-family: var(--font-display); font-size: .86rem; font-weight: 500; color: var(--navy);
  padding: .45rem .85rem; border-radius: 999px; min-height: var(--touch); display: inline-flex; align-items: center;
  transition: background .15s, color .15s; text-decoration: none; }
.member-subnav-links a:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.member-subnav-links a.is-active { background: var(--teal-soft); color: var(--teal-dark); }

/* ── Section heading ── */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 1.5rem; }
.section-head .eyebrow { margin-bottom: .7rem; }
.section-head p { color: var(--muted); }

/* ── Stat band ── */
.stat-band { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 760px) { .stat-band { grid-template-columns: repeat(4,1fr); } }
.stat { text-align: center; padding: 1.1rem .6rem; border-radius: var(--radius-sm); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.9rem,5vw,2.7rem); font-weight: 600;
  color: var(--accent-dark); line-height: 1; }
.stat:nth-child(2) .stat-num { color: var(--teal-dark); }
.stat:nth-child(3) .stat-num { color: var(--sun-dark); }
.stat:nth-child(4) .stat-num { color: var(--navy); }
.stat-label { font-size: .84rem; color: var(--muted); margin-top: .4rem; font-weight: 700; }

/* ── Pillars / feature cards ── */
.pillar { position: relative; padding: 1.5rem 1.3rem 1.3rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); height: 100%;
  transition: transform .14s, box-shadow .14s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pillar-icon { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center;
  justify-content: center; font-size: 1.7rem; margin-bottom: .9rem; }
.pillar-icon img { width: 38px; height: 38px; object-fit: contain; }
.pi-coral, .pi-green { background: var(--accent-soft); }
.pi-teal, .pi-sky { background: var(--teal-soft); }
.pi-sun { background: var(--sun-soft); }
.pi-berry { background: var(--berry-soft); }
.pi-navy { background: var(--navy-soft); }
.pillar h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.pillar p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.56; }
/* Phones: pillars become compact rows — icon at left, title + text beside it —
   so a stack of six cards doesn't turn into a very long scroll. */
@media (max-width: 639px) {
  .pillar { display: grid; grid-template-columns: 48px 1fr; column-gap: .95rem; align-items: start;
    padding: 1.05rem 1.1rem 1.1rem; height: auto; }
  .pillar:hover { transform: none; }
  .pillar-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; margin: 0; grid-row: 1 / span 2; }
  .pillar-icon img { width: 30px; height: 30px; }
  .pillar h3 { font-size: 1.08rem; margin: .15rem 0 .25rem; grid-column: 2; }
  .pillar p { grid-column: 2; font-size: .9rem; }
  .pillar > :not(.pillar-icon):not(h3):not(p) { grid-column: 2; }
  .pillar:not(:has(.pillar-icon)) { display: block; }
  .grid.three-up:has(.pillar) { gap: .75rem; }
}

/* ── Badge icon (soft circle holding an icon img) ── */
.badge-icon { width: 70px; height: 70px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.8rem; line-height: 1;
  box-shadow: 0 8px 18px rgba(28,61,99,.08); }
.badge-icon img { width: 42px; height: 42px; object-fit: contain; }
.badge-green { background: var(--accent-soft); }
.badge-sky { background: var(--teal-soft); }
.badge-sun { background: var(--sun-soft); }

/* ── Phase cards (Energy / Calm) ── */
.phase-grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px){ .phase-grid { grid-template-columns: 1fr 1fr; } }
.phase-card { border-radius: var(--radius); padding: 1.5rem 1.4rem; border: 1px solid var(--line); height: 100%; }
.phase-card.energy { background: linear-gradient(170deg,#fff 0%,#fdf3d6 100%); border-color: #f1e0a8; }
.phase-card.calm   { background: linear-gradient(170deg,#fff 0%,#e9f4fd 100%); border-color: #d2e7f6; }
.phase-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.phase-head h3 { margin: 0; font-size: 1.25rem; }
.phase-tag { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; }
.energy .phase-tag { color: #b78514; }
.calm .phase-tag { color: var(--teal-dark); }
.phase-items { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1rem; }
.phase-chip { display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9); border-radius: 14px; padding: .55rem .7rem; font-size: .86rem;
  font-weight: 700; color: var(--ink); }
.phase-chip .dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.energy .phase-chip .dot { background: var(--sun-dark); }
.calm .phase-chip .dot { background: var(--teal); }

/* ── Feature mini-strip (icon + label) ── */
.mini-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 760px){ .mini-strip { grid-template-columns: repeat(4,1fr); } }
.mini-feature { text-align: center; padding: .4rem; }
.mini-feature .badge-icon { width: 60px; height: 60px; margin-bottom: .55rem; }
.mini-feature h4 { margin: 0 0 .25rem; font-size: .98rem; }
.mini-feature p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ── Testimonials ── */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem; position: relative; height: 100%; }
.quote-card::before { content: "\201C"; font-family: var(--font-display); font-size: 3.4rem;
  color: var(--sun); line-height: 1; position: absolute; top: .5rem; left: 1rem; opacity: .85; }
.quote-card p { position: relative; font-size: .98rem; line-height: 1.6; }
.quote-author { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }
.quote-avatar { width: 42px; height: 42px; border-radius: 999px;
  background: linear-gradient(140deg,var(--teal) 0%,var(--accent) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.quote-name { font-weight: 800; font-size: .92rem; color: var(--ink); }
.quote-meta { font-size: .82rem; color: var(--muted); }

/* ── Tuition / plan cards ── */
.price-tag { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--ink);
  display: block; margin: .5rem 0; }
.price-tag small { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--muted); }
.featured-tier { outline: 2.5px solid var(--accent); position: relative; }
.tier-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: .32rem .9rem; border-radius: 999px; white-space: nowrap; font-family: var(--font-display); }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.tick-list li { position: relative; padding-left: 1.7rem; font-size: .92rem; margin-bottom: .55rem; color: var(--text); }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; top: .05rem; color: #fff;
  font-weight: 800; background: var(--accent); width: 21px; height: 21px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; }

/* ── CTA band ── */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: 2.2rem 1.5rem;
  text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 55%, var(--teal-dark) 130%);
  box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .cta-band { padding: 3rem 2rem; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.4rem; }
.cta-band .button { background: var(--sun); color: var(--navy-dark); border-color: var(--sun); }
.cta-band .button:hover { background: #fff; color: var(--accent-dark); border-color: #fff; }

/* ── Callout ── */
.callout { background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .94rem; margin: .9rem 0; }
.callout strong { color: #9a6f08; }
.callout.teal { background: var(--teal-soft); border-left-color: var(--teal); }
.callout.teal strong { color: var(--teal-dark); }
.callout.green { background: var(--accent-soft); border-left-color: var(--accent); }
.callout.green strong { color: var(--accent-dark); }

/* ── Flash ── */
.flash-success { background: var(--accent-soft); border: 1.5px solid var(--accent); color: var(--accent-dark);
  border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 700; font-size: .9rem; }
.flash-error { background: var(--berry-soft); border: 1.5px solid var(--berry); color: #b34d72;
  border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 700; font-size: .9rem; }

.muted { color: var(--muted); }

/* ── Footer ── */
.site-footer { padding: 0 0 2rem; margin-top: 1rem; }
.footer-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.7rem; }
.footer-card p { color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark);
  margin-bottom: .7rem; font-family: var(--font-display); }
.footer-col a { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .75rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-bottom span, .footer-bottom a { font-size: .8rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.footer-fineprint { font-size: .8rem; }
.footer-logo { height: 42px; width: auto; margin-bottom: .7rem; }

/* ── Image placeholder (soft, friendly) ── */
.photo-ph { border-radius: var(--radius); min-height: 220px; display: flex; align-items: center;
  justify-content: center; text-align: center; color: #fff; font-weight: 700;
  font-size: .9rem; padding: 1rem; box-shadow: var(--shadow); }
.ph-1 { background: linear-gradient(140deg, var(--teal) 0%, var(--accent) 100%); }
.ph-2 { background: linear-gradient(140deg, var(--sun) 0%, var(--accent) 100%); }
.ph-3 { background: linear-gradient(140deg, var(--berry) 0%, var(--accent) 100%); }
.ph-4 { background: linear-gradient(140deg, var(--accent) 0%, var(--teal-dark) 100%); }
.hero-media { min-height: 280px; }
.photo-ph small { display: block; opacity: .9; font-weight: 600; margin-top: .3rem; }

/* ── Hero split (generic) ── */
.hero-split { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 880px) { .hero-split { grid-template-columns: 1.1fr .9fr; } }

/* ── Steps ── */
.step-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .step-row { grid-template-columns: repeat(3,1fr); } }
.step { display: flex; gap: .85rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 2.4rem; height: 2.4rem; background: var(--accent); color: #fff;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--font-display); margin-top: .1rem; }
.step h4 { margin: 0 0 .3rem; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ============================================================
   QUESTIONNAIRE / ASSESSMENT
   ============================================================ */
.quiz-form { padding: 1.6rem; }
@media (min-width: 640px) { .quiz-form { padding: 2rem; } }
.checkbox-group { border: none; margin: 0 0 1.5rem; padding: 0; }
.checkbox-group legend { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); margin-bottom: .25rem; display: block; width: 100%; }
.group-hint { font-size: .88rem; color: var(--muted); margin: 0 0 .9rem; }
.field-hint { font-size: .78rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }
.checkbox-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .checkbox-grid.two-up { grid-template-columns: repeat(2, 1fr); } }
.check-option { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; min-height: var(--touch);
  border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  font-weight: 600; font-size: .94rem; transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent; }
.check-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.check-option input[type="checkbox"], .check-option input[type="radio"] { width: 1.15rem; height: 1.15rem;
  flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.check-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.hero-actions { margin-top: 1.5rem; }
.assessment-submit-button { background: var(--sun); color: var(--navy-dark); border-color: var(--sun);
  font-size: 1rem; padding: .95rem 2rem; min-height: var(--touch); box-shadow: 0 12px 24px rgba(247,201,72,.4); }
.assessment-submit-button:hover { background: var(--sun-dark); }

/* Result */
.quiz-result { margin-top: 2rem; }
.quiz-result-card { padding: 1.6rem; }
@media (min-width: 640px) { .quiz-result-card { padding: 2rem; } }
.result-path-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent);
  color: #fff; border-radius: 999px; padding: .45rem 1rem; font-size: .82rem; font-weight: 800; margin-bottom: 1rem; }
.result-score-bars { margin: 1.25rem 0; display: flex; flex-direction: column; gap: .65rem; }
.result-score-bar { display: flex; align-items: center; gap: .75rem; }
.result-score-label { font-size: .8rem; font-weight: 700; color: var(--text); width: 130px; flex-shrink: 0; }
.result-score-track { flex: 1; height: 9px; background: var(--line); border-radius: 999px; overflow: hidden; }
.result-score-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .7s ease; }
.result-score-fill.top { background: linear-gradient(90deg, var(--sun), var(--accent)); }
.result-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.rec-card { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-soft); margin-bottom: .7rem; }
.rec-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.rec-card h4 { margin: 0 0 .2rem; }
.rec-card p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ── Resource list ── */
.res-card { display: block; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); height: 100%; transition: transform .14s, box-shadow .14s; }
.res-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.res-card .res-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-dark); font-family: var(--font-display); }
.res-card h3 { font-size: 1.1rem; margin: .35rem 0 .4rem; }
.res-card p { font-size: .89rem; color: var(--muted); margin: 0; }

/* ── Login ── */
.login-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 1.5rem 1rem; }
.login-card { width: min(440px, 100%); }
.login-brand { text-align: center; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1.25rem; }
.login-card .button-submit { width: 100%; justify-content: center; margin-top: .25rem; background: var(--sun);
  color: var(--navy-dark); border-color: var(--sun); font-size: 1rem; padding: .95rem; }
.login-card .button-submit:hover { background: var(--sun-dark); }
.login-footer { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1.1rem; }
.login-footer a { color: var(--accent-dark); font-weight: 700; }
/* Standalone auth pages (login.php / signup.php) don't load utilities.css, so the
 * few inline styles they carried live here as named classes instead. */
.login-footer a.login-back { color: var(--muted); font-weight: 500; }
.login-sub { text-align: center; font-size: .9rem; margin-bottom: 1.1rem; }

/* ── Dashboard ── */
.dash-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .dash-grid { grid-template-columns: 1.5fr 1fr; } }
.priority-path { display: grid; gap: 1.1rem; margin-top: 1rem; }
@media (min-width: 640px) { .priority-path { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   ILLUSTRATED / SOFTER ELEMENTS (v3 — closer to the mockup)
   ============================================================ */

/* Soft rounded "band" that groups a whole section on a pastel panel */
.band { border-radius: 40px; padding: 1.6rem; position: relative; }
@media (min-width: 860px) { .band { padding: 2.6rem; } }
.band-cream { background: linear-gradient(180deg,#fffaf0 0%,#fdf3e0 100%); border: 1px solid #f3e7cf; }
.band-mint  { background: linear-gradient(180deg,#f4fbee 0%,#e9f6dd 100%); border: 1px solid #dcedca; }
.band-sky   { background: linear-gradient(180deg,#f1f9ff 0%,#e6f3fc 100%); border: 1px solid #d4e8f6; }

/* Plain illustration image (sits on the background, no photo frame) */
.illus { display: block; width: 100%; height: auto; }
.mascot { display: block; width: 100%; max-width: 440px; margin: 0 auto; height: auto;
  filter: drop-shadow(0 16px 26px rgba(28,61,99,.10)); }

/* Illustrated kid row inside a phase card */
.phase-illus { margin: 1rem 0 .3rem; border-radius: 18px; overflow: hidden; }
.phase-illus img { width: 100%; display: block; }

/* Dotted connector under the phase headers (like the mockup) */
.dot-rule { height: 0; border: 0; border-top: 3px dotted rgba(28,61,99,.18); margin: 1rem 0; }

/* Hand-drawn underline beneath a highlighted word */
.u-doodle { position: relative; white-space: nowrap; }
.u-doodle::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -.32em; height: .42em;
  background: center/100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q50 1 100 7 T198 5' stroke='%23f7c948' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.u-doodle.green::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q50 1 100 7 T198 5' stroke='%236fae3a' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.u-doodle.sky::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q50 1 100 7 T198 5' stroke='%234aa8e0' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Wavy section divider (decorative SVG) */
.wave { display: block; width: 100%; height: auto; line-height: 0; margin: -1px 0; }

/* Rounder, softer cards overall (less "modern/flat") */
.pillar, .res-card { border-radius: 28px; }
.phase-card { border-radius: 30px; }

/* Illustrated icon badges using the brand PNG icons */
.badge-icon.illus-icon { background: #fff; }
.badge-icon img { width: 40px; height: 40px; object-fit: contain; }

/* ── Resources hub ── */
.featured-read { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center;
  background: linear-gradient(135deg,#fff 0%,#fdf4d9 100%); border: 1px solid #f1e0a8;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; transition: transform .14s, box-shadow .14s; }
.featured-read:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .featured-read { grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.8rem 2rem; } }
.featured-emoji { font-size: 3.2rem; line-height: 1; text-align: center; }
.featured-read h2 { margin: .3rem 0 .5rem; }
.featured-read p { color: var(--muted); }
.featured-link { display: inline-block; margin-top: .7rem; font-family: var(--font-display);
  font-weight: 600; color: var(--accent-dark); }
.res-search { margin-top: .7rem; font-size: .76rem; color: var(--teal-dark); background: var(--teal-soft);
  border-radius: 10px; padding: .35rem .55rem; font-weight: 600; }

/* ── Article (resource) pages ── */
.back-link { display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  color: var(--teal-dark); margin-bottom: .9rem; }
.back-link:hover { color: var(--accent-dark); text-decoration: none; }
.article-head { text-align: left; }
.article-meta-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .8rem; }
.article-dot { color: var(--line); }
.article-title { margin-bottom: .7rem; }
.article-emoji { display: inline-block; margin-right: .15rem; }
.article-searches { font-size: .9rem; color: var(--muted); margin-top: .6rem;
  border-left: 3px solid var(--sun); background: var(--sun-soft); padding: .55rem .85rem; border-radius: 0 12px 12px 0; }
.article-body { padding: 1.7rem 1.5rem; }
@media (min-width: 640px) { .article-body { padding: 2.4rem 2.6rem; } }
.article-body h2 { margin-top: 1.6rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 1.02rem; line-height: 1.7; color: #2d4258; }
.article-body ul { margin: .6rem 0 1.1rem; }
.article-body li { font-size: 1.0rem; line-height: 1.6; color: #2d4258; margin-bottom: .5rem; }
.article-body .callout { margin: 1.2rem 0; }
.article-sources { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.article-sources h4 { margin-bottom: .5rem; color: var(--accent-dark); }
.article-sources ul { padding-left: 1.1rem; }
.article-sources li { font-size: .9rem; margin-bottom: .35rem; }
.article-sources a { font-weight: 600; }

/* ── FAQ accordion (shared component — Afternoon page + the Q&A/FAQ pages) ── */
.faq-list { margin-top: 1rem; }
.faq-item { margin-bottom: .7rem; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-weight: 700; opacity: .55; margin-left: 1rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .6rem; }

/* ── Print ── */
@media print {
  .site-nav, .member-subnav, .hero-wrap, .site-footer, .link-row, .cta-band, .doodle { display: none !important; }
  body { background: #fff; }
}
