/* ============================================================
   Teacher Tash — Design System
   Warm, playful, trustworthy. Parents buy; kids are the subject.
   Type: Fraunces (warm serif display) + Nunito (friendly UI/body)
   ============================================================ */

/* ---------- Self-hosted fonts (GDPR: no Google request) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/fraunces-roman.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../assets/fonts/nunito-roman.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --cream:      #FFF8F0;
  --cream-2:    #FCEFE0;
  --paper:      #FFFFFF;
  --ink:        #3A2E2A;
  --ink-soft:   #6E5D55;
  --ink-faint:  #7D6E66;

  --coral:      #F26A4F;
  --coral-dark: #D8503A;
  --coral-tint: #FFE2D8;
  --coral-ink:  #CC4227;       /* AA-compliant coral: text-on-light + button bg */
  --coral-ink-hover: #B8341B;

  --teal:       #14A696;
  --teal-dark:  #0E8478;
  --teal-deep:  #0B7A6E;       /* AA-compliant teal button hover */
  --teal-tint:  #CFF0EA;

  --sun:        #FFB92E;
  --sun-tint:   #FFEFC2;

  --lilac:      #8E7BFF;
  --lilac-tint: #E4DEFF;

  --blush:      #FFD9CF;
  --line:       #EFE0D0;
  --line-soft:  #F6ECDF;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --fs-lead: clamp(1.1rem, 0.4rem + 1.4vw, 1.35rem);
  --fs-h4:   clamp(1.15rem, 0.8rem + 0.9vw, 1.35rem);
  --fs-h3:   clamp(1.3rem, 0.8rem + 1.2vw, 1.65rem);
  --fs-h2:   clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --fs-h1:   clamp(2.6rem, 1.4rem + 5.4vw, 4.6rem);
  --fs-mega: clamp(3rem, 1.6rem + 7vw, 5.8rem);

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Shadow (warm) */
  --sh-sm: 0 2px 8px rgba(58, 46, 42, .06);
  --sh:    0 14px 34px rgba(58, 46, 42, .09);
  --sh-lg: 0 28px 64px rgba(58, 46, 42, .14);
  --sh-coral: 0 16px 30px rgba(242, 106, 79, .32);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--coral-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--sun); color: var(--ink); }

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

/* skip-to-content (a11y) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 0 0 12px 12px;
  font-weight: 800;
  text-decoration: none;
  transition: left .15s ease;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.eyebrow.teal { color: var(--teal-dark); }
.eyebrow.teal::before { background: var(--teal); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--s-4); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--coral-ink);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease;
  box-shadow: var(--sh-coral);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(242,106,79,.42); text-decoration: none; }
.btn:active { transform: translateY(-1px); }

.btn.btn-primary { background: var(--coral-ink); color: #fff; }
.btn.btn-primary:hover { background: var(--coral-ink-hover); color: #fff; }

.btn.btn-teal { background: var(--teal-dark); color: #fff; box-shadow: 0 16px 30px rgba(20,166,150,.3); }
.btn.btn-teal:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 22px 40px rgba(20,166,150,.4); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--paper); border-color: var(--coral); color: var(--coral-ink); box-shadow: var(--sh-sm); }

.btn-white {
  background: #fff;
  color: var(--coral-ink);
  box-shadow: var(--sh);
}
.btn-white:hover { background: #fff; color: var(--coral-ink); }

.btn-lg { padding: 20px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-soft);
  box-shadow: var(--sh-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-logo { height: 60px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 48px; } }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1;
  color: var(--ink);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav-links a {
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--coral-tint); color: var(--coral-ink); text-decoration: none; }
.nav-links a.active { color: var(--coral-ink); }
.nav-cta { margin-left: var(--s-2); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--coral-ink);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: 4px;
  height: 14px;
  background: var(--sun);
  border-radius: var(--r-pill);
  z-index: -1;
  opacity: .7;
  transform: rotate(-1deg);
}
.hero .lead { max-width: 540px; margin-bottom: var(--s-6); }

.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-top: var(--s-7); }
.hero-meta .item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.hero-meta .item svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* hero visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #FFE7DD 0%, #FFD9CF 55%, #FFCEC0 100%);
  padding: clamp(34px, 5.5vw, 60px);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.hero-card .scene { position: relative; aspect-ratio: 2 / 1; }

/* floating badges */
.float-badge {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r);
  padding: 12px 16px;
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: .92rem;
  z-index: 4;
}
.float-badge .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-badge small { display: block; font-weight: 700; font-size: .76rem; color: var(--ink-faint); }
.float-badge.fb-1 { top: 3%; left: -8%; animation: bobble 6s ease-in-out infinite; }
.float-badge.fb-2 { bottom: 20%; right: -9%; animation: bobble 7s ease-in-out infinite .8s; }
.float-badge.fb-3 { bottom: -7%; left: 9%; animation: bobble 5.5s ease-in-out infinite .4s; }

