/* ============================================================
   SPARKLY ALIENS INC.
   Sibling of Neurodivergent Empowered: SAME design system
   (Cormorant Garamond + Figtree, cream + purple foundation,
   same structure / spacing / rhythm). The ONLY difference is
   personality — rainbow as jewellery, brighter and joyful.
   ============================================================ */

/* ---------- Self-hosted fonts (no external calls) ---------- */
@font-face { font-family:"Cormorant Garamond"; src:url("/assets/fonts/cormorant-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Cormorant Garamond"; src:url("/assets/fonts/cormorant-500.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Cormorant Garamond"; src:url("/assets/fonts/cormorant-600.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Figtree"; src:url("/assets/fonts/figtree.woff2") format("woff2"); font-weight:300 700; font-style:normal; font-display:swap; }
@font-face { font-family:"OpenDyslexic"; src:url("/assets/fonts/opendyslexic.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }

/* ---------- Tokens (shared NE foundation) ---------- */
:root {
  --purple: #6B4C9A;
  --purple-deep: #4a2f73;
  --purple-mid: #8b65b8;
  --purple-pale: #d4c3ec;
  --purple-mist: #ede6f7;
  --purple-ghost: #f7f3fd;
  --teal: #4a8a8e;
  --gold: #c9a65f;
  --sand: #e8dcc8;
  --hot-pink: #c94f7a;
  --text: #1c1128;
  --text-mid: #4a3a5e;
  --text-soft: #8a7a9e;
  --cream: #fdfaf5;
  --warm-white: #fffffe;

  /* Sparkly personality — rainbow as jewellery, not wallpaper */
  --rb-pink: #e84a86; --rb-amber: #f0a72e; --rb-teal: #23c3ac; --rb-violet: #7c4dcc;
  --rainbow: linear-gradient(90deg, var(--rb-pink), var(--rb-amber), var(--rb-teal), var(--rb-violet));
  --rainbow-soft: linear-gradient(90deg, #f6a9c6, #f7d4a0, #a9e6db, #c3aef0);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --border: #d4c3ec;
  --line: #dcd6de;      /* neutral grey for subtle structural lines/dividers */
  --line-teal: #bfe0da; /* soft teal alternative */
  --shadow-sm: 0 2px 16px rgba(28,17,40,0.06);
  --shadow: 0 24px 60px -28px rgba(28,17,40,0.28);
  --focus: #4a2f73;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.text-lg { font-size: 112.5%; } html.text-xl { font-size: 125%; }

body {
  margin: 0; font-family: var(--sans); background: var(--cream); color: var(--text);
  line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html, body { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); font-weight: 500; margin: 0 0 .6rem; line-height: 1.12; overflow-wrap: break-word; }
h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: .01em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1.1rem; font-size: 1.02rem; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
strong { color: var(--text); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--purple-deep); color: #fff; padding: .7rem 1rem; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
.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; }

/* ---------- Layout ---------- */
.page-shell { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.reading-column { width: min(100%, 720px); margin-inline: auto; }
.measure { max-width: 62ch; } .measure-narrow { max-width: 46ch; }
section { padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem); }

/* Surface rhythm (cream / white / pale purple / deep-purple feature) */
.surface-cream { background: var(--cream); }
.surface-white { background: var(--warm-white); }
.surface-pale { background: var(--purple-ghost); }
.surface-feature { background: linear-gradient(150deg, #0d0520 0%, #2c1257 45%, var(--purple-deep) 100%); color: #efe7f7; }
.surface-feature h1, .surface-feature h2, .surface-feature h3 { color: #fff; }
.surface-feature a { color: #e7d8f7; }
.surface-feature .lead, .surface-feature p { color: #e6dbf3; }

/* Rainbow jewellery: thin divider */
.rainbow-hairline { height: 3px; background: var(--rainbow); border: 0; margin: 0; }

/* Section label / title / sub (NE rhythm) */
.eyebrow, .section-label {
  display: inline-block; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--purple); background: var(--purple-mist);
  border: 1px solid var(--purple-pale); border-radius: 2px; padding: .28rem .9rem; margin-bottom: 1.2rem;
}
.surface-feature .eyebrow { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.lead { font-size: 1.1rem; line-height: 1.8; color: var(--text-mid); max-width: 620px; }
.section-intro { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---------- Buttons (NE: sharp 2px, uppercase, letter-spaced) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.1; padding: .95rem 2.1rem; border-radius: 2px; cursor: pointer; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, transform .12s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
/* Selected CTA = purple with rainbow-jewellery border + glow */
.btn-primary {
  color: #fff; border: 2px solid transparent;
  background: linear-gradient(var(--purple), var(--purple-deep)) padding-box, var(--rainbow) border-box;
}
.btn-primary:hover { box-shadow: 0 8px 26px -8px rgba(124,77,204,.55); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--purple-deep); border-color: var(--purple-pale); }
.btn-secondary:hover { border-color: var(--purple); background: var(--purple-mist); }
/* On the deep-purple hero / feature */
.surface-feature .btn-primary, .hero .btn-primary {
  background: linear-gradient(#fff, #fff) padding-box, var(--rainbow) border-box; color: var(--purple-deep);
}
.surface-feature .btn-secondary, .hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.surface-feature .btn-secondary:hover, .hero .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-small { padding: .6rem 1.2rem; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
@media (max-width: 560px) { .btn-row { flex-direction: column; align-items: stretch; } .btn-row .btn { width: 100%; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(253,250,245,.92);
  backdrop-filter: saturate(120%) blur(10px); border-bottom: 1px solid var(--purple-pale);
}
.site-header::after { content: ""; display: block; height: 2px; background: var(--rainbow); opacity: .9; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem clamp(1.25rem, 4vw, 4rem); max-width: var(--maxw); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand .logo-slot { width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.brand .logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.brand .brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
.brand .brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .02em; color: var(--text-soft); text-transform: none; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-mid); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.calm-toggle {
  display: inline-flex; align-items: center; gap: .45rem; background: transparent; border: 1.5px solid var(--purple-pale);
  color: var(--purple-deep); border-radius: 2px; padding: .55rem .85rem; font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.calm-toggle[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.nav-toggle { display: none; background: var(--purple-deep); color: #fff; border: 0; border-radius: 2px; padding: .6rem .9rem; font-size: 1rem; cursor: pointer; align-items: center; gap: .4rem; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start;
    gap: 1.1rem; background: var(--cream); border-bottom: 1px solid var(--purple-pale); padding: 1.5rem clamp(1.25rem,5vw,2rem) 2rem; }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 1rem; }
  .nav-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero (NE structure, but rainbow-infused to differentiate) ---------- */
.hero { background: linear-gradient(150deg, #0d0520 0%, #2c1257 38%, #5a3290 70%, var(--purple) 100%); color: #fff; position: relative; overflow: hidden;
  min-height: calc(100svh - 84px); display: flex; align-items: center; padding-block: clamp(1.25rem, 3vw, 2.5rem); }
/* Rainbow aurora across the whole hero (the 'sunshine' that sets Sparkly apart from NE) */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 46% at 14% 22%, rgba(232,74,134,.30), transparent 60%),
    radial-gradient(38% 44% at 93% 20%, rgba(35,195,172,.28), transparent 60%),
    radial-gradient(52% 56% at 80% 96%, rgba(124,77,204,.42), transparent 62%),
    radial-gradient(34% 40% at 42% 102%, rgba(240,167,46,.22), transparent 60%); }
.hero > .page-shell { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.5rem, 4.4vw, 3.9rem); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 34ch; }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; grid-template-columns: 1.1fr .9fr; }
.reassure { margin-top: 2rem; padding: 1.1rem 1.35rem; border-left: 3px solid var(--rb-teal); background: rgba(255,255,255,.08); font-weight: 500; max-width: 52ch; color: #fff; }
/* Rainbow glow orbs behind the phoenix (jewellery) */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(232,74,134,.55), rgba(240,167,46,.4), rgba(35,195,172,.5), rgba(124,77,204,.55), rgba(232,74,134,.55));
  filter: blur(60px); opacity: .8; }
.hero-visual img { position: relative; width: min(88%, 340px); background: var(--cream); border-radius: 50%; padding: 7%; box-shadow: 0 20px 60px -20px rgba(0,0,0,.5); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: 2; } .hero-visual img { width: min(66%, 280px); } .hero .lead { max-width: none; } }

/* ---------- Waitlist notice (warm gold/sand panel) ---------- */
.waitlist-notice { border: 1.5px solid transparent; border-radius: 4px; padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow-sm); position: relative;
  background: linear-gradient(var(--warm-white), var(--warm-white)) padding-box, var(--rainbow) border-box; }
.waitlist-notice h2 { color: var(--text); }
.waitlist-notice p { color: var(--text-mid); max-width: 68ch; }
.waitlist-notice .badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--purple-mist); border: 1px solid var(--purple-pale); color: var(--purple-deep); font-family: var(--sans); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 2px; margin-bottom: 1rem; }

/* ---------- Cards (NE: warm-white, purple-pale border, 4px, hover lift + rainbow top) ---------- */
.grid-2 { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.tile { border: 1.5px solid transparent; border-radius: 4px; padding: clamp(1.6rem, 3vw, 2.2rem); position: relative; transition: box-shadow .2s, transform .2s;
  background: linear-gradient(var(--warm-white), var(--warm-white)) padding-box, var(--rainbow) border-box; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.surface-white .tile { background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--rainbow) border-box; }
.tile .num { font-family: var(--serif); font-size: 1.7rem; color: var(--hot-pink); line-height: 1; margin-bottom: .5rem; }
.tile h3 { margin-bottom: .5rem; }
.tile p { margin-bottom: 0; color: var(--text-mid); }

/* Editorial service blocks */
.editorial { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.editorial-block { display: grid; gap: .7rem; padding-bottom: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.editorial-block:last-child { border-bottom: 0; padding-bottom: 0; }
.editorial-block .kicker { font-family: var(--sans); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; color: var(--purple); }
.editorial-block .examples { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.editorial-block .examples li { font-size: .85rem; font-weight: 600; color: var(--purple-deep); background: var(--purple-mist); border: 1px solid var(--purple-pale); border-radius: 2px; padding: .35rem .85rem; }
.tag-prominent { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--purple); color: #fff; padding: .25rem .6rem; border-radius: 2px; margin-left: .5rem; vertical-align: middle; }

/* Disclosures */
.disclosure { margin-top: 1rem; }
.disclosure > summary { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--purple); font-size: .8rem; padding: .4rem 0; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; color: var(--hot-pink); font-weight: 700; }
.disclosure[open] > summary::after { content: "\2013"; }
.disclosure .disclosure-body { padding-top: .75rem; }
.disclosure .disclosure-body ul { margin: 0; padding-left: 1.15rem; }
.disclosure .disclosure-body li { margin-bottom: .35rem; color: var(--text-mid); }

/* Trust link cards */
.link-list { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
@media (max-width: 767px) { .link-list { grid-template-columns: 1fr; } }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1.5px solid transparent; border-radius: 4px; padding: 1.15rem 1.35rem; text-decoration: none; color: var(--purple-deep); font-family: var(--sans); font-weight: 600; letter-spacing: .02em; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; background: linear-gradient(var(--warm-white), var(--warm-white)) padding-box, var(--rainbow) border-box; }
.link-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--purple); }
.link-card::after { content: "\2192"; font-size: 1.1rem; }

/* Steps */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.75rem; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: .9rem; align-items: flex-start; }
.step .dot { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.step:nth-child(1) .dot { background: var(--rb-pink); }
.step:nth-child(2) .dot { background: var(--rb-violet); }
.step:nth-child(3) .dot { background: var(--rb-teal); }
.step h4 { margin: 0 0 .25rem; }
.step p { margin: 0; font-size: .96rem; color: var(--text-mid); }

/* ---------- Forms ---------- */
.form-card { border: 1.5px solid transparent; border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); position: relative;
  background: linear-gradient(var(--warm-white), var(--warm-white)) padding-box, var(--rainbow) border-box; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--purple-deep); }
.field .req-star { color: var(--hot-pink); }
.field .hint { font-weight: 400; font-size: .85rem; color: var(--text-soft); margin-top: .15rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; font-size: 1rem; font-family: inherit; border: 1.5px solid var(--line); border-radius: 2px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; font-weight: 400; color: var(--text-mid); }
.check input { width: auto; margin-top: .3rem; flex: none; }
.honeypot { position: absolute; left: -9999px; }
.form-error { background: #fbe6ec; border: 1.5px solid var(--hot-pink); border-radius: 2px; padding: .9rem 1rem; margin-bottom: 1.15rem; color: #7a1a3a; font-weight: 600; }
.form-error[hidden] { display: none; }
.form-error ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.note { padding: 1rem 1.15rem; background: var(--purple-mist); border: 1px solid var(--purple-pale); border-radius: 2px; font-weight: 500; color: var(--purple-deep); max-width: 66ch; }
.note.rose { background: #fceef2; border-color: #f0c4d4; color: #7a1a3a; }

/* ---------- Recognition band ---------- */
.recognition { text-align: center; }
.recognition .counts { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); margin: 1.75rem 0; }
.recognition .count b { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: #fff; }
.recognition .count span { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .4rem; color: #d9c9ec; }
.recognition .bodies { color: #e2d6f0; max-width: 62ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: #e9def5; }
.site-footer a { color: #e9def5; }
.footer-ack { border-bottom: 1px solid rgba(255,255,255,.16); padding-block: 1.4rem; font-size: .9rem; color: #d7c8ec; max-width: 92ch; }
.footer-ack strong { color: #fff; }
/* Footer content needs the same side gutters as the rest of the site, and to resize with the viewport */
.site-footer .page-shell { padding-inline: clamp(1.25rem, 4vw, 4rem); }
.footer-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1.4fr repeat(3, 1fr); padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { font-size: .92rem; }
.footer-logo { width: 96px; margin-bottom: 1rem; background: var(--cream); border-radius: 50%; padding: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-block: 1.4rem; font-size: .84rem; color: #c9b9e0; }

/* ---------- Doc / supporting pages ---------- */
.doc h1 { max-width: none; }
.doc h2 { margin-top: 2.5rem; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.doc p, .doc li { max-width: 68ch; color: var(--text-mid); }
.doc ul { padding-left: 1.2rem; }
.breadcrumb { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--purple); }
.disclaimer { font-size: .9rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; max-width: 68ch; }

/* Accordions (supporting pages) */
.accordion { border: 1px solid var(--line); border-radius: 4px; background: var(--warm-white); overflow: hidden; }
.accordion + .accordion { margin-top: .75rem; }
.accordion > h3 { margin: 0; }
.accordion-trigger { width: 100%; text-align: left; background: var(--warm-white); border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--purple-deep); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion-trigger:hover { background: var(--purple-ghost); }
.accordion-trigger .chev { flex: none; color: var(--hot-pink); transition: transform .2s ease; }
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(90deg); }
.accordion-panel { padding: 0 1.3rem 1.4rem; }
.accordion-panel[hidden] { display: none; }
.accordion-panel h4 { color: var(--purple); margin: 1rem 0 .3rem; }
.accordion-panel ul { margin: 0; padding-left: 1.15rem; }
.accordion-panel li { margin-bottom: .3rem; color: var(--text-mid); }
.req-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* Awards */
.awards-group { margin-top: 2.5rem; }
.awards-group h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); padding-bottom: .5rem; border-bottom: 2px solid var(--line-teal); }
.awards-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .1rem; }
.awards-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.aw-title { display: block; font-weight: 600; color: var(--purple-deep); }
.aw-src { display: block; font-size: .9rem; color: var(--text-soft); margin-top: .1rem; }

/* ---------- Accessibility toolbar ---------- */
.a11y { position: relative; }
.a11y-panel { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 300; width: 244px; background: var(--warm-white); border: 1px solid var(--purple-pale); border-radius: 4px; box-shadow: var(--shadow); padding: .5rem; display: none; }
.a11y-panel.open { display: block; }
.a11y-panel h4 { font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin: .5rem .7rem .25rem; }
.a11y-panel button { display: flex; width: 100%; align-items: center; gap: .55rem; background: transparent; border: 0; padding: .6rem .7rem; border-radius: 2px; font: inherit; font-weight: 600; color: var(--text-mid); cursor: pointer; text-align: left; }
.a11y-panel button:hover { background: var(--purple-ghost); }
.a11y-panel button[aria-pressed="true"] { background: var(--purple-mist); color: var(--purple-deep); }
.a11y-panel .grp { display: flex; gap: .4rem; padding: .3rem .7rem .5rem; }
.a11y-panel .grp button { justify-content: center; border: 1px solid var(--purple-pale); padding: .5rem; }

/* Dyslexia + reduced motion */
body.dyslexic, body.dyslexic h1, body.dyslexic h2, body.dyslexic h3, body.dyslexic h4, body.dyslexic p, body.dyslexic a, body.dyslexic li, body.dyslexic button, body.dyslexic input, body.dyslexic select, body.dyslexic textarea, body.dyslexic label, body.dyslexic .brand-name { font-family: "OpenDyslexic", var(--sans) !important; }
body.dyslexic { letter-spacing: .01em; line-height: 1.9; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
body.calm .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Acknowledgement of Country overlay ---------- */
.aoc-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(13,5,32,.62); backdrop-filter: blur(4px); padding: 1.5rem; }
.aoc-card { position: relative; overflow: hidden; background: linear-gradient(150deg, #0d0520 0%, #2c1257 55%, var(--purple-deep) 100%); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; max-width: 620px; width: 100%; padding: clamp(1.75rem, 4vw, 3rem); text-align: center; box-shadow: var(--shadow); }
.aoc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rainbow); }
.aoc-card img { width: 84px; height: auto; margin: 0 auto 1rem; background: var(--cream); border-radius: 50%; padding: 10px; }
.aoc-card .eyebrow { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.aoc-card h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.aoc-card p { max-width: 54ch; margin-inline: auto; color: rgba(255,255,255,.88); }
.aoc-card .btn { margin-top: 1.75rem; }
body.aoc-lock { overflow: hidden; }

/* ---------- Calm View (personality dialled down, info intact) ---------- */
body.calm .site-header::after, body.calm .rainbow-hairline, body.calm .tile::before,
body.calm .form-card::before, body.calm .waitlist-notice::before, body.calm .aoc-card::before { background: var(--purple-pale) !important; }
body.calm .hero { background: linear-gradient(150deg, #1c1128, var(--purple-deep)); }
body.calm .hero-visual .halo { opacity: .3; filter: blur(70px) saturate(.6); }
body.calm * { animation: none !important; transition: none !important; }
body.calm .site-header { backdrop-filter: none; }

.anchor-offset { scroll-margin-top: 90px; }

/* National commitments: breadcrumb on the deep-purple hero + external-link cards */
.surface-feature .breadcrumb { color: rgba(255,255,255,.65); }
.surface-feature .breadcrumb a { color: #fff; }
.link-card.ext::after { content: "\2197"; }

/* ---------- Community impact ---------- */
.impact-headline { margin-top: 1.75rem; }
.impact-total { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: #fff; }
.impact-period { display: block; font-family: var(--sans); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #d9c9ec; margin-top: .6rem; }

.impact-table { width: 100%; border-collapse: collapse; }
.impact-table caption { text-align: left; }
.impact-table th { text-align: left; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); padding: 0 0 .8rem; border-bottom: 2px solid var(--purple-pale); }
.impact-table th:last-child, .impact-table .val { text-align: right; }
.impact-table td { padding: 1rem 0 .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.impact-table .lbl { display: block; color: var(--text); font-size: 1.02rem; }
.impact-table .bar { display: block; height: 5px; width: var(--w, 0); min-width: 6px; margin-top: .55rem; border-radius: 3px; background: var(--rainbow); opacity: .85; }
.impact-table .val { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--purple-deep); white-space: nowrap; padding-left: 1.5rem; }
.impact-table tfoot td { border-bottom: 0; border-top: 2px solid var(--purple-pale); padding-top: 1.1rem; font-weight: 600; color: var(--text); }
.impact-table tfoot em { color: var(--text-soft); font-weight: 400; }
.impact-table .val.total { font-size: 1.7rem; color: var(--purple); }
body.calm .impact-total { color: #fff; }
body.calm .impact-table .bar { background: var(--purple-pale) !important; }

/* Footer bottom: legal identity on one line, fine print smaller below */
.footer-bottom .fb-legal { margin: 0 0 .5rem; color: #dccdf0; font-weight: 500; letter-spacing: .01em; }
.footer-bottom .fb-fine { margin: 0; font-size: .8rem; color: #b6a5d2; max-width: 96ch; line-height: 1.6; }

/* Footer brand signature tagline */
.footer-tagline { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.15; color: #fff; margin: 0 0 .85rem; }
