/* ==========================================================================
   MURA WELLNESS — Design System
   "You don't have to carry it alone."
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Native UI (scrollbars, date pickers, dropdowns) follows our theme,
     not the operating system's. Light unless dark is explicitly chosen. */
  color-scheme: light;

  /* Brand palette — sampled straight from the logo artwork:
     the card behind it is #b5d7f2 and the ink is #043274. */
  --white:       #ffffff;
  --sky:         #b5d7f2;
  --sky-soft:    #d7ebfa;
  --sky-mist:    #eef7fd;
  --baby-blue:   #d7ebfa;
  --baby-blue-2: #9ccbee;
  --navy:        #10468c;
  --navy-deep:   #043274;
  --soft-green:  #cdeed4;
  --soft-green-2:#8fc3a3;
  /* Neutrals carry a little of the sky in them, so nothing reads as grey */
  --grey-50:     #f5fafe;
  --grey-100:    #eaf4fc;
  --grey-200:    #d8e8f5;
  --grey-400:    #93a8bd;
  --grey-600:    #4f6480;

  /* Playful accents — the "Feel. Heal. Grow." trio */
  --joy-green:   #3cc63c;
  --joy-pink:    #ef5b9c;
  --joy-yellow:  #f7c800;
  --joy-blue:    #10468c;
  --joy-blue-2:  #043274;

  /* Tinted chip surfaces, straight off the brand artwork */
  --tint-green:  #ddf4e0;
  --tint-blue:   #dcecf9;
  --tint-yellow: #fdf1c6;
  --tint-pink:   #fde3ee;

  /* Semantic — light mode.
     The page is the sky the logo sits on — #b5d7f2, sampled from the artwork
     itself — and cards stay white so they lift off it. Alternating sections
     step a shade deeper, the way they always did, just from a higher start. */
  --bg:            #b5d7f2;
  --bg-alt:        #a6cfef;
  --bg-sunken:     #97c5ea;
  --surface:       var(--white);
  --surface-hover: #f3f9fe;
  --border:        var(--grey-200);
  --text:          var(--navy-deep);
  --text-muted:    var(--grey-600);
  --text-faint:    var(--grey-400);
  --accent:        var(--joy-blue);
  --accent-text:   var(--white);
  --accent-soft:   var(--tint-blue);
  --accent-grad:   linear-gradient(180deg, #1a5aad, #043274);
  --green:         var(--joy-green);
  --focus:         #2f7fb8;

  /* Typography — rounded and hand-drawn, the way the brand actually speaks */
  --font-body: "Quicksand", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "Comic Neue", "Chalkboard SE", "Comic Sans MS", "Quicksand", cursive;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 2.8rem);
  --step-4:  clamp(2.3rem, 1.6rem + 3.2vw, 4rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* Elevation — soft, never harsh */
  --shadow-sm: 0 1px 2px rgba(27, 58, 92, .04), 0 2px 8px rgba(27, 58, 92, .04);
  --shadow-md: 0 2px 6px rgba(27, 58, 92, .05), 0 8px 24px rgba(27, 58, 92, .07);
  --shadow-lg: 0 4px 12px rgba(27, 58, 92, .06), 0 18px 48px rgba(27, 58, 92, .10);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .45s;

  --maxw: 1180px;
  --maxw-text: 68ch;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #0e1b28;
  --bg-alt:        #132434;
  --bg-sunken:     #0a1520;
  --surface:       #16293b;
  --surface-hover: #1d3448;
  --border:        #243b52;
  --text:          #e6eef5;
  --text-muted:    #a3b6c8;
  --text-faint:    #6f8599;
  --accent:        #4f9be8;
  --accent-text:   #ffffff;
  --accent-soft:   #1d3448;
  --accent-grad:   linear-gradient(180deg, #3b86d6, #1c528f);
  --green:         var(--soft-green-2);
  --focus:         #7cc0e8;

  --tint-green:  #1a3629;
  --tint-blue:   #14304b;
  --tint-yellow: #3a3216;
  --tint-pink:   #3a1e2c;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.18);
  --shadow-md: 0 2px 6px rgba(0,0,0,.24), 0 8px 24px rgba(0,0,0,.28);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.38);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  /* The off-canvas menu is position:fixed and parked to the right of the
     viewport, which counts towards the document width and gave every page a
     sideways scroll on phones. `clip` trims it without turning html into a
     scroll container, so the sticky header keeps working; `hidden` is the
     fallback for browsers without `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--baby-blue); color: var(--navy-deep); }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: 200;
  background: var(--accent); color: var(--accent-text);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md);
  font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

/* Sections were running into each other. They now get real air, and a
   hairline between them so the eye knows where one ends. */
.section { padding-block: calc(var(--sp-9) + var(--sp-4)); }
.section--tight { padding-block: var(--sp-9); }
.section + .section { border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.section--alt + .section--alt, .section--sunken + .section--sunken { border-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--sunken { background: var(--bg-sunken); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.center { text-align: center; }
.center-x { margin-inline: auto; }
.flex { display: flex; gap: var(--sp-3); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Section heading block */
.section-head { max-width: var(--maxw-text); margin-inline: auto; text-align: center; margin-bottom: var(--sp-7); }
.section-head p { color: var(--text-muted); margin-top: var(--sp-3); font-size: var(--step-1); line-height: 1.5; }
.eyebrow {
  display: inline-block; font-size: var(--step--1); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: "❋"; margin-right: .6em; color: var(--green); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.7em;
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 700; font-size: var(--step-0);
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Filled blue with the soft top-to-bottom gradient from the brand artwork */
.btn--primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 4px 14px rgba(14, 69, 146, .28);
}
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(14, 69, 146, .34); }

/* Outlined blue — the "Watch Our Skits" treatment */
.btn--soft {
  background: var(--surface); color: var(--joy-blue);
  border: 2px solid var(--joy-blue);
}
.btn--soft:hover { background: var(--tint-blue); }
[data-theme="dark"] .btn--soft { color: #7fb6ee; border-color: #3b6ea8; }
[data-theme="dark"] .btn--soft:hover { background: var(--surface-hover); }

/* Tinted pills — "Hear Our Motto" / "Get a Mura Wristband" */
.btn--green { background: var(--tint-green); color: #1f8b2b; }
.btn--green:hover { background: #cbeed1; }
.btn--tint-blue { background: var(--tint-blue); color: var(--joy-blue); }
.btn--tint-blue:hover { background: #cbe3f6; }
.btn--yellow { background: var(--tint-yellow); color: #8a6a00; }
.btn--yellow:hover { background: #fbe9ab; }
.btn--pink { background: var(--tint-pink); color: #c02c72; }
.btn--pink:hover { background: #fbd3e5; }
[data-theme="dark"] .btn--green { color: #7fd98a; }
[data-theme="dark"] .btn--yellow { color: #ecc94b; }
[data-theme="dark"] .btn--pink { color: #f593bd; }

.btn--ghost { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-hover); }

.btn--sm { padding: .55em 1.1em; font-size: var(--step--1); }
.btn--lg { padding: 1em 2.2em; font-size: var(--step-1); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; color: var(--accent); text-decoration: none;
  font-size: var(--step--1);
}
[data-theme="light"] .link-arrow, :root:not([data-theme="dark"]) .link-arrow { color: var(--navy); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--baby-blue-2); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }
.card .btn, .card .link-arrow { margin-top: auto; padding-top: var(--sp-4); }
.card .btn { margin-top: auto; }

.card-icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--accent-soft); margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.pill {
  display: inline-block; padding: .25em .8em; border-radius: var(--r-pill);
  background: var(--bg-sunken); color: var(--text-muted);
  font-size: var(--step--1); font-weight: 700;
}
.pill--green  { background: var(--tint-green);  color: #1f8b2b; }
.pill--blue   { background: var(--tint-blue);   color: var(--joy-blue); }
.pill--yellow { background: var(--tint-yellow); color: #8a6a00; }
.pill--pink   { background: var(--tint-pink);   color: #c02c72; }
[data-theme="dark"] .pill--green  { color: #7fd98a; }
[data-theme="dark"] .pill--blue   { color: #7fb6ee; }
[data-theme="dark"] .pill--yellow { color: #ecc94b; }
[data-theme="dark"] .pill--pink   { color: #f593bd; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
/* The frosted backdrop lives on a pseudo-element, not on the header itself.
   `backdrop-filter` makes an element a containing block for position:fixed
   descendants — with it on the header, the off-canvas menu was resolving
   against the header box instead of the viewport, so the drawer opened only
   as tall as the header and its off-screen position widened the document. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); }

.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; flex-shrink: 0; }

/* The wordmark is transparent and single-colour, so it sits directly on any
   surface. The figure inside the heart is drawn in brand blue rather than the
   near-white of the original artwork, which only ever read against a panel.
   On dark surfaces the whole mark is flipped to solid white. */
.logo-img {
  height: 34px; width: auto; display: block;
  transition: opacity .2s var(--ease);
}
.logo:hover .logo-img { opacity: .85; }

[data-theme="dark"] .site-header .logo-img,
.logo--on-dark .logo-img {
  filter: brightness(0) invert(1);
}

@media (max-width: 420px) {
  .logo-img { height: 27px; }
}

.nav-links { display: flex; align-items: center; gap: var(--sp-1); list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: block; padding: .5em .8em; border-radius: var(--r-pill);
  text-decoration: none; font-size: var(--step--1); font-weight: 700; color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* Dropdown */
.nav-item { position: relative; }
.nav-toggle-btn {
  display: flex; align-items: center; gap: .3em;
  padding: .5em .8em; border-radius: var(--r-pill);
  font-size: var(--step--1); font-weight: 700; color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle-btn:hover, .nav-item.is-open .nav-toggle-btn { color: var(--text); background: var(--surface-hover); }
.nav-toggle-btn svg { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.nav-item.is-open .nav-toggle-btn svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  min-width: 240px; padding: var(--sp-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: .55em .8em; border-radius: var(--r-sm); color: var(--text-muted); }
.dropdown a:hover { background: var(--surface-hover); color: var(--text); }
.dropdown .dd-desc { display: block; font-weight: 400; font-size: .8rem; color: var(--text-faint); margin-top: 1px; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted); position: relative;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
/* Signed in: the person icon carries a small green dot, so it is obvious at
   a glance without the header having to find room for a name. */
.icon-btn.is-signed-in { color: var(--text); }
.icon-btn.is-signed-in::after {
  content: ""; position: absolute; right: 6px; bottom: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--joy-green); border: 2px solid var(--bg);
}
.icon-btn svg { width: 19px; height: 19px; }

.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--navy); color: #fff;
  font-size: .65rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
[data-theme="dark"] .cart-count { background: var(--baby-blue-2); color: var(--navy-deep); }
.cart-count[hidden] { display: none; }

.nav-burger { display: none; }
/* The drawer's close button belongs to the drawer. Above 1080px there is no
   drawer, so it was sitting loose in the middle of the header as a stray ✕. */
.nav-close { display: none; }

/* Actions that move into the drawer once the burger appears */
.nav-drawer-actions { display: none; }

@media (max-width: 1080px) {
  .nav-burger { display: grid; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
    background: var(--bg); border-left: 1px solid var(--border);
    padding: calc(var(--sp-8) + var(--sp-4)) var(--sp-5) var(--sp-6);
    overflow-y: auto; z-index: 110;
    transform: translateX(100%); transition: transform .38s var(--ease), visibility .38s;
    box-shadow: var(--shadow-lg);
    /* Hidden as well as moved: a fixed panel parked off to the right still
       counts towards the document width, which gave every page a sideways
       scroll on phones. */
    visibility: hidden;
  }
  .nav-menu.is-open { transform: translateX(0); visibility: visible; }

  .nav-drawer-actions {
    display: grid; gap: var(--sp-2);
    margin-top: var(--sp-5); padding-top: var(--sp-5);
    border-top: 1px solid var(--border);
  }
  .nav-drawer-actions a {
    display: flex; align-items: center; gap: .6em;
    padding: .7em 1em; border-radius: var(--r-md);
    text-decoration: none; font-weight: 700; font-size: var(--step--1);
    color: var(--text-muted);
  }
  .nav-drawer-actions a:hover { background: var(--surface-hover); color: var(--text); }
  .nav-drawer-actions .btn { justify-content: center; color: #fff; }
  .nav-drawer-actions svg { width: 18px; height: 18px; flex-shrink: 0; }
}

/* Narrow phones: the top bar keeps only the logo, the theme toggle and the
   burger. Everything else lives in the drawer — otherwise the action cluster
   (313px) plus the logo (133px) overflows a 390px screen and pushes the
   burger clean off the edge, leaving no way to navigate at all. */
@media (max-width: 640px) {
  .nav-actions > .btn { display: none; }
}
@media (max-width: 480px) {
  .nav-actions > .icon-btn:not(.nav-burger):not([data-theme-toggle]) { display: none; }
  .nav-actions { gap: var(--sp-1); }
  .nav { gap: var(--sp-2); }
}

@media (max-width: 1080px) {
  .nav-links { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav-links a, .nav-toggle-btn { padding: .75em 1em; font-size: var(--step-0); width: 100%; }
  .nav-toggle-btn { justify-content: space-between; }
  .dropdown {
    position: static; translate: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    max-height: 0; overflow: hidden; padding: 0 0 0 var(--sp-4);
    transition: max-height .35s var(--ease);
  }
  .nav-item.is-open .dropdown { max-height: 600px; padding-block: var(--sp-2); }
  /* Sits below the header's stacking context (z-index 100). The drawer lives
     inside that context, so a scrim above it would dim the menu itself. */
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(18,40,63,.45);
    backdrop-filter: blur(2px); z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
  .nav-close { display: grid; position: absolute; top: var(--sp-4); right: var(--sp-4); }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-8) var(--sp-7); }
/* A soft vertical wash: white at the top fading down into the sky the rest
   of the page carries, so the hero and the page below it are one surface. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, #ffffff 0%, #dceffb 42%, #b5d7f2 100%);
}
[data-theme="dark"] .hero::before {
  background: linear-gradient(180deg, #0e1b28 0%, #12283a 55%, #0f2a2c 100%);
}

/* ---- Centred brand hero (home page) ---- */
.hero--centred { text-align: center; }
.hero--centred .hero-inner { display: block; }
.hero-brand {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);
  line-height: 1.05; color: var(--text); margin-bottom: .12em;
}

/* "Feel . Heal . Grow ." — each word carries its own colour */
.motto {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.15; display: flex; flex-wrap: wrap;
  justify-content: center; gap: .28em; margin-bottom: var(--sp-5);
}
.motto span { display: inline-block; }
.motto .m-feel { color: var(--joy-green); }
.motto .m-heal { color: var(--joy-pink); }
.motto .m-grow { color: var(--joy-yellow); }
.motto .m-dot  { color: currentColor; }
.motto--sm { font-size: var(--step-2); justify-content: flex-start; gap: .22em; margin-bottom: 0; }
[data-theme="dark"] .motto .m-grow { color: #ffd94d; }

/* Buttons stack full-width on phones, exactly like the reference shot */
.hero-actions { display: grid; gap: var(--sp-3); max-width: 460px; margin: var(--sp-6) auto 0; }
.hero-actions .btn { width: 100%; padding-block: .95em; }
.hero-actions-soft { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
@media (min-width: 700px) {
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; }
  .hero-actions .btn { width: auto; }
}

/* Mascot — the illustrated friend in a yellow ring */
.mascot {
  width: clamp(150px, 34vw, 230px); aspect-ratio: 1;
  border-radius: 50%; margin: var(--sp-7) auto 0;
  background: var(--joy-yellow);
  box-shadow: 0 10px 30px rgba(14, 47, 94, .18);
  display: grid; place-items: center; overflow: hidden;
  position: relative;
}
.mascot svg { width: 100%; height: 100%; }
.mascot--float { animation: bob 6s var(--ease) infinite alternate; }

/* ---- Passing a tip on ---- */
.share-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding-top: var(--sp-3); border-top: 1px dashed var(--border);
}
.share-row .btn { flex: 0 1 auto; }
@media (max-width: 460px) { .share-row .btn { flex: 1 1 44%; } }

/* ---- Join the tribe: a two-step flow ---- */
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.join-step {
  display: grid; grid-template-columns: 42px 1fr; gap: var(--sp-4);
  padding: var(--sp-4); border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.join-step.is-locked { opacity: .55; }
.join-step.is-done { border-color: var(--joy-green); }
.join-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad); color: #fff;
  font-weight: 800; font-size: var(--step-0);
}
.join-step.is-done .join-num { background: var(--joy-green); }
.join-step.is-done .join-num::after { content: "✓"; }
.join-step.is-done .join-num { font-size: 0; }
.join-step.is-done .join-num::after { font-size: 1.1rem; }
@media (max-width: 480px) {
  .join-step { grid-template-columns: 34px 1fr; gap: var(--sp-3); padding: var(--sp-3); }
  .join-num { width: 34px; height: 34px; }
}

/* ---- Product detail: pick an option, pick how many ---- */
.pd-grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 640px) { .pd-grid { grid-template-columns: 1fr; } }

.qty-picker { display: inline-flex; align-items: center; gap: var(--sp-2); }
.qty-picker button {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--bg-sunken); font-weight: 800; font-size: 1.2rem;
  color: var(--text); transition: background-color .2s var(--ease);
}
.qty-picker button:hover { background: var(--accent-soft); }
.qty-picker input {
  width: 76px; text-align: center; font-weight: 800;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-picker input::-webkit-outer-spin-button,
.qty-picker input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Uploaded product photography fills the tile; the emoji is the fallback */
.product-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ---- Event collage ----
   A loose, scrapbook-ish grid: the first shot leads, the rest fill in. */
.event-collage {
  display: grid; gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 90px;
}
.event-collage .collage-shot:first-child { grid-column: span 2; grid-row: span 2; }
.event-collage .collage-shot:nth-child(6n+4) { grid-column: span 2; }

.collage-shot {
  padding: 0; border: 0; border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg-sunken); cursor: zoom-in;
  position: relative;
}
.collage-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s var(--ease), filter .3s var(--ease);
}
.collage-shot:hover img, .collage-shot:focus-visible img { transform: scale(1.08); filter: saturate(1.15); }
.collage-shot::after {
  content: "⤢"; position: absolute; right: 6px; bottom: 4px;
  color: #fff; font-size: .85rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .25s var(--ease);
}
.collage-shot:hover::after { opacity: 1; }

@media (max-width: 520px) {
  .event-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 80px; }
}

/* Lightbox controls */
.lightbox-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-3); }
.lightbox-nav button { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-sunken); font-size: 1.2rem; font-weight: 800; }
.lightbox-nav button:hover { background: var(--accent-soft); }
.lightbox-nav button[disabled] { opacity: .35; pointer-events: none; }

/* ---- Meet the team ---- */
.team-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.team-card { text-align: center; }
.team-photo {
  width: 100%; max-width: 220px; aspect-ratio: 1;
  margin-inline: auto; border-radius: 50%; overflow: hidden;
  background: var(--bg-sunken);
  box-shadow: 0 8px 24px rgba(14, 47, 94, .16);
  border: 5px solid var(--joy-yellow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:nth-child(4n+2) .team-photo { border-color: var(--joy-green); }
.team-card:nth-child(4n+3) .team-photo { border-color: var(--joy-pink); }
.team-card:nth-child(4n+4) .team-photo { border-color: var(--baby-blue-2); }
.team-card:hover .team-photo { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(14, 47, 94, .24); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--step-1); line-height: 1.2; margin-top: var(--sp-4);
}
.team-role { font-size: var(--step--1); color: var(--text-muted); font-weight: 700; margin-top: .2em; }

/* The most senior person leads the grid on wider screens */
@media (min-width: 760px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-card:first-child { grid-column: 1 / -1; }
  .team-card:first-child .team-photo { max-width: 260px; }
  .team-card:first-child .team-name { font-size: var(--step-2); }
}

/* ---- Theme song player ---- */
.song {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  max-width: 620px; margin-inline: auto; text-align: left;
}
@media (max-width: 560px) { .song { flex-wrap: wrap; justify-content: center; text-align: center; } }

.song-play {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(14, 69, 146, .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.song-play:hover { transform: scale(1.06); box-shadow: 0 10px 24px rgba(14, 69, 146, .38); }
.song-play svg { width: 26px; height: 26px; }
.song-play.is-playing { animation: song-pulse 2.6s var(--ease) infinite; }
@keyframes song-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(14, 69, 146, .3); }
  50%      { box-shadow: 0 6px 30px rgba(27, 95, 180, .55); }
}

.song-meta { flex: 1; min-width: 190px; }
.song-title { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.song-sub { font-size: var(--step--1); color: var(--text-muted); }

.song-bar {
  height: 8px; border-radius: var(--r-pill); background: var(--bg-sunken);
  margin-top: var(--sp-3); cursor: pointer; overflow: hidden;
  border: 0; padding: 0; width: 100%; display: block;
}
.song-fill {
  height: 100%; width: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--joy-green), var(--joy-yellow), var(--joy-pink));
  transition: width .2s linear;
}
.song-time {
  display: flex; justify-content: space-between;
  font-size: .74rem; color: var(--text-faint);
  font-variant-numeric: tabular-nums; margin-top: 4px;
}

/* Floating stop control. It sits opposite Faiza so the two never collide. */
.song-mini {
  position: fixed; left: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 188; display: flex; align-items: center; gap: .35em;
  padding: .55em .9em; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.song-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.song-mini[hidden] { display: none; }
.song-mini svg { width: 15px; height: 15px; }
.song-mini-note { font-size: 1rem; color: var(--joy-pink); }
.song-mini.is-playing .song-mini-note { animation: note-bob 1.6s var(--ease) infinite; }
@keyframes note-bob {
  0%, 100% { transform: translateY(0);   opacity: 1; }
  50%      { transform: translateY(-3px); opacity: .6; }
}

/* Dotted paper texture behind the friendlier sections.
   The pseudo-element sits above the section's own background rather than
   behind it, so the content is lifted a layer to stay readable. */
.dotted { position: relative; isolation: isolate; }
.dotted > * { position: relative; z-index: 1; }
.dotted::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--baby-blue-2) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
          mask-image: linear-gradient(180deg, #000, transparent 55%);
}
[data-theme="dark"] .dotted::before { opacity: .18; }

/* Floating ambient blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; pointer-events: none; }
.blob--1 { width: 380px; height: 380px; background: var(--baby-blue);  top: -80px; left: -100px; animation: drift 22s var(--ease) infinite alternate; }
.blob--2 { width: 300px; height: 300px; background: var(--soft-green); bottom: -60px; right: -60px; animation: drift 28s var(--ease) infinite alternate-reverse; }
[data-theme="dark"] .blob { opacity: .16; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.12); }
}

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-cta { justify-content: center; } }

.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .34em;
  background: var(--joy-yellow); opacity: .55; border-radius: var(--r-pill); z-index: -1;
}
.hero-sub { font-size: var(--step-1); color: var(--text-muted); max-width: 54ch; line-height: 1.55; }
@media (max-width: 900px) { .hero-sub { margin-inline: auto; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero-note {
  display: inline-flex; align-items: center; gap: .6em; margin-top: var(--sp-6);
  font-size: var(--step--1); color: var(--text-muted);
  flex-wrap: wrap;                 /* or the line is clipped on narrow screens */
  max-width: 100%;
}
.hero-note a { font-weight: 700; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--soft-green-2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--soft-green-2) 70%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Hero visual — layered illustration card */
.hero-visual { position: relative; }
.hero-art {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
  background: linear-gradient(165deg, var(--baby-blue), var(--soft-green));
}
.hero-art svg { width: 100%; height: 100%; }

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md); font-size: var(--step--1); font-weight: 700;
  display: flex; align-items: center; gap: .6em;
  animation: bob 6s var(--ease) infinite alternate;
}
.float-card--1 { top: 12%; left: -8%; }
.float-card--2 { bottom: 14%; right: -6%; animation-delay: -3s; }
@media (max-width: 900px) { .float-card { display: none; } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* --------------------------------------------------------------------------
   8. Stat counters
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-5); }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat-icon { font-size: 1.9rem; margin-bottom: var(--sp-2); }
.stat-num {
  font-family: var(--font-head); font-size: var(--step-3); font-weight: 600;
  color: var(--text); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--sp-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
/* A form's answer when something is wrong: stated plainly, in the flow,
   never a browser alert. */
.form-error {
  margin: 0 0 var(--sp-4);
  padding: .7em .9em; border-radius: var(--r-sm);
  background: var(--tint-pink); color: #8a1f4b;
  font-size: var(--step--1); font-weight: 600;
}
[data-theme="dark"] .form-error { color: #ffc4dc; }

/* A button that reads as a link, for the quiet choices next to a form. */
.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--accent); font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--text); }

.field { display: block; margin-bottom: var(--sp-4); }
.field > label, .field > span:first-child, .label {
  display: block; font-size: var(--step--1); font-weight: 800;
  margin-bottom: var(--sp-2); color: var(--text);
}
.field > span:first-child .hint { display: inline; font-weight: 500; }
.hint { font-size: var(--step--1); color: var(--text-muted); font-weight: 400; margin-top: var(--sp-1); }

.input, .textarea, .select {
  width: 100%; padding: .8em 1em;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%235e6f80' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; background-size: 12px; padding-right: 2.6em; }

/* Chip / choice group */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: .5em 1.1em; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: var(--step--1); font-weight: 700; color: var(--text-muted);
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--baby-blue-2); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Toast */
.toast-region { position: fixed; bottom: var(--sp-5); left: 50%; translate: -50% 0; z-index: 300; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; pointer-events: none; }
.toast {
  background: var(--navy); color: #fff; padding: .8em 1.4em;
  border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  font-size: var(--step--1); font-weight: 700;
  display: flex; align-items: center; gap: .5em;
  animation: toast-in .35s var(--ease);
}
[data-theme="dark"] .toast { background: var(--baby-blue-2); color: var(--navy-deep); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #cfdbe6; padding-block: var(--sp-8) var(--sp-5); margin-top: var(--sp-8); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: var(--step--1); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.site-footer a { color: #cfdbe6; text-decoration: none; font-size: var(--step--1); transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: var(--sp-4); }
.footer-blurb { font-size: var(--step--1); color: #9db0c2; max-width: 34ch; line-height: 1.7; }

.newsletter { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.newsletter input {
  flex: 1; min-width: 0; padding: .7em 1em; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff;
}
.newsletter input::placeholder { color: #8fa3b6; }
.newsletter input:focus { outline: none; border-color: var(--baby-blue-2); }

.footer-contact { list-style: none; padding: 0; margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.footer-contact a { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }

.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--step--1); color: #8fa3b6;
}

/* Crisis banner */
.crisis-bar {
  background: color-mix(in srgb, var(--soft-green) 30%, var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-block: var(--sp-3); font-size: var(--step--1); text-align: center;
}
.crisis-bar strong { color: var(--text); }
.crisis-bar a { font-weight: 800; }

/* --------------------------------------------------------------------------
   12. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head { position: relative; padding-block: var(--sp-8) var(--sp-7); overflow: hidden; text-align: center; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2fc 60%, #d3e9f9 100%);
}
[data-theme="dark"] .page-head::before {
  background: linear-gradient(180deg, #0e1b28 0%, #12283a 60%, #0f2a2c 100%);
}
.page-head p { color: var(--text-muted); font-size: var(--step-1); max-width: 60ch; margin: var(--sp-4) auto 0; line-height: 1.55; }

.breadcrumb { font-size: var(--step--1); color: var(--text-muted); margin-bottom: var(--sp-4); }
.breadcrumb a { text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. Tabs
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-bottom: var(--sp-6); }
.tab {
  padding: .55em 1.3em; border-radius: var(--r-pill);
  font-size: var(--step--1); font-weight: 700; color: var(--text-muted);
  border: 1.5px solid transparent; transition: all .22s var(--ease);
}
.tab:hover { background: var(--surface-hover); color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-text); }
.tab-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Modal / drawer
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: var(--sp-4);
  background: rgba(18,40,63,.5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: min(100%, 560px); max-height: 88vh; overflow-y: auto; padding: var(--sp-6);
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }

/* Drawer (cart) */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(92vw, 420px); background: var(--bg);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer-head { padding: var(--sp-5); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.drawer-foot { padding: var(--sp-5); border-top: 1px solid var(--border); background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   15. Utility
   -------------------------------------------------------------------------- */
.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--sp-6); }
.prose { max-width: var(--maxw-text); }
.prose p + p { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); }
.prose ul { display: grid; gap: var(--sp-2); color: var(--text-muted); }

.quote {
  font-family: var(--font-head); font-size: var(--step-2); line-height: 1.4;
  border-left: 3px solid var(--soft-green-2); padding-left: var(--sp-5);
  color: var(--text); font-weight: 500;
}

.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--text-muted); }
.empty-state .emo { font-size: 2.6rem; margin-bottom: var(--sp-3); }

/* Star ratings */
.stars { color: #e2a93b; letter-spacing: .1em; font-size: var(--step--1); }

/* Progress bar */
.progress { height: 7px; border-radius: var(--r-pill); background: var(--bg-sunken); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--baby-blue-2), var(--soft-green-2)); transition: width .8s var(--ease); }

/* --------------------------------------------------------------------------
   15b. Craft pass
   The personality stays exactly as it is; this is only about rhythm,
   alignment and touch comfort.
   -------------------------------------------------------------------------- */

/* Cards in a grid share a baseline and a consistent internal rhythm, so a
   row never looks like a broken comb. */
.grid > .card, .grid > article.card { height: 100%; }
.card > h3 + p, .card > h4 + p { margin-top: var(--sp-2); }
.card > .pill:first-child { margin-bottom: var(--sp-3); }
.card .stars + p { margin-top: var(--sp-2); }

/* Section headings keep one rhythm everywhere */
.section-head p { max-width: 56ch; margin-inline: auto; }

/* Sections breathe less on a phone, where 6rem of padding is a scroll tax —
   but still more than they used to, since the pages read as congested. */
@media (max-width: 760px) {
  .section        { padding-block: calc(var(--sp-8) + var(--sp-3)); }
  .section--tight { padding-block: var(--sp-8); }
  .section-head   { margin-bottom: var(--sp-6); }
  .hero           { padding-block: var(--sp-7) var(--sp-6); }
  .page-head      { padding-block: var(--sp-7) var(--sp-6); }
  .section-head p, .page-head p { font-size: var(--step-0); }
  .card           { padding: var(--sp-4); }
  .stack-lg > * + * { margin-top: var(--sp-5); }
}

/* Comfortable targets on anything touched rather than clicked */
@media (pointer: coarse) {
  .btn      { min-height: 46px; }
  .btn--sm  { min-height: 40px; }
  .icon-btn { width: 44px; height: 44px; }
  .chip, .tab { min-height: 40px; display: inline-flex; align-items: center; }
  .nav-links a, .nav-toggle-btn { min-height: 46px; }
  .faiza-opt { min-height: 40px; }
}

/* One shadow language: soft, blue-tinted, never grey mush */
.card, .float-card, .song, .admin-kpi { box-shadow: var(--shadow-sm); }
.card--hover:hover, .song:hover { box-shadow: var(--shadow-md); }

/* Long words (emails, URLs) must never punch out of a card */
.card, .admin-row, .media-item, .faiza-msg { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Faiza — floating companion
   The launcher and panel live on every page, injected by core.js.
   -------------------------------------------------------------------------- */
.faiza-fab {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 190; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 8px 26px rgba(14, 69, 146, .38);
  display: grid; place-items: center; padding: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.faiza-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 32px rgba(14, 69, 146, .45); }
.faiza-fab svg, .faiza-fab img { width: 46px; height: 46px; border-radius: 50%; }
.faiza-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--joy-blue) 45%, transparent);
  animation: faiza-ring 2.6s var(--ease) infinite;
}
@keyframes faiza-ring {
  0%   { transform: scale(.9);  opacity: .8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.faiza-fab-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  border-radius: var(--r-pill); background: var(--joy-pink); color: #fff;
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bg); padding: 0 4px;
}
.faiza-fab-badge[hidden] { display: none; }
.faiza-fab[hidden], .faiza-panel[hidden] { display: none !important; }

/* A one-off nudge bubble the first time someone lands on the site */
.faiza-nudge {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: calc(clamp(14px, 3vw, 26px) + 76px);
  z-index: 189; max-width: 260px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  border-bottom-right-radius: 6px; padding: var(--sp-4) var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-lg); font-size: var(--step--1); line-height: 1.5;
  animation: msg-in .4s var(--ease);
}
.faiza-nudge strong { display: block; margin-bottom: .2em; }
.faiza-nudge button { font-size: .78rem; font-weight: 800; color: var(--accent); margin-top: .5em; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }

.faiza-panel {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px);
  z-index: 195; width: min(410px, calc(100vw - 28px));
  height: min(660px, calc(100vh - 48px));
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: 0 24px 70px rgba(14, 47, 94, .3);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: faiza-open .32s var(--ease);
}
@keyframes faiza-open { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@media (max-width: 520px) {
  .faiza-panel { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

/* Embedded (full-page) mode used by faiza.html */
.faiza-panel--embed {
  position: static; inset: auto; width: 100%;
  height: min(74vh, 700px); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); animation: none;
}
@media (max-width: 520px) {
  .faiza-panel--embed { width: 100%; height: 78vh; border-radius: var(--r-lg); border: 1px solid var(--border); }
}

.faiza-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); color: #fff;
  background: var(--accent-grad);
}
.faiza-head-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--joy-yellow); display: grid; place-items: center; overflow: hidden;
}
.faiza-head-avatar svg { width: 100%; height: 100%; }
.faiza-head h2 { font-size: 1.05rem; color: #fff; margin: 0; line-height: 1.2; }
.faiza-head p { font-size: .74rem; opacity: .85; margin: 0; }
.faiza-head-actions { margin-left: auto; display: flex; gap: 2px; }
.faiza-head-actions button {
  width: 34px; height: 34px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; transition: background-color .2s var(--ease);
}
.faiza-head-actions button:hover { background: rgba(255,255,255,.18); }
.faiza-head-actions svg { width: 17px; height: 17px; }

.faiza-body {
  flex: 1; overflow-y: auto; padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--bg-alt); scroll-behavior: smooth;
}

.faiza-msg {
  max-width: 88%; padding: .75em 1em; border-radius: 18px;
  font-size: .92rem; line-height: 1.6; animation: msg-in .3s var(--ease);
}
.faiza-msg--bot  { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; align-self: flex-start; }
.faiza-msg--user { background: var(--accent-grad); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.faiza-msg p + p { margin-top: .6em; }
.faiza-msg ul, .faiza-msg ol { margin: .5em 0; padding-left: 1.15em; display: grid; gap: .3em; }
.faiza-msg strong { font-weight: 800; }
.faiza-msg a { color: var(--accent); font-weight: 700; }
[data-theme="dark"] .faiza-msg--bot a { color: #7fb6ee; }

.faiza-msg--note {
  align-self: stretch; max-width: 100%; font-size: .84rem;
  background: var(--tint-yellow); border: 1px solid color-mix(in srgb, var(--joy-yellow) 45%, transparent);
  color: var(--text);
}
.faiza-msg--crisis {
  align-self: stretch; max-width: 100%;
  background: #fdeae5; color: #7a2418; border: 2px solid #f2b3a3;
}
[data-theme="dark"] .faiza-msg--crisis { background: #3a1d18; color: #ffd9d0; border-color: #6b3226; }
.faiza-msg--crisis a { color: inherit; text-decoration: underline; }

.faiza-opts { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch; }
.faiza-opt {
  padding: .5em .9em; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: .82rem; font-weight: 700; color: var(--text); text-align: left;
  transition: all .2s var(--ease);
}
.faiza-opt:hover { border-color: var(--joy-blue); background: var(--tint-blue); }
.faiza-opt--full { width: 100%; }
.faiza-opt--danger { border-color: #e79c8a; color: #b23b1d; background: #fdeae5; }
[data-theme="dark"] .faiza-opt--danger { background: #3a1d18; color: #ffd9d0; }

.faiza-scale { display: grid; gap: 5px; align-self: stretch; }
.faiza-scale .faiza-opt { width: 100%; }

.faiza-typing { display: flex; gap: 4px; padding: .9em 1em; align-self: flex-start; }
.faiza-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: blink 1.3s infinite; }
.faiza-typing span:nth-child(2) { animation-delay: .18s; }
.faiza-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.faiza-foot { border-top: 1px solid var(--border); padding: var(--sp-3); background: var(--bg); }
.faiza-form { display: flex; gap: var(--sp-2); align-items: center; }
.faiza-form input {
  flex: 1; min-width: 0; padding: .7em 1em; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  font-size: .9rem;
}
.faiza-form input:focus { outline: none; border-color: var(--focus); }
.faiza-send {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-grad); color: #fff; display: grid; place-items: center;
}
.faiza-send svg { width: 18px; height: 18px; }
.faiza-disclaimer { font-size: .68rem; color: var(--text-faint); text-align: center; margin-top: 6px; line-height: 1.4; }

/* Breathing circle inside the widget */
.faiza-breath { align-self: center; display: grid; place-items: center; padding: var(--sp-4) 0; }
.faiza-breath-circle {
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--baby-blue), var(--soft-green-2));
  display: grid; place-items: center; font-weight: 800; color: var(--navy-deep);
  font-size: .85rem; transition: transform 4s cubic-bezier(.4,0,.6,1);
}
.faiza-breath-circle.grow { transform: scale(1.4); }

/* --------------------------------------------------------------------------
   18. Certificates
   -------------------------------------------------------------------------- */
.cert-shell { display: grid; grid-template-columns: 380px 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 980px) { .cert-shell { grid-template-columns: 1fr; } }

.cert-form { position: sticky; top: 90px; }
@media (max-width: 980px) { .cert-form { position: static; } }

.cert-stage {
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-4);
  display: grid; place-items: center; min-height: 300px;
}
.cert-stage canvas {
  width: 100%; height: auto; max-width: 100%;
  border-radius: var(--r-sm); box-shadow: var(--shadow-lg); background: #fff;
}

.cert-templates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cert-template {
  border: 2px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3);
  background: var(--surface); text-align: center; transition: all .2s var(--ease);
}
.cert-template:hover { border-color: var(--baby-blue-2); }
.cert-template[aria-pressed="true"] { border-color: var(--joy-blue); background: var(--tint-blue); }
.cert-template .swatch { height: 54px; border-radius: var(--r-sm); margin-bottom: var(--sp-2); }
.cert-template .swatch--excellence { background: linear-gradient(135deg, #0e2f5e 0 22%, #f6f4ef 22% 78%, #0e2f5e 78%); }
.cert-template .swatch--participation { background: #fdfaf0; border: 3px double #1b4f9c; }
.cert-template strong { font-size: .8rem; display: block; }

.cert-batch-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: .6em .9em; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   19. Admin
   -------------------------------------------------------------------------- */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
/* Grid children default to min-width:auto, so one wide table stretches the
   whole column past the viewport instead of scrolling inside its wrapper. */
.admin-shell > *, .cert-shell > *, .admin-editor-split > *, .pd-grid > * { min-width: 0; }

.admin-nav { position: sticky; top: 90px; display: grid; gap: 3px; }
/* On a phone the sections wrap into chips rather than hiding in a scroll
   strip — every section stays visible without swiping. */
@media (max-width: 900px) {
  .admin-nav {
    position: static; display: flex; flex-wrap: wrap; gap: var(--sp-2);
    padding-bottom: var(--sp-2);
  }
  .admin-nav button { width: auto; border-radius: var(--r-pill); }
}
.admin-nav button {
  display: flex; align-items: center; gap: .6em; width: 100%;
  padding: .65em .9em; border-radius: var(--r-md); text-align: left;
  font-size: var(--step--1); font-weight: 700; color: var(--text-muted);
  transition: all .2s var(--ease); white-space: nowrap;
}
.admin-nav button:hover { background: var(--surface-hover); color: var(--text); }
.admin-nav button[aria-current="true"] { background: var(--accent-grad); color: #fff; }

.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.admin-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.admin-kpi .k-num { font-family: var(--font-head); font-size: var(--step-2); font-weight: 700; line-height: 1; }
.admin-kpi .k-label { font-size: .76rem; color: var(--text-muted); margin-top: .4em; font-weight: 700; }

.admin-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.admin-table th, .admin-table td { padding: .6em .7em; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { font-weight: 800; color: var(--text-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
/* A minimum width is what makes the wrapper actually scroll — without it the
   table squeezes columns down to one letter per line on a phone. */
.admin-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-scroll .admin-table { min-width: 620px; }

/* Editable record cards — the responsive answer to a data table */
.admin-list { display: grid; gap: var(--sp-3); }
.admin-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-3);
  align-items: center; padding: var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
}
.admin-card .meta { min-width: 0; }
.admin-card .meta strong { display: block; overflow-wrap: anywhere; }
.admin-card .actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }
@media (max-width: 620px) {
  .admin-card { grid-template-columns: 48px 1fr; }
  .admin-card .actions { grid-column: 1 / -1; }
  .admin-card .actions .btn { flex: 1; }
}

/* Field groups that reflow instead of being pinned to a column count */
.admin-fields { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.admin-fields--wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.admin-editor { display: grid; gap: var(--sp-3); }
.admin-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3);
  align-items: start; padding: var(--sp-3); border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
}
.admin-row .fields { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.admin-row .input, .admin-row .textarea { padding: .5em .7em; font-size: var(--step--1); }
.admin-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center;
  padding: var(--sp-3); margin-top: var(--sp-5);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border: 1px solid var(--border); border-radius: var(--r-md);
}
/* Sticky action bars overlap the content they belong to on a short screen */
@media (max-width: 900px) {
  .admin-bar { position: static; }
  .admin-bar .btn { flex: 1 1 auto; }
}

/* The product editor stacks its image well above the fields on a phone */
.admin-editor-split { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 760px) {
  .admin-editor-split { grid-template-columns: 1fr; }
  .admin-editor-split .admin-image { max-width: 220px; }
}
.admin-gate { max-width: 420px; margin: var(--sp-9) auto; }

/* Product thumbnails in the shop table */
.admin-thumb {
  width: 54px; height: 54px; border-radius: var(--r-sm);
  object-fit: cover; display: block; background: var(--bg-sunken);
}
.admin-thumb--emoji { display: grid; place-items: center; font-size: 1.5rem; }

/* The big image well in the product editor */
.admin-image {
  aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  border: 2px dashed var(--border); background: var(--bg-sunken);
  display: grid; place-items: center;
}
.admin-image img { width: 100%; height: 100%; object-fit: cover; }

/* Upload slots on the front-page cards */
.service-slots { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.service-slot {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  padding: .5em .7em; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-alt);
}
.service-slot > span:first-child { min-width: 120px; }

/* A video or recording attached to a front-page card */
.service-media { width: 100%; border-radius: var(--r-sm); display: block; background: #000; }
.service-audio { width: 100%; display: block; }

/* Media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-4); }
.media-item {
  margin: 0; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface);
}
.media-item img, .media-file {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  background: var(--bg-sunken);
}
.media-file { display: grid; place-items: center; font-size: 2.4rem; }
.media-item figcaption { padding: var(--sp-3); display: grid; gap: 2px; }
.media-item figcaption strong { word-break: break-word; }

/* Print */
@media print {
  .site-header, .site-footer, .nav-scrim, .toast-region, .btn,
  .faiza-fab, .faiza-panel, .faiza-nudge { display: none !important; }
  body { background: #fff; color: #000; }
}
