/* Mental health billing page (v2/mental-health-billing.blade.php). Loaded after
   behavioral-health-v2.css, whose .bh-* sections the page reuses; everything
   here is scoped to .mh-v2 or uses mh-* classes, so the behavioral health and
   DME pages are unaffected. */

/* Figma stacks the page's frames 60px apart on the white page. Sections with
   their own background get that gap as a margin; the services and CTA sections
   (content-only frames) carry it in their padding instead. */

/* Figma's hard line breaks only apply at the full 1240px layout. */
@media (max-width: 1199px) {
  .mh-br {
    display: none;
  }
}

/* Breaks from the phone frames (Figma's mobile version, 440px). */
@media (min-width: 576px) {
  .mh-br-m {
    display: none;
  }
}

/* ============================================================= */
/* Hero — Figma node 10709:3696 (1440 x 833)                      */
/* Builds on the .bh-hero rules; only the MH geometry, the tick   */
/* bullets and the head artwork are here.                          */
/* ============================================================= */
.mh-v2 .bh-hero {
  z-index: 3; /* the open service list stays above the next section */
  padding-bottom: 55.33px;
}

/* 511px copy column; the form sits 100px below. */
.mh-v2 .bh-hero-top {
  min-height: 511.17px;
  margin-bottom: 100px;
}

/* 29px rows, 9px apart, each led by the 24px gradient tick (Figma reicon:tick-circle-filled). */
.mh-v2 .bh-hero-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mh-v2 .bh-hero-list li {
  padding-left: 34px;
}

.mh-v2 .bh-hero-list li::before {
  top: 2.4px;
  left: 0;
  width: 24px;
  height: 24px;
  background: url("../../images/mental-health-v2/hero-tick.svg") center / 24px 24px no-repeat;
  border-radius: 0;
}

/* Figma 10709:3771: 696 x 534 at 544 / 27.5 from the content box, so its right
   edge sits on the 1240 line; the image overhangs it by 104.02% x 104.35%. */
.mh-hero-art {
  position: absolute;
  top: 27.5px;
  right: 0;
  width: 696px;
  height: 534px;
  opacity: 0.4;
  pointer-events: none;
}

.mh-hero-art img {
  position: absolute;
  top: -2.17%;
  left: -4.02%;
  width: 104.02%;
  max-width: none;
  height: 104.35%;
  animation:
    bh-brain-in 1.4s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    bh-breathe 7s 1.5s ease-in-out infinite;
}

/* Service dropdown: the home .field-select, without its left icon (none in Figma). */
.mh-v2 .bh-hero-form .field-select select {
  padding-left: 11px;
}

@media (max-width: 1199px) {
  .mh-v2 .bh-hero-top {
    min-height: 0;
    margin-bottom: 48px;
  }

  .mh-hero-art {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 696px;
    height: auto;
    margin: 32px auto 0;
    aspect-ratio: 696 / 534;
  }
}

@media (max-width: 575px) {
  .mh-v2 .bh-hero-list li {
    padding-left: 32px;
  }

  .mh-v2 .bh-hero-list li::before {
    top: 1px;
  }
}

/* ============================================================= */
/* Why mental health billing is specialized — Figma 10723:6569    */
/* (1440 x 1423). Intro + CPT / authorization widget, the General */
/* vs Mental Health comparison, and the Key Solution bar.          */
/* ============================================================= */
.mh-why {
  position: relative;
  padding: 96px 0 60px;
  overflow: hidden;
  background: linear-gradient(to bottom, #f4f7fd 0%, #fff 60%, #f6f8fd 100%);
}

.mh-why .container-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Decorations, placed against the 1440px frame. */
.mh-why-ring,
.mh-why-glow,
.mh-why-dot {
  position: absolute;
  pointer-events: none;
}

.mh-why-ring--solid {
  top: -240px;
  left: calc(50% - 920px); /* Figma x -200 */
  width: 600px;
  height: 600px;
  border: 1px solid #dce3f2;
  border-radius: 50%;
}

.mh-why-ring--dashed {
  top: -170px;
  left: calc(50% - 850px); /* Figma x -130 */
  width: 460px;
  height: 460px;
  border: 1px dashed #e1e7f4;
  border-radius: 50%;
}

.mh-why-glow {
  top: -160px;
  right: calc(50% - 900px); /* Figma right -180 */
  width: 600px;
  height: 600px;
  background: radial-gradient(circle closest-side, #ffe6e7 0%, rgba(255, 230, 231, 0) 68%);
  border-radius: 50%;
}

.mh-why-dot {
  border-radius: 50%;
}

.mh-why-dot--orange {
  top: 68px;
  left: calc(50% - 624px); /* Figma x 96 */
  width: 12px;
  height: 12px;
  background: var(--c-orange);
}

.mh-why-dot--blue {
  top: 200px;
  left: calc(50% - 490px); /* Figma x 230 */
  width: 8px;
  height: 8px;
  background: var(--c-blue);
  opacity: 0.5;
}

/* ---------- Intro + widget ---------- */
.mh-why-top {
  display: flex;
  gap: 60px;
  align-items: flex-end;
}

.mh-why-head {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.mh-why-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 18px 9px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  color: var(--c-blue);
  white-space: nowrap;
  background: #e6ebf8;
  border: 1px solid #d5ddf1;
  border-radius: 999px;
}

.mh-why-pill img {
  display: block;
  flex: none;
}

.mh-why-title {
  margin: 0;
  padding-top: 2px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.8px;
  color: var(--c-blue);
  text-transform: none;
}

.mh-why-title .accent {
  color: var(--c-orange);
}

/* 56px orange + 14px navy bars. */
.mh-why-rule {
  display: flex;
  gap: 6px;
}

.mh-why-rule span {
  display: block;
  width: 14px;
  height: 4px;
  background: var(--c-blue);
  border-radius: 4px;
  transform-origin: left center;
}

.mh-why-rule span:first-child {
  width: 56px;
  background: var(--c-orange);
}

.mh-why-lead {
  width: 100%;
  max-width: 780px;
  margin: 0;
  padding-top: 0.75px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 29.75px;
  color: var(--c-text);
}

/* 420 x 190: the CPT card on the right, the authorization chip overlapping its lower left. */
.mh-why-widget {
  position: relative;
  flex: none;
  width: 420px;
  height: 190px;
}

.mh-cpt-card {
  position: absolute;
  top: -0.25px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 300px;
  padding: 16px 18px;
  background: var(--c-white);
  border: 1px solid #e6ebf5;
  border-radius: 16px;
  filter: drop-shadow(0 20px 22px rgba(39, 55, 117, 0.12));
}

.mh-cpt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mh-cpt-title {
  padding-bottom: 1px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  color: var(--c-blue);
  white-space: nowrap;
}

.mh-cpt-badge {
  padding: 2px 8px 3px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 10px;
  line-height: normal;
  color: var(--c-orange);
  white-space: nowrap;
  background: #ffe9ea;
  border-radius: 999px;
}

.mh-cpt-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mh-cpt-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mh-cpt-code {
  flex: none;
  width: 52px;
  padding: 2px 0 3px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 11px;
  line-height: normal;
  color: var(--c-blue);
  text-align: center;
  background: #eef2fb;
  border-radius: 5px;
}

.mh-cpt-time {
  flex: 1 1 0;
  min-width: 0;
  padding-bottom: 1px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 11px;
  line-height: normal;
  color: var(--c-text);
}

.mh-cpt-bar {
  position: relative;
  flex: none;
  width: 70px;
  height: 6px;
  overflow: hidden;
  background: #eef2fb;
  border-radius: 6px;
}

.mh-cpt-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  transform-origin: left center;
}

.mh-cpt-row--soft .mh-cpt-bar span { background: #8c9bd0; }
.mh-cpt-row--mid  .mh-cpt-bar span { background: #4e62ae; }
.mh-cpt-row--hot  .mh-cpt-bar span { background: var(--c-orange); }

/* The 53+ min row is the matched one. */
.mh-cpt-row--hot .mh-cpt-code {
  color: var(--c-white);
  background: var(--c-blue);
}

.mh-cpt-row--hot .mh-cpt-time {
  font-weight: 600;
  color: var(--c-blue);
}

.mh-auth-card {
  position: absolute;
  bottom: 0.25px;
  left: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 18px 10px 10px;
  background: var(--c-blue);
  border-radius: 16px;
  filter: drop-shadow(0 8px 17px rgba(39, 55, 117, 0.1));
}

.mh-auth-ring {
  display: block;
  flex: none;
}

.mh-auth-copy {
  display: flex;
  flex-direction: column;
}

.mh-auth-label {
  padding-bottom: 1px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 11px;
  line-height: normal;
  color: #d7def1;
  white-space: nowrap;
}

.mh-auth-value {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  line-height: 19.2px;
  color: var(--c-white);
  white-space: nowrap;
}

/* ---------- Comparison ---------- */
.mh-compare {
  position: relative;
  display: flex;
  gap: 40px;
  justify-content: center;
  padding-top: 16px;
}

.mh-compare-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  min-height: 589px;
  padding: 30px 32px 26px;
  background: var(--c-white);
  border: 1px solid var(--c-light-grey);
  border-radius: 24px;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.05));
  transition: translate 0.35s ease, filter 0.35s ease;
}

.mh-compare-card:hover {
  translate: 0 -4px;
  filter: drop-shadow(0 16px 28px rgba(39, 55, 117, 0.12));
}

.mh-compare-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2fb;
}

/* 68px disc with a 7px inner ring (Figma "Overlay+Shadow"). */
.mh-compare-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: #eef2fb;
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px #f6f8fd;
  transition: scale 0.35s ease, rotate 0.35s ease;
}

.mh-compare-card:hover .mh-compare-icon {
  scale: 1.06;
  rotate: -6deg;
}

.mh-compare-icon img {
  display: block;
}

.mh-compare-title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 24px;
  line-height: 31.2px;
  color: var(--c-blue);
  text-transform: none;
}

.mh-compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-compare-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed #e1e7f4;
}

.mh-compare-card--mental .mh-compare-item {
  border-bottom-color: #eef2fb;
}

.mh-compare-item:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.mh-compare-check {
  display: block;
  flex: none;
  margin-top: 2px;
}

.mh-compare-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mh-compare-item-title {
  padding: 1px 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: normal;
  color: var(--c-blue);
}

.mh-compare-item-text {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text);
}

/* 96px white disc (10px halo) holding the 76px gradient "VS" badge, centred on the gap. */
.mh-compare-vs {
  position: absolute;
  top: calc(50% + 8.5px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--c-white);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 18px 40px rgba(39, 55, 117, 0.22);
  translate: -50% -50%;
}

.mh-compare-vs span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding-bottom: 1px;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 26px;
  line-height: normal;
  letter-spacing: 0.5px;
  color: var(--c-white);
  background: linear-gradient(135deg, #273775 0%, #3e55b0 100%);
  border-radius: 50%;
}

/* ---------- Key Solution ---------- */
.mh-solution {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px 40px 38px;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-light-grey);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(39, 55, 117, 0.07);
}

.mh-solution-blob {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: #f3f6fc;
  border-radius: 50%;
  pointer-events: none;
}

/* 5 x 38 orange bar, 16px from the 32px title. */
.mh-solution-title {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 38.4px;
  color: var(--c-blue);
  text-transform: none;
}

.mh-solution-title::before {
  content: "";
  flex: none;
  width: 5px;
  height: 38px;
  background: var(--c-orange);
  border-radius: 5px;
  transform-origin: center top;
}

