:root {
  color-scheme: light;
  --ink: #15322e;
  --muted: #5b6b67;
  --paper: #ffffff;
  --mist: #edf8f5;
  --foam: #f8fbfa;
  --line: #d5e4df;
  --teal: #08766e;
  --teal-dark: #07544f;
  --green: #6aa833;
  --orange: #df7b28;
  --shadow: 0 18px 44px rgba(12, 44, 39, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 84px;
  color: var(--ink);
  background: var(--foam);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 180px;
  height: auto;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.product-brand img {
  width: 210px;
  height: 54px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: #f3faef;
  border: 1px solid #dcebd5;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--teal-dark);
  background: #eef8e8;
  border-color: rgba(106, 168, 51, 0.25);
}

.header-shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 800;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-shop-link:hover,
.header-shop-link:focus-visible {
  background: #5d982b;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: clamp(620px, 78vh, 760px);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: clamp(620px, 78vh, 760px);
  padding: clamp(44px, 6vw, 88px) clamp(20px, 6vw, 88px) 74px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--paper);
  background: var(--green);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #5d982b;
}

.button.secondary {
  color: var(--teal-dark);
  background: var(--paper);
  border-color: var(--line);
}

.choice-panel .button.secondary {
  color: var(--teal);
  background: var(--paper);
  border-color: var(--line);
}

.button.wide {
  width: 100%;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #12322d;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-product {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
}

.hero-product img {
  width: min(470px, 82vw);
  filter: drop-shadow(0 28px 34px rgba(12, 44, 39, 0.18));
}

.hero-product figcaption {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(180px, auto);
  align-items: center;
  gap: 22px;
  padding: 18px clamp(20px, 6vw, 88px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  display: grid;
  gap: 2px;
}

.trust-band span {
  color: var(--muted);
}

.trust-band img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.trust-band img:last-child {
  max-width: 280px;
  max-height: 42px;
}

main > section:not(.hero):not(.trust-band) {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 6vw, 88px);
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.buy-section {
  background: var(--mist);
}

.buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.choice-panel,
.result-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-panel {
  position: sticky;
  top: 98px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.calculator-form {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.slider-control {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(180deg, #f8fbfa 0%, #eef8e8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.slider-header label {
  color: var(--teal-dark);
  font-weight: 900;
}

.slider-header output {
  color: var(--green);
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.slider-control input[type="range"] {
  width: 100%;
  height: 10px;
  margin: 4px 0;
  background: linear-gradient(
    90deg,
    var(--green) 0%,
    var(--green) var(--range-progress, 3.4%),
    #dbe8d5 var(--range-progress, 3.4%),
    #dbe8d5 100%
  );
  border-radius: 999px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider-control input[type="range"]:focus-visible {
  outline: 3px solid rgba(106, 168, 51, 0.25);
  outline-offset: 6px;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 8px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 73, 43, 0.22);
  appearance: none;
  -webkit-appearance: none;
}

.slider-control input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 8px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 73, 43, 0.22);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.slider-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dose-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.dose-mode legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--teal-dark);
  font-weight: 900;
}

.mode-option {
  display: grid;
  min-height: 104px;
  background: var(--foam);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.mode-option:has(input:checked) {
  background: #eef8e8;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(106, 168, 51, 0.18);
}

.mode-option:has(input:focus-visible) {
  outline: 3px solid rgba(106, 168, 51, 0.25);
  outline-offset: 3px;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option span {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 16px;
}

.mode-option strong {
  color: var(--ink);
}

.mode-option small {
  color: var(--muted);
  font-size: 0.92rem;
}

.calculator-result,
.recommendation-card {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calculator-result {
  background: #eef8e8;
  border-color: rgba(106, 168, 51, 0.35);
}

.calculator-result span {
  color: var(--muted);
  font-weight: 800;
}

.calculator-result strong {
  color: var(--teal-dark);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
}

.calculator-result p {
  margin: 0;
  color: var(--muted);
}

.recommendation-card strong {
  color: var(--teal-dark);
  font-size: 1.08rem;
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
}

.shop-check {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
}

.shop-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.problem-section,
.comparison-section {
  background: var(--paper);
}

.insight-grid,
.benefit-grid,
.dosage-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-grid article,
.benefit-grid article,
.dosage-flow article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.problem-section .insight-grid article,
.comparison-section .comparison-table {
  background: var(--foam);
}

.insight-grid h3,
.benefit-grid h3,
.dosage-flow h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.insight-grid p,
.benefit-grid p,
.dosage-flow p {
  margin: 0;
  color: var(--muted);
}

.metric {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 1.8rem;
  font-weight: 900;
}

.dosage-section {
  background: var(--mist);
}

.dosage-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dosage-flow article span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--paper);
  background: var(--orange);
  border-radius: 50%;
  font-weight: 900;
}

.comparison-table {
  display: grid;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
}

.comparison-table span {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.comparison-table [role="row"]:last-child span {
  border-bottom: 0;
}

.comparison-table span:last-child {
  border-right: 0;
}

.table-head span {
  color: var(--paper);
  background: var(--teal-dark);
  font-weight: 900;
}

.faq-section {
  background: var(--foam);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

details {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta div {
  display: grid;
  gap: 2px;
}

.sticky-cta span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-inner,
  .buy-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-product {
    justify-self: start;
  }

  .result-panel {
    position: static;
  }

  .dose-mode,
  .insight-grid,
  .benefit-grid,
  .dosage-flow {
    grid-template-columns: 1fr 1fr;
  }

  .trust-band {
    grid-template-columns: 1fr auto auto;
  }

  .trust-band img:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 112px;
  }

  .site-header {
    gap: 12px;
    min-height: auto;
    padding: 10px 16px;
  }

  .brand img {
    width: 142px;
  }

  .product-brand {
    gap: 8px;
    font-size: 1.02rem;
  }

  .product-brand img {
    width: 138px;
    height: 40px;
  }

  .header-nav {
    display: none;
  }

  .header-shop-link {
    margin-left: auto;
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 34px;
    min-height: auto;
    padding: 44px 18px 54px;
  }

  .hero-product {
    order: -1;
    justify-self: center;
    gap: 0;
  }

  .hero-product img {
    width: min(270px, 72vw);
  }

  .hero-product figcaption {
    display: none;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-facts span {
    width: 100%;
  }

  .trust-band {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px 18px;
  }

  .trust-band div,
  .trust-band img:last-child {
    grid-column: 1 / -1;
  }

  main > section:not(.hero):not(.trust-band) {
    padding: 52px 8px;
  }

  .section-heading {
    text-align: left;
  }

  .dose-mode,
  .insight-grid,
  .benefit-grid,
  .dosage-flow,
  .comparison-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .slider-header {
    display: grid;
    gap: 10px;
  }

  .slider-header output {
    white-space: normal;
  }

  .comparison-table span {
    border-right: 0;
  }

  .comparison-table [role="row"] {
    border-bottom: 1px solid var(--line);
  }

  .comparison-table [role="row"]:last-child {
    border-bottom: 0;
  }

  .cart-actions {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-cta .button {
    width: 100%;
  }
}