@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.float-badge.fb-1 { --rot: -3deg; }
.float-badge.fb-2 { --rot: 4deg; }
.float-badge.fb-3 { --rot: -2deg; }

/* decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: 0;
  pointer-events: none;
}
.blob.sun-blob { width: 180px; height: 180px; background: var(--sun); opacity: .25; top: -40px; right: -30px; }
.blob.teal-blob { width: 140px; height: 140px; background: var(--teal); opacity: .16; bottom: -50px; left: 10%; }
.blob.lilac-blob { width: 90px; height: 90px; background: var(--lilac); opacity: .2; top: 40%; left: -20px; }

/* scattered scribbles */
.scribble { position: absolute; z-index: 1; opacity: .9; pointer-events: none; }
.star-spin { animation: spin 18s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  background: var(--paper);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  padding-block: var(--s-5);
  text-align: center;
}
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--coral); flex: none; }
.trust-stars { color: var(--sun); letter-spacing: 2px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  height: 100%;
}
.card.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--sh); }

.card-ic {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.card-ic svg { width: 30px; height: 30px; }
.card-ic.coral { background: var(--coral-tint); color: var(--coral-dark); }
.card-ic.teal { background: var(--teal-tint); color: var(--teal-dark); }
.card-ic.sun { background: var(--sun-tint); color: #B07200; }
.card-ic.lilac { background: var(--lilac-tint); color: #5A47D6; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Steps (how it works) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--s-7); }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: grid; place-items: center;
  box-shadow: var(--sh-coral);
  margin-bottom: var(--s-4);
}
.step:nth-child(2) .step-num { background: var(--teal); box-shadow: 0 16px 30px rgba(20,166,150,.3); }
.step:nth-child(3) .step-num { background: var(--lilac); box-shadow: 0 16px 30px rgba(142,123,255,.3); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-soft); }
.steps-line { position: relative; }
.steps-line::before {
  content: "";
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
  z-index: 0;
}

/* ---------- Age groups ---------- */
.age-card {
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.age-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.age-card.a1 { background: linear-gradient(170deg, #FFF3E0, #FFE7CF); }
.age-card.a2 { background: linear-gradient(170deg, #E7F8F4, #CFF0EA); }
.age-card.a3 { background: linear-gradient(170deg, #EFE9FF, #E4DEFF); }
.stage-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.age-sub { font-weight: 700; color: var(--ink-soft); margin-bottom: var(--s-4); font-size: .95rem; }
.age-card ul.checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.45;
}
.age-card ul.checks li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--paper);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314A696' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 2px var(--teal-tint);
}
.age-emoji { position: absolute; top: 16px; right: 18px; font-size: 2rem; opacity: .55; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line-soft);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .7;
  color: var(--coral);
  opacity: .3;
  margin-bottom: var(--s-2);
}
.quote-card blockquote { margin: 0 0 var(--s-5); font-size: 1.04rem; line-height: 1.65; color: var(--ink); flex: 1; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  flex: none;
}
.avatar.c1 { background: var(--coral); }
.avatar.c2 { background: var(--teal); }
.avatar.c3 { background: var(--lilac); }
.avatar.c4 { background: var(--sun); color: var(--ink); }
.quote-author strong { display: block; font-size: .95rem; }
.quote-author small { color: var(--ink-faint); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  border: 2px solid var(--line);
  box-shadow: var(--sh-sm);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.price-card.featured {
  border-color: var(--coral);
  box-shadow: var(--sh);
  background: linear-gradient(180deg, #fff, #FFF6F2);
}
.price-card.featured::before {
  content: "Most loved";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--coral-ink);
  color: #fff;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-coral);
  white-space: nowrap;
}
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 4px; }
.price-sub { color: var(--ink-faint); font-weight: 700; font-size: .9rem; margin-bottom: var(--s-4); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount .amt { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--ink); }
.price-amount .per { color: var(--ink-soft); font-weight: 700; }
.price-save { display: inline-block; background: var(--teal-tint); color: var(--teal-dark); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: var(--s-5); }
.price-card ul.checks { margin-bottom: var(--s-6); }
.price-card ul.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: .97rem;
}
.price-card ul.checks li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  background: var(--teal-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314A696' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.price-card .btn { margin-top: auto; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-item.open { box-shadow: var(--sh-sm); border-color: var(--coral-tint); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.faq-q:hover { color: var(--coral-ink); }
.faq-ic {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-dark);
  display: grid; place-items: center;
  flex: none;
  transition: transform .3s var(--ease), background .2s ease;
}
.faq-item.open .faq-ic { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-a-inner { padding: 0 24px 24px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #D8472D 0%, #C8341B 50%, #B8316A 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
  box-shadow: var(--sh-lg);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #fff; max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--s-6); }
.cta-band .blob { opacity: .3; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--sh);
  border: 1px solid var(--line-soft);
}
.field { margin-bottom: var(--s-5); }
.field label {
  display: block;
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.field .req { color: var(--coral); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 15px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--cream);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 4px var(--coral-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--coral-dark); background: #FFF5F2; }
.field-msg { color: var(--coral-dark); font-size: .85rem; font-weight: 700; margin-top: 6px; min-height: 1em; }
.field-hint { color: var(--ink-soft, var(--ink)); opacity: .72; font-size: .82rem; font-weight: 600; margin: 2px 0 0; }

.form-note { font-size: .85rem; color: var(--ink-faint); margin-top: var(--s-4); text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--s-6) var(--s-4);
}
.form-success.show { display: block; }
.success-ic {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: grid; place-items: center;
  margin: 0 auto var(--s-4);
}
.success-ic svg { width: 38px; height: 38px; }

/* ---------- Two-column feature (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--sh-lg);
}
.split-media .placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--coral-tint), var(--sun-tint));
  display: grid; place-items: center;
  position: relative;
}
.split-media .placeholder.teal { background: linear-gradient(160deg, var(--teal-tint), var(--lilac-tint)); }
.photo-note {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center; padding: var(--s-5);
  color: var(--ink-soft); font-weight: 700; font-size: .9rem;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  background: var(--teal-tint);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314A696' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--coral); line-height: 1; }
.stat .lbl { font-weight: 700; color: var(--ink-soft); font-size: .9rem; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer {
  background: #2E2622;
  color: #E9DDD2;
  padding-top: var(--s-9);
  margin-top: var(--s-9);
}
.footer a { color: #E9DDD2; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
.footer .brand-name { color: #fff; }
.footer-about p { color: #C9B8AB; max-width: 320px; margin-top: var(--s-4); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s-4); font-family: var(--font-body); font-weight: 800; letter-spacing: .04em; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #C9B8AB; font-weight: 600; font-size: .95rem; }
.footer-links a:hover { color: var(--sun); }
.footer-social { display: flex; gap: 12px; margin-top: var(--s-4); }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--coral); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: space-between; align-items: center;
  font-size: .88rem; color: #A89689;
}

/* ---------- Section dividers ---------- */
.divider { display: block; width: 100%; height: auto; line-height: 0; }
.divider svg { width: 100%; height: 60px; display: block; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-tint { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; text-align: center; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero .lead { max-width: 620px; margin-inline: auto; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .88rem; color: var(--ink-faint); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--coral-dark); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.hide-mobile { display: initial; }
.center-btn { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); }
  .footer-about { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: var(--s-4) var(--s-5) var(--s-6);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .nav-links a:hover { background: var(--coral-tint); }
  .nav-cta { margin: var(--s-3) 0 0; }
  .nav-cta .btn { width: 100%; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-visual { order: -1; width: 100%; max-width: 460px; margin-inline: auto; }
  .hero { text-align: left; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .split-media { max-width: 520px; }

  .steps-line::before { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--s-4); }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-meta { gap: var(--s-4); }
  .float-badge { font-size: .82rem; padding: 9px 12px; }
  .float-badge .ic { width: 32px; height: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--s-7) var(--s-5); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Conversion additions: WhatsApp FAB + sticky mobile CTA
   ============================================================ */
.wechat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: #07C160;            /* WeChat green */
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7, 193, 96, .45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  font-family: var(--font-body);
}
.wechat-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 36px rgba(7, 193, 96, .55);
}
.wechat-fab .wechat-mark { font-weight: 800; font-size: .76rem; position: relative; z-index: 1; }
.wechat-fab .wechat-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #07C160;
  opacity: .55;
  z-index: 0;
  animation: wechatpulse 2.6s ease-out infinite;
}
@keyframes wechatpulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}
.cta-bar .wechat-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: #07C160; color: #fff; font-weight: 800; font-size: .66rem;
  letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; flex: none;
}
/* WeChat add-contact overlay */
.wechat-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(58, 46, 42, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; place-items: center; padding: var(--s-5); opacity: 0; transition: opacity .2s ease; }
.wechat-overlay.open { display: grid; opacity: 1; }
.wechat-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-lg); max-width: 24rem; width: 100%; padding: clamp(24px, 4vw, 36px); text-align: center; position: relative; }
.wechat-close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--cream-2); width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--ink); }
.wechat-close:hover { background: var(--coral-tint); }
.wechat-title { font-family: var(--font-display); font-size: 1.2rem; display: block; margin-bottom: 4px; padding-right: 28px; }
.wechat-sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 var(--s-4); }
.wechat-qr { width: 220px; max-width: 70%; height: auto; border-radius: var(--r); box-shadow: var(--sh-sm); margin: 0 0 var(--s-4); }
.wechat-id-line { font-size: .95rem; color: var(--ink); margin: 0 0 var(--s-4); }
.wechat-id-line code { background: var(--cream-2); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.wechat-copy { border: 1px solid var(--line); background: var(--paper); padding: 3px 10px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; cursor: pointer; margin-left: 6px; color: var(--ink); }
.wechat-foot { margin-top: var(--s-2); }

.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  background: rgba(255, 248, 240, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(58, 46, 42, .10);
}
.cta-bar .row { display: flex; gap: 10px; max-width: 560px; margin-inline: auto; }
.cta-bar .btn { flex: 1; padding: 14px 14px; }
.cta-bar .btn svg { width: 18px; height: 18px; }

/* risk-reversal reassurance row */
.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: center;
  margin-top: var(--s-4);
}
.reassure .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink-soft);
}
.reassure .item svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

