/* Homepage chapter spacing and outer gutters checked against the current live site. */
@media (min-width: 901px) {
  html body.simplified-home-review .hm #concerns {
    display: block;
    box-sizing: border-box;
    min-height: 100svh;
    padding: calc(clamp(90px, 11vh, 122px) + 38px) clamp(24px, 3.4vw, 56px) 30px;
  }
  html body.simplified-home-review .hm #concerns .solution-pin {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100svh - (clamp(90px, 11vh, 122px) + 38px) - 30px);
  }
  html body.simplified-home-review .hm #concerns .solution-main { flex: 1; min-height: 0; }
  html body.simplified-home-review .hm #concerns .solution-copy,
  html body.simplified-home-review .hm #treatments .treatments-intro {
    align-self: stretch;
    justify-content: space-between;
  }
  html body.simplified-home-review .hm #concerns .solution-media { width: 100%; }
  html body.simplified-home-review .hm #concerns .solution-frame {
    width: 100%;
    height: 58vh;
    margin: 0;
    border-radius: clamp(16px, 1.35vw, 24px) 0 0 0;
  }
  html body.simplified-home-review .hm #treatments { box-sizing: border-box; min-height: 100svh; }
  html body.simplified-home-review .hm #treatments .treatment-pin {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100svh - 96px - clamp(54px, 7vh, 80px));
  }
  html body.simplified-home-review .hm #treatments .treatments-layout { flex: 1; min-height: 0; }
  html body.simplified-home-review .hm #treatments .treatment-image {
    border-radius: clamp(16px, 1.35vw, 24px);
  }
}
html body.simplified-home-review .hm #solution-title {
  max-width: min(100%, clamp(360px, 28.4vw, 560px));
  line-height: 1.04 !important;
}
html body.simplified-home-review .hm #treatments-title {
  max-width: min(100%, clamp(340px, 26.7vw, 526px));
  line-height: 1.06 !important;
}
html body.simplified-home-review .hm :is(#solution-title, #treatments-title) em {
  color: #cf8b7d !important;
  font-style: italic !important;
}
html body.simplified-home-review footer > .container {
  width: calc(100% - 2 * clamp(24px, 3.4vw, 56px));
  max-width: none;
  margin-inline: auto;
}

/* Match the live heading metrics; the prototype's shared heading rule was too loose. */
html body.simplified-home-review .hm #solution-title { letter-spacing: -.028em !important; }
html body.simplified-home-review .hm #solution-title .sx-s { line-height: 1.08 !important; letter-spacing: -.028em !important; }
html body.simplified-home-review .hm #treatments-title { letter-spacing: -.04em !important; font-weight: 400 !important; }
html body.simplified-home-review .hm #treatments-title em { letter-spacing: inherit !important; font-weight: inherit !important; }

html body.simplified-home-review .hm #treatments .treatments-intro p { max-width: 32ch !important; margin-top: 28px !important; }

@media (max-width: 900px) {
  html body.simplified-home-review footer > .container { width: calc(100% - 2 * clamp(16px, 2.6vw, 24px)); }
}

/* Treatments emphasis is colour only; keep the heading's own typeface and posture. */
html body.simplified-home-review .hm #treatments-title em { font-family: inherit !important; font-style: normal !important; }

/* Live homepage chapter pacing: five scroll steps while each spread stays in view. */
@media (min-width: 1025px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html.js body.simplified-home-review .hm #concerns.is-pinned,
  html.js body.simplified-home-review .hm #treatments.is-pinned {
    box-sizing: border-box !important;
    height: 650svh !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html.js body.simplified-home-review .hm #concerns.is-pinned .solution-pin,
  html.js body.simplified-home-review .hm #treatments.is-pinned .treatment-pin {
    position: sticky !important;
    top: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100svh !important;
    overflow: clip !important;
  }
  html.js body.simplified-home-review .hm #concerns.is-pinned .solution-pin {
    padding: calc(clamp(90px, 11vh, 122px) + 38px) clamp(24px, 3.4vw, 56px) 30px !important;
  }
  html.js body.simplified-home-review .hm #treatments.is-pinned .treatment-pin {
    padding: clamp(96px, 11vh, 132px) clamp(24px, 3.4vw, 56px) clamp(54px, 7vh, 80px) !important;
  }
  html.js body.simplified-home-review .hm #concerns.is-pinned .solution-main,
  html.js body.simplified-home-review .hm #treatments.is-pinned .treatments-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
}

/* Match the deeper live pine while leaving the Shop palette alone. */
html body.simplified-home-review header.nav { background: #1a1d17 !important; }
html body.simplified-home-review .hm #treatments { background: #20231c !important; }