.mh-solution-title .accent {
  color: var(--c-orange);
}

.mh-solution-list {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-solution-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 6px 20px;
  border-right: 1px solid #e6ebf5;
}

.mh-solution-item:last-child {
  border-right: 0;
}

/* 84px tinted disc around a 62px solid disc with the 28px glyph. */
.mh-solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  background: #eef2fb;
  border-radius: 50%;
  transition: scale 0.35s ease;
}

.mh-solution-icon > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: var(--c-blue);
  border-radius: 50%;
  filter: drop-shadow(0 10px 11px rgba(39, 55, 117, 0.3));
  transition: rotate 0.35s ease;
}

.mh-solution-item--orange .mh-solution-icon {
  background: #ffedee;
}

.mh-solution-item--orange .mh-solution-icon > span {
  background: var(--c-orange);
  filter: drop-shadow(0 10px 11px rgba(252, 93, 97, 0.35));
}

.mh-solution-icon img {
  display: block;
}

.mh-solution-item:hover .mh-solution-icon {
  scale: 1.08;
}

.mh-solution-item:hover .mh-solution-icon > span {
  rotate: -10deg;
}

.mh-solution-label {
  padding: 1px 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  color: var(--c-blue);
  text-align: center;
}

/* ---------- Why animation ---------- */
/* script-v2.js adds .is-armed (hides the pieces) and .is-in on scroll:
   heading, widget (bars fill, the visit count ticks up), the two cards
   from either side with their rows, the VS badge, then the solutions. */