@media (max-width: 860px) {
  .wechat-fab { display: none; }      /* FAB is desktop/tablet only */
  .cta-bar { display: block; }    /* sticky bar is mobile only */
  body { padding-bottom: 78px; }  /* keep the bar from covering footer content */
}
@media (min-width: 861px) {
  .cta-bar { display: none; }
}

/* mascot (Teacher Tash character) */
.hero-card .scene .mascot { width: 100%; height: 100%; object-fit: contain; display: block; }
.placeholder .mascot { width: 100%; height: auto; max-height: 100%; margin: auto; }
.nf-mascot { height: clamp(120px, 22vw, 170px); width: auto; margin: 0 auto var(--s-6); display: block; }

/* ---------- Celebration effects (shared: lesson end + sticker book) ---------- */
.confetti-piece {
  position: fixed; z-index: 9999; border-radius: 2px; pointer-events: none;
  animation: confettiFall 1.2s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
.sparkle-piece { position: fixed; z-index: 9999; border-radius: 50%; pointer-events: none; animation: sparkleFly .85s ease-out forwards; }
@keyframes sparkleFly { 0% { transform: translate(0, 0) scale(0); opacity: 1; } 45% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) * .6)) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .confetti-piece, .sparkle-piece { display: none !important; animation: none !important; }
}

