/* Sanbridge Outreach Learning Center Inc. | styles.css
   Palette sampled from the affiliate's site and logo so the two read as one family. */

:root {
  --navy: #254494;        /* headings, dark bands (affiliate heading navy) */
  --navy-deep: #1B3272;   /* footer */
  --blue: #3469F6;        /* buttons and links (affiliate button blue, 4.67:1 on white) */
  --blue-press: #2A56D6;  /* hover and active */
  --sun: #F7CE46;         /* yellow band (affiliate section yellow) */
  --lime: #CFFD84;        /* card fill */
  --blossom: #F4B7EC;     /* card fill */
  --peach: #F9DA92;       /* card fill */
  --apple: #EB4B3E;       /* accent, from affiliate icon red */
  --leaf: #2F7A37;        /* "Active" badge; darkened affiliate green for 5.3:1 with white */
  --mist: #EEEEEE;        /* soft card and panel */
  --stone: #4A4A4A;       /* secondary text on mist (7.6:1) */
  --ink: #000000;
  --white: #FFFFFF;

  --logo-red: #EA1004;
  --logo-yellow: #F8C611;
  --logo-blue: #0000FE;
  --logo-green: #03A14A;

  --font-display: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-ui: "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;

  --radius-card: 2.25rem;
  --radius-panel: 1.25rem;
  --radius-pill: 999px;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.75rem;
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1rem; max-width: 68ch; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-press); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  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; left: 1rem; top: -4rem;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-weight: 700; z-index: 200;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Placeholders and launch notes ---------- */

.ph {
  background: #FFFF00;
  color: var(--ink);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  outline: 1px dashed #8A7A00;
  font-weight: 600;
}

.launch-note {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  border: 2px dashed #B42318;
  background: #FFF1EF;
  color: #7A1A10;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 68ch;
}
.launch-note p { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-press); color: var(--white); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--mist); color: var(--blue-press); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #E2E2E2;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.lockup {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--navy);
}
.lockup svg { width: 2.6rem; height: 2.6rem; flex: none; }
.lockup-text { display: flex; flex-direction: column; line-height: 1.05; }
.lockup-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.05rem; letter-spacing: 0.01em;
}
.lockup-sub {
  font-family: var(--font-ui); font-weight: 600;
  font-size: 0.8rem; color: var(--stone);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { min-height: 2.75rem; padding: 0.5rem 1.35rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem;
  border: 2px solid var(--navy); border-radius: 50%;
  background: var(--white); color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.15rem; height: 2px; background: currentColor;
  position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 4px solid var(--sun);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1.25rem; }
.site-nav a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid #ECECEC;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 800; }
.site-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 4px; width: 2.25rem;
  background: var(--sun); border-radius: 2px; margin-top: 0.3rem;
}

@media (min-width: 84em) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; border: 0; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 1.1rem; padding: 0; }
  .site-nav a { white-space: nowrap; }
  .site-nav a {
    border: 0; padding: 0.4rem 0; font-size: 1rem; position: relative;
  }
  .site-nav a[aria-current="page"]::after {
    position: absolute; left: 0; right: 0; bottom: -0.25rem; width: auto; margin: 0;
  }
  .header-inner { position: relative; }
}

