:root {
  --bg: #f7faf6;
  --surface: #ffffff;
  --surface-soft: #eef7ed;
  --ink: #17201a;
  --muted: #617064;
  --line: #dfe8df;
  --green: #0d7f4f;
  --green-dark: #064f35;
  --mint: #dff7e8;
  --lime: #c8f06a;
  --blue: #254cdb;
  --shadow: 0 24px 70px rgba(20, 34, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(247, 250, 246, 0.9);
  border-bottom: 1px solid rgba(223, 232, 223, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--green-dark);
  background: var(--lime);
  border-radius: 12px;
  font-weight: 950;
}

.nav-links,
.header-actions,
.button-row,
.trust-row {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover,
.ghost-link:hover,
.text-link:hover {
  color: var(--green);
}

.nav-group {
  position: relative;
  padding-block: 18px;
}

.menu {
  position: absolute;
  top: 52px;
  left: -18px;
  display: grid;
  width: 210px;
  gap: 2px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.menu a {
  padding: 10px 12px;
  border-radius: 10px;
}

.menu a:hover {
  background: var(--surface-soft);
}

.nav-group:hover .menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-actions {
  gap: 12px;
}

.ghost-link {
  color: var(--muted);
  font-weight: 800;
}

.pill-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.pill-button,
.primary-button {
  padding: 0 22px;
  color: var(--surface);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(23, 32, 26, 0.16);
}

.primary-button.light {
  color: var(--green-dark);
  background: var(--lime);
}

.secondary-button {
  padding: 0 20px;
  color: var(--green-dark);
  background: var(--mint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding: clamp(52px, 8vw, 100px) clamp(18px, 5vw, 76px);
}

.home-hero {
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at 6% 4%, rgba(200, 240, 106, 0.46), transparent 28%),
    linear-gradient(135deg, #f9fff5, #f3f8f4 56%, #e8f5e8);
}

.page-hero {
  min-height: 620px;
  background: linear-gradient(135deg, #f9fff6, #eef8ed);
}

.page-hero.compact {
  min-height: 520px;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* Smaller H1 across website */
h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

/* Smaller H2 across website */
h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
}

.hero-copy > p:not(.kicker) {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.button-row {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 10px 13px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-hero.compact .hero-card {
  min-height: 420px;
}

.result-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 330px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(23, 32, 26, 0.16);
}

.result-card strong,
.result-card span {
  display: block;
}

.result-card span {
  margin-top: 5px;
  color: var(--muted);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 76px);
  background: var(--line);
}

.strip div {
  display: grid;
  min-height: 128px;
  align-content: center;
  gap: 4px;
  padding: 24px;
  background: var(--surface);
}

.strip strong {
  font-size: 1.25rem;
}

.strip span {
  color: var(--muted);
}

.section {
  padding: clamp(62px, 9vw, 118px) clamp(18px, 5vw, 76px);
}

.soft {
  background: var(--surface-soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.feature-grid,
.card-grid,
.doctor-grid,
.story-grid,
.blog-grid,
.metric-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.steps article,
.card-grid article,
.story-grid article,
.doctor-grid article,
.metric-grid article,
.condition-list article,
.blog-grid article,
.calc-panel,
.assessment-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(20, 34, 25, 0.07);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 76px);
  background: linear-gradient(135deg, #fbfff6, #edf8ef);
}

.detail-hero .hero-card {
  min-height: 430px;
}

.overview-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-panel article,
.info-panel,
.legal-card,
.signin-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(20, 34, 25, 0.07);
}

.content-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-list li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-links a {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--green);
  font-weight: 900;
}

.legal-page,
.signin-page {
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 76px);
  background: linear-gradient(135deg, #f8fff5, #eef8ed);
}

.legal-card {
  max-width: 940px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.legal-card h2 {
  margin-top: 30px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.signin-page {
  display: grid;
  place-items: center;
}

.signin-card {
  width: min(100%, 460px);
}

.signin-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 900;
}

.signin-card input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

.feature-grid article,
.steps article,
.card-grid article,
.metric-grid article {
  padding: 24px;
}

.feature-grid span,
.steps span,
.condition-list article > span {
  color: var(--green);
  font-weight: 950;
}

.text-link {
  color: var(--green);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  background: var(--ink);
}

.calculator h2,
.calculator .kicker,
.calculator p {
  color: var(--surface);
}

.calc-panel {
  padding: 30px;
}

.calc-panel label {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.calc-panel input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.calc-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.calc-output div {
  padding: 18px;
  background: var(--surface-soft);
  border-radius: 18px;
}

.calc-output strong,
.calc-output span {
  display: block;
}

.calc-output strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.calc-output span {
  color: var(--muted);
  font-weight: 800;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid article {
  overflow: hidden;
}

.story-grid img {
  aspect-ratio: 1.1 / 0.86;
}

.story-grid blockquote,
.story-grid p,
.story-grid strong,
.doctor-grid h3,
.doctor-grid p,
.blog-grid h2,
.blog-grid p,
.blog-grid a {
  margin-inline: 20px;
}

.story-grid blockquote {
  margin-top: 20px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.story-grid strong {
  display: block;
  margin-bottom: 22px;
  color: var(--green);
}

.doctors {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.doctor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-grid article {
  overflow: hidden;
}

.doctor-grid img {
  aspect-ratio: 1 / 0.92;
  object-position: center top;
}

.doctor-grid h3 {
  margin-top: 18px;
}

.doctor-grid p {
  margin-bottom: 22px;
}

.cta-band {
  padding: clamp(54px, 8vw, 90px) clamp(18px, 5vw, 76px);
  color: var(--surface);
  background: linear-gradient(135deg, var(--green-dark), #09271d);
  text-align: center;
}

.cta-band h2 {
  max-width: 850px;
  margin-inline: auto;
}

.cta-band p {
  color: #cce5d6;
  font-size: 1.12rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.science {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 78px);
  color: var(--surface);
  background: var(--green-dark);
}

.science .kicker,
.science h2,
.science p {
  color: var(--surface);
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid span {
  color: #d8efe0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq-list summary {
  font-weight: 950;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
}

.condition-list {
  display: grid;
  gap: 18px;
}

.condition-list article {
  display: grid;
  grid-template-columns: 90px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
}

.condition-list h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.condition-list ul {
  margin: 0;
  color: var(--muted);
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid article {
  overflow: hidden;
}

.blog-grid img {
  aspect-ratio: 1.35 / 0.82;
}

.blog-grid .kicker {
  margin: 20px 20px 10px;
}

.blog-grid h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.18;
}

.blog-grid a {
  display: inline-block;
  margin-bottom: 22px;
}

.assessment-page {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 8% 10%, rgba(200, 240, 106, 0.4), transparent 28%),
    linear-gradient(135deg, #f8fff5, #eef8ed);
}

.assessment-copy {
  position: sticky;
  top: 110px;
}

.mini-steps {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.mini-steps span {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 900;
}

.assessment-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assessment-form label,
.assessment-form legend {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.assessment-form input,
.assessment-form select,
.assessment-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

.assessment-form textarea {
  min-height: 120px;
  padding-block: 14px;
  resize: vertical;
}

.assessment-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.assessment-form fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 750;
}

.assessment-form input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(160px, 1fr));
  gap: 30px;
  padding: 44px clamp(18px, 5vw, 76px);
  color: #d9e8dd;
  background: #111a15;
}

.site-footer p {
  max-width: 390px;
  color: #aebdb3;
}

.site-footer h4 {
  margin-bottom: 14px;
  color: var(--surface);
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: #cbd9cf;
}

.site-footer .brand {
  color: var(--surface);
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .detail-hero,
  .two-column,
  .calculator,
  .doctors,
  .science,
  .assessment-page {
    grid-template-columns: 1fr;
  }

  .strip,
  .overview-panel,
  .resource-links,
  .steps,
  .card-grid.four,
  .blog-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    min-height: 440px;
  }

  .assessment-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 16px;
  }

  .header-actions .ghost-link {
    display: none;
  }

  .pill-button {
    min-height: 42px;
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
    line-height: 1.18;
  }

  .hero,
  .section,
  .assessment-page {
    padding-inline: 16px;
  }

  .hero-card,
  .page-hero.compact .hero-card {
    min-height: 330px;
    border-radius: 22px;
  }

  .strip,
  .overview-panel,
  .resource-links,
  .feature-grid,
  .steps,
  .story-grid,
  .doctor-grid,
  .card-grid,
  .card-grid.four,
  .metric-grid,
  .blog-grid,
  .form-row,
  .assessment-form fieldset,
  .calc-output,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .condition-list article {
    grid-template-columns: 1fr;
  }
}