/* Lumen Health Navigation — clinical-calm design.
   Palette: soft teal + warm white + subtle "lumen glow" light motif.
   All text/background pairs verified WCAG AA via check_contrast.py. */

:root {
  --warm: #FDFBF6;          /* warm white */
  --paper: #FFFFFF;
  --ink: #22302E;          /* body text */
  --muted: #4E5E5B;        /* secondary text */
  --teal-deep: #0B3A36;    /* dark bands, header, footer */
  --teal: #0E6E63;         /* buttons, links, accents */
  --teal-soft: #DCEBE6;    /* soft card background */
  --teal-mist: #CDEAE1;    /* light text on dark */
  --glow: #F2C14E;         /* lumen glow gold */
  --line: #E4E1D3;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 58, 54, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--warm);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
h3 { font-size: 1.22rem; }
p { margin-bottom: 1em; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  background: var(--teal-deep); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.kicker {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.lede-big { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.glow-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #fff6dd 0%, var(--glow) 55%, rgba(242,193,78,0) 72%);
  box-shadow: 0 0 14px 5px rgba(242,193,78,.55);
  margin-right: .5rem; vertical-align: baseline;
}

/* ---------- Top bar / nav ---------- */
.topbar { background: var(--teal-deep); color: #fff; }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-name { font-family: Georgia, serif; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.25; }
.brand-name small {
  display: block; font-family: "Inter", Arial, sans-serif; font-size: .66rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--glow);
}
.nav { display: flex; gap: 1.15rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: #fff; text-decoration: none; font-size: .93rem; letter-spacing: .02em;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--glow); }
.nav a.active { color: var(--glow); border-bottom-color: var(--glow); }
.nav-cta {
  border: 1.5px solid var(--glow); border-radius: 999px;
  padding: .42rem 1.1rem !important; font-weight: 700;
}
.nav-cta:hover { background: var(--glow); color: var(--teal-deep) !important; }

/* ---------- Hero ---------- */
.hero { background: var(--teal-deep); color: #fff; overflow: hidden; position: relative; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 18% 30%, rgba(242,193,78,.16) 0%, rgba(242,193,78,0) 70%),
    linear-gradient(115deg, rgba(11,58,54,.93) 0%, rgba(11,58,54,.72) 48%, rgba(11,58,54,.45) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 16ch; }
.hero h1 .glow-word { color: var(--glow); }
.hero .lede { font-size: 1.18rem; color: #e7efec; max-width: 36rem; }
.hero .hero-cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero .hero-note { margin-top: 1.2rem; font-size: .9rem; color: var(--teal-mist); max-width: 38rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--teal); color: #fff !important;
  font-weight: 700; text-decoration: none; border-radius: 999px;
  padding: .8rem 1.7rem; border: 2px solid var(--teal);
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff !important; }
.btn-ghost {
  background: transparent; color: var(--glow) !important; border: 2px solid var(--glow);
}
.btn-ghost:hover { background: var(--glow); color: var(--teal-deep) !important; border-color: var(--glow); }
.btn-light { background: var(--paper); color: var(--teal-deep) !important; border-color: var(--paper); }
.btn-light:hover { background: var(--glow); border-color: var(--glow); color: var(--teal-deep) !important; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: .4rem; }
.card .icon { width: 46px; height: 46px; margin-bottom: .8rem; }
.price-card { border-top: 4px solid var(--teal); }
.price-card.featured { border-top-color: var(--glow); background: #fffef9; }
.price { font-family: Georgia, serif; font-size: 2rem; color: var(--teal-deep); }
.price small { font-family: "Inter", sans-serif; font-size: .9rem; color: var(--muted); }

/* ---------- Dark band ---------- */
.band-dark { background: var(--teal-deep); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 60% at 82% 20%, rgba(242,193,78,.14) 0%, rgba(242,193,78,0) 70%);
}
.band-dark h2 { color: #fff; }
.band-dark p { color: var(--teal-mist); }
.band-dark .band-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Signal map ---------- */
.signalmap { background: var(--teal-deep); padding: 4rem 0; }
.signalmap .sm-kicker {
  display: block; text-align: center; font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--glow); margin-bottom: 1.2rem;
}
.signalmap svg { display: block; width: 100%; height: auto; max-width: 1060px; margin: 0 auto; }
.signalmap .sm-core { animation: smpulse 3.4s ease-in-out infinite; }
@keyframes smpulse { 0%,100% { opacity: .72; } 50% { opacity: 1; } }

/* ---------- Transparency ---------- */
.tpromise { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.tpromise li { padding: .7rem 0 .7rem 2.4rem; position: relative; font-size: 1.03rem; line-height: 1.6; }
.tpromise li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff6dd 0%, var(--glow) 55%, rgba(242,193,78,0) 75%);
  box-shadow: 0 0 12px 4px rgba(242,193,78,.5);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.steps li {
  counter-increment: step; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 5rem; position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.4rem; top: 1.4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.6rem; }
.faq-list details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .9rem; box-shadow: var(--shadow);
}
.faq-list summary {
  padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 700; color: var(--teal-deep);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); flex: 0 0 auto; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 1.4rem 1.4rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--teal-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .95rem; font-size: 1rem; font-family: inherit;
  border: 1.5px solid #c9cfc9; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,110,99,.25);
}
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Affiliates ---------- */
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 30px 0; }
.aff-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center;
  background: var(--paper); box-shadow: var(--shadow); position: relative;
}
.aff-card.flagship { border: 2px solid var(--glow); background: #fffdf4; }
.aff-mono {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; font-weight: 700; background: var(--teal-deep); color: var(--glow);
}
.aff-flag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-deep); background: #f7e7bd; border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.aff-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.aff-card p { color: var(--muted); font-size: .93rem; margin: 0 0 10px; }
.aff-card a.aff-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--glow); color: inherit; }
.aff-here { position: absolute; top: 10px; right: 12px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-deep); background: #f7e7bd; border-radius: 999px; padding: 3px 10px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; margin-top: 2rem; }
.founder-pic { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.founder-caption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.scope-box {
  background: var(--teal-soft); border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; margin: 1.8rem 0;
}

/* ---------- Footer ---------- */
footer { background: var(--teal-deep); color: #fff; margin-top: 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 1rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
}
footer h4 { color: var(--glow); font-size: 1rem; margin-bottom: .7rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .45rem; }
footer a { color: #fff; }
footer a:hover { color: var(--glow); }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: var(--teal-mist);
}
.footer-legal { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 2rem; font-size: .82rem; color: var(--teal-mist); }
.footer-legal p { margin-bottom: .5rem; }
.nl-block { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 1rem; }
.transparency-line { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 1.6rem; font-size: .85rem; color: var(--teal-mist); }

/* ---------- Accessibility toolbar ---------- */
.a11y-toolbar {
  position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 9980;
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow);
}
.a11y-toolbar button {
  width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--teal-deep); font-weight: 700; font-size: .8rem; cursor: pointer;
}
.a11y-toolbar button:hover { border-color: var(--teal); }
.a11y-toolbar button[aria-pressed="true"] { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.a11y-toolbar button:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* High contrast mode */
html.hc body { background: #fff; color: #000; }
html.hc h1, html.hc h2, html.hc h3 { color: #000; }
html.hc p, html.hc .lede-big, html.hc .card p, html.hc .steps p, html.hc .faq-body { color: #111; }
html.hc a { color: #0000EE; }
html.hc .topbar, html.hc footer, html.hc .band-dark, html.hc .hero, html.hc .signalmap { background: #000; }
html.hc .card, html.hc .steps li, html.hc .faq-list details, html.hc .form-card, html.hc .aff-card { background: #fff; border: 2px solid #000; }
html.hc .btn { background: #000; border-color: #000; color: #fff !important; }
html.hc .hero-scrim { background: rgba(0,0,0,.75); }
html.hc .kicker, html.hc .brand-name small, html.hc footer h4, html.hc .signalmap .sm-kicker { color: #FFD700; }
html.hc .glow-word { color: #FFD700; }
html.hc .glow-dot, html.hc .tpromise li::before { box-shadow: none; background: #FFD700; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signalmap .sm-core { animation: none; }
  * { transition: none !important; animation: none !important; }
}
html.rm .signalmap .sm-core { animation: none !important; }
html.rm * { transition: none !important; animation: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .founder-pic { max-width: 300px; }
  .nav { gap: .85rem; }
  .nav a { font-size: .86rem; }
  .topbar-inner { flex-wrap: wrap; }
  .hero-inner { padding: 3.5rem 1.5rem; }
  .section { padding: 3rem 0; }
  .a11y-toolbar { top: auto; bottom: 96px; transform: none; left: 8px; }
}


/* Tree of Life quote + donation match (site-wide footer) */
.tree-of-life{text-align:center;padding:20px 22px 8px;max-width:780px;margin:0 auto}
.tree-quote{font-style:italic;font-size:1.06rem;line-height:1.55;margin:0 0 6px}
.tree-match{font-size:.92rem;opacity:.85;margin:0;line-height:1.5}