@media (max-width: 26em) {
  .lockup-sub { display: none; }
  .header-actions .btn { padding: 0.45rem 1rem; }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.band-sun { background: var(--sun); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a:not(.btn) { color: var(--white); }
.band-mist { background: var(--mist); }

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; }

/* Page intro for interior pages */
.page-intro { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-intro h1 { color: var(--white); margin-bottom: 1rem; }
.page-intro p { color: var(--white); }
.page-intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(90deg, var(--logo-red) 0 25%, var(--logo-yellow) 25% 50%, var(--blue) 50% 75%, var(--logo-green) 75% 100%);
}

/* ---------- Home hero ---------- */

.hero {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lede { color: var(--white); max-width: 58ch; }
.hero-meta {
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600;
  color: var(--sun); margin-top: 1.5rem;
}
.hero-art { max-width: 14rem; margin: 0 auto; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: linear-gradient(90deg, var(--logo-red) 0 25%, var(--logo-yellow) 25% 50%, var(--blue) 50% 75%, var(--logo-green) 75% 100%);
}
@media (min-width: 52em) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-art { max-width: 26rem; }
}

/* The one page-load animation: the sprout's leaves open once on the home page. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .leaf { transform-box: fill-box; transform-origin: bottom center; animation: leaf-open 0.9s cubic-bezier(.2,.8,.2,1) both; }
  .hero-art .leaf-2 { animation-delay: 0.12s; }
  .hero-art .leaf-3 { animation-delay: 0.24s; }
  .hero-art .leaf-4 { animation-delay: 0.36s; }
  @keyframes leaf-open { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* ---------- Color cards (family pattern shared with the affiliate) ---------- */

.card-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48em) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40em) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.color-card {
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.color-card p { font-weight: 600; }
.color-card .btn { align-self: flex-start; margin-top: auto; }
.fill-lime { background: var(--lime); }
.fill-blossom { background: var(--blossom); }
.fill-peach { background: var(--peach); }
.fill-mist { background: var(--mist); }
.fill-mist p { color: var(--stone); }

.card-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 0.5rem; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem;
  padding: 0.25rem 0.8rem; border-radius: var(--radius-pill);
}
.badge::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--leaf); color: var(--white); }
.badge-dev { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.badge-tbd { background: #FFFF00; color: var(--ink); border: 1px dashed #8A7A00; }

/* ---------- Teaser split ---------- */

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52em) { .split { grid-template-columns: 1.2fr 1fr; } }

.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-panel);
  background:
    repeating-linear-gradient(45deg, rgba(37,68,148,0.06) 0 12px, transparent 12px 24px),
    var(--white);
  border: 3px dashed var(--navy);
  display: grid; place-items: center; text-align: center;
  padding: 1.5rem;
  font-family: var(--font-ui); font-weight: 600; color: var(--navy);
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-ui); font-weight: 700; }
.field .hint { font-size: 0.9rem; color: var(--stone); margin: 0; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink);
  padding: 0.75rem 1rem;
  border: 2px solid #767676;
  border-radius: 12px;
  background: var(--white);
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-weight: 600; font-size: 0.95rem; margin: 0; }
.field-error:empty { display: none; }
.req { color: #B42318; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 12px; padding: 0.9rem 1.1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { background: #E7F5E9; color: #1E5A25; border: 2px solid var(--leaf); }
.form-status.is-error { background: #FFF1EF; color: #8A1C12; border: 2px solid #B42318; }

.newsletter-form { display: grid; gap: 1rem; }
@media (min-width: 40em) {
  .newsletter-form .inline-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
}
.fine-print { font-size: 0.9rem; }

/* ---------- Program filter ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0.5rem; }
.filter-btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  padding: 0.55rem 1.25rem; border-radius: var(--radius-pill);
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  cursor: pointer; min-height: 2.75rem;
}
.filter-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.program-list { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.program-card[hidden] { display: none; }
.program-card h2 { margin: 0; }
.program-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ---------- Comparison ---------- */

.compare { margin-top: 2rem; }
.tablist { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tab {
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  padding: 0.6rem 1.2rem; min-height: 2.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.compare-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48em) {
  .compare-grid[data-view="both"] { grid-template-columns: 1fr 1fr; }
}
.compare-grid[data-view="nonprofit"] .col-llc,
.compare-grid[data-view="llc"] .col-np { display: none; }
.compare-col { border-radius: var(--radius-panel); padding: clamp(1.25rem, 3vw, 2rem); }
.col-np { background: var(--lime); color: var(--navy); }
.col-llc { background: var(--white); color: var(--ink); border: 2px solid #8C8C8C; }
.col-llc h3 { color: var(--ink); }
.compare-col ul { margin: 0; padding-left: 1.2rem; }
.compare-col li { margin-bottom: 0.6rem; font-weight: 600; }
.compare-col .col-sub { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.compare-closing {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  border-left: 8px solid var(--sun); background: var(--white);
  font-weight: 700; color: var(--navy); border-radius: 0 12px 12px 0;
}

/* ---------- Accordion ---------- */

.accordion { margin-top: 1.5rem; display: grid; gap: 0.75rem; max-width: 52rem; }
.acc-item { border-radius: var(--radius-panel); background: var(--white); border: 2px solid var(--navy); overflow: hidden; }
.acc-item h3 { margin: 0; font-size: 1.1rem; }
.acc-trigger {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--navy); background: var(--white); border: 0; cursor: pointer;
}
.acc-trigger .acc-icon { flex: none; width: 1.5rem; height: 1.5rem; position: relative; }
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 1rem; height: 3px; background: var(--blue);
  transform: translate(-50%, -50%); border-radius: 2px;
}
.acc-trigger .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { padding: 0 1.25rem 1.1rem; }
.acc-panel[hidden] { display: none; }

/* ---------- People ---------- */

.people { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48em) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--mist); border-radius: var(--radius-card); padding: 1.75rem; }
.avatar {
  width: 6rem; height: 6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem;
  color: var(--navy); margin-bottom: 1rem;
  border: 3px dashed var(--navy);
}
.person h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.person .role { font-family: var(--font-ui); font-weight: 700; color: var(--stone); margin-bottom: 0.75rem; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid #D5D5D5; vertical-align: top; }
.data-table th { font-family: var(--font-ui); color: var(--navy); }
.table-scroll { overflow-x: auto; }

.facts { display: grid; gap: 0; margin: 1.5rem 0 0; max-width: 52rem; border-top: 2px solid var(--navy); }
.facts > div { display: grid; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid #D5D5D5; }
@media (min-width: 40em) { .facts > div { grid-template-columns: 16rem 1fr; gap: 1.5rem; } }
.facts dt { font-family: var(--font-ui); font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; }

/* ---------- Disclosure ---------- */

.disclosure {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-panel);
  padding: 1.25rem 1.5rem;
  max-width: 52rem;
}
.disclosure p { margin: 0; font-weight: 600; color: var(--navy); }
.disclosure-label { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--navy); margin: 0 0 0.4rem; }

/* ---------- Prose pages ---------- */

.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { max-width: 68ch; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.list-plain { list-style: none; padding: 0; margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: var(--white); padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .lockup { color: var(--white); }
.site-footer .lockup-sub { color: #D6DDF0; }
.footer-heading { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin: 0 0 0.75rem; color: var(--sun); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-disclosure { margin-top: 1.25rem; font-size: 0.95rem; color: #E6EAF5; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.25); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer .ph { color: var(--ink); }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--blue); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.to-top[hidden] { display: none; }
.to-top svg { width: 1.4rem; height: 1.4rem; }
.to-top:hover { background: var(--blue-press); }

@media print {
  .site-header, .to-top, .site-nav { display: none !important; }
}

.hero-art svg { width: 100%; height: auto; }
.card-icon { width: 3.5rem; height: 3.5rem; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--sun); color: var(--ink); font-family: var(--font-ui); font-weight: 700; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.announce p { margin: 0; padding: 0.5rem 0; font-size: 0.95rem; max-width: none; }
.announce a { color: var(--navy); font-weight: 800; }
.announce-close {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.announce-close svg { width: 1rem; height: 1rem; }
.announce-close:hover { background: var(--white); }

/* ---------- Interactive sprout ---------- */
.sprout-explorer { display: grid; gap: 1.25rem; justify-items: center; }
.sprout-explorer .hero-art { max-width: 15rem; width: 100%; }
@media (min-width: 52em) { .sprout-explorer .hero-art { max-width: 19rem; } }
.hero-art .leaf { cursor: pointer; }
.hero-art .leaf ellipse { transition: opacity 0.2s ease, stroke-width 0.2s ease; stroke: var(--navy); stroke-width: 0; }
.sprout-explorer.has-active .leaf:not(.is-active) ellipse { opacity: 0.35; }
.hero-art .leaf.is-active ellipse { stroke-width: 5; }

.leaf-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.leaf-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--white); background: transparent; color: var(--white);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.leaf-chip::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--chip); flex: none; }
.chip-red { --chip: var(--logo-red); }
.chip-sun { --chip: var(--white); }
.chip-blue { --chip: #8FB0FF; }
.chip-green { --chip: var(--logo-green); }
.leaf-chip[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.leaf-chip[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--navy); }
.leaf-chip:hover { background: rgba(255,255,255,0.15); }
.leaf-chip[aria-pressed="true"]:hover { background: var(--white); }

.leaf-panel {
  width: 100%; max-width: 26rem;
  background: var(--white); color: var(--navy);
  border-radius: var(--radius-panel); padding: 1.25rem 1.4rem;
  border-bottom: 6px solid var(--sun);
}
.leaf-panel [hidden] { display: none; }
.leaf-panel p { color: var(--ink); margin-bottom: 0.6rem; }
.hero .leaf-panel .leaf-title { color: var(--navy); font-size: 1.35rem; margin-bottom: 0.4rem; }
.hero .leaf-panel a { color: var(--blue); font-family: var(--font-ui); font-weight: 700; }

/* ---------- Ticker banner ---------- */
.ticker { background: var(--sun); position: relative; overflow: hidden; display: flex; align-items: center; border-bottom: 4px solid var(--navy); }
.ticker-track { display: flex; width: max-content; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.25rem, 3vw, 2rem); color: var(--ink);
  padding: 1rem 0;
}
.ticker-list li::after {
  content: ""; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  margin: 0 1.6rem; background: var(--logo-red);
}
.ticker-list li:nth-child(4n+2)::after { background: var(--navy); }
.ticker-list li:nth-child(4n+3)::after { background: var(--logo-green); }
.ticker-list li:nth-child(4n+4)::after { background: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: auto; padding: 0 var(--gutter); }
  .ticker-list { flex-wrap: wrap; justify-content: center; }
  .ticker-list[aria-hidden="true"], .ticker-pause { display: none; }
}
.ticker-pause {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  min-height: 2.5rem; padding: 0.35rem 1rem; border-radius: var(--radius-pill);
  border: 2px solid var(--white); background: var(--navy); color: var(--white);
  font-family: var(--font-ui); font-weight: 700; cursor: pointer;
}

/* ---------- Page header variants + illustrations ---------- */
.intro-grid { display: grid; gap: 1.5rem; align-items: center; }
.intro-art { width: 9rem; }
@media (min-width: 48em) {
  .intro-grid { grid-template-columns: 1fr auto; gap: 3rem; }
  .intro-art { width: 13rem; }
}
.page-intro.intro-lime { background: var(--lime); }
.page-intro.intro-blossom { background: var(--blossom); }
.page-intro.intro-peach { background: var(--peach); }
.page-intro.intro-sun { background: var(--sun); }
.page-intro.intro-mist { background: var(--mist); }
.page-intro:not(.intro-navy) h1 { color: var(--navy); }
.page-intro:not(.intro-navy) p { color: var(--ink); }

/* ---------- Gift picker ---------- */
.give-picker h3 { margin-bottom: 0.25rem; }
.amounts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 30em) { .amounts { grid-template-columns: repeat(4, 1fr); } }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amount span {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.25rem; border-radius: 14px;
  background: var(--white); color: var(--navy);
  border: 3px solid var(--navy);
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
}
.amount input:checked + span { background: var(--navy); color: var(--white); }
.amount input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.other-amount[hidden] { display: none; }
.impact { min-height: 3rem; }
.impact p { color: var(--ink); font-weight: 600; margin: 0; }
.impact [hidden] { display: none; }

/* ---------- Discovery Roots explorer ---------- */
.roots-explorer { background: var(--white); border-radius: var(--radius-panel); padding: 1.25rem; margin-top: 0.5rem; color: var(--ink); }
.roots-explorer h3 { font-size: 1.2rem; }
.plant-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.plant-btn {
  min-height: 2.75rem; padding: 0.45rem 1.1rem; border-radius: var(--radius-pill);
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font-family: var(--font-ui); font-weight: 700; cursor: pointer;
}
.plant-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.stream-grid { display: grid; gap: 0.6rem; margin: 0; }
@media (min-width: 48em) { .stream-grid { grid-template-columns: repeat(5, 1fr); } }
.stream-grid[hidden] { display: none; }
.stream-grid > div { background: var(--mist); border-radius: 14px; padding: 0.85rem; }
.stream-grid dt { font-family: var(--font-ui); font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.stream-grid dd { margin: 0; font-weight: 600; font-size: 0.95rem; }
.stream-letter {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 900; color: var(--white); background: var(--navy);
}
.stream-grid > div:nth-child(1) .stream-letter { background: #C20D03; }
.stream-grid > div:nth-child(2) .stream-letter { background: var(--blue); }
.stream-grid > div:nth-child(3) .stream-letter { background: var(--leaf); }
.stream-grid > div:nth-child(4) .stream-letter { background: #8A5A00; }
.stream-grid > div:nth-child(5) .stream-letter { background: var(--navy); }
.roots-explorer .fine-print { color: var(--stone); margin: 0.85rem 0 0; font-weight: 400; }

/* ---------- Countdown ---------- */
.countdown { margin-top: 1.25rem; }
.countdown-live { display: flex; align-items: center; gap: 1rem; margin: 0; }
.countdown-live[hidden] { display: none; }
.countdown-num {
  display: grid; place-items: center; min-width: 5.5rem; height: 5.5rem; padding: 0 0.75rem;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: 2.3rem;
  border: 4px solid var(--white);
}
.countdown-label { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); max-width: 12ch; line-height: 1.2; }
.countdown-fallback[hidden] { display: none; }

/* ---------- Animated page titles (hero and page headers) ---------- */
.title-squiggle { display: block; width: min(16rem, 70%); height: 1rem; margin: -0.25rem 0 1.1rem; overflow: visible; }
.title-squiggle path { fill: none; stroke: url(#squiggle-grad); stroke-width: 6; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero h1, .js .page-intro h1 { visibility: hidden; }
  .js .hero h1.anim-title, .js .page-intro h1.anim-title { visibility: visible; }

  .anim-title .w {
    display: inline-block;
    animation: word-rise 0.7s cubic-bezier(.2, .9, .3, 1.35) both;
    animation-delay: calc(var(--i) * 90ms);
  }
  @keyframes word-rise {
    from { opacity: 0; transform: translateY(0.7em) rotate(-6deg) scale(0.9); }
    to { opacity: 1; transform: none; }
  }

  .title-squiggle path {
    stroke-dasharray: 400; stroke-dashoffset: 400;
    animation: squiggle-draw 0.9s ease-out forwards;
    animation-delay: var(--draw-delay, 0.5s);
  }
  @keyframes squiggle-draw { to { stroke-dashoffset: 0; } }

  .intro-art svg { animation: art-pop 0.8s cubic-bezier(.2, .9, .3, 1.4) 0.25s both; }
  @keyframes art-pop {
    from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
    to { opacity: 1; transform: none; }
  }
  .intro-art svg:hover { animation: art-wiggle 0.6s ease-in-out; }
  @keyframes art-wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
  }
}
/* Failsafe: reveal titles even if the script never runs */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1:not(.anim-title), .js .page-intro h1:not(.anim-title) { animation: title-failsafe 0s 1.5s forwards; }
  @keyframes title-failsafe { to { visibility: visible; } }
}

/* ---------- Living vine (Home) ---------- */
main { position: relative; }
.vine-layer { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 3; }
.vine-layer svg { position: absolute; top: 0; left: 0; overflow: visible; }
.vine-track { fill: none; stroke: #03A14A; stroke-opacity: 0.18; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }
.vine-main { fill: none; stroke: #03A14A; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.vine-flow { fill: none; stroke: #F8C611; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 18; }
.vine-seed { stroke: #FFFFFF; stroke-width: 2.5; }
.vine-leaf-inner { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.6s cubic-bezier(.2,.9,.3,1.5); }
.vine-leaf.on .vine-leaf-inner { transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .vine-flow { animation: vine-flow 3s linear infinite; }
  @keyframes vine-flow { to { stroke-dashoffset: -180; } }
}
.motion-paused .vine-flow, .motion-paused .ticker-track { animation-play-state: paused !important; }

/* ---------- Help it grow band ---------- */
.grow-band { position: relative; }
.grow-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48em) { .grow-grid { grid-template-columns: minmax(14rem, 22rem) 1fr; gap: 3.5rem; } }
.bloom-wrap { width: min(18rem, 70vw); margin: 0 auto; }
.bloom { width: 100%; height: auto; overflow: visible; }
.plant-stem { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--stem, 0.06)); transition: transform 0.7s cubic-bezier(.2,.9,.3,1.2); }
.plant-bud { transform: translateY(var(--bud, 160px)); opacity: var(--bud-o, 0); transition: transform 0.7s cubic-bezier(.2,.9,.3,1.2), opacity 0.4s ease; }
.plant-leaf { transform-box: fill-box; transform: scale(0); transition: transform 0.55s cubic-bezier(.2,.9,.3,1.5); }
.plant-leaf.leaf-l { transform-origin: 100% 60%; }
.plant-leaf.leaf-r { transform-origin: 0% 60%; }
.plant-leaf.on { transform: scale(1); }
.amounts-3 { grid-template-columns: repeat(3, 1fr) !important; max-width: 24rem; margin-top: 1rem; }
.band-navy .amount span { border-color: var(--white); }
.band-navy .amount input:checked + span { background: var(--sun); color: var(--navy); border-color: var(--sun); }
.band-navy .amount input:focus-visible + span { outline-color: var(--sun); }
.grow-band .launch-note { color: #7A1A10; }

.motion-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  min-height: 2.75rem; padding: 0.4rem 1.1rem; border-radius: var(--radius-pill);
  border: 2px solid var(--white); background: var(--navy); color: var(--white);
  font-family: var(--font-ui); font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* ---------- Partner page ---------- */
.priority-list { counter-reset: pri; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; max-width: 40rem; }
.priority-list li { counter-increment: pri; display: flex; gap: 0.9rem; align-items: center; font-weight: 600; font-size: 1.1rem; }
.priority-list li::before {
  content: counter(pri); flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 900;
}
.lockup-name, .lockup-sub { white-space: nowrap; }

/* ---------- Presentation additions ---------- */
.art-panel { background: var(--white); border-radius: var(--radius-card); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 26rem; margin: 0 auto; width: 100%; }
.glance { margin: 0.5rem 0 0; display: grid; gap: 0; }
.glance > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 2px solid rgba(37,68,148,0.2); }
.glance > div:last-child { border-bottom: 0; }
.glance dt { font-family: var(--font-ui); font-weight: 700; color: var(--navy); }
.glance dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.avatar { border: 4px solid var(--white); color: var(--navy); box-shadow: 0 0 0 3px var(--navy); }
.person:nth-child(1) .avatar { background: var(--lime); }
.person:nth-child(2) .avatar { background: var(--blossom); }
.person:nth-child(3) .avatar { background: var(--peach); }

/* ---------- Official logo ---------- */
.lockup-logo img { height: 4rem; width: auto; display: block; }
@media (max-width: 26em) { .lockup-logo img { height: 3.1rem; } }
.site-header .header-inner { min-height: 4.75rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 18px; padding: 0.6rem 0.9rem; }
.footer-logo img { height: 4.5rem; width: auto; display: block; }