@keyframes mh-rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes mh-from-left {
  from { opacity: 0; translate: -48px 0; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes mh-from-right {
  from { opacity: 0; translate: 48px 0; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes mh-pop {
  0%   { opacity: 0; scale: 0.3; }
  70%  { opacity: 1; scale: 1.12; }
  100% { opacity: 1; scale: 1; }
}

@keyframes mh-grow-x {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes mh-grow-y {
  from { scale: 1 0; }
  to   { scale: 1 1; }
}

@keyframes mh-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

@keyframes mh-pulse {
  0%, 100% { opacity: 0.55; scale: 0.94; }
  50%      { opacity: 1;    scale: 1.06; }
}

@keyframes mh-halo {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 18px 40px rgba(39, 55, 117, 0.22); }
  50%      { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.5), 0 22px 48px rgba(39, 55, 117, 0.3); }
}

@keyframes mh-spin {
  to { rotate: 360deg; }
}

.mh-why.is-armed:not(.is-in) :is(
  .mh-why-head > *,
  .mh-cpt-card,
  .mh-auth-card,
  .mh-compare-card,
  .mh-compare-item,
  .mh-compare-vs,
  .mh-solution,
  .mh-solution-item
) {
  opacity: 0;
}

.mh-why.is-in .mh-why-head > * {
  animation: mh-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-why.is-in .mh-why-head > :nth-child(2) { animation-delay: 0.1s; }
.mh-why.is-in .mh-why-head > :nth-child(4) { animation-delay: 0.2s; }

.mh-why.is-in .mh-why-rule {
  animation: none;
}

.mh-why.is-in .mh-why-rule span {
  animation: mh-grow-x 0.6s 0.25s ease-out backwards;
}

.mh-why.is-in .mh-why-rule span + span { animation-delay: 0.45s; }

.mh-why.is-in .mh-cpt-card {
  animation: mh-from-right 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-why.is-in .mh-cpt-row {
  animation: mh-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(0.6s + var(--i, 0) * 0.12s);
}

.mh-why.is-in .mh-cpt-bar span {
  animation: mh-grow-x 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(0.8s + var(--i, 0) * 0.15s);
}

.mh-why.is-in .mh-cpt-badge {
  animation: mh-pop 0.5s 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.mh-why.is-in .mh-auth-card {
  animation:
    mh-pop 0.6s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
    mh-float 5s 1.6s ease-in-out infinite;
}

.mh-why.is-in .mh-auth-ring {
  animation: mh-spin 1.2s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-why.is-in .mh-compare-card--general {
  animation: mh-from-left 0.8s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-why.is-in .mh-compare-card--mental {
  animation: mh-from-right 0.8s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-why.is-in .mh-compare-item {
  animation: mh-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(0.8s + var(--i, 0) * 0.1s);
}

.mh-why.is-in .mh-compare-card--mental .mh-compare-item {
  animation-delay: calc(0.9s + var(--i, 0) * 0.1s);
}

.mh-why.is-in .mh-compare-vs {
  animation:
    mh-pop 0.7s 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
    mh-halo 3.2s 2s ease-in-out infinite;
}

.mh-why.is-in .mh-solution {
  animation: mh-rise 0.8s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-why.is-in .mh-solution-title::before {
  animation: mh-grow-y 0.5s 1s ease-out backwards;
}

.mh-why.is-in .mh-solution-item {
  animation: mh-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(1.1s + var(--i, 0) * 0.12s);
}

/* Ambient loops: run once revealed (or always when the script never armed it). */
.mh-why:not(.is-armed) .mh-why-glow,
.mh-why.is-in .mh-why-glow {
  animation: mh-pulse 6s ease-in-out infinite;
}

.mh-why:not(.is-armed) .mh-why-dot,
.mh-why.is-in .mh-why-dot {
  animation: mh-float 5s ease-in-out infinite;
}

.mh-why .mh-why-dot--blue { animation-delay: 1.4s; }

.mh-why:not(.is-armed) .mh-auth-card {
  animation: mh-float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mh-why *,
  .mh-why *::before {
    animation: none !important;
  }
}

/* ---------- Why responsive ---------- */
@media (max-width: 1199px) {
  .mh-why {
    padding: 72px 0 80px;
  }

  .mh-why-top {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .mh-why-head {
    flex: none;
    width: 100%;
  }

  .mh-why-widget {
    align-self: center;
  }

  .mh-compare {
    gap: 24px;
  }

  .mh-compare-card {
    min-height: 0;
    padding: 26px 24px 22px;
  }
}

@media (max-width: 991px) {
  .mh-why-title {
    font-size: 28px;
    line-height: 36px;
  }

  .mh-compare {
    flex-direction: column;
    gap: 64px;
  }

  /* Stacked, the cards take their content height (a 0 basis would collapse them). */
  .mh-compare-card {
    flex: none;
  }

  .mh-compare-vs {
    top: 50%;
    width: 80px;
    height: 80px;
  }

  .mh-compare-vs span {
    width: 62px;
    height: 62px;
    font-size: 22px;
  }

  .mh-solution-list {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  .mh-solution-item {
    flex: 1 1 50%;
  }

  .mh-solution-item:nth-child(2) {
    border-right: 0;
  }
}

/* Phones — Figma "Why it matters · Mobile" 10845:1668 (440 wide). One column:
   intro, the 204px CPT / visits widget, the two cards with the VS badge
   between them, then the 2 x 2 Key Solution grid. */
@media (max-width: 575px) {
  .mh-why {
    --page-gutter: 20px;
    padding: 48px 0 56px;
  }

  .mh-why .container-page {
    gap: 32px;
  }

  .mh-why-ring--solid {
    top: -225px;
    left: -220px;
    width: 500px;
    height: 500px;
  }

  .mh-why-ring--dashed {
    top: -165px;
    left: -160px;
    width: 380px;
    height: 380px;
  }

  .mh-why-glow {
    top: 220px;
    right: auto;
    left: 180px;
    width: 400px;
    height: 480px;
  }

  .mh-why-dot--orange {
    top: 22px;
    left: 22px;
    width: 8px;
    height: 8px;
  }

  .mh-why-dot--blue {
    display: none;
  }

  .mh-why-top {
    gap: 24px;
  }

  .mh-why-pill {
    padding: 7px 17px;
  }

  .mh-why-title {
    padding-top: 0;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: 0;
  }

  .mh-why-lead {
    padding-top: 0;
    font-size: 16px;
    line-height: 25px;
  }

  /* Full width, 204 tall: CPT card top right, visits chip bottom left. */
  .mh-why-widget {
    align-self: stretch;
    width: 100%;
    height: 204px;
  }

  .mh-cpt-card {
    top: 0;
    max-width: 100%;
    padding: 15px 17px;
    filter: drop-shadow(0 20px 22px rgba(39, 55, 117, 0.12));
  }

  .mh-auth-card {
    bottom: 0;
  }

  /* Cards stack with the VS badge in flow between them (16px apart). */
  .mh-compare {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-top: 0;
  }

  .mh-compare-card {
    width: 100%;
    padding: 23px;
  }

  .mh-compare-card--mental {
    order: 2;
  }

  .mh-compare-head {
    gap: 16px;
    padding-bottom: 21px;
  }

  .mh-compare-icon {
    width: 60px;
    height: 60px;
    box-shadow: inset 0 0 0 6px #f6f8fd;
  }

  .mh-compare-title {
    flex: 1 1 0;
    min-width: 0;
    font-size: 22px;
    line-height: 29px;
  }

  .mh-compare-item {
    gap: 12px;
    padding: 18px 0 17px;
  }

  .mh-compare-item:last-child {
    padding: 18px 0 4px;
  }

  .mh-compare-check {
    margin-top: 3px;
  }

  .mh-compare-body {
    gap: 5px;
  }

  .mh-compare-item-title {
    padding: 0;
    font-size: 17px;
    line-height: 25px;
  }

  .mh-compare-item-text {
    font-size: 16px;
    line-height: 24px;
  }

  .mh-compare-vs {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: 76px;
    height: 76px;
    box-shadow: 0 10px 30px rgba(39, 55, 117, 0.15);
    translate: none;
  }

  .mh-why.is-in .mh-compare-vs {
    animation: mh-pop 0.7s 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .mh-compare-vs span {
    width: 60px;
    height: 60px;
    padding-bottom: 0;
    font-size: 22px;
    letter-spacing: 0;
  }

  .mh-solution {
    gap: 24px;
    padding: 25px 23px 27px;
    box-shadow: 0 20px 44px rgba(39, 55, 117, 0.12);
  }

  .mh-solution-blob {
    top: -91px;
    right: -91px;
    width: 220px;
    height: 220px;
  }

  .mh-solution-title {
    gap: 14px;
    font-size: 28px;
    line-height: 36px;
  }

  .mh-solution-title::before {
    height: 34px;
  }

  /* 2 x 2, 20px apart; a full-width rule 24px below the first row. */
  .mh-solution-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .mh-solution-item {
    position: relative;
    padding: 6px 0;
    border-right: 0;
  }

  .mh-solution-item:nth-child(-n + 2) {
    padding-bottom: 30px;
  }

  .mh-solution-item:nth-child(n + 3) {
    padding-top: 31px;
  }

  .mh-solution-item:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(200% + 20px);
    height: 1px;
    background: #e6ebf5;
  }

  .mh-solution-label {
    padding: 0;
    font-size: 16px;
    line-height: 24px;
  }
}

/* ============================================================= */
/* Our mental health billing services (tabs) — Figma 10709:4047   */
/* (tab states 10723:6777 / 6980 / 7178 / 7393). Builds on .bh-svc */
/* (Figma 8777:68823); only the title width, tab sizing, per-pill  */
/* widths / alignment / height and the list-title rule differ.     */
/* ============================================================= */

/* One 32px line in Figma, wider than BH's 706px title box. */
.mh-v2 .bh-svc-title {
  width: auto;
}

/* Figma draws the 1px panel strokes inside its frames; take them out of the
   padding so the panels are Figma's 372.59 / 205px tall, not 2px more. */
.mh-v2 .bh-svc-card--main {
  padding: 24px 26px;
}

.mh-v2 .bh-svc-card--ai {
  padding: 19px;
}

.mh-v2 .bh-svc-verify {
  padding: 21px 27px 25px;
}

/* The first three tabs hug their labels; the last two share the rest of the row. */
.mh-v2 .bh-svc-tab:nth-child(-n + 3) {
  flex: none;
}

/* A pill can set its own width / side padding (the view sets --pill-w / --pill-pad
   on the item) and a tab can fix the pill height (--pill-h on the list). */
.mh-v2 .bh-svc-pill-item {
  height: var(--pill-h, auto);
  padding-right: var(--pill-pad, 15px);
  padding-left: var(--pill-pad, 15px);
}

/* Figma left-aligns these pills' content instead of centring it. */
.mh-v2 .mh-pill--start {
  justify-content: flex-start;
}

/* The orange rule sits at a per-tab offset from the head's centre (--rule-x). */
.mh-v2 .bh-svc-verify-head::after {
  left: calc(50% + var(--rule-x, 24px));
}

/* "Codes We Apply" also rules off the 4th column between its rows. */
.mh-v2 .mh-svc-verify--rule4 .bh-svc-list-item:nth-child(4)::after {
  content: "";
  position: absolute;
  top: 45.91px;
  left: 47.5px;
  width: 181px;
  height: 1px;
  background: var(--c-light-grey);
  transform-origin: 0 0;
}

@media (max-width: 1199px) {
  .mh-v2 .bh-svc-tab:nth-child(-n + 3) {
    flex: none;
  }
}

@media (max-width: 991px) {
  .mh-v2 .mh-svc-verify--rule4 .bh-svc-list-item:nth-child(4)::after {
    content: none;
  }
}

/* Restore the BH phone paddings the panel overrides above would otherwise win over. */
@media (max-width: 767px) {
  .mh-v2 .bh-svc-card--main,
  .mh-v2 .bh-svc-card--ai,
  .mh-v2 .bh-svc-verify {
    padding: 22px 20px;
  }
}

/* Below 768px the AI cluster keeps its desktop 555 x 154 layout and scales
   down to the card (Figma's phone cluster is the desktop one at 360 / 555).
   tan(atan2(a, b)) turns the two lengths into the unitless ratio. */
@media (max-width: 767px) {
  .mh-v2 .bh-svc-cluster {
    display: block;
    width: 100%;
    max-width: 555px;
    height: auto;
    aspect-ratio: 555 / 154;
    overflow: visible;
    container-type: inline-size;
  }

  .mh-v2 .bh-svc-circuit,
  .mh-v2 .bh-svc-pills {
    --k: min(1, tan(atan2(100cqw, 555px)));
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: 555px;
    height: 154px;
    margin: 0;
    translate: none;
    scale: var(--k);
    transform-origin: 0 0;
  }

  .mh-v2 .bh-svc-pill-item {
    position: absolute;
    width: var(--pill-w, 140px);
    height: var(--pill-h, auto);
    padding: 8px var(--pill-pad, 15px);
    white-space: nowrap;
  }
}

/* Phones — Figma 10750:7076 (400 wide). The tabs turn into an accordion:
   the strip dissolves (display: contents) so each tab and its panel are
   ordered in pairs down the column, 20px apart. */
@media (max-width: 575px) {
  .mh-v2 .bh-svc {
    --page-gutter: 20px;
    padding: 50px 0;
  }

  .mh-v2 .bh-svc .container-page {
    gap: 20px;
  }

  .mh-v2 .bh-svc-head {
    margin-bottom: 20px;
  }

  .mh-v2 .bh-svc-pill {
    font-size: 10px;
  }

  .mh-v2 .bh-svc-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .bh-svc-tabs {
    display: contents;
  }

  .mh-v2 .bh-svc-tab,
  .mh-v2 .bh-svc-tab:nth-child(-n + 3) {
    flex: none;
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
  }

  .mh-v2 .bh-svc-tab:nth-child(1) { order: 1; }
  .mh-v2 .bh-svc-tab:nth-child(2) { order: 3; }
  .mh-v2 .bh-svc-tab:nth-child(3) { order: 5; }
  .mh-v2 .bh-svc-tab:nth-child(4) { order: 7; }
  .mh-v2 .bh-svc-tab:nth-child(5) { order: 9; }

  /* Panels follow the head and the tab strip in the DOM (children 3-7). */
  .mh-v2 .bh-svc-panel:nth-child(3) { order: 2; }
  .mh-v2 .bh-svc-panel:nth-child(4) { order: 4; }
  .mh-v2 .bh-svc-panel:nth-child(5) { order: 6; }
  .mh-v2 .bh-svc-panel:nth-child(6) { order: 8; }
  .mh-v2 .bh-svc-panel:nth-child(7) { order: 10; }

  .mh-v2 .bh-svc-panel,
  .mh-v2 .bh-svc-top {
    gap: 20px;
  }

  .mh-v2 .bh-svc-card--main {
    padding: 24px 26px;
  }

  .mh-v2 .bh-svc-card--ai {
    gap: 20px;
    padding: 19px;
  }

  .mh-v2 .bh-svc-card-title {
    font-size: 20px;
    line-height: 30px;
  }

  /* One row, as in Figma: 82px steps and chevrons overlapping by 15px, laid
     out at Figma's 346px (--fw) and scaled down to fit narrower cards (the
     card is the size container; tan(atan2()) gives the unitless ratio). The
     negative margin gives back the height the scale frees up. */
  .mh-v2 .bh-svc-flow {
    --fw: 346px;
    --k: min(1, tan(atan2(100cqw, var(--fw))));
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
    width: max(var(--fw), 100%);
    max-width: none;
    margin-bottom: calc((var(--k) - 1) * 84px);
    scale: var(--k);
    transform-origin: 0 0;
  }

  /* Long labels (Claim Submission, Payments & Denials) need a wider row. */
  .mh-v2 .mh-flow--wide {
    --fw: 370px;
  }

  .mh-v2 .bh-svc-flow-step {
    flex: none;
    width: 82px;
    margin-right: -15px;
  }

  .mh-v2 .bh-svc-flow-step:last-child {
    margin-right: 0;
  }

  .mh-v2 .bh-svc-flow .bh-svc-flow-arrow {
    display: block;
    margin: 0 -15px 0 0;
  }

  .mh-v2 .bh-svc-flow-label {
    font-size: 10px;
  }

  /* Size container for the flow's scale. */
  .mh-v2 .bh-svc-card--main {
    container-type: inline-size;
  }

  .mh-v2 .bh-svc-tagline {
    font-size: 14px;
  }

  .mh-v2 .bh-svc-verify {
    min-height: 0;
    padding: 19px;
  }

  .mh-v2 .bh-svc-verify-head {
    justify-content: flex-start;
    margin: 0 0 20px;
  }

  .mh-v2 .bh-svc-verify-head::after {
    top: 37.4px;
    left: 82px;
    translate: none;
  }

  .mh-v2 .bh-svc-verify-title {
    font-size: 20px;
    line-height: normal;
  }

  .mh-v2 .bh-svc-list {
    grid-auto-rows: 36px;
    gap: 0;
  }

  .mh-v2 .bh-svc-list-item {
    min-height: 0;
  }
}

/* ============================================================= */
/* Specialized mental health billing services — Figma 10709:4321  */
/* (1440 x 1002). Builds on .bh-sub (Figma 8777:69097): same head */
/* and decoration; 240px cards 20px apart, a 243px text column     */
/* and a 100px illustration (circle included) placed per card.     */
/* ============================================================= */
.mh-v2 .mh-sub .container-page {
  gap: 20px;
}

.mh-v2 .bh-sub-title .accent {
  color: var(--c-orange);
}

.mh-v2 .bh-sub-grid {
  gap: 20px;
}

.mh-v2 .bh-sub-card {
  height: 240px;
}

.mh-v2 .bh-sub-card-body {
  width: 243px;
}

/* Figma places each illustration from the card's top-left (--art-x / --art-y). */
.mh-v2 .bh-sub-art {
  top: var(--art-y, 93.64px);
  left: var(--art-x, 279.5px);
  width: 100px;
  height: auto;
  transform: none;
}

@media (max-width: 1199px) {
  .mh-v2 .bh-sub-card {
    height: auto;
    min-height: 240px;
  }

  /* The text column narrows; the illustration keeps to the card's right edge. */
  .mh-v2 .bh-sub-card-body {
    width: auto;
    padding-right: 116px;
  }

  .mh-v2 .bh-sub-art {
    left: auto;
    right: 18px;
  }
}

/* Phones — Figma 10750:7368 (440 wide): 40px padding, the head 40px above
   one column of 230px cards 20px apart. */
@media (max-width: 575px) {
  .mh-v2 .mh-sub {
    --page-gutter: 20px;
    padding: 40px 0;
  }

  .mh-v2 .mh-sub .container-page {
    gap: 40px;
  }

  .mh-v2 .bh-sub-deco {
    top: -130px;
    right: -270.1px;
  }

  .mh-v2 .bh-sub-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .bh-sub-lead {
    font-size: 14px;
    line-height: 25.2px;
  }
}

/* Below 768px every card is Figma's phone card: 400px wide (centred until the
   column is narrower), 230px tall, the 243px text column and the 100px
   illustration at --art-x / --art-y. A narrower card scales that inner layout
   (--k = content width / Figma's 352px) so the text and the art share the
   loss; the card is the size container. */
@media (max-width: 767px) {
  .mh-v2 .bh-sub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Figma's cards are a fixed 230px; the longest (09) runs 17px into the
     24px bottom padding, so only 7px of it is kept below the text. */
  .mh-v2 .bh-sub-card {
    height: auto;
    min-height: 230px;
    padding: 26px 22px 7px 26px;
    container-type: inline-size;
  }

  .mh-v2 .bh-sub-card-body,
  .mh-v2 .bh-sub-art {
    --k: min(1, tan(atan2(100cqw, 352px)));
  }

  .mh-v2 .bh-sub-card-body {
    width: calc(243px * var(--k));
    padding-right: 0;
  }

  .mh-v2 .bh-sub-card-title {
    font-size: 16px;
  }

  .mh-v2 .bh-sub-art {
    top: var(--art-y, 93.64px);
    right: auto;
    left: calc(26px + (var(--art-x, 279.5px) - 26px) * var(--k));
    width: calc(100px * var(--k));
  }
}

/* ============================================================= */
/* CTA banner — Figma 10709:4406 (1240 x 352). Builds on .bh-cta;  */
/* Figma's 2px stroke sits inside the 40px padding: 272 + 80 = 352. */
/* ============================================================= */
@media (min-width: 992px) {
  .mh-v2 .bh-cta {
    padding: 60px 0;
  }

  .mh-v2 .bh-cta-banner {
    padding: 38px;
  }
}

/* Phones — Figma 10750:7343 (400 x 487 at 440): copy on top, the 278 x 221
   illustration centred 40px below, a left-to-right gradient and no stroke.
   The wave is the desktop shape at Figma's 531.865 x 240.913, centred at
   (190.5, 415.36) in the card. */
@media (max-width: 575px) {
  .mh-v2 .mh-cta {
    --page-gutter: 20px;
    padding: 50px 0;
  }

  .mh-v2 .bh-cta-banner {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #273775 29.808%, #fc5d61 100%);
    border: 0;
  }

  .mh-v2 .bh-cta-wave {
    top: calc(415.36px - 240.913px / 2);
    right: auto;
    left: calc(190.5px - 531.865px / 2);
    width: 531.865px;
    height: 240.913px;
  }

  .mh-v2 .bh-cta-copy {
    gap: 10px;
  }

  .mh-v2 .bh-cta-title {
    width: 100%;
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .bh-cta-text {
    font-size: 16px;
    line-height: 25.2px;
  }

  .mh-v2 .bh-cta-actions {
    flex-direction: row;
    gap: 19px;
    align-items: center;
    width: 100%;
    margin-top: 20px;
  }

  /* Equal halves (a 0 basis would count the ghost's border and make it 2px wider). */
  .mh-v2 .bh-cta-btn {
    flex: none;
    width: calc((100% - 19px) / 2);
  }

  .mh-v2 .bh-cta-art {
    align-self: center;
    width: 278px;
    height: 221px;
  }
}

/* Below 400px "Talk to a Specialist" no longer fits half the row: stack the buttons. */
@media (max-width: 399px) {
  .mh-v2 .bh-cta-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .mh-v2 .bh-cta-btn {
    width: auto;
  }
}

/* ============================================================= */
/* Mental health coding services expertise — Figma 10709:4431     */
/* Builds on .bh-code (grid, hover gradient, animation); the cards */
/* are 130px tall here and the 80px audit icon keeps its 10px pad.  */
/* ============================================================= */
@media (min-width: 992px) {
  .mh-v2 .bh-code-card {
    height: 130px;
  }
}

.mh-v2 .bh-code-card--last .bh-code-icon {
  padding: 0 10px;
}

/* Phones — Figma 10750:7451 (400 wide at 440): 20px padding, 160px cards
   20px apart with the desktop card anatomy (21px padding, 80px icon column
   holding the 60px icon, 18/26 titles, 14/24 copy); the audits card keeps
   its 20/26 + 16/24 type and grows to fit. Figma reads the desktop grid a
   column at a time: the left column (1, 3, 5, 7), the right (2, 4, 6, 8),
   then the audits card. */
@media (max-width: 575px) {
  .mh-v2 .mh-code {
    --page-gutter: 20px;
    padding: 20px 0;
  }

  .mh-v2 .bh-code-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .bh-code-lead {
    font-size: 14px;
    line-height: 27px;
  }

  .mh-v2 .bh-code-grid {
    gap: 20px;
  }

  /* Figma's 1px stroke sits inside its 21px padding. Its five-line cards run
     6px past the 160px frame; with a 6px bottom padding they fit it instead. */
  .mh-v2 .bh-code-card {
    gap: 16px;
    min-height: 160px;
    padding: 20px 20px 6px;
  }

  .mh-v2 .bh-code-card:nth-child(2) { order: 5; }
  .mh-v2 .bh-code-card:nth-child(3) { order: 2; }
  .mh-v2 .bh-code-card:nth-child(4) { order: 6; }
  .mh-v2 .bh-code-card:nth-child(5) { order: 3; }
  .mh-v2 .bh-code-card:nth-child(6) { order: 7; }
  .mh-v2 .bh-code-card:nth-child(7) { order: 4; }
  .mh-v2 .bh-code-card:nth-child(8) { order: 8; }
  .mh-v2 .bh-code-card:nth-child(9) { order: 9; }

  .mh-v2 .bh-code-icon {
    min-width: 80px;
    padding: 0 10px;
  }

  .mh-v2 .bh-code-icon img {
    width: 60px;
    height: auto;
  }

  .mh-v2 .bh-code-card--last .bh-code-icon img {
    width: 80px;
  }

  .mh-v2 .bh-code-card-title {
    font-size: 18px;
    line-height: 26px;
  }

  .mh-v2 .bh-code-card-text {
    font-size: 14px;
    line-height: 24px;
  }

  .mh-v2 .bh-code-card--last {
    min-height: 0;
    padding-bottom: 20px;
  }

  .mh-v2 .bh-code-card--last .bh-code-card-title {
    font-size: 20px;
  }

  .mh-v2 .bh-code-card--last .bh-code-card-text {
    font-size: 16px;
  }
}

/* Figma keeps cards 1-8's titles on one line; the longest (270px) runs into
   the 20px right padding of the 262px column, so that holds from 428px. */
@media (min-width: 428px) and (max-width: 575px) {
  .mh-v2 .bh-code-card:not(.bh-code-card--last) .bh-code-card-title {
    white-space: nowrap;
  }
}

/* ============================================================= */
/* Telehealth billing — Figma 10744:1952 (1440 x 639)              */
/* Copy column (424px) + a 816 x 560 hub diagram: 330px dashed     */
/* ring with 10 nodes, the 254px inner ring, the 207.5px gradient  */
/* hub and four cards, all placed from Figma's coordinates.        */
/* ============================================================= */
.mh-tele {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background: #f7f8fc;
}

/* Figma 10744:1954: dot grid at 50% opacity, 20px in from the corner. */
.mh-tele-dots {
  position: absolute;
  top: 19.9px;
  left: 20.2px;
  display: block;
  width: 140.515px;
  height: 140.515px;
  max-width: none;
  opacity: 0.5;
  pointer-events: none;
}

.mh-tele-inner {
  position: relative;
  max-width: 1237px;
  height: 559px;
}

/* ---------- Copy ---------- */
.mh-tele-copy {
  position: absolute;
  top: -0.74px;
  left: -3px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  width: 424px;
}

.mh-tele-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%; /* so the 426px title's max-width resolves on small screens */
}

.mh-tele-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 12px;
  line-height: 9.976px;
  color: var(--c-blue);
  white-space: nowrap;
  background: rgba(39, 55, 117, 0.1);
  border-radius: 9.069px;
}

.mh-tele-title {
  width: 426px;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--c-blue);
  text-transform: none;
}

.mh-tele-title .accent {
  color: var(--c-orange);
}

.mh-tele-lead {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--c-text);
}

/* 24px gradient ticks (same art as the hero list), 10px apart. */
.mh-tele-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 363px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-tele-list li {
  position: relative;
  padding-left: 34px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 28.8px;
  color: var(--c-text);
}

.mh-tele-list li::before {
  content: "";
  position: absolute;
  top: 2.4px;
  left: 0;
  width: 24px;
  height: 24px;
  background: url("../../images/mental-health-v2/hero-tick.svg") center / 24px 24px no-repeat;
}

.mh-tele-btn {
  position: relative;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 8px 14px;
  overflow: hidden;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  line-height: 20.8px;
  color: var(--c-white);
  white-space: nowrap;
  text-decoration: none;
  background: var(--c-orange);
  border-radius: 75px;
  transition: translate 0.3s ease, box-shadow 0.3s ease;
}

.mh-tele-btn:hover,
.mh-tele-btn:focus-visible {
  color: var(--c-white);
  translate: 0 -2px;
  box-shadow: 0 10px 22px -8px rgba(252, 93, 97, 0.7);
}

.mh-tele-btn-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--c-white);
  border-radius: 50%;
}

.mh-tele-btn-icon img {
  display: block;
  translate: 0 0.6px;
  transition: translate 0.3s ease;
}

.mh-tele-btn:hover .mh-tele-btn-icon img {
  translate: 2px 0.6px;
}

/* ---------- Diagram ---------- */
.mh-tele-diagram {
  position: absolute;
  top: -1px;
  left: 421px;
  width: 816px;
  height: 560px;
}

/* 330px ring centred at (408, 302) of the diagram. */
.mh-tele-orbit {
  position: absolute;
  top: 137px;
  left: 243px;
  width: 330px;
  height: 330px;
  pointer-events: none;
}

.mh-tele-ring {
  position: absolute;
  inset: 0;
}

.mh-tele-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.375px dashed rgba(39, 55, 117, 0.3);
  border-radius: 50%;
}

/* 5.5px orange nodes at Figma's positions on the 330px box. */
.mh-tele-node {
  position: absolute;
  width: 5.5px;
  height: 5.5px;
  background: var(--c-orange);
  border-radius: 50%;
}

.mh-tele-node--1  { top: 162.25px; left: 324.5px; }
.mh-tele-node--2  { top: 162.25px; left: 0; }
.mh-tele-node--3  { top: 53.62px;  left: 94.87px; }
.mh-tele-node--4  { top: 53.62px;  left: 228.94px; }
.mh-tele-node--5  { top: 152.08px; left: 34.93px; }
.mh-tele-node--6  { top: 152.08px; left: 289.4px; }
.mh-tele-node--7  { top: 257.64px; left: 77.22px; }
.mh-tele-node--8  { top: 257.64px; left: 247.1px; }
.mh-tele-node--9  { top: 290.12px; left: 162.25px; }
.mh-tele-node--10 { top: 0.95px;   left: 162.25px; }

.mh-tele-ring-inner {
  position: absolute;
  top: 37.88px;
  left: 37.81px;
  display: block;
  width: 254.375px;
  height: 254.375px;
  max-width: none;
}

/* 207.5px gradient disc with a 6.5px white rim, centred on the ring. */
.mh-tele-hub {
  position: absolute;
  top: 198.37px;
  left: 304.24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12.97px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 207.526px;
  height: 207.526px;
  padding: 20.752px 19.455px 27.238px;
  background: linear-gradient(to right, #273775 29.808%, #fc5d61 100%);
  border: 6.485px solid var(--c-white);
  border-radius: 50%;
  box-shadow: 0 0 0 0.649px rgba(39, 55, 117, 0.1), 0 16.213px 32.426px -7.782px rgba(0, 0, 0, 0.25);
}

.mh-tele-hub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36.317px;
  height: 36.317px;
  background: var(--c-white);
  border-radius: 50%;
}

.mh-tele-hub-icon img {
  display: block;
  max-width: none;
}

.mh-tele-hub-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15.564px;
  line-height: 20.753px;
  color: var(--c-white);
  text-align: center;
  white-space: nowrap;
}

.mh-tele-hub-bar {
  width: 25.941px;
  height: 1.946px;
  background: var(--c-orange);
  border-radius: 1.297px;
}

.mh-tele-cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-tele-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  height: 144.976px;
  padding: 20px 10px;
  background: var(--c-white);
  border-radius: 15.72px;
  filter: drop-shadow(0 12.227px 14.847px rgba(39, 55, 117, 0.1));
  transition: filter 0.35s ease;
}

.mh-tele-card:hover {
  filter: drop-shadow(0 18px 24px rgba(39, 55, 117, 0.18));
}

.mh-tele-card--1 { top: 84px;  left: 62px;  width: 216.59px; }
.mh-tele-card--2 { top: 84px;  left: 519px; width: 237.551px; }
.mh-tele-card--3 { top: 384px; left: 62px;  width: 216.59px; }
.mh-tele-card--4 { top: 384px; left: 519px; width: 237.551px; }

.mh-tele-card-head {
  display: flex;
  gap: 10.48px;
  align-items: center;
}

.mh-tele-card-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38.427px;
  height: 38.427px;
  background: var(--c-white);
  border-radius: 50%;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.14));
  transition: scale 0.35s ease, rotate 0.35s ease;
}

.mh-tele-card:hover .mh-tele-card-icon {
  scale: 1.1;
  rotate: -8deg;
}

.mh-tele-card-icon img {
  display: block;
  max-width: none;
}

.mh-tele-card-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  color: var(--c-blue);
  text-transform: none;
}

