/* ==========================================================
   Bloom — shared brand styles
   --------------------------------------------------------
   Background:  Cream  #FFF7EC
   Body text:   Plum Ink  #2E2233
   Display/headlines/buttons/eyebrows/logo:  Baloo 2 (700–800)
   Body/UI/reading:                          Nunito (400–700)
   Layout:      Centered.
   ========================================================== */

:root {
  /* Primary + accents */
  --petal-pink:  #F6A5B8;   /* Primary */
  --butter:      #FFD66B;   /* Secondary */
  --leaf:        #7FC6A4;   /* Accent · Grow */
  --sky:         #8CC8E8;   /* Accent · Rest */

  /* Neutrals */
  --cream:       #FFF7EC;   /* Background · Primary */
  --honey-cream: #FBEBE6;   /* Background · Warm */
  --petal-tint:  #FBD3DC;   /* Surface · Soft */
  --plum-ink:    #2E2233;   /* Ink · Text & outlines */

  /* System states */
  --sprout: #6FB58A;
  --honey:  #F3B64A;
  --poppy:  #E47864;

  /* Type system — Baloo 2 for display/buttons/UI labels, Nunito for body */
  --font-display: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-body:    'Nunito', system-ui, -apple-system, sans-serif;

  /* Stacked drop shadows in the brand's "blocky" style */
  --shadow-soft: 0 2px 0 var(--plum-ink);
  --shadow-card: 0 4px 0 var(--plum-ink);
  --shadow-lift: 0 6px 0 var(--plum-ink);

  --radius:    18px;
  --radius-lg: 28px;

  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--plum-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-align: center;
}

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

/* All headlines, buttons, and UI labels use Baloo 2 */
h1, h2, h3, h4, h5, h6,
.btn, button,
.eyebrow,
.price-name, .price-amount, .price-cta,
.tier .pct, .tier .label,
.lesson-title,
.brand, .brand-line,
summary,
.nav-cta {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p, li, label, input, td, th {
  font-family: var(--font-body);
}

p, li { font-size: 1.05rem; line-height: 1.65; color: var(--plum-ink); }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ----------- EYEBROW (small Baloo 2 pill above headlines) ----------- */
.eyebrow {
  display: inline-block;
  background: var(--butter);
  color: var(--plum-ink);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--plum-ink);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.eyebrow.pink  { background: var(--petal-pink); }
.eyebrow.leaf  { background: var(--leaf); }
.eyebrow.sky   { background: var(--sky); }
.eyebrow.petal { background: var(--petal-tint); }

/* ----------- NAV ----------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--plum-ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  color: var(--plum-ink);
}
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum-ink);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--poppy); }
.nav-cta {
  background: var(--plum-ink);
  color: var(--cream) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem !important;
  border: 2px solid var(--plum-ink);
  transition: transform 0.15s ease;
  font-weight: 700;
}
.nav-cta:hover {
  transform: translateY(-2px);
  color: var(--butter) !important;
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ----------- BUTTONS ----------- */
.btn {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--plum-ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--plum-ink);
  text-decoration: none;
}
.btn-primary {
  background: var(--petal-pink);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-secondary {
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--honey-cream); }
.btn-dark {
  background: var(--plum-ink);
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.btn-dark:hover {
  transform: translateY(-3px);
  color: var(--butter);
  box-shadow: var(--shadow-lift);
}

/* ----------- LEGAL PAGE LAYOUT ----------- */
.legal-hero {
  background: var(--honey-cream);
  border-bottom: 2px solid var(--plum-ink);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--plum-ink);
  opacity: 0.5;
}
.legal-hero::before { width: 140px; height: 140px; background: var(--petal-tint); top: -40px; left: -40px; }
.legal-hero::after  { width: 180px; height: 180px; background: var(--sky); bottom: -60px; right: -60px; }
.legal-hero .wrap { position: relative; z-index: 1; }
.legal-hero .updated {
  margin-top: 20px;
  font-size: 0.95rem;
  opacity: 0.7;
  font-weight: 600;
}

.legal-body { padding: 64px 0 96px; }
.legal-body .wrap { max-width: 760px; }
.legal-body { text-align: left; }
.legal-body .center { text-align: center; }

.legal-body section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}
.legal-body section:last-child { margin-bottom: 0; }

.legal-body h2 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--petal-tint);
  text-align: left;
}
.legal-body h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  text-align: left;
}
.legal-body p { margin-bottom: 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 20px 24px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { font-weight: 700; }
.legal-body a { color: var(--plum-ink); text-decoration: underline; text-decoration-color: var(--petal-pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--plum-ink); }

/* table of contents */
.toc {
  background: var(--cream);
  border: 2px solid var(--plum-ink);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}
.toc h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  margin-bottom: 6px;
  padding-left: 36px;
  position: relative;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.5;
}
.toc a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.toc a:hover { color: var(--poppy); }

/* callout boxes */
.callout {
  background: var(--cream);
  border: 2px solid var(--plum-ink);
  border-left: 6px solid var(--petal-pink);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}
.callout.leaf   { border-left-color: var(--leaf); }
.callout.butter { border-left-color: var(--butter); }
.callout.sky    { border-left-color: var(--sky); }
.callout strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 6px;
  font-size: 1.1rem;
}

/* ----------- FOOTER ----------- */
footer {
  background: var(--plum-ink);
  color: var(--cream);
  padding: 64px 0 32px;
  text-align: center;
}
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; }
footer .brand-line {
  font-size: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}
footer .brand-line img { height: 48px; width: auto; }
footer .tagline {
  opacity: 0.75;
  max-width: 480px;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  list-style: none;
}
.footer-links a {
  opacity: 0.85;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--butter); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255, 247, 236, 0.15);
  padding-top: 24px;
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