/* ---------- Footer brand ----------
   The real logo is dark-inked (her hair and the "Teacher" wordmark share the
   same brown), so recolouring it for the dark footer would wreck the
   illustration. It sits on a light chip instead, which keeps the brand exact. */
/* The wordmark is recoloured to cream in logo-footer.png (illustration left
   untouched — her hair shares the wordmark's brown), so no backing panel. */
.footer-brand { display: inline-block; line-height: 0; }
.footer-brand img { width: clamp(180px, 24vw, 250px); height: auto; display: block; }
.footer-brand:hover { transform: translateY(-2px); transition: transform .2s var(--ease); }

/* ---------- Pupil progress on the curriculum ---------- */
.pupil-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-pill);
  padding: 10px 18px; margin-bottom: var(--s-6); width: fit-content; margin-inline: auto;
}
.pupil-bar label { font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
.pupil-bar select {
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 6px 12px; border: 2px solid var(--line); border-radius: var(--r-pill);
  background: var(--cream-2); color: var(--ink);
}
.pupil-summary { font-weight: 800; font-size: .85rem; color: var(--teal-dark); }
/* A covered lesson is tinted and carries the sticker it earned. */
.module.is-done { border-color: var(--teal); background: rgba(20, 166, 150, .06); }
.module.is-done > summary { color: var(--teal-dark); }
.done-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  background: var(--teal-tint); color: var(--teal-dark);
  font-size: .72rem; font-weight: 800; padding: 3px 10px 3px 4px; border-radius: var(--r-pill);
  vertical-align: middle;
}
.done-badge img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- A won sticker should feel won ---------- */
.module.is-won {
  border-color: var(--sun); background: linear-gradient(180deg, rgba(255,185,46,.14), rgba(255,185,46,.05));
  box-shadow: 0 0 0 3px rgba(255,185,46,.22), var(--sh);
}
.done-badge.won {
  position: relative; gap: 10px; padding: 6px 16px 6px 6px;
  background: linear-gradient(135deg, var(--sun-tint), #FFF3D6);
  border: 2px solid var(--sun); border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(255, 185, 46, .35);
  opacity: 0; transform: scale(.4) rotate(-12deg);
}
.done-badge.won.pop { animation: wonPop .75s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes wonPop {
  0%   { opacity: 0; transform: scale(.4) rotate(-12deg); }
  55%  { opacity: 1; transform: scale(1.22) rotate(5deg); }
  75%  { transform: scale(.96) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.done-badge.won img {
  width: 58px; height: 58px; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(58,46,42,.28));
  animation: wonWave 2.4s ease-in-out .8s infinite;
  transform-origin: bottom center;
}
@keyframes wonWave {
  0%, 62%, 100% { transform: rotate(0) translateY(0); }
  70%  { transform: rotate(-9deg) translateY(-4px); }
  78%  { transform: rotate(7deg) translateY(-4px); }
  86%  { transform: rotate(-5deg) translateY(-2px); }
}
.won-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.won-text strong { font-family: var(--font-display); font-size: .98rem; color: var(--coral-dark); }
.won-text small { font-size: .68rem; font-weight: 800; color: #8a5a00; letter-spacing: .02em; }
/* a soft halo that pulses behind the character */
.won-burst {
  position: absolute; left: 30px; top: 50%; width: 62px; height: 62px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,185,46,.55), rgba(255,185,46,0) 70%);
  animation: wonHalo 2.4s ease-in-out infinite; pointer-events: none;
}
@keyframes wonHalo { 0%,100% { opacity: .45; transform: translate(-50%,-50%) scale(.9); }
                     50%     { opacity: .85; transform: translate(-50%,-50%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .done-badge.won.pop { animation: none; opacity: 1; transform: none; }
  .done-badge.won img, .won-burst { animation: none; }
}

/* ---------- Term books within a stage ----------
   A and B are TERMS, not levels — the school series ships two books a year. */
.term-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: var(--s-5) 0 var(--s-3);
  padding-bottom: 8px; border-bottom: 2px dashed var(--line);
}
.term-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--paper); background: var(--teal);
  padding: 4px 14px; border-radius: var(--r-pill);
}
.term-label { font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.term-next { opacity: .72; }
.term-next .term-tag { background: var(--line); color: var(--ink-soft); }

/* ---------- Storage failure banner ----------
   Raised by safeSet() in js/lessons.js when a write to localStorage fails.
   Every write used to be swallowed by an empty catch, so a full or disabled
   store looked exactly like a normal lesson while recording nothing. It sits
   above everything, including the lesson player in presenting mode, and it
   does not fade — Tash has to see it before she closes the tab.

   It sits IN FLOW as the first child of <body>, not fixed over the top. Fixed
   covered the whole lesson control bar — prev, next, draw, present and the
   star — so the player was unusable until the banner was dismissed. The lesson
   page is a flex column whose stage takes whatever height is left, so pushing
   everything down is exactly what that layout absorbs. Sticky keeps it on
   screen while a long page like the curriculum scrolls. */
.tt-storage-banner {
  position: sticky; top: 0; z-index: 9999; flex: 0 0 auto;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px clamp(12px, 3vw, 28px);
  background: var(--coral-ink); color: #FFFFFF;
  font-family: var(--font-body); font-size: .95rem; line-height: 1.45;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.tt-storage-banner strong { font-weight: 800; }
.tt-storage-banner em { opacity: .85; font-style: normal; }
.tt-storage-x {
  flex: 0 0 auto; margin-left: auto;
  background: rgba(255, 255, 255, .18); color: #FFFFFF;
  border: 0; border-radius: var(--r-pill);
  width: 30px; height: 30px; font-size: 1rem; cursor: pointer;
}
.tt-storage-x:hover { background: rgba(255, 255, 255, .3); }

/* ---------- In-progress module ----------
   A lesson with a :progress record but no completion. Deliberately quieter
   than the teal "covered" badge — it is a sitting that happened, not a
   lesson finished. */
.module.is-progress { border-color: var(--sun); background: rgba(255, 185, 46, .07); }
.done-badge.progress { background: var(--sun-tint); color: #6B4E00; }


/* The reassurance under a pay button. Small and quiet — a parent who is
   already clicking does not need a paragraph, and a parent who is hesitating
   needs to know their card details are not being typed into a tutor's website. */
.pay-note { display: block; margin-top: 8px; font-size: .78rem; font-weight: 700;
            color: var(--ink-soft); text-align: center; }