.mh-tele-card-text {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: var(--c-text);
}

/* The step number only shows on phones. */
.mh-tele-card-num {
  display: none;
}

/* ---------- Telehealth animation ---------- */
/* .is-armed/.is-in: copy rises in order, the rings draw in and start
   turning, the hub pops, then the cards come in from their side and
   keep a gentle float; the nodes pulse in turn. */
.mh-tele.is-armed:not(.is-in) :is(
  .mh-tele-head > *,
  .mh-tele-list li,
  .mh-tele-btn,
  .mh-tele-orbit,
  .mh-tele-hub,
  .mh-tele-card
) {
  opacity: 0;
}

.mh-tele.is-in .mh-tele-head > *,
.mh-tele.is-in .mh-tele-list li,
.mh-tele.is-in .mh-tele-btn {
  animation: mh-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-tele.is-in .mh-tele-head > :nth-child(2) { animation-delay: 0.1s; }
.mh-tele.is-in .mh-tele-head > :nth-child(3) { animation-delay: 0.2s; }
.mh-tele.is-in .mh-tele-list li:nth-child(1) { animation-delay: 0.3s; }
.mh-tele.is-in .mh-tele-list li:nth-child(2) { animation-delay: 0.38s; }
.mh-tele.is-in .mh-tele-list li:nth-child(3) { animation-delay: 0.46s; }
.mh-tele.is-in .mh-tele-btn { animation-delay: 0.56s; }

@keyframes mh-zoom-in {
  from { opacity: 0; scale: 0.7; }
  to   { opacity: 1; scale: 1; }
}

@keyframes mh-spin-rev {
  to { rotate: -360deg; }
}

@keyframes mh-node {
  0%, 20%, 100% { scale: 1; box-shadow: 0 0 0 0 rgba(252, 93, 97, 0); }
  10%           { scale: 1.6; box-shadow: 0 0 0 4px rgba(252, 93, 97, 0.25); }
}

@keyframes mh-hub-glow {
  0%, 100% { box-shadow: 0 0 0 0.649px rgba(39, 55, 117, 0.1), 0 16.213px 32.426px -7.782px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(252, 93, 97, 0.25); }
  50%      { box-shadow: 0 0 0 0.649px rgba(39, 55, 117, 0.1), 0 16.213px 32.426px -7.782px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(252, 93, 97, 0); }
}

.mh-tele.is-in .mh-tele-orbit {
  animation: mh-zoom-in 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-tele.is-in .mh-tele-hub {
  animation:
    mh-pop 0.7s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
    mh-hub-glow 3s 1.4s ease-out infinite;
}

.mh-tele.is-in .mh-tele-card--1,
.mh-tele.is-in .mh-tele-card--3 {
  animation:
    mh-from-left 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    mh-float 6s ease-in-out infinite;
}

.mh-tele.is-in .mh-tele-card--2,
.mh-tele.is-in .mh-tele-card--4 {
  animation:
    mh-from-right 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    mh-float 6s ease-in-out infinite;
}

.mh-tele.is-in .mh-tele-card { animation-delay: calc(0.75s + var(--i, 0) * 0.12s), calc(1.8s + var(--i, 0) * 0.7s); }

/* Ambient loops (also run when the script never armed the section). */
.mh-tele:not(.is-armed) .mh-tele-ring,
.mh-tele.is-in .mh-tele-ring {
  animation: mh-spin 60s linear infinite;
}

.mh-tele:not(.is-armed) .mh-tele-ring-inner,
.mh-tele.is-in .mh-tele-ring-inner {
  animation: mh-spin-rev 80s linear infinite;
}

.mh-tele:not(.is-armed) .mh-tele-node,
.mh-tele.is-in .mh-tele-node {
  animation: mh-node 5s ease-in-out infinite;
}

.mh-tele-node--2  { animation-delay: 0.5s !important; }
.mh-tele-node--3  { animation-delay: 1s !important; }
.mh-tele-node--4  { animation-delay: 1.5s !important; }
.mh-tele-node--5  { animation-delay: 2s !important; }
.mh-tele-node--6  { animation-delay: 2.5s !important; }
.mh-tele-node--7  { animation-delay: 3s !important; }
.mh-tele-node--8  { animation-delay: 3.5s !important; }
.mh-tele-node--9  { animation-delay: 4s !important; }
.mh-tele-node--10 { animation-delay: 4.5s !important; }

@media (prefers-reduced-motion: reduce) {
  .mh-tele *,
  .mh-tele *::before {
    animation: none !important;
  }
}

/* ---------- Telehealth responsive ---------- */
/* Below 1300px the 424 + 816px row no longer fits: the copy stacks above
   the diagram, which stays 816px wide while it fits; below 900px the
   cards drop into a grid under the hub. */
@media (max-width: 1299px) {
  .mh-tele {
    padding: 48px 0;
  }

  .mh-tele-inner {
    height: auto;
  }

  .mh-tele-copy {
    position: static;
    width: 100%;
    max-width: 640px;
  }

  .mh-tele-diagram {
    position: relative;
    top: auto;
    left: auto;
    margin: 32px auto 0;
  }
}

@media (max-width: 899px) {
  .mh-tele-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }

  .mh-tele-orbit {
    display: none;
  }

  .mh-tele-hub {
    position: relative;
    top: auto;
    left: auto;
  }

  .mh-tele-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 28px;
  }

  .mh-tele-card {
    position: static;
    width: auto !important;
    height: auto;
    padding: 18px 14px;
  }
}

