/* Layout: deep-teal operatory bands alternating with pale clinical surfaces; one teal accent for every action. */
:root {
  --ink: #13201F;
  --ink-soft: #3B4A48;
  --ink-faint: #56625F;
  --paper: #F4F6F5;
  --surface: #FFFFFF;
  --tint: #EAF2F0;
  --line: #D5DEDC;
  --band: #0E2A28;
  --band-deep: #0A1F1D;
  --band-ink: #FFFFFF;
  --band-soft: #D0E2DE;
  --band-mint: #7FD6C9;
  --accent: #0B7A70;
  --accent-ink: #FFFFFF;
  --accent-text: #0B5C55;
  --warn: #F2B27A;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(14, 42, 40, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6EEEC; --ink-soft: #B8C7C4; --ink-faint: #9AABA7;
    --paper: #0C1716; --surface: #13211F; --tint: #182B29; --line: #2A3F3C;
    --band: #0A1F1D; --band-deep: #071514; --band-soft: #C3D6D2;
    --accent: #2BA597; --accent-ink: #04110F; --accent-text: #7FD6C9;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E6EEEC; --ink-soft: #B8C7C4; --ink-faint: #9AABA7;
  --paper: #0C1716; --surface: #13211F; --tint: #182B29; --line: #2A3F3C;
  --band: #0A1F1D; --band-deep: #071514; --band-soft: #C3D6D2;
  --accent: #2BA597; --accent-ink: #04110F; --accent-text: #7FD6C9;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--band-mint); outline-offset: 2px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 860px; }
.section { padding-block: 88px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.band .eyebrow { color: var(--band-mint); }
.h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); }
.lead { font-size: 21px; color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px; border-radius: 10px;
  font-family: var(--body); font-weight: 700; font-size: 18px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--band-mint); color: var(--band-ink); }
.btn-dark { background: var(--band); color: var(--band-ink); }
.btn-block { width: 100%; }

/* Bands */
.band { background: var(--band); color: var(--band-ink); }
.band p { color: var(--band-soft); }

/* Nav */
.nav { background: var(--band); color: var(--band-ink); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; color: var(--band-ink); text-decoration: none; }
.brand span { color: var(--band-mint); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 16px; }
.nav-links a:not(.btn) { color: var(--band-soft); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--band-ink); }
.nav-links .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Hero */
.hero { padding-block: 56px 96px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; }
.hero .lead { color: var(--band-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; color: var(--band-soft); }
.facts span::before { content: "●"; color: var(--band-mint); font-size: 9px; vertical-align: middle; margin-right: 8px; }
.photo {
  width: 100%; max-width: 100%; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 32px; font-size: 16px;
  background: var(--tint); border: 1px dashed var(--line); color: var(--ink-soft);
}
.band .photo { background: #1D403D; border-color: #4E7B76; color: var(--band-soft); }
.photo-tall { aspect-ratio: 4 / 5; max-height: 560px; }
.photo-square { aspect-ratio: 1 / 1; max-width: 460px; }

/* Proof strip */
.proof { margin-top: -52px; position: relative; }
.proof-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.stat-text { font-size: 16px; color: var(--ink-soft); margin-top: 8px; }

/* Outcomes */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.tile { background: var(--surface); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 21px; }
.tile p { font-size: 17px; color: var(--ink-soft); }
.tile svg { stroke: var(--accent-text); }

/* Curriculum */
.curriculum { background: var(--surface); }
.module { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.module-head { background: var(--tint); padding: 14px 22px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.module.bonus { border: 2px solid var(--accent); }
.module.bonus .module-head { background: var(--band); color: var(--band-ink); }
.lesson { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; }
.lesson + .lesson { border-top: 1px solid var(--line); }
.lesson .len { color: var(--ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { font-size: 16px; color: var(--ink-faint); }

/* Instructor */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: center; }

/* Fit lists */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist div { display: flex; gap: 12px; color: var(--band-soft); }
.checklist .yes { color: var(--band-mint); font-weight: 700; }
.checklist .no { color: var(--warn); font-weight: 700; }

/* Testimonials */
.quote { background: var(--surface); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote p { font-size: 19px; }
.quote .who { font-weight: 700; font-size: 16px; }
.quote .who span { font-weight: 400; color: var(--ink-faint); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 20px; }
.price-card.featured { border: 2px solid var(--accent); }
.tier { font-family: var(--display); font-weight: 700; font-size: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pill { background: var(--tint); color: var(--accent-text); font-family: var(--body); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--ink-faint); }
.price strong { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.includes { display: flex; flex-direction: column; gap: 10px; font-size: 17px; margin: 0; padding: 0; list-style: none; }
.includes li::before { content: "✓"; color: var(--accent-text); font-weight: 700; margin-right: 10px; }
.price-card .btn { margin-top: auto; }
.notes { background: var(--tint); border-radius: 14px; padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; font-size: 17px; }

/* FAQ */
.faq { background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin-top: 8px; }

/* Final CTA + footer */
.final { text-align: center; }
.final .stack { align-items: center; max-width: 760px; margin: 0 auto; }
.final h2 { font-weight: 800; font-size: clamp(32px, 4vw, 50px); }
.footer { background: var(--band-deep); color: var(--band-soft); font-size: 14px; }
.footer .wrap { display: flex; flex-direction: column; gap: 8px; padding-block: 32px; }
.footer a { color: var(--band-soft); }

/* Forms */
.form-card { background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select {
  font: inherit; font-size: 17px; min-height: 50px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.fine { font-size: 14px; color: var(--ink-faint); }
.form-error { color: #B42318; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #F4A7A0; } }
:root[data-theme="dark"] .form-error { color: #F4A7A0; }

/* Simple text pages */
.doc { max-width: 760px; }
.doc h2 { font-size: 24px; margin-top: 12px; }
.doc p, .doc li { color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.step-n { font-family: var(--display); font-weight: 800; color: var(--accent-text); font-size: 15px; letter-spacing: .1em; }

/* Healthspan U home */
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 9vw, 120px); line-height: .9; letter-spacing: -0.03em; }
.wordmark span { color: var(--band-mint); }
.definition { border-left: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 40px; align-items: baseline; }
.definition .term { font-family: var(--display); font-weight: 800; font-size: 34px; }
.definition .pos { font-style: italic; color: var(--ink-faint); font-weight: 400; font-size: 20px; margin-left: 8px; }
.definition p { font-size: 19px; color: var(--ink-soft); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pillar { background: var(--surface); padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.pillar h3 { font-size: 20px; }
.pillar p { font-size: 16px; color: var(--ink-soft); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.course-card .cover { background: var(--band); color: var(--band-ink); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; justify-content: flex-end; }
.course-card .cover h3 { font-size: 28px; font-weight: 800; }
.course-card .body { padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-faint); }
.course-card .body .btn { margin-top: auto; align-self: flex-start; }
.status { display: inline-flex; align-self: flex-start; font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--band-mint); color: #06302B; }
.course-card.soon { border-style: dashed; }
.course-card.soon .cover { background: var(--tint); color: var(--ink); }
.course-card.soon .status { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }
.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.signup .field { flex: 1 1 220px; min-width: 0; }
.signup .field label { color: var(--band-ink); }
.signup-done { font-weight: 700; color: var(--band-mint); }
