:root {
  --bg: #fffefe;
  --paper: #ffffff;
  --soft: #fbf4f2;
  --soft-strong: #f5e9e5;
  --ink: #242228;
  --muted: #6f6870;
  --line: #eaded9;
  --wine: #7b294d;
  --wine-deep: #62213e;
  --taupe: #a8897a;
  --sage: #667f62;
  --sage-soft: #edf3e9;
  --shadow: 0 22px 60px rgba(62, 38, 48, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Newsreader, Georgia, serif;
  color: var(--wine-deep);
  letter-spacing: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  top: 0;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(234, 222, 217, 0.88);
  background: rgba(255, 254, 254, 0.92);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-lockup strong {
  display: grid;
  gap: 3px;
  color: var(--wine);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 0.94;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-lockup small {
  color: var(--wine);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.brand-lockup img:last-child {
  width: 88px;
  height: 48px;
  object-fit: contain;
}

.brand-lockup span {
  width: 1px;
  height: 36px;
  background: var(--line);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d535b;
  font-size: 13px;
  font-weight: 750;
}

.header-nav a {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.header-nav a:hover {
  color: var(--wine-deep);
  background: var(--soft);
}

.header-nav .nav-cta {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 12px 22px rgba(123, 41, 77, 0.18);
}

.header-nav .nav-cta:hover {
  color: #fff;
  background: var(--wine-deep);
}

.hero-section {
  min-height: auto;
  padding: clamp(26px, 4vw, 48px) clamp(18px, 6vw, 86px) clamp(30px, 4.6vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  gap: clamp(26px, 4.5vw, 60px);
  align-items: start;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 254, 254, 0.98) 0%, rgba(255, 254, 254, 0.92) 52%, rgba(251, 244, 242, 0.78) 100%),
    var(--bg);
}

.hero-content {
  max-width: 630px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #9b6e61;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--line);
}

h1 {
  margin-top: 18px;
  max-width: 720px;
  font-size: clamp(44px, 5.5vw, 70px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 560px;
  margin-top: 20px;
  color: #514b52;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.56;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  box-shadow: 0 14px 30px rgba(123, 41, 77, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--wine-deep);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trust-row div,
.lead-assurances div {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 10px;
  color: #655b63;
  font-size: 13px;
  font-weight: 650;
}

svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-row svg,
.lead-assurances svg {
  color: var(--taupe);
}

.hero-media {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(55, 29, 39, 0.18));
  pointer-events: none;
}

.consult-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100% - 44px));
  padding: 26px;
  border: 1px solid rgba(234, 222, 217, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(62, 38, 48, 0.14);
  backdrop-filter: blur(12px);
}

.consult-card h2 {
  font-size: 26px;
  line-height: 1.08;
}

.consult-card ul,
.note-content ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.consult-card li,
.note-content li {
  position: relative;
  padding-left: 28px;
  color: #514b52;
  line-height: 1.45;
}

.consult-card li::before,
.note-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  background: var(--sage-soft);
}

.consult-card li::after,
.note-content li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

.consult-card p {
  margin-top: 20px;
  padding: 15px;
  color: #495743;
  background: var(--sage-soft);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
}

.hero-lead-card {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hero-lead-intro {
  max-width: 430px;
}

.hero-lead-intro h2 {
  margin-top: 12px;
  font-size: clamp(31px, 3.1vw, 42px);
  line-height: 1.04;
}

.hero-lead-intro p:not(.section-label) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.flow-section,
.evaluation-section,
.results-section,
.note-section,
.lead-section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 6vw, 86px);
}

.flow-section {
  padding-top: clamp(42px, 5vw, 68px);
  padding-bottom: clamp(42px, 5vw, 68px);
  background: linear-gradient(180deg, var(--soft), #fff);
}

.section-heading {
  max-width: 680px;
}

.section-heading.narrow {
  max-width: 780px;
}

.section-heading h2,
.note-content h2,
.lead-copy h2 {
  margin-top: 16px;
  font-size: clamp(35px, 4.6vw, 58px);
  line-height: 1.02;
}

.section-heading p:not(.section-label),
.lead-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.flow-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-grid article {
  min-height: 190px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.flow-grid article:last-child {
  border-right: 0;
}

.flow-grid span {
  color: #ba9586;
  font-family: Newsreader, Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.flow-grid h3,
.topics-grid h3 {
  margin-top: 18px;
  color: #383139;
  font-size: 18px;
}

.flow-grid p,
.topics-grid p {
  margin-top: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.topics-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.topics-grid article {
  min-height: 220px;
  padding: 34px;
  background: #fff;
}

.topics-grid svg {
  color: var(--taupe);
}

.results-section {
  padding-top: clamp(34px, 4.2vw, 58px);
  padding-bottom: clamp(38px, 4.8vw, 64px);
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
  border-top: 1px solid var(--line);
}

.clinical-result {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.result-copy {
  max-width: 760px;
}

.result-copy .section-heading h2 {
  font-size: clamp(34px, 4.2vw, 52px);
}

.result-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.64;
}

.result-copy ul {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.result-copy li {
  position: relative;
  padding-left: 28px;
  color: #514b52;
  line-height: 1.48;
}

.result-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1px solid var(--sage);
}

.result-copy li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 4px;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

.result-media {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 233, 229, 0.8)),
    repeating-linear-gradient(45deg, rgba(123, 41, 77, 0.05), rgba(123, 41, 77, 0.05) 10px, transparent 10px, transparent 22px);
  box-shadow: var(--shadow);
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity 220ms ease;
}

.result-media.is-revealed img {
  opacity: 1;
}

.result-consent {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  background: rgba(255, 250, 250, 0.96);
}

.result-consent strong {
  color: var(--wine-deep);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.03;
}

.result-consent p {
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.result-media.is-revealed .result-consent {
  display: none;
}

.note-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--soft) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-content {
  max-width: 620px;
}

.note-logo {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(245, 233, 229, 0.66)),
    radial-gradient(circle at 40% 32%, rgba(123, 41, 77, 0.08), transparent 34%);
  border: 1px solid var(--line);
}

.note-logo img {
  width: 160px;
  opacity: 0.9;
}

.note-logo p {
  color: #7b675d;
  font-family: Newsreader, Georgia, serif;
  font-size: 24px;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.72fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  background: #fff;
}

.lead-copy {
  position: sticky;
  top: 112px;
}

.lead-assurances {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lead-form {
  padding: 20px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #615760;
  font-size: 12px;
  font-weight: 800;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: rgba(123, 41, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(123, 41, 77, 0.08);
}

.privacy-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--wine);
}

.privacy-check a {
  color: var(--wine-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-button {
  width: 100%;
  margin-top: 2px;
  cursor: pointer;
}

.form-feedback {
  min-height: 20px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 750;
}

.hero-lead-card .lead-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-lead-card .privacy-check,
.hero-lead-card .wide-field,
.hero-lead-card .form-button,
.hero-lead-card .form-feedback {
  grid-column: 1 / -1;
}

.site-footer {
  min-height: 66px;
  padding: 18px clamp(18px, 6vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.88);
  background: var(--wine-deep);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero-section,
  .note-section,
  .clinical-result,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .result-media {
    justify-self: start;
  }

  .hero-media {
    min-height: 440px;
  }

  .hero-media > img {
    min-height: 440px;
  }

  .lead-copy {
    position: static;
  }

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

  .flow-grid article:nth-child(2) {
    border-right: 0;
  }

  .flow-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand-lockup {
    width: 100%;
    justify-content: space-between;
  }

  .brand-lockup span,
  .brand-lockup img:last-child {
    display: none;
  }

  .header-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
  }

  .header-nav a {
    min-height: 40px;
    padding: 11px 6px;
    text-align: center;
    font-size: 12px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 49px);
    max-width: 100%;
  }

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

  .trust-row,
  .lead-assurances,
  .flow-grid,
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid article,
  .flow-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-grid article:last-child {
    border-bottom: 0;
  }

  .consult-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-media {
    display: grid;
    min-height: auto;
  }

  .hero-media > img {
    min-height: 320px;
  }

  .result-media {
    width: min(100%, 380px);
    justify-self: center;
    min-height: 0;
  }

  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero-lead-card .lead-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