/* Phones — Figma 10866:3 (440 x 1367): 50px below the coding section, 40px
   padding; the copy, then the four cards in a column 36px apart (no hub
   diagram). Each card: the gradient step number and the 40px icon disc on
   one row, then the title and copy; a 1px gradient stroke drawn inside. */
@media (max-width: 575px) {
  .mh-tele {
    --page-gutter: 20px;
    margin-top: 50px;
    padding: 40px 0;
  }

  .mh-tele-dots {
    top: 20px;
    left: 20px;
  }

  .mh-tele-copy {
    gap: 28px;
    max-width: none;
  }

  .mh-tele-pill {
    line-height: 12px;
  }

  .mh-tele-title {
    width: 100%;
    font-size: 30px;
    line-height: 38px;
  }

  .mh-tele-list {
    width: 100%;
  }

  .mh-tele-diagram {
    margin-top: 36px;
  }

  .mh-tele-hub {
    display: none;
  }

  .mh-tele-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 0;
  }

  .mh-tele-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    padding: 19px;
    background:
      linear-gradient(var(--c-white), var(--c-white)) padding-box,
      linear-gradient(to right, #273775 29.808%, #fc5d61 100%) border-box;
    border: 1px solid transparent;
    border-radius: 16px;
    filter: drop-shadow(0 8px 10px rgba(39, 55, 117, 0.04));
  }

  .mh-tele-card-num {
    display: block;
    align-self: center;
    justify-self: start;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: transparent;
    background: linear-gradient(to right, #273775 29.808%, #fc5d61 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .mh-tele-card-head {
    display: contents;
  }

  .mh-tele-card-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
  }

  .mh-tele-card-title {
    grid-column: 1 / -1;
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .mh-tele-card-text {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
  }
}

/* ============================================================= */
/* Who we serve — Figma 10709:4764 (1440 x 972). Builds on         */
/* .bh-serve (Figma 8777:69540); the 40px one-line key features,   */
/* 230px cards with 80px art (no link), the orbit offset and the   */
/* wider CTA info block differ.                                    */
/* ============================================================= */

/* Figma 10709:4766: x -302.7 from the 1440 frame, y 591.7. */
.mh-v2 .mh-serve .bh-serve-orbit {
  top: 591.7px;
  left: calc(50% - 720px - 302.7px);
}

.mh-v2 .mh-serve .bh-serve-key {
  align-items: center;
}

.mh-v2 .mh-serve .bh-serve-key-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1.481px 1.481px rgba(0, 0, 0, 0.15));
}

.mh-v2 .mh-serve .bh-serve-key-body strong {
  font-weight: 500;
}

.mh-v2 .mh-serve .bh-serve-card {
  height: 230px;
}

/* 80px-tall art; the solo-practice brain badge sits on it at (53, 6.26). */
.mh-serve-art {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  height: 80px;
  transform-origin: 30% 80%;
  transition: scale 0.4s ease;
}

.mh-v2 .mh-serve .bh-serve-card-art {
  width: auto;
  height: 80px;
  transition: none;
}

.mh-v2 .mh-serve .bh-serve-card:hover .bh-serve-card-art {
  scale: none;
}

.mh-v2 .mh-serve .bh-serve-card:hover .mh-serve-art {
  scale: 1.06;
}

.mh-serve-art-overlay {
  position: absolute;
  z-index: 2; /* above the art, which BH layers at z-index 1 */
  top: 6.26px;
  left: 53px;
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
}

.mh-v2 .mh-serve .bh-serve-card-text {
  margin: 0;
}

/* Animation: BH staggers two key features; the third follows, and the
   brain badge pops in once its art has landed. */
.mh-serve.is-in .bh-serve-key:nth-child(3) { animation-delay: 0.71s; }

.mh-serve.is-armed:not(.is-in) .mh-serve-art-overlay {
  opacity: 0;
}

