:root {
  color-scheme: light;
  --ink: #15202b;
  --muted: #667085;
  --soft: #edf4f1;
  --paper: #fbfcfa;
  --line: #dce5e1;
  --charcoal: #18212b;
  --wine: #8f2344;
  --teal: #0b7a75;
  --gold: #b88734;
  --clay: #b7563b;
  --shadow: 0 24px 70px rgba(24, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(251, 252, 250, 0.9);
  border-bottom: 1px solid rgba(230, 221, 208, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
}

.topbar nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.topbar a[aria-current],
.topbar nav a:hover {
  color: var(--wine);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.92fr);
  align-items: stretch;
  gap: clamp(30px, 5vw, 72px);
  min-height: calc(100vh - 64px);
  padding: clamp(20px, 3vw, 42px) clamp(18px, 4vw, 52px) clamp(54px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(251, 252, 250, 0.94) 0%, rgba(251, 252, 250, 0.78) 44%, rgba(251, 252, 250, 0.96) 100%),
    var(--paper);
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 33, 43, 0.1), rgba(24, 33, 43, 0.68));
}

.hero-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: min(360px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(24, 33, 43, 0.78);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.hero-panel strong {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.mini-funnel {
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.64fr 0.46fr;
  gap: 8px;
  margin-top: 18px;
  align-items: end;
}

.mini-funnel i {
  display: block;
  height: 48px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--gold), var(--wine));
}

.mini-funnel i:nth-child(2) {
  height: 40px;
}

.mini-funnel i:nth-child(3) {
  height: 32px;
}

.mini-funnel i:nth-child(4) {
  height: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--charcoal);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 18px;
  color: var(--charcoal);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--charcoal);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: #43505d;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px;
  margin: 18px 0 28px;
}

.signal-row span {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid rgba(143, 35, 68, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--wine);
  font-size: 13px;
  font-weight: 850;
}

.primary-action,
.close-box a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-weight: 850;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head.compact {
  display: block;
  max-width: 980px;
}

.diagnosis {
  background: #fff;
}

.pain-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.pain-menu {
  display: grid;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.pain-menu button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--charcoal);
  cursor: pointer;
  font-weight: 820;
  text-align: left;
  padding: 0 14px;
}

.pain-menu button[aria-pressed="true"] {
  border-color: rgba(143, 35, 68, 0.38);
  background: var(--wine);
  color: #fff;
}

.pain-panel {
  min-height: 430px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 122, 117, 0.08), rgba(184, 135, 52, 0.08)),
    #fbfcfa;
}

.pain-number,
.opportunity-grid article span,
.close-box span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pain-panel p,
.flow-copy p,
.close-box p,
.plan-main li,
.pain-panel li,
.opportunity-grid p,
footer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.pain-panel ul,
.plan-main ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.opportunity {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24, 33, 43, 0.98), rgba(47, 43, 49, 0.98)),
    #18212b;
}

.opportunity h2,
.opportunity h3 {
  color: #fff;
}

.opportunity .eyebrow {
  color: #74d2ca;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.opportunity-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.opportunity-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.flow {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--soft);
}

.flow-board {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 38px minmax(130px, 1fr) 38px minmax(130px, 1fr) 38px minmax(130px, 1fr);
  gap: 12px;
  align-items: center;
}

.flow-step {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 33, 43, 0.08);
}

.flow-step small {
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
}

.flow-step strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--charcoal);
  font-size: 20px;
  line-height: 1.15;
}

.flow-step span {
  color: var(--muted);
  line-height: 1.45;
}

.flow-step.active,
.flow-step.result {
  border-color: rgba(143, 35, 68, 0.36);
}

.flow-arrow {
  height: 2px;
  background: var(--gold);
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.plan {
  background: #fff;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
}

.plan-main,
.close-box {
  border-radius: 8px;
}

.plan-main {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.close-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  background: var(--charcoal);
  color: #fff;
}

.close-box h3 {
  color: #fff;
  font-size: 30px;
}

.close-box p {
  color: rgba(255, 255, 255, 0.76);
}

.close-box a {
  background: #fff;
  color: var(--charcoal);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

footer span {
  font-weight: 900;
}

footer p {
  margin-bottom: 0;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .hero,
  .flow,
  .section-head,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media,
  .hero-media img {
    min-height: 420px;
  }

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

  .flow-board {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 2px;
    height: 30px;
    justify-self: center;
  }

  .flow-arrow::after {
    right: auto;
    top: auto;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .signal-row,
  .opportunity-grid,
  .pain-layout {
    grid-template-columns: 1fr;
  }

  .signal-row span {
    width: 100%;
  }

  .pain-menu {
    position: static;
  }

  .pain-panel {
    min-height: 0;
  }

  .hero-media,
  .hero-media img {
    min-height: 340px;
  }

  .hero-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .section {
    padding-block: 48px;
  }

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