/* =========================================================
   HEALTHY HEADS - DESIGN TOKENS
   ========================================================= */
:root {
  /* Color */
  --bg:            #DCE7D5;   /* deeper sage paper */
  --bg-alt:        #CFDDC6;
  --ink:           #16261C;   /* near-black, green-leaning */
  --ink-soft:      #45564B;
  --primary:       #1F4D3A;   /* deep forest green */
  --primary-dark:  #143529;
  --primary-soft:  #4C7A5E;   /* sage mid-green */
  --accent:        #D8A93B;   /* turmeric gold */
  --accent-dark:   #B98A24;
  --card:          #FFFFFF;
  --line:          rgba(22, 38, 28, 0.12);
  --line-soft:     rgba(22, 38, 28, 0.07);
  --danger:        #B4452F;
  --warn:          #C98A2C;
  --good:          #2E7D4F;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --maxw: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 4px rgba(22,38,28,0.04), 0 12px 32px rgba(22,38,28,0.08);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--primary-dark); margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 0.6rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--primary); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn--full { width: 100%; margin-top: 0.75rem; }
.btn--accent { background: var(--accent); color: var(--primary-dark); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(220, 231, 213, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; }
.nav__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: #fff;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
}
.nav__logo-img { height: 80px; width: auto; display: block; mix-blend-mode: multiply; }
.nav__logo-word { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--primary-dark); }
.nav__links { display: flex; gap: 1.75rem; font-size: 0.92rem; font-weight: 500; }
.nav__links a:hover { color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__logo-img { height: 82px; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer;
  }
  .nav__burger span { width: 22px; height: 2px; background: var(--ink); }
}

/* =========================================================
   HERO + VITALS CARD
   ========================================================= */
.hero { padding: 3.5rem 1.5rem 4rem; }
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}
.hero__title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero__sub { max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.75rem; }
.hero__ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero__proof { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__proof li { font-size: 0.85rem; color: var(--ink-soft); }
.hero__proof-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.vitals-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.vitals-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.vitals-card__kicker { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-soft); margin-bottom: 0.2rem; }
.vitals-card__title { font-size: 1.15rem; font-weight: 600; }
.vitals-card__tabs { display: flex; gap: 0.4rem; background: var(--bg-alt); padding: 4px; border-radius: 999px; }
.vitals-card__tab {
  border: none; background: transparent; padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.vitals-card__tab.is-active { background: var(--primary); color: #fff; }

.vitals-panel { display: none; }
.vitals-panel.is-active { display: block; }
.vitals-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.vitals-panel__grid--4 { grid-template-columns: 1fr 1fr; }

.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-soft); }

.readout {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.readout--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.gauge { position: relative; width: 140px; flex-shrink: 0; }
.gauge__svg { width: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: var(--bg-alt); stroke-width: 14; stroke-linecap: round; }
.gauge__fill { fill: none; stroke: var(--good); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease; }
.gauge__needle-base { fill: var(--primary-dark); }
.gauge__value {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  text-align: center; font-family: var(--font-mono);
}
.gauge__value span { font-size: 1.5rem; font-weight: 600; color: var(--primary-dark); }
.gauge__value small { display: block; font-size: 0.65rem; color: var(--ink-soft); }

.readout__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.2rem; }
.readout__category { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.3rem; }
.readout__note { font-size: 0.85rem; color: var(--ink-soft); }

.metric { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.metric__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.metric__value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--primary-dark); margin: 0.2rem 0; }
.metric__value small { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.metric__hint { font-size: 0.78rem; color: var(--ink-soft); }

.vitals-card__disclaimer { margin-top: 1.25rem; font-size: 0.75rem; color: var(--ink-soft); }

/* =========================================================
   HEALTH RISK ASSESSMENT CTA
   ========================================================= */
.hra-cta { padding: 4rem 1.5rem; }
.hra-cta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(31,77,58,0.18);
}
.hra-cta .eyebrow { color: var(--accent); }
.hra-cta__title { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 0.75rem; }
.hra-cta__sub { color: rgba(255,255,255,0.85); max-width: 54ch; margin: 0 auto 1.75rem; font-size: 1.02rem; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; }

.how { padding: 5rem 0; background: var(--bg-alt); }
.how__steps { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.how__step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.75rem; }
.how__num { font-family: var(--font-mono); color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }
.how__step h3 { margin: 0.6rem 0 0.5rem; font-size: 1.2rem; }
.how__step p { color: var(--ink-soft); font-size: 0.92rem; }

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs { padding: 5rem 1.5rem; }
.programs__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.program-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem; position: relative;
}
.program-card--popular { border-color: var(--primary); box-shadow: 0 8px 24px rgba(31,77,58,0.12); }
.program-card__badge {
  position: absolute; top: -11px; left: 1.25rem; background: var(--accent); color: var(--primary-dark);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.program-card__len { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.5rem; }
.program-card__desc { font-size: 0.85rem; color: var(--ink-soft); }

/* =========================================================
   CONSULTATION FORM
   ========================================================= */
.consult { padding: 5rem 1.5rem; background: var(--primary); color: #fff; }
.consult__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.consult .eyebrow { color: var(--accent); }
.consult h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.consult__sub { color: rgba(255,255,255,0.8); max-width: 42ch; margin-bottom: 1.5rem; }
.consult__list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; color: rgba(255,255,255,0.9); font-size: 0.92rem; }
.consult__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.consult-form { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; color: var(--ink); }
.consult-form__status { margin-top: 0.75rem; font-size: 0.85rem; color: var(--good); min-height: 1.2em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 3.5rem 1.5rem 1.5rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__brand .nav__logo-word { color: #fff; }
.footer__brand p { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.footer__cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__cols h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.footer__cols a { display: block; font-size: 0.88rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.85); }
.footer__cols a:hover { color: var(--accent); }
.footer__fine { max-width: var(--maxw); margin: 0 auto; font-size: 0.75rem; color: rgba(255,255,255,0.45); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .consult__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vitals-panel__grid, .vitals-panel__grid--4 { grid-template-columns: 1fr; }
  .programs__grid { grid-template-columns: 1fr; }
  .readout { flex-direction: column; align-items: flex-start; }
  .readout--split { grid-template-columns: 1fr; }
}