.mh-serve.is-in .mh-serve-art-overlay {
  animation: bh-serve-pop 0.5s calc(var(--t) + 0.75s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.mh-v2 .mh-serve .bh-serve-bar-cta-info {
  flex-basis: 929px;
}

@media (max-width: 1199px) {

  .mh-v2 .mh-serve .bh-serve-card {
    height: auto;
    min-height: 230px;
  }
}

/* Phones — Figma 10750:7757 (400 x 2401 at 440): 50px below the telehealth
   section, 40px padding, no orbit. Intro, then the six 220px cards 28px
   apart (Figma's 2px stroke sits inside the 20px padding), then the CTA
   box: the shield beside the stacked title and copy, the button below. */
@media (max-width: 575px) {
  .mh-v2 .mh-serve {
    --page-gutter: 20px;
    margin-top: 50px;
    padding: 40px 0;
  }

  .mh-v2 .mh-serve .bh-serve-orbit {
    display: none;
  }

  .mh-v2 .mh-serve .bh-serve-layout {
    gap: 20px;
  }

  .mh-v2 .mh-serve .bh-serve-pill {
    font-size: 10px;
  }

  .mh-v2 .mh-serve .bh-serve-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .mh-serve .bh-serve-lead {
    font-size: 14px;
  }

  .mh-v2 .mh-serve .bh-serve-grid {
    gap: 28px;
  }

  .mh-v2 .mh-serve .bh-serve-card {
    height: 220px;
    min-height: 0;
    padding: 18px;
  }

  .mh-v2 .mh-serve .bh-serve-bar-cta {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 20px 22px;
    border-radius: 20px;
  }

  .mh-v2 .mh-serve .bh-serve-bar-cta-info {
    flex-basis: auto; /* the desktop 929px would become a height in the column */
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .mh-v2 .mh-serve .bh-serve-bar-cta-icon {
    grid-row: span 2;
  }

  .mh-v2 .mh-serve .bh-serve-bar-cta-title {
    font-size: 20px;
    line-height: 30px;
  }

  .mh-v2 .mh-serve .bh-serve-bar-cta-text br {
    display: inline;
  }

  .mh-v2 .mh-serve .bh-serve-bar-cta-btn {
    width: 100%;
    height: 50px;
    min-height: 0;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ============================================================= */
/* Credentialing — Figma 10709:4893 (1440 x 658). Builds on         */
/* .bh-cred (Figma 8777:69669); only the 280px button and the      */
/* "Weekly" follow-up value (in place of BH's approval time) differ. */
/* ============================================================= */
.mh-v2 .mh-cred .bh-cred-btn {
  width: 280px;
}

/* Figma's 2px panel stroke sits inside its 20px padding (578px panel). */
@media (min-width: 1200px) {
  .mh-v2 .mh-cred .bh-cred-panel {
    padding: 18px;
  }
}

.mh-cred-frequency {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  color: var(--c-orange);
}

/* ============================================================= */
/* Why choose us — Figma 10709:5025 (1440 x 535). Builds on         */
/* .bh-choose (Figma 8777:69801): 417px copy, buttons stacked at    */
/* 413px, 182px cards with 50px icons (some built from layers).     */
/* ============================================================= */

.mh-v2 .mh-choose .bh-choose-heading,
.mh-v2 .mh-choose .bh-choose-lead {
  width: 417px;
  max-width: 100%;
}

.mh-v2 .mh-choose .bh-choose-actions {
  flex-direction: column;
  align-items: stretch;
  width: 413px;
  max-width: 100%;
  margin-top: 0;
}

.mh-v2 .mh-choose .bh-choose-btn {
  width: 100%;
}

.mh-v2 .mh-choose .bh-choose-card {
  gap: 10px;
  height: auto;
  padding: 16px 20px;
}

/* 50px icon slot, 20px above the title. */
.mh-v2 .mh-choose .bh-choose-icon {
  width: 50px;
  height: 50px;
}

/* Single exports carry 4.17px of shadow / arc bleed around the 50px circle. */
.mh-v2 .mh-choose .bh-choose-icon-art {
  top: -4.165px;
  left: -4.165px;
}

.mh-choose-disc {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--c-white);
  border-radius: 35.833px;
  filter: drop-shadow(0 0 2.083px rgba(0, 0, 0, 0.25));
}

/* 33.3px glyph frame centred in the disc (8.33px padding). */
.mh-choose-glyphs {
  position: absolute;
  top: 8.333px;
  left: 8.333px;
  width: 33.333px;
  height: 33.333px;
}

.mh-choose-glyph {
  position: absolute;
  display: block;
  max-width: none;
}

/* Figma line 131: a 29.78 x 6.44 stroke turned 128.93deg in a 23.7 x 27.2
   box at (29.17, 26.39); the export adds the dot and stroke bleed. */
.mh-choose-arc {
  position: absolute;
  top: 26.39px;
  left: 29.17px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.718px;
  height: 27.21px;
  pointer-events: none;
  transform-origin: calc(25px - 29.17px) calc(25px - 26.39px); /* disc centre */
}

.mh-choose-arc > span {
  position: relative;
  flex: none;
  width: 29.779px;
  height: 6.436px;
  rotate: 128.93deg;
}

.mh-choose-arc img {
  position: absolute;
  top: -0.4165px;
  left: -2.2215px;
  display: block;
  width: 32.4178px;
  height: 7.26902px;
  max-width: none;
}

.mh-v2 .mh-choose .bh-choose-card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-blue);
}

.mh-v2 .mh-choose .bh-choose-card-text {
  font-size: 14px;
  line-height: 19.2px;
}

/* The built icons pop and their arc swings in once the card lands (as on DME). */
@keyframes mh-choose-disc {
  0%   { scale: 0.6; }
  70%  { scale: 1.08; }
  100% { scale: 1; }
}

@keyframes mh-choose-arc {
  from { opacity: 0; rotate: -60deg; }
  to   { opacity: 1; rotate: 0deg; }
}

.mh-choose.is-armed:not(.is-in) .mh-choose-arc {
  opacity: 0;
}

.mh-choose.is-in :is(.mh-choose-disc, .bh-choose-icon-art) {
  animation: mh-choose-disc 0.6s calc(0.45s + var(--i, 0) * 0.12s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.mh-choose.is-in .mh-choose-arc {
  animation: mh-choose-arc 0.7s calc(0.6s + var(--i, 0) * 0.12s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}


@media (prefers-reduced-motion: reduce) {
  .mh-choose .mh-choose-disc,
  .mh-choose .mh-choose-arc {
    animation: none !important;
  }
}

/* The orbit only appears in the phone frame. */
.mh-v2 .mh-choose-orbit {
  display: none;
}

/* Phones — Figma 10750:8008 (400 x 1353 at 440): 50px below the previous
   section, 20px padding; the copy, the two full-width buttons 40px below it,
   then the four cards 20px apart (60px icons, Figma's 2px stroke inside the
   20px padding). The orbit sits behind the cards; no centre badge. */
@media (max-width: 575px) {
  .mh-v2 .mh-choose {
    --page-gutter: 20px;
    padding: 20px 0;
  }

  .mh-v2 .mh-choose-orbit {
    display: block;
    top: 570.41px;
    left: 256.3px;
  }

  .mh-v2 .mh-choose .bh-choose-badge {
    display: none;
  }

  .mh-v2 .mh-choose .bh-choose-layout {
    gap: 20px;
  }

  .mh-v2 .mh-choose .bh-choose-intro {
    gap: 20px;
  }

  .mh-v2 .mh-choose .bh-choose-pill {
    font-size: 10px;
  }

  .mh-v2 .mh-choose .bh-choose-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .mh-choose .bh-choose-heading,
  .mh-v2 .mh-choose .bh-choose-lead,
  .mh-v2 .mh-choose .bh-choose-actions {
    width: 100%;
  }

  .mh-v2 .mh-choose .bh-choose-lead {
    font-size: 14px;
  }

  .mh-v2 .mh-choose .bh-choose-actions {
    margin-top: 20px;
  }

  .mh-v2 .mh-choose .bh-choose-card {
    gap: 10px;
    padding: 18px;
  }

  /* The 50px desktop icons (some built from layers) at Figma's 60px. */
  .mh-v2 .mh-choose .bh-choose-icon {
    margin-bottom: calc(10px / 1.2); /* zoom scales the margin too */
    zoom: 1.2;
  }
}

/* ============================================================= */
/* Trusted standards — the BH .bh-trust band as is on desktop.     */
/* Phones — Figma 10750:8098 (440 x 1211): 50px below the previous */
/* section; the logos stack at their full size 60px apart, a      */
/* 142.8px 40%-white rule centred in each gap; the radial gradient */
/* keeps Figma's centre (70%, 30%) and its 356.6 x 1682.2px radii. */
/* ============================================================= */
@media (max-width: 575px) {
  .mh-v2 .mh-trust {
    gap: 50px;
    margin-top: 50px;
    padding: 64px 20px;
    background: radial-gradient(356.58px 1682.2px at 70% 30%, #273775 0%, #142048 50%, #0b1431 75%, #01081a 100%);
  }

  .mh-v2 .mh-trust .bh-trust-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .mh-trust .bh-trust-logos {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: auto;
    max-width: none;
  }

  /* Full size (BH's tablet rule sizes them auto, which is 0 until a lazy image loads). */
  .mh-v2 .mh-trust .bh-trust-logo img {
    max-width: none;
    max-height: none;
  }

  .mh-v2 .mh-trust .bh-trust-logo:nth-child(1) img { width: 171px; height: 170px; }
  .mh-v2 .mh-trust .bh-trust-logo:nth-child(2) img { width: 130px; height: 178px; }
  .mh-v2 .mh-trust .bh-trust-logo:nth-child(3) img { width: 176px; height: 178px; }
  .mh-v2 .mh-trust .bh-trust-logo:nth-child(4) img { width: 169px; height: 132px; }

  .mh-v2 .mh-trust .bh-trust-logo + .bh-trust-logo::before {
    content: "";
    top: -31px;
    left: 50%;
    width: 142.814px;
    height: 1px;
    translate: -50% 0;
    rotate: none;
  }

  /* The rules draw across instead of down. */
  .mh-v2 .mh-trust.is-in .bh-trust-logo + .bh-trust-logo::before {
    animation-name: mh-trust-rule;
  }

  .mh-v2 .mh-trust .bh-trust-text {
    font-size: 16px;
    line-height: 25px;
  }
}

@keyframes mh-trust-rule {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

/* ============================================================= */
/* Case study — Figma 10709:5176 (1240 x 674). Builds on .bh-case; */
/* a single case, so .bh-case stands alone (as on the DME page).   */
/* ============================================================= */

/* Figma leaves 60px of white between the trust band and the card, and
   60px more before the integrations frame (which pads itself 40px). */
.mh-v2 .mh-cases {
  padding-top: 60px;
  padding-bottom: 60px;
}

.mh-v2 .mh-cases .bh-case {
  display: block;
  flex: none;
  opacity: 1;
}

/* Not a cover crop: Figma draws the photo 119.17% wide, 2.57% left of the
   350 x 321 frame, full height (the frame's 4px bottom border overlaps it). */
.mh-v2 .mh-cases .bh-case-photo img {
  position: absolute;
  top: 0;
  left: -2.57%;
  width: 119.17%;
  height: calc(100% + 4px);
  object-fit: fill;
}

/* Figma sets the testimonial at 16 / 23.6 (BH 25.6). */
.mh-v2 .mh-cases .bh-case-quote blockquote {
  font-weight: 500;
  line-height: 23.6px;
}

/* The quote ends 661px down; Figma's card is 674px (set by the body copy). */
@media (min-width: 1200px) {
  .mh-v2 .mh-cases .bh-case-story {
    padding-bottom: 13px;
  }
}

@media (max-width: 767px) {
  .mh-v2 .mh-cases {
    padding-top: 40px;
  }
}

/* Phones — Figma 10750:8145 (400 x 1735 card at 440): 50px of white above
   and below; 20px card padding and 30px between its parts. The 709px panel
   centres the 376px portrait group at full size (8px of it clipped each
   side) above a 320px quote; narrower panels zoom the group with the panel
   (--k = content width / Figma's 320px; the panel is the size container).
   Then the copy and the three outcome cards stacked 29px apart. */
@media (max-width: 575px) {
  .mh-v2 .mh-cases {
    --page-gutter: 20px;
    padding: 50px 0;
  }

  .mh-v2 .mh-cases .bh-case-card {
    gap: 30px;
    padding: 20px;
  }

  .mh-v2 .mh-cases .bh-case-story {
    min-height: 709px;
    padding: 34px 20px 20.82px;
    container-type: inline-size;
  }

  .mh-v2 .mh-cases .bh-case-portrait {
    zoom: min(1, tan(atan2(100cqw, 320px)));
  }

  .mh-v2 .mh-cases .bh-case-quote {
    width: 100%;
    margin-top: 22.18px;
  }

  .mh-v2 .mh-cases .bh-case-author strong {
    font-size: 20px;
    line-height: 33.84px;
  }

  .mh-v2 .mh-cases .bh-case-author span,
  .mh-v2 .mh-cases .bh-case-quote blockquote {
    font-size: 14px;
    line-height: 25.6px;
  }

  .mh-v2 .mh-cases .bh-case-body {
    padding: 0;
  }

  .mh-v2 .mh-cases .bh-case-pill {
    font-size: 10px;
  }

  .mh-v2 .mh-cases .bh-case-title {
    font-size: 24px;
    line-height: 35px;
  }

  .mh-v2 .mh-cases .bh-case-text p {
    font-size: 14px;
    line-height: 25px;
  }

  .mh-v2 .mh-cases .bh-case-text p + p {
    margin-top: 25px;
  }

  .mh-v2 .mh-cases .bh-case-outcomes {
    padding: 0;
  }

  .mh-v2 .mh-cases .bh-case-stats {
    gap: 29px;
  }

  .mh-v2 .mh-cases .bh-case-stat {
    gap: 20px;
    padding: 20px;
  }

  .mh-v2 .mh-cases .bh-case-stat-body strong {
    font-size: 22px;
    line-height: 20px;
  }
}

/* Figma keeps the outcome labels on one line; the longest (257px) runs 7px
   into the 20px padding of the 250px column, so that holds from 432px. */
@media (min-width: 432px) and (max-width: 575px) {
  .mh-v2 .mh-cases .bh-case-stat-body > span {
    white-space: nowrap;
  }
}

/* ============================================================= */
/* Software integrations — the BH .bh-int section as is above     */
/* phones. Phones — Figma 10750:8188 (400 x 1324 at x 20, padding */
/* 16, so 368px of content): the head, then a column of EHR card, */
/* arrow, 180px hub, arrow, PMS card, arrow, clearinghouse card    */
/* (16px apart), then the four benefits as a stacked list.        */
/* ============================================================= */
@media (max-width: 575px) {
  .mh-v2 .mh-int {
    --page-gutter: 36px;
    padding: 20px 0;
  }

  .mh-v2 .mh-int .container-page {
    gap: 32px;
  }

  .mh-v2 .mh-int .bh-int-head {
    gap: 12px;
  }

  .mh-v2 .mh-int .bh-int-pill {
    padding: 6px 12px;
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
    border-radius: 8px;
  }

  .mh-v2 .mh-int .bh-int-title {
    font-size: 24px;
    line-height: 32px;
  }

  .mh-v2 .mh-int .bh-int-lead {
    font-size: 14px;
    line-height: 20px;
  }

  /* Column: EHR, arrow, hub, arrow, PMS, arrow, clearinghouses. */
  .mh-v2 .mh-int .bh-int-diagram {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .mh-v2 .mh-int .bh-int-card--ehr      { order: 1; }
  .mh-v2 .mh-int .bh-int-link--left     { order: 2; }
  .mh-v2 .mh-int .bh-int-hub            { order: 3; }
  .mh-v2 .mh-int .bh-int-link--right    { order: 4; }
  .mh-v2 .mh-int .bh-int-card--pms      { order: 5; }
  .mh-v2 .mh-int .bh-int-link--down     { order: 6; }
  .mh-v2 .mh-int .bh-int-card--clearing { order: 7; }

  /* The connectors become Figma's 24px down arrows. */
  .mh-v2 .mh-int .bh-int-link {
    position: static;
    display: block;
    flex: none;
    width: 24px;
    height: 24px;
    background: url("../../images/mental-health-v2/int-arrow-down.svg") center / 24px 24px no-repeat;
    rotate: none;
  }

  .mh-v2 .mh-int .bh-int-link img,
  .mh-v2 .mh-int .bh-int-link::after {
    display: none;
  }

  /* 180px white disc; the ring is Figma's 2px gradient stroke, dashed 6/6,
     drawn outside it (CSS dashed borders can't take a gradient). */
  .mh-v2 .mh-int .bh-int-hub {
    flex: none;
    gap: 4px;
    width: 180px;
    height: 180px;
    padding: 16px;
    background: var(--c-white);
    border-radius: 50%;
    box-shadow: none;
    filter: drop-shadow(0 4px 5px rgba(39, 55, 117, 0.12));
  }

  .mh-v2 .mh-int .bh-int-hub::before {
    content: none;
  }

  .mh-v2 .mh-int .bh-int-hub-ring {
    inset: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 184 184'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='.298' stop-color='%23273775'/%3E%3Cstop offset='1' stop-color='%23FC5D61'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='92' cy='92' r='91' fill='none' stroke='url(%23g)' stroke-width='2' stroke-dasharray='6 6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    border: 0;
    rotate: none;
  }

  /* Two 24px rings (2.5px), 14px apart: 38 x 24. */
  .mh-v2 .mh-int .bh-int-hub-mark {
    width: 38px;
    height: 24px;
  }

  .mh-v2 .mh-int .bh-int-hub-mark i {
    top: 0;
    width: 24px;
    height: 24px;
    border-width: 2.5px;
    border-radius: 50%;
  }

  .mh-v2 .mh-int .bh-int-hub-mark i:last-child {
    left: 14px;
  }

  .mh-v2 .mh-int .bh-int-hub strong {
    font-size: 15px;
  }

  .mh-v2 .mh-int .bh-int-hub > span:last-child {
    font-size: 10px;
    line-height: 14px;
  }

  /* Cards: 368px, Figma's 1px stroke inside the 16px padding. */
  .mh-v2 .mh-int .bh-int-card {
    flex: none;
    gap: 12px;
    width: 100%;
    padding: 15px;
    border: 1px solid var(--c-light-grey);
    border-radius: 16px;
    filter: drop-shadow(0 4px 5px rgba(39, 55, 117, 0.09));
  }

  .mh-v2 .mh-int .bh-int-card-head {
    gap: 10px;
    align-items: center;
  }

  .mh-v2 .mh-int .bh-int-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  /* The 26px desktop icons at Figma's 20px (PMS's 24px one scales alike). */
  .mh-v2 .mh-int .bh-int-card-icon img {
    width: 20px;
    height: auto;
  }

  .mh-v2 .mh-int .bh-int-card--pms .bh-int-card-icon img {
    width: calc(24px * 20 / 26);
  }

  .mh-v2 .mh-int .bh-int-card-title {
    gap: 2px;
  }

  .mh-v2 .mh-int .bh-int-card-title h3 {
    font-size: 16px;
    line-height: normal;
  }

  .mh-v2 .mh-int .bh-int-card-title i {
    width: 20px;
    border-radius: 1.5px;
  }

  .mh-v2 .mh-int .bh-int-logos {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .mh-v2 .mh-int .bh-int-logos + .bh-int-logos {
    margin-top: -4px; /* 8px between the logo rows (the card gap is 12) */
  }

  /* 37px tiles; the widths are set per logo below. */
  .mh-v2 .mh-int .bh-int-logo {
    width: auto !important;
    height: 37px;
    padding: 6px;
    border-radius: 6px;
  }

  /* EHR logos wrap freely (8px apart): three, then two. */
  .mh-v2 .mh-int .bh-int-card--ehr {
    flex-flow: row wrap;
    justify-content: center;
    gap: 8px;
  }

  .mh-v2 .mh-int .bh-int-card--ehr .bh-int-card-head {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .mh-v2 .mh-int .bh-int-card--ehr .bh-int-logos {
    display: contents;
  }

  /* PMS: the four logos in two rows of two. */
  .mh-v2 .mh-int .bh-int-card--pms .bh-int-logos {
    width: 208px;
    margin: 0 auto;
  }

  /* Clearinghouses: TriZetto before Waystar on the second row. */
  .mh-v2 .mh-int .bh-int-card--clearing .bh-int-logos + .bh-int-logos .bh-int-logo:first-child {
    order: 1;
  }

  .mh-v2 .mh-int .bh-int-logo:has(img[src*="drchrono"]),
  .mh-v2 .mh-int .bh-int-logo:has(img[src*="nextgen"]) {
    width: 94px !important;
  }

  .mh-v2 .mh-int .bh-int-logo:has(img[src*="availity"]),
  .mh-v2 .mh-int .bh-int-logo:has(img[src*="trizetto"]),
  .mh-v2 .mh-int .bh-int-logo:has(img[src*="waystar"]) {
    width: 90px !important;
  }

  .mh-v2 .mh-int .bh-int-logo img { width: 68px; }
  .mh-v2 .mh-int .bh-int-logo img[src*="simplepractice"] { width: 72px; }
  .mh-v2 .mh-int .bh-int-logo img[src*="theranest"],
  .mh-v2 .mh-int .bh-int-logo img[src*="tebra"],
  .mh-v2 .mh-int .bh-int-logo img[src*="officeally"],
  .mh-v2 .mh-int .bh-int-logo img[src*="trizetto"],
  .mh-v2 .mh-int .bh-int-logo img[src*="waystar"] { width: 78px; }
  .mh-v2 .mh-int .bh-int-logo img[src*="advancedmd"] { width: 82px; }
  .mh-v2 .mh-int .bh-int-logo img[src*="drchrono"] { width: 60px; }
  .mh-v2 .mh-int .bh-int-logo img[src*="nextgen"] { width: 58px; }

  /* Benefits: a stacked list with 1px rules (Figma's lines take no height). */
  .mh-v2 .mh-int .bh-int-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 15px;
    border: 1px solid var(--c-light-grey);
  }

  .mh-v2 .mh-int .bh-int-benefit,
  .mh-v2 .mh-int .bh-int-benefit:first-child {
    gap: 12px;
    padding: 0;
    font-weight: 500;
    white-space: normal;
  }

  .mh-v2 .mh-int .bh-int-benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
  }

  .mh-v2 .mh-int .bh-int-benefit-icon img {
    width: 18px;
    height: 18px;
  }

  .mh-v2 .mh-int .bh-int-benefit-rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: -0.5px 0;
  }
}

/* State services: the right-hand callouts sit 18px inside the map panel's
   right edge in Figma (695 + 190 of 903px). BH pins them 695px in, so on
   1200-1299px screens (narrower panel) anchor them to the right instead;
   their positions are inline styles, hence !important. */
@media (min-width: 1200px) and (max-width: 1299px) {
  .mh-states :is(.bh-states-card--ny, .bh-states-card--oh, .bh-states-card--ga, .bh-states-card--fl) {
    right: 18px;
    left: auto !important;
  }
}

/* The "Highlighted Regions" label only shows on phones. */
.mh-states-cards-label {
  display: none;
}

/* Phones — Figma 10750:8295 (400 x 1152 at 440): 50px below the
   integrations, 20px padding, 28px between the head, the promo card, the
   bare map (Figma's 400 x 194 frame; the art is stretched to it, as there)
   and the "Highlighted Regions" grid: 2 x 3 cards, 100px tall, in the
   order CA TX / OH NY / FL GA. */
@media (max-width: 575px) {
  .mh-v2 .mh-states {
    --page-gutter: 20px;
    margin-top: 50px;
    padding: 20px 0;
  }

  .mh-v2 .mh-states .container-page,
  .mh-v2 .mh-states .bh-states-layout {
    gap: 28px;
  }

  .mh-v2 .mh-states .bh-states-head {
    gap: 12px;
  }

  .mh-v2 .mh-states .bh-states-pill {
    font-size: 10px;
  }

  .mh-v2 .mh-states .bh-states-title {
    font-size: 24px;
    line-height: 32px;
  }

  .mh-v2 .mh-states .bh-states-lead {
    font-size: 13px;
    line-height: 18px;
  }

  /* Promo card: solid #EFF2FF, Figma's 1px stroke inside the 20px padding. */
  .mh-v2 .mh-states .bh-states-intro {
    gap: 16px;
    padding: 19px;
    background: var(--c-bg-blue);
    border-color: #e2e8f0;
    box-shadow: none;
  }

  .mh-v2 .mh-states .bh-states-intro::after {
    content: none;
  }

  .mh-v2 .mh-states .bh-states-logo {
    margin-bottom: 4px; /* 20px to the title */
  }

  .mh-v2 .mh-states .bh-states-intro-copy {
    gap: 20px;
  }

  .mh-v2 .mh-states .bh-states-intro-copy h3 {
    font-size: 18px;
    line-height: 24px;
  }

  .mh-v2 .mh-states .bh-states-intro-copy p {
    line-height: 25px;
  }

  .mh-v2 .mh-states .bh-states-btn {
    gap: 8px;
    width: 100%;
    height: 45px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: normal;
    border-radius: 8px;
    filter: drop-shadow(0 4px 6px rgba(252, 93, 97, 0.25));
  }

  /* Figma's plain 16px white arrow instead of the white disc. */
  .mh-v2 .mh-states .bh-states-btn-icon {
    width: 16px;
    height: 16px;
    background: url("../../images/mental-health-v2/states-arrow-right.svg") center / 16px 16px no-repeat;
  }

  .mh-v2 .mh-states .bh-states-btn-icon img {
    display: none;
  }

  /* The map loses its panel: bare art, then the label and the grid. */
  .mh-v2 .mh-states .bh-states-map {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .mh-v2 .mh-states .bh-states-map::after {
    content: none;
  }

  .mh-v2 .mh-states .bh-states-map-art {
    width: 100%;
    max-width: none;
    aspect-ratio: 400 / 194.254;
  }

  .mh-v2 .mh-states .mh-states-cards-label {
    display: block;
    margin: 0 0 -16px; /* 12px to the cards */
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    letter-spacing: 0.5px;
    color: var(--c-blue);
  }

  .mh-v2 .mh-states .bh-states-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
  }

  .mh-v2 .mh-states .bh-states-card--ca { order: 1; }
  .mh-v2 .mh-states .bh-states-card--tx { order: 2; }
  .mh-v2 .mh-states .bh-states-card--oh { order: 3; }
  .mh-v2 .mh-states .bh-states-card--ny { order: 4; }
  .mh-v2 .mh-states .bh-states-card--fl { order: 5; }
  .mh-v2 .mh-states .bh-states-card--ga { order: 6; }

  /* Icon and name on one row, the note below; 1px stroke inside the 14px
     padding. Figma's 100px cards let a two-line note run into the bottom
     padding; a 5px one keeps that at 100px and lets three lines grow it. */
  .mh-v2 .mh-states .bh-states-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: 32px auto;
    gap: 8px;
    align-content: start;
    align-items: center;
    height: auto;
    min-height: 100px;
    padding: 13px 13px 5px;
    filter: drop-shadow(0 4px 6px rgba(39, 55, 117, 0.06));
  }

  .mh-v2 .mh-states .bh-states-card-icon {
    width: 32px;
    height: 32px;
  }

  .mh-v2 .mh-states .bh-states-card-body {
    display: contents;
  }

  .mh-v2 .mh-states .bh-states-card-body > span {
    grid-column: 1 / -1;
    align-self: start;
    font-size: 12px;
    line-height: 20px;
  }
}

/* ============================================================= */
/* Payer expertise — Figma 10709:5874 (1240 x 1162.5). Builds on   */
/* .bh-pay (Figma 8777:70650); the 60px Figma gaps around the frame */
/* and the tighter title / lead leading differ.                     */
/* ============================================================= */
.mh-v2 .mh-pay {
  padding: 60px 0;
}

/* 452px title at 32 / 40, leads at 16 / 25 (BH 48 and 29.25). */
.mh-v2 .mh-pay .bh-pay-title:not(.bh-pay-title--sm) {
  width: 452px;
  max-width: 100%;
  line-height: 40px;
}

.mh-v2 .mh-pay .bh-pay-lead {
  line-height: 25px;
}

/* The MH status line is longer than BH's; Figma keeps it on one line. */
@media (min-width: 1200px) {
  .mh-v2 .mh-pay .bh-pay-status {
    padding-right: 16px;
    padding-left: 16px;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  .mh-v2 .mh-pay {
    padding: 40px 0;
  }
}

/* ============================================================= */
/* Testimonials — Figma 10750:3083 (1440 x 651)                    */
/* Intro + the BH hero carousel in a 761 x 531 frame: cards, lines */
/* and badges sit 84.4px higher than in the BH hero frame, there   */
/* is no Serchen badge or top connector, and the brain is a faint  */
/* section background. Sizes inside use BH's --u unit.             */
/* ============================================================= */
.mh-testi {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background: radial-gradient(1200px 272.07px at 50% 0, #fff 0%, #f5f7fc 55%, #eef1f8 100%);
}

/* Figma 10750:3592: 531 x 425 brain, vertically centred on the left edge at 8%. */
.mh-testi-brain {
  position: absolute;
  top: calc(50% + 0.2px);
  left: 0;
  width: 531px;
  height: 425px;
  overflow: hidden;
  opacity: 0.08;
  translate: 0 -50%;
  pointer-events: none;
}

.mh-testi-brain img {
  position: absolute;
  top: 0.07%;
  left: 0.11%;
  width: 100%;
  max-width: none;
  height: 113.19%;
}

/* 3 x 3 dot grid (five dots) at Figma x 1000, y 43.8, and the 8px dot. */
.mh-testi-grid {
  position: absolute;
  top: 43.8px;
  left: calc(50% + 280px);
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 8px;
  opacity: 0.55;
  pointer-events: none;
}

.mh-testi-grid i {
  width: 6px;
  height: 6px;
  background: #9daedc;
  border-radius: 2px;
}

.mh-testi-grid i:nth-child(1) { grid-area: 1 / 1; }
.mh-testi-grid i:nth-child(2) { grid-area: 1 / 3; background: #c6d1ee; }
.mh-testi-grid i:nth-child(3) { grid-area: 2 / 2; }
.mh-testi-grid i:nth-child(4) { grid-area: 3 / 1; background: #c6d1ee; }
.mh-testi-grid i:nth-child(5) { grid-area: 3 / 3; }

.mh-testi-dot {
  position: absolute;
  top: 95.8px;
  right: calc(50% - 390px); /* Figma right 330 */
  width: 8px;
  height: 8px;
  background: rgba(39, 55, 117, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.mh-testi-layout {
  position: relative;
  display: flex;
  gap: 44px;
  align-items: center;
}

.mh-testi-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  min-width: 0;
}

.mh-testi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 12px;
  line-height: 9.976px;
  color: var(--c-blue);
  white-space: nowrap;
  background: rgba(39, 55, 117, 0.1);
  border-radius: 9.069px;
}

.mh-testi-title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 35px;
  letter-spacing: -1.08px;
  color: var(--c-blue);
  text-transform: none;
}

.mh-testi-title .accent {
  color: var(--c-orange);
}

.mh-testi-lead {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  color: var(--c-text);
}

/* 761px collage frame; --u scales it down with the container, as in BH. */
.mh-testi-visual-wrap {
  flex: none;
  width: 761px;
  container-type: inline-size;
}

.mh-testi .bh-hero-visual {
  --u: calc(100cqw / 761);
  height: calc(531 * var(--u));
}

.mh-testi .bh-cards {
  top: calc(39.6 * var(--u));
  left: calc(45.17 * var(--u));
}

.mh-testi .bh-line--left,
.mh-testi .bh-line--right {
  top: calc(336.63 * var(--u));
}

.mh-testi .bh-line--left  { left: calc(63.52 * var(--u)); }
.mh-testi .bh-line--right { left: calc(607.52 * var(--u)); }

.mh-testi .bh-rate--trustpilot {
  top: calc(413.6 * var(--u));
  left: calc(14.18 * var(--u));
}

.mh-testi .bh-rate--google {
  top: calc(414.6 * var(--u));
  left: calc(598.17 * var(--u));
}

/* ---------- Testimonials animation ---------- */
/* BH plays the carousel entrance on page load (it's in the hero); here it
   waits for the section's reveal (.is-armed/.is-in from script-v2.js):
   clearing the animation while armed restarts it when .is-in lands. */
.mh-testi.is-armed:not(.is-in) :is(.mh-testi-copy > *, .bh-tcard, .bh-dots, .bh-rate, .bh-line) {
  opacity: 0;
  animation: none;
}

.mh-testi.is-in .mh-testi-copy > * {
  animation: mh-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.mh-testi.is-in .mh-testi-copy > :nth-child(2) { animation-delay: 0.1s; }
.mh-testi.is-in .mh-testi-copy > :nth-child(3) { animation-delay: 0.2s; }

.mh-testi:not(.is-armed) .mh-testi-grid,
.mh-testi.is-in .mh-testi-grid {
  animation: mh-float 6s ease-in-out infinite;
}

.mh-testi:not(.is-armed) .mh-testi-dot,
.mh-testi.is-in .mh-testi-dot {
  animation: mh-pulse 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mh-testi *,
  .mh-testi *::before {
    animation: none !important;
  }
}

/* ---------- Testimonials responsive ---------- */
@media (max-width: 1199px) {
  .mh-testi {
    padding: 48px 0;
  }

  .mh-testi-layout {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .mh-testi-visual-wrap {
    width: 100%;
    max-width: 761px;
    margin: 0 auto;
  }

  .mh-testi-grid,
  .mh-testi-dot {
    display: none;
  }
}

/* Phones use BH's single cross-fading card with the badges in a row. */
@media (max-width: 767px) {
  .mh-testi .bh-hero-visual {
    --u: 1px;
    height: auto;
  }

  /* Undo the desktop slot offsets so BH's phone flow (stacked card, badges in a row) applies. */
  .mh-testi .bh-cards,
  .mh-testi .bh-rate--trustpilot,
  .mh-testi .bh-rate--google {
    top: auto;
    left: auto;
  }

  .mh-testi-title {
    font-size: 26px;
    line-height: 32px;
  }
}

/* ============================================================= */
/* Book a consultation — Figma 10709:6050 (1440 x 725). Reuses     */
/* .bh-consult; as on DME, the copy column is sized by its 629px   */
/* badge row and the badge text is Figma's 111px.                  */
/* ============================================================= */
.mh-v2 .mh-consult {
  padding: 60px 0;
}

.mh-v2 .mh-consult .bh-consult-copy {
  flex: 0 1 629px;
}

.mh-v2 .mh-consult .bh-consult-badge > span:last-child {
  width: 111px;
  margin-right: -7px;
}

@media (max-width: 1199px) {
  /* .mh-v2 .mh-consult {
    margin-top: 40px;
  } */

  .mh-v2 .mh-consult .bh-consult-copy {
    flex: none;
  }
}

/* ============================================================= */
/* FAQs — Figma 10709:6209 (518px intro | 660px accordion). Reuses */
/* .bh-faq; as on DME there is no illustration, so the intro is    */
/* left-aligned; the pills span 426px and the frame pads 60px.     */
/* ============================================================= */
.mh-v2 .mh-faq {
  padding: 60px 0;
}

.mh-v2 .mh-faq .bh-faq-intro {
  align-items: flex-start;
}

.mh-v2 .mh-faq .bh-faq-pills {
  width: 426px;
  max-width: 100%;
}

.mh-v2 .mh-faq .bh-faq-pill-item,
.mh-v2 .mh-faq .bh-faq-pill-item:last-child {
  width: 100%;
}

/* The open item is blue here (BH uses its pink accent): #EFF2FF answer
   panel with a navy rule, and the number keeps its blue chip. */
.mh-v2 .mh-faq .bh-faq-item.is-open .bh-faq-num {
  color: var(--c-blue);
  background: var(--c-bg-blue);
}

.mh-v2 .mh-faq .bh-faq-a {
  background: var(--c-bg-blue);
}

.mh-v2 .mh-faq .bh-faq-a-inner p {
  border-left-color: var(--c-blue);
}

@media (max-width: 991px) {
  .mh-v2 .mh-consult,
  .mh-v2 .mh-faq {
    padding: 48px 0;
  }

  .mh-v2 .mh-faq {
    margin-top: 0;
  }
}
