/* Cardiology billing page (v2). Built on the air ambulance page and the pages it builds on
   (BH, MH, dermatology, DME, urgent care, orthopedic); this file holds the differences and the
   new sections. Everything is scoped under .cd-v2. The Plus Jakarta Sans font used by the hero
   dashboard is loaded by the page itself. */

/* =================================================================
   Section spacing: every section carries 60px top and bottom padding
   and no margin (replacing the air ambulance page's 60px margin rhythm).
   Each section id is named so this outranks the per-section rules the
   page inherits, such as the air ambulance #or-consultation padding.
   ================================================================= */
.uc-v2.aa-v2.cd-v2 > section#cd-hero,
.uc-v2.aa-v2.cd-v2 > section.strengths,
.uc-v2.aa-v2.cd-v2 > section#cd-why,
.uc-v2.aa-v2.cd-v2 > section#cd-cta-bar,
.uc-v2.aa-v2.cd-v2 > section#cd-services,
.uc-v2.aa-v2.cd-v2 > section#cd-coding,
.uc-v2.aa-v2.cd-v2 > section#cd-ar-management,
.uc-v2.aa-v2.cd-v2 > section#cd-practice-types,
.uc-v2.aa-v2.cd-v2 > section#cd-rcm-services,
.uc-v2.aa-v2.cd-v2 > section#cd-ai-billing,
.uc-v2.aa-v2.cd-v2 > section#cd-why-trust-us,
.uc-v2.aa-v2.cd-v2 > section#cd-trust,
.uc-v2.aa-v2.cd-v2 > section#or-case-study,
.uc-v2.aa-v2.cd-v2 > section#or-integrations,
.uc-v2.aa-v2.cd-v2 > section#cd-states,
.uc-v2.aa-v2.cd-v2 > section#or-payers,
.uc-v2.aa-v2.cd-v2 > .dme-v2 > section#cd-testimonials,
.uc-v2.aa-v2.cd-v2 > section#or-consultation,
.uc-v2.aa-v2.cd-v2 > section#or-faqs {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* The strengths band's fixed 376px height (air ambulance page) would
   swallow the padding, so it sizes to its cards plus the padding. */
.uc-v2.aa-v2.cd-v2 > section.strengths {
  height: auto;
}

/* =================================================================
   Hero, core strengths spacing, why section, CTA bar
   ================================================================= */
/* ============================================================= */
/* Section rhythm (Figma 12832:8665): the hero (847px band) sits   */
/* 60px above the 376px strengths band; "Why" and the CTA bar keep */
/* the AA page's 60px margins.                                     */

/* ============================================================= */
/* Hero — Figma 12832:8748 (1440 x 847)                            */
/* The BH gradient; a 658px copy column and the 621.94 x 543 art   */
/* (right edge on the 1240 line, centred in the 590px row); the    */
/* form bar 48px below.                                            */
/* ============================================================= */
.cd-v2 .cd-hero {
  z-index: 3; /* the open service list stays above the next section */
  background: linear-gradient(to left, rgba(239, 242, 255, 0.6) 0%, #f9faff 48.866%, rgba(239, 242, 255, 0.3) 98.681%);
}

.cd-v2 .cd-hero-top {
  position: relative;
  display: block;
  min-height: 590px;
  margin-bottom: 48px;
}

.cd-v2 .cd-hero-copy {
  width: 658px;
  max-width: 100%;
}

.cd-v2 .cd-hero .bh-hero-heading {
  line-height: 50.4px;
  text-transform: none;
}

.cd-v2 .cd-hero .bh-hero-heading .accent {
  display: inline;
}

.cd-v2 .cd-hero .bh-hero-lead {
  width: 622px;
  max-width: 100%;
}

/* reicon:tick-circle-filled — the MH tick (identical to Figma's). */
.cd-v2 .cd-hero .bh-hero-list li::before {
  top: 2.4px;
  background-image: url("../../images/mental-health-v2/hero-tick.svg");
}

.cd-v2 .cd-hero .bh-hero-list li:nth-child(6) {
  animation-delay: 0.73s;
}

/* Badges sit 30px under the list (the column's 20px gap + 10px). */
.cd-v2 .cd-hero .bh-hero-certs {
  margin-top: 10px;
}

/* ---------- Artwork (Figma 12839:13938, 621.943 x 543.004) ---------- */
.cd-v2 .cd-hero-art {
  position: absolute;
  top: 50%;
  right: 0;
  width: 621.943px;
  height: 543.004px;
  margin-top: -271.502px;
  overflow: hidden; /* the heart runs past the frame's right edge, clipped */
  font-family: "Plus Jakarta Sans", var(--font-primary);
  color: var(--c-blue);
}

.cd-v2 .cd-hero-art img {
  display: block;
  max-width: none;
}

/* image 61: 350 x 350 at 53.38% / -1px. */
.cd-v2 .cd-hero-heart {
  position: absolute;
  top: -1px;
  left: 331.98px;
  width: 350px;
  height: 350px;
}

.cd-v2 .cd-hero-heart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ECG trace (12839:13984), 95.68 x 86.12. */
.cd-v2 .cd-hero-ecg {
  position: absolute;
  top: 217.68px;
  left: 3.83px;
  width: 95.684px;
  height: 86.115px;
}

/* Transform-only wipe: the frame slides in from the left while its content
   slides the other way, so the trace appears to draw from left to right. */
.cd-v2 .cd-wipe {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cd-v2 .cd-wipe img {
  width: 100%;
  height: 100%;
}

/* ---------- Dashboard card (12839:14021, 447.32 x 299.01) ---------- */
.cd-v2 .cd-dash {
  position: absolute;
  top: 130.27px;
  left: 76.12px;
  width: 447.32px;
  height: 299.011px;
  background: var(--c-blue);
  border-radius: 19.137px;
  filter: drop-shadow(0 14.353px 14.353px rgba(39, 55, 117, 0.28));
}

/* The 2.87px #e9ecf6 stroke, drawn inside without moving the children. */
.cd-v2 .cd-dash::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2.871px solid #e9ecf6;
  border-radius: inherit;
  pointer-events: none;
}

.cd-v2 .cd-dash > * {
  position: absolute;
}

.cd-v2 .cd-dash-logo {
  top: 17.86px;
  left: 16.01px;
  width: 50px;
  height: 50px;
}

.cd-v2 .cd-dash-head {
  top: 24.86px;
  left: 78.08px;
  display: flex;
  flex-direction: column;
  color: var(--c-white);
  white-space: nowrap;
}

.cd-v2 .cd-dash-title {
  font-weight: 800;
  font-size: 17.223px;
  line-height: 18.945px;
  letter-spacing: -0.1435px;
}

.cd-v2 .cd-dash-sub {
  font-weight: 500;
  font-size: 13.396px;
  line-height: 16.075px;
}

.cd-v2 .cd-dash-date {
  top: 34.45px;
  left: 288.01px;
  display: flex;
  gap: 6.698px;
  align-items: center;
  box-sizing: border-box;
  width: 143.525px;
  height: 30.619px;
  padding: 0 9.568px;
  font-weight: 700;
  font-size: 8.612px;
  line-height: normal;
  color: var(--c-white);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 0.957px solid rgba(255, 255, 255, 0.35);
  border-radius: 477.939px;
}

.cd-v2 .cd-dash-date > img {
  flex: none;
  width: 13.396px;
  height: 13.396px;
}

.cd-v2 .cd-dash-date-chev {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: flex-end;
  height: 8.612px;
  padding-left: 4.216px;
}

.cd-v2 .cd-dash-date-chev img {
  width: 5.239px;
  height: 3.086px;
  margin-right: 1.687px; /* centred in its 8.61px box */
}

.cd-v2 .cd-tile {
  box-sizing: border-box;
  background: #f2f4fa;
}

/* Total Claims (12839:14043): 127.26 x 133.96. */
.cd-v2 .cd-tile--total {
  top: 78.46px;
  left: 16.27px;
  width: 127.259px;
  height: 133.957px;
  border-radius: 10.525px;
}

.cd-v2 .cd-tile--total > * {
  position: absolute;
  white-space: nowrap;
}

.cd-v2 .cd-tile-heart {
  top: 9.4px;
  left: 46.75px;
  width: 33px;
  height: 52px;
  object-fit: cover;
}

.cd-v2 .cd-tile-label {
  top: 67.938px;
  left: 34.59px;
  font-weight: 600;
  font-size: 10.047px;
  line-height: normal;
}

.cd-v2 .cd-tile-big {
  top: 80.37px;
  left: calc(50% + 0.3px);
  font-weight: 800;
  font-size: 25.835px;
  line-height: 28.418px;
  letter-spacing: -0.4784px;
  translate: -50% 0;
}

.cd-v2 .cd-tile-trend {
  top: 109.27px;
  left: calc(50% + 0.17px);
  display: flex;
  gap: 1.914px;
  align-items: center;
  font-weight: 800;
  font-size: 12.439px;
  line-height: normal;
  color: #1a9b44;
  translate: -50% 0;
}

.cd-v2 .cd-tile-trend img {
  width: 10.525px;
  height: 10.525px;
}

/* Claim Status (12839:14056): 282.27 x 133.96. */
.cd-v2 .cd-tile--status {
  top: 78.46px;
  left: 150.22px;
  width: 282.266px;
  height: 133.957px;
  padding: 12.439px 14.353px 8.612px;
  border-radius: 10.525px;
}

.cd-v2 .cd-status-head {
  position: relative;
  display: flex;
  gap: 10.525px;
  align-items: flex-start;
  white-space: nowrap;
}

.cd-v2 .cd-status-title {
  flex: 1 0 0;
  min-width: 73.686px;
  padding-right: 34.446px;
  font-weight: 800;
  font-size: 11.96px;
  line-height: normal;
}

.cd-v2 .cd-legend {
  display: flex;
  flex: none;
  gap: 3.827px;
  align-items: center;
  font-weight: 600;
  font-size: 8.612px;
  line-height: normal;
}

.cd-v2 .cd-legend i {
  display: block;
  width: 6.698px;
  height: 6.698px;
  background: var(--c-blue);
  border-radius: 3.349px;
}

.cd-v2 .cd-legend--pending i { background: var(--c-orange); }
.cd-v2 .cd-legend--denied i  { background: #a9b7ec; }

.cd-v2 .cd-status-chart {
  position: absolute;
  top: 40.19px;
  left: 14.35px;
  width: 253.561px;
  height: 86.115px;
}

.cd-v2 .cd-status-badge {
  position: absolute;
  top: 31.58px;
  left: 233.47px;
  padding: 1.914px 5.741px;
  font-weight: 800;
  font-size: 10.047px;
  line-height: normal;
  color: var(--c-white);
  background: var(--c-orange);
  border-radius: 5.741px;
}

/* A/R Aging, Clean Claim Rate, Avg. TAT (57.41px tall, 220.07px down). */
.cd-v2 .cd-tile--mini {
  top: 220.07px;
  display: flex;
  gap: 7.655px;
  align-items: center;
  height: 57.41px;
  padding: 0 10.525px;
  border-radius: 9.568px;
  white-space: nowrap;
}

.cd-v2 .cd-tile--ar    { left: 16.27px;  width: 132.043px; }
.cd-v2 .cd-tile--clean { left: 155.01px; width: 148.309px; gap: 8.612px; }
.cd-v2 .cd-tile--tat   { left: 310.01px; width: 122.475px; }

.cd-v2 .cd-tile--mini > img { flex: none; }
.cd-v2 .cd-tile--ar > img    { width: 30.619px; height: 22.964px; }
.cd-v2 .cd-tile--clean > img { width: 27.748px; height: 30.619px; }
.cd-v2 .cd-tile--tat > img   { width: 27.748px; height: 27.748px; }

.cd-v2 .cd-mini-body {
  display: flex;
  flex-direction: column;
  min-width: 55.095px;
}

.cd-v2 .cd-mini-label {
  font-weight: 600;
  font-size: 9.568px;
  line-height: normal;
}

.cd-v2 .cd-mini-value {
  height: 20.094px;
  font-size: 11.482px;
  line-height: 20.094px;
}

.cd-v2 .cd-mini-value b {
  font-weight: 800;
  font-size: 19.137px;
}

.cd-v2 .cd-mini-value small {
  font-weight: 700;
  font-size: 11.482px;
}

.cd-v2 .cd-mini-value--green b {
  font-size: 21.05px;
  line-height: 22.103px;
  color: #1a9b44;
}

/* ---------- Status chips (12925:1941) ---------- */
.cd-v2 .cd-chips {
  position: absolute;
  top: 461px;
  left: 37.75px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.cd-v2 .cd-chip {
  display: flex;
  gap: 8.37px;
  align-items: center;
  box-sizing: border-box;
  height: 48.698px;
  padding: 0 9.131px;
  background: var(--c-white);
  border: 1.141px solid var(--c-blue);
  border-radius: 380.072px;
  filter: drop-shadow(0 5.326px 5.707px rgba(39, 55, 117, 0.12));
}

.cd-v2 .cd-chip--test  { width: 181.856px; }
.cd-v2 .cd-chip--claim { width: 167.399px; height: 48.7px; gap: 9.131px; padding: 0 10.653px; }
.cd-v2 .cd-chip--code  { width: 167.399px; }

.cd-v2 .cd-chip-ic {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36.523px;
  height: 36.523px;
  background: var(--c-blue);
  border-radius: 50%;
}

.cd-v2 .cd-chip--claim .cd-chip-ic { width: 36px; height: 36px; }
.cd-v2 .cd-chip--code .cd-chip-ic  { background: var(--c-orange); }

.cd-v2 .cd-chip-rule {
  flex: none;
  width: 1.141px;
  height: 27.393px;
  background: var(--c-blue);
  border-radius: 0.761px;
}

.cd-v2 .cd-chip--claim .cd-chip-rule { height: 31.197px; }

.cd-v2 .cd-chip-text {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.35px;
  width: 74.314px;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: -0.1902px;
  white-space: nowrap;
}

.cd-v2 .cd-chip--claim .cd-chip-text { width: 43.859px; gap: 1.91px; }
.cd-v2 .cd-chip--code .cd-chip-text  { width: 50.292px; }

.cd-v2 .cd-chip-text b {
  display: block;
  font-weight: 800;
  color: var(--c-blue);
}

.cd-v2 .cd-chip-text b + b {
  color: var(--c-orange);
}

.cd-v2 .cd-chip-check {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24.349px;
  height: 24.349px;
  margin-left: auto;
  background: #22b455;
  border-radius: 50%;
}

.cd-v2 .cd-chip--claim .cd-chip-check { width: 26.632px; height: 26.632px; }

/* ---------- Hero motion ---------- */
/* Plays on first paint (as the BH hero does): the heart settles in and
   keeps a slow float with a lub-dub beat; the ECG trace draws on a loop;
   the dashboard rises, its tiles pop in, the claim chart draws and the
   figures count up (a-script); the chips land one by one and bob. */
@keyframes cd-rise {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes cd-pop {
  0%   { opacity: 0; scale: 0.6; }
  70%  { opacity: 1; scale: 1.08; }
  100% { opacity: 1; scale: 1; }
}

@keyframes cd-heart-in {
  from { opacity: 0; scale: 0.86; }
  to   { opacity: 1; scale: 1; }
}

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

/* Lub-dub, then rest. */
@keyframes cd-beat {
  0%, 30%, 100% { transform: scale(1); }
  8%            { transform: scale(1.035); }
  15%           { transform: scale(1); }
  21%           { transform: scale(1.055); }
}

@keyframes cd-wipe-frame {
  0%        { opacity: 1; transform: translateX(-100%); }
  32%       { opacity: 1; transform: translateX(0); }
  82%       { opacity: 1; transform: translateX(0); }
  100%      { opacity: 0; transform: translateX(0); }
}

@keyframes cd-wipe-content {
  0%        { transform: translateX(100%); }
  32%, 100% { transform: translateX(0); }
}

@keyframes cd-draw-frame {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes cd-draw-content {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.cd-v2 .cd-hero-heart {
  animation:
    cd-heart-in 1.3s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    cd-float 7s 1.4s ease-in-out infinite;
}

.cd-v2 .cd-hero-heart img {
  transform-origin: 45% 55%;
  animation: cd-beat 2.4s 1.4s ease-in-out infinite;
}

.cd-v2 .cd-hero-ecg .cd-wipe {
  animation: cd-wipe-frame 3.6s 0.9s linear infinite backwards;
}

.cd-v2 .cd-hero-ecg .cd-wipe img {
  animation: cd-wipe-content 3.6s 0.9s linear infinite backwards;
}

.cd-v2 .cd-dash {
  animation: cd-rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cd-v2 .cd-dash-logo,
.cd-v2 .cd-tile {
  animation: cd-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.cd-v2 .cd-dash-logo     { animation-delay: 0.7s; }
.cd-v2 .cd-tile--total   { animation-delay: 0.8s; }
.cd-v2 .cd-tile--status  { animation-delay: 0.9s; }
.cd-v2 .cd-tile--ar      { animation-delay: 1s; }
.cd-v2 .cd-tile--clean   { animation-delay: 1.08s; }
.cd-v2 .cd-tile--tat     { animation-delay: 1.16s; }

.cd-v2 .cd-dash-head,
.cd-v2 .cd-dash-date {
  animation: cd-rise 0.6s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cd-v2 .cd-status-chart .cd-wipe {
  animation: cd-draw-frame 1.3s 1.1s cubic-bezier(0.45, 0, 0.25, 1) backwards;
}

.cd-v2 .cd-status-chart .cd-wipe img {
  animation: cd-draw-content 1.3s 1.1s cubic-bezier(0.45, 0, 0.25, 1) backwards;
}

.cd-v2 .cd-status-badge {
  animation: cd-pop 0.5s 2.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.cd-v2 .cd-tile-heart {
  animation: cd-beat 2.4s 1.6s ease-in-out infinite;
}

.cd-v2 .cd-chip {
  animation:
    cd-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    cd-float 5.5s ease-in-out infinite;
}

.cd-v2 .cd-chip--test  { animation-delay: 1.35s, 2.2s; }
.cd-v2 .cd-chip--claim { animation-delay: 1.5s, 3s; animation-duration: 0.7s, 6.2s; }
.cd-v2 .cd-chip--code  { animation-delay: 1.65s, 3.7s; animation-duration: 0.7s, 5s; }

.cd-v2 .cd-chip-check {
  animation: cd-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.cd-v2 .cd-chip--test .cd-chip-check  { animation-delay: 1.85s; }
.cd-v2 .cd-chip--claim .cd-chip-check { animation-delay: 2s; }
.cd-v2 .cd-chip--code .cd-chip-check  { animation-delay: 2.15s; }

/* ---------- Hero responsive ---------- */
/* Below 1200px the artwork stacks under the copy, centred and scaled. */
@media (max-width: 1199px) {
  .cd-v2 .cd-hero-top {
    min-height: 0;
    margin-bottom: 48px;
  }

  .cd-v2 .cd-hero-copy {
    width: 100%;
  }

  .cd-v2 .cd-hero-art {
    position: relative;
    top: auto;
    right: auto;
    margin: 40px auto 0;
  }
}

@media (max-width: 767px) {
  .cd-v2 .cd-hero .bh-hero-heading {
    line-height: 40px;
  }

  .cd-v2 .cd-hero-art {
    zoom: 0.8;
  }
}

/* Phones: the art scales to the column (20px gutters). */
@media (max-width: 575px) {

  .cd-v2 .cd-hero .bh-hero-heading {
    font-size: 28px;
    line-height: 36px;
  }

  .cd-v2 .cd-hero-art {
    margin-top: 32px;
    zoom: 0.8;
  }
}

@media (max-width: 540px) { .cd-v2 .cd-hero-art { zoom: 0.72; } }
@media (max-width: 490px) { .cd-v2 .cd-hero-art { zoom: 0.64; } }
@media (max-width: 440px) { .cd-v2 .cd-hero-art { zoom: 0.56; } }
@media (max-width: 400px) { .cd-v2 .cd-hero-art { zoom: 0.5; } }

/* ============================================================= */
/* Why cardiology procedures need specialized billing —            */
/* Figma 12832:8912 (1440 x 734). The UC / AA .uc-why section: the  */
/* photo fills the 572 x 528 card, blurred 1.5px under a white fade */
/* from the top; the 322px card sits 20px into the top-left corner. */
/* ============================================================= */
/* Figma 12832:8915: the label sits in a 235px box (pill 255px wide). */
@media (min-width: 576px) {
  .cd-v2 .cd-why .derm-why-pill {
    box-sizing: border-box;
    min-width: 255px;
  }
}

.cd-v2 .cd-why-photo {
  opacity: 1;
  filter: blur(1.5px);
}

.cd-v2 .cd-why-media::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
  background: linear-gradient(180deg, #fff 1.515%, rgba(255, 255, 255, 0) 94.066%);
  pointer-events: none;
}

.cd-v2 .cd-why-card {
  top: 20px;
  left: 20px;
  width: 322px;
  margin: 0;
}

/* Figma 12832:8922: a full-width navy bar, the title centred on two 20px lines. */
.cd-v2 .cd-why-card .uc-why-card-title {
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  white-space: normal;
}

/* A soft heartbeat on the ticks once the rows have landed. */
@keyframes cd-tick-beat {
  0%, 30%, 100% { transform: scale(1); }
  10%           { transform: scale(1.25); }
  20%           { transform: scale(1); }
}

.cd-v2 .cd-why.is-in .uc-why-card-tick,
.cd-v2 .cd-why:not(.is-armed) .uc-why-card-tick {
  animation:
    uc-why-pop 0.45s calc(0.8s + var(--i, 0) * 0.09s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
    cd-tick-beat 3.6s calc(2s + var(--i, 0) * 0.15s) ease-in-out infinite;
}

@media (max-width: 1199px) {
  .cd-v2 .cd-why-card {
    left: 20px;
    margin: 0;
  }
}

@media (max-width: 575px) {
  .cd-v2 .cd-why-media::after {
    display: block;
  }

  .cd-v2 .cd-why-card {
    top: 26.19%;
    right: 0;
    left: 0;
    width: 250px;
    margin: 0 auto;
  }

  .cd-v2 .cd-why-card .uc-why-card-title {
    font-size: 10px;
    line-height: 14.3px;
  }

  .cd-v2 .cd-why-photo {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* ============================================================= */
/* CTA bar — Figma 12832:8954 (1240 x 132): the urgent care bar    */
/* with the coral "Talk to an RCM Expert" pill.                    */
/* ============================================================= */
.cd-v2 .cd-ctabar .uc-ctabar-outline rect {
  stroke: url(#cd-ctabar-outline-grad);
}

/* Figma keeps the headline on one line (it runs a little past the copy column). */
@media (min-width: 1200px) {
  .cd-v2 .cd-ctabar .uc-ctabar-title {
    white-space: nowrap;
  }
}

/* The shield gives a heartbeat once the bar has landed. */
.cd-v2 .cd-ctabar.is-in .uc-ctabar-icon img {
  animation: cd-beat 2.4s 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cd-v2 [class*="cd-"],
  .cd-v2 [class*="cd-"] *,
  .cd-v2 [class*="cd-"]::before,
  .cd-v2 [class*="cd-"]::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =================================================================
   Billing services, coding, A/R management
   ================================================================= */
/* Cardiology billing — part B: services (#cd-services), coding (#cd-coding)
   and A/R management (#cd-ar-management). Built on the air ambulance
   services / coding blocks (.aa-svc, .aa-codes) and the urgent care denial
   banner (.uc-denial); this file holds only the differences. Scoped to .cd-v2. */

/* ============================================================= */
/* Section rhythm. The page stacks its frames 60px apart (the      */
/* .aa-v2 rule gives every section a 60px top margin and no        */
/* padding). The coding frame carries 60px of white padding inside */
/* it; the A/R band keeps Figma's 40px inner padding.              */

/* ============================================================= */
/* Expert cardiology billing services — Figma 12832:8969           */
/* (1440 x 1448). The frame starts at the pill, so the corner      */
/* decorations sit 15px higher than on the air ambulance page.     */
/* ============================================================= */
@media (min-width: 768px) {
  .cd-v2 .cd-svc .aa-svc-ring--a { top: -235px; }
  .cd-v2 .cd-svc .aa-svc-ring--b { top: -175px; }
  .cd-v2 .cd-svc .aa-svc-bead--a { top: 47px; }
  .cd-v2 .cd-svc .aa-svc-bead--b { top: 197px; }
  .cd-v2 .cd-svc .aa-svc-bead--c { top: 253px; }
}

/* 12832:8981: the urgent care white pill (users icon), its label centred
   in a 269px box. */
.cd-v2 .cd-svc-pill > span {
  min-width: 269px;
  padding-bottom: 1px;
  text-align: center;
}

@media (max-width: 575px) {
  .cd-v2 .cd-svc-pill > span {
    min-width: 0;
  }

  .cd-v2 .cd-svc-pill {
    white-space: normal;
  }
}

/* Hairlines between the service cells are drawn by pseudo-elements so
   they can draw in (scale) once the section is in view. */
.cd-v2 .cd-svc .aa-svc-item,
.cd-v2 .cd-svc .aa-svc-item:nth-child(2n),
.cd-v2 .cd-svc .aa-svc-item:nth-last-child(2) {
  position: relative;
  border: 0;
}

.cd-v2 .cd-svc .aa-svc-item::before,
.cd-v2 .cd-svc .aa-svc-item:nth-child(2n)::after {
  content: "";
  position: absolute;
  background: #c4c6c9;
  pointer-events: none;
}

.cd-v2 .cd-svc .aa-svc-item::before {
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform-origin: left center;
}

.cd-v2 .cd-svc .aa-svc-item:nth-child(2n)::after {
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  transform-origin: center top;
}

.cd-v2 .cd-svc .aa-svc-item:nth-last-child(-n + 2)::before {
  display: none;
}

/* 12832:9037: Figma draws a short rule under the first row of columns
   one to three only; the second-row rules of the air ambulance panel go. */
.cd-v2 .cd-review .aa-review-grid li::after {
  display: none;
}

@media (min-width: 1200px) {
  .cd-v2 .cd-review .aa-review-grid li:is(:nth-child(1), :nth-child(4), :nth-child(7))::after {
    display: block;
  }

  /* The air ambulance panel keeps its 10th label on one line; here it wraps
     in a 198px box (12832:9063). */
  .cd-v2 .cd-review .aa-review-grid li:nth-child(10) span {
    max-width: 198px;
    white-space: normal;
  }
}

/* 12832:9006: the second cell keeps 6px between its title and text. */
.cd-v2 .cd-svc .aa-svc-item:nth-child(2) {
  gap: 6px;
}

/* 12832:9019: the last row is 307px tall in Figma. */
@media (min-width: 1200px) {
  .cd-v2 .cd-svc .aa-svc-item:nth-last-child(-n + 2) {
    min-height: 307px;
  }

  /* Figma fixes the first row at 252px, so this cell's last line runs into
     its bottom padding. */
  .cd-v2 .cd-svc .aa-svc-item:nth-child(2) {
    padding-bottom: 5px;
  }
}

/* Below the Figma width the tilted "+" tile would sit on the heading. */
@media (max-width: 1199px) {
  .cd-v2 .cd-svc .aa-svc-plus {
    display: none;
  }
}

@media (max-width: 767px) {
  .cd-v2 .cd-svc .aa-svc-item:nth-child(2n)::after {
    display: none;
  }

  .cd-v2 .cd-svc .aa-svc-item:nth-last-child(2)::before {
    display: block;
  }
}

/* ---------- Services animation (adds to the .aa-svc sequence) ---------- */
/* The hairlines draw out after each cell rises; the pill eases in with the
   head (.aa-head > * rise). */
@keyframes cd-draw-x {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes cd-draw-y {
  from { scale: 1 0; }
  to   { scale: 1 1; }
}

.cd-v2 .cd-svc.is-armed:not(.is-in) .aa-svc-item::before {
  scale: 0 1;
}

.cd-v2 .cd-svc.is-armed:not(.is-in) .aa-svc-item::after {
  scale: 1 0;
}

.cd-v2 .cd-svc.is-in .aa-svc-item::before {
  animation: cd-draw-x 0.8s calc(0.6s + var(--i, 0) * 0.1s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cd-v2 .cd-svc.is-in .aa-svc-item::after {
  animation: cd-draw-y 0.8s calc(0.5s + var(--i, 0) * 0.1s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* ============================================================= */
/* Cardiology coding services — Figma 12832:9104 (1440 x 977).     */
/* The .aa-codes block with a 774px title, a 744px lead, 10px      */
/* between the head's lines, and two tilted floating cards.        */
/* ============================================================= */
.cd-v2 .cd-codes-head .aa-head-pill {
  margin-bottom: 10px;
  text-transform: capitalize;
}

.cd-v2 .cd-codes-head .aa-head-title {
  max-width: 774px;
}

.cd-v2 .cd-codes-head .aa-head-lead {
  max-width: 744px;
}

/* Decorations are placed from the section's top-left like the Figma frame. */
.cd-codes-float {
  position: absolute;
  z-index: 2;
  width: 196px;
  pointer-events: none;
}

/* 12832:9112: 196 x 131, turned -4deg, centred 198 / 203.8 in the frame. */
.cd-codes-float--encounter {
  top: 138.29px;
  left: calc(50% - 620px);
  rotate: -4deg;
}

/* 12832:9134: 196 x 112.7, turned 4deg, centred 198 from the right / 203.3. */
.cd-codes-float--capture {
  top: 146.98px;
  right: calc(50% - 620px);
  rotate: 4deg;
}

.cd-enc {
  display: flex;
  flex-direction: column;
  gap: 9.994px;
  padding: 14px 16px;
  font-family: var(--font-primary);
  background: var(--c-white);
  border: 1px solid #e6ebf5;
  border-radius: 16px;
  filter: drop-shadow(0 18px 20px rgba(39, 55, 117, 0.12));
}

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

.cd-enc-title {
  padding-bottom: 1px;
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  color: var(--c-blue);
  white-space: nowrap;
}

.cd-enc-tag {
  padding: 2px 8px 3px;
  font-weight: 600;
  font-size: 9px;
  line-height: normal;
  color: var(--c-orange);
  background: #ffe9ea;
  border-radius: 999px;
}

.cd-enc-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cd-enc-rows li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
  font-size: 10px;
  line-height: normal;
  color: var(--c-text);
}

.cd-enc-rows li > span:last-child {
  padding-bottom: 1px;
}

.cd-enc-code {
  flex: none;
  padding: 2px 7px 3px;
  font-weight: 600;
  font-size: 10px;
  line-height: normal;
  color: var(--c-white);
  white-space: nowrap;
  background: var(--c-blue);
  border-radius: 5px;
}

.cd-enc-code--coral {
  background: var(--c-orange);
}

.cd-enc-code--soft {
  color: var(--c-blue);
  background: #eef2fb;
}

.cd-cap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  font-family: var(--font-primary);
  background: var(--c-blue);
  border-radius: 16px;
  filter: drop-shadow(0 18px 20px rgba(39, 55, 117, 0.28));
}

.cd-cap-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cd-cap-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--c-orange);
  border-radius: 50%;
}

.cd-cap-icon img {
  display: block;
  width: 18.0041px;
  height: 18.0041px;
}

.cd-cap-copy {
  display: flex;
  flex-direction: column;
}

.cd-cap-label {
  font-weight: 400;
  font-size: 11px;
  line-height: normal;
  color: #d7def1;
  white-space: nowrap;
}

.cd-cap-value {
  font-weight: 700;
  font-size: 18px;
  line-height: 20.7px;
  color: var(--c-white);
  white-space: nowrap;
}

.cd-cap-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 34px;
}

.cd-cap-bars i {
  display: block;
  flex: 1 1 0;
  height: var(--h);
  background: #4e62ae;
  border-radius: 3px;
  transform-origin: center bottom;
}

.cd-cap-bars i:last-child {
  background: var(--c-orange);
}

/* Narrower than the Figma frame the cards would cover the heading. */
@media (max-width: 1279px) {
  .cd-codes-float {
    display: none;
  }
}

/* ---------- Coding animation (adds to the .aa-codes sequence) ---------- */
/* The floating cards swing in from their sides, then bob gently out of
   step; the Charge Capture bars grow one by one and its figure counts up. */
@keyframes cd-float-in-l {
  from { opacity: 0; translate: -36px 18px; scale: 0.92; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes cd-float-in-r {
  from { opacity: 0; translate: 36px 18px; scale: 0.92; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes cd-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

@keyframes cd-bar-grow {
  from { scale: 1 0; }
  to   { scale: 1 1; }
}

.cd-codes.is-armed:not(.is-in) .cd-codes-float {
  opacity: 0;
}

.cd-codes.is-in .cd-codes-float--encounter {
  animation:
    cd-float-in-l 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    cd-bob 5.5s 1.3s ease-in-out infinite;
}

.cd-codes.is-in .cd-codes-float--capture {
  animation:
    cd-float-in-r 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    cd-bob 6.2s 2s ease-in-out infinite;
}

.cd-codes:not(.is-armed) .cd-codes-float--encounter {
  animation: cd-bob 5.5s ease-in-out infinite;
}

.cd-codes:not(.is-armed) .cd-codes-float--capture {
  animation: cd-bob 6.2s 0.8s ease-in-out infinite;
}

.cd-codes.is-in .cd-cap-bars i {
  animation: cd-bar-grow 0.6s calc(0.9s + var(--i, 0) * 0.08s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cd-codes.is-in .cd-enc-rows li {
  animation: aa-rise 0.5s calc(0.8s + var(--i, 0) * 0.1s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cd-enc-rows li:nth-child(2) { --i: 1; }
.cd-enc-rows li:nth-child(3) { --i: 2; }

.cd-codes.is-in .cd-enc-tag {
  animation: aa-pop 0.5s 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* ============================================================= */
/* Turning aging cardiology A/R into collected revenue —           */
/* Figma 12832:9292 (1440 x 766). The .uc-denial banner with two   */
/* sub-headed blocks in place of the tick list.                    */
/* ============================================================= */
.cd-v2 .cd-ar-pill {
  height: 26px;
  text-transform: capitalize;
}

.cd-v2 .cd-ar .cd-ar-title {
  padding-top: 0;
}

/* Figma: the photo exactly fills its 707 x 766 box. */
.cd-v2 .cd-ar-photo {
  object-position: 50% 50%;
}

.cd-ar-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

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

/* Copy order: pill, title, bar, lead, two blocks. */
.cd-ar.is-in .uc-denial-copy > :nth-child(6) { animation-delay: 0.45s; }

@media (max-width: 991px) {
  .cd-v2 .cd-ar-photo {
    object-position: 50% 55%;
  }

  .cd-v2 .cd-ar .uc-denial-media {
    height: 420px;
  }
}

@media (max-width: 575px) {
  .cd-v2 .cd-ar .container-page {
    --page-gutter: 20px;
  }

  .cd-v2 .cd-ar .cd-ar-pill {
    height: 26px;
    font-size: 10px;
    line-height: 9.976px;
    white-space: nowrap;
  }

  .cd-v2 .cd-ar .cd-ar-title {
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -1px;
  }

  .cd-v2 .cd-ar .uc-denial-text {
    font-size: 14px;
    line-height: 24px;
  }

  .cd-v2 .cd-ar .uc-denial-media {
    height: auto;
    aspect-ratio: 707 / 600;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cd-v2 [class*="cd-"],
  .cd-v2 [class*="cd-"] *,
  .cd-v2 .cd-svc .aa-svc-item::before,
  .cd-v2 .cd-svc .aa-svc-item::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =================================================================
   Practice types, RCM services, AI billing, why trust us, trusted standards
   ================================================================= */
/* Cardiology billing page — part C: practice types, RCM services, AI band,
   why trust us, trusted standards (Figma 12832:9322 - 12832:9566).
   Builds on the urgent care / air ambulance sections; everything is scoped
   under .cd-v2. */

/* ============================================================= */
/* Section rhythm. The air ambulance rule zeroes every section's   */
/* padding and sets a 60px top margin; these frames carry their    */
/* own Figma padding.                                              */

/* ============================================================= */
/* Practice types — Figma 12832:9322 (1440 x 422). The urgent care */
/* clinic-types cards (five 140px title-only cards, 1px #ccc) with */
/* a pill; 32 / 45 title, 16 / 25.2 lead in an 878px measure.      */
/* ============================================================= */
.cd-v2 .cd-practice .bh-sub-head {
  gap: 10px;
  margin-bottom: 0;
}

.cd-v2 .cd-practice .bh-sub-title,
.cd-v2 .cd-rcm .bh-sub-title {
  font-size: 32px;
  line-height: 45px;
  letter-spacing: 0;
}

.cd-v2 .cd-practice .bh-sub-lead {
  width: 100%;
  max-width: 878px;
  font-size: 16px;
  line-height: 25.2px;
  color: var(--c-text);
}

.cd-v2 .cd-practice .bh-sub-card {
  border-radius: 18px;
  box-shadow: none;
  filter: drop-shadow(0 12px 15px rgba(39, 55, 117, 0.07));
  transition: translate 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}

.cd-v2 .cd-practice .bh-sub-card:hover {
  translate: 0 -4px;
  border-color: var(--c-orange);
  filter: drop-shadow(0 18px 22px rgba(39, 55, 117, 0.14));
}

.cd-v2 .cd-practice .bh-sub-card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  color: var(--c-blue);
}

/* The MH page reserves 116px beside its illustrations below 1200px; these
   cards have none. */
.cd-v2 .cd-practice .bh-sub-card-body,
.cd-v2 .cd-rcm .bh-sub-card-body {
  padding-right: 0;
}

/* Idle: once the cards are in, each icon bobs gently, out of step. */
@keyframes cd-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}

.cd-v2 .cd-practice.is-in .uc-clinic-icon img,
.cd-v2 .cd-practice:not(.is-armed) .uc-clinic-icon img {
  animation: cd-float 4s calc(1.2s + var(--i, 0) * 0.35s) ease-in-out infinite;
}

/* ============================================================= */
/* RCM services — Figma 12832:9369 (1440 x 772). The urgent care   */
/* tailored block on BG Blue (rings, dots, glow, tilted ring); a   */
/* 3 x 3 grid of fixed 295 x 150 white cards 20px apart, centred;  */
/* the 24 x 26 check badge beside a 224px title + copy column.     */
/* ============================================================= */
.cd-v2 .cd-rcm .bh-sub-head {
  gap: 10px;
  margin-bottom: 0;
}

.cd-v2 .cd-rcm .bh-sub-lead {
  width: 100%;
  max-width: 1006px;
  font-size: 16px;
  line-height: 25.2px;
  color: var(--c-text);
}

.cd-v2 .cd-rcm .cd-rcm-grid {
  grid-template-columns: repeat(3, 295px);
  justify-content: center;
  gap: 20px;
}

.cd-v2 .cd-rcm .bh-sub-card {
  height: 150px;
  min-height: 0;
  padding: 18px 17px;
  background: var(--c-white);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  filter: drop-shadow(0 12px 15px rgba(39, 55, 117, 0.07));
  transition: translate 0.3s ease, filter 0.3s ease;
}

.cd-v2 .cd-rcm .bh-sub-card:hover {
  translate: 0 -4px;
  filter: drop-shadow(0 18px 22px rgba(39, 55, 117, 0.14));
}

.cd-v2 .cd-rcm .bh-sub-card-body {
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  width: auto;
  padding-top: 0;
}

.cd-v2 .cd-rcm .cd-rcm-icon {
  position: relative;
  flex: none;
  width: 24px;
  height: 26px;
  transform-origin: 50% 50%;
}

/* Figma's mask group sits 2.15 / 3.32 into the 24 x 26 icon frame. */
.cd-v2 .cd-rcm .cd-rcm-icon img {
  position: absolute;
  top: 3.32px;
  left: 2.15px;
  display: block;
  max-width: none;
}

.cd-v2 .cd-rcm .cd-rcm-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 224px;
  min-width: 0;
}

.cd-v2 .cd-rcm .bh-sub-card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  color: var(--c-blue);
}

.cd-v2 .cd-rcm .bh-sub-card-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text);
}

/* The badge ticks once more on hover. */
.cd-v2 .cd-rcm .bh-sub-card:hover .cd-rcm-icon {
  scale: 1.15;
  rotate: -8deg;
}

/* Idle: after the cascade each badge gives a soft pulse, one card after another. */
@keyframes cd-tick {
  0%, 82%, 100% { scale: 1; }
  88%           { scale: 1.18; }
  94%           { scale: 0.96; }
}

.cd-v2 .cd-rcm.is-in .cd-rcm-icon img,
.cd-v2 .cd-rcm:not(.is-armed) .cd-rcm-icon img {
  animation: cd-tick 6s calc(1.6s + var(--i, 0) * 0.3s) ease-in-out infinite;
}

/* Right-hand glow and tilted ring at Figma's 1308.1 / -114.36 and 1250 / 30.78. */
@media (min-width: 576px) {
  .cd-v2 .cd-rcm .bh-sub-deco {
    top: -84.36px;
    right: -268.1px;
  }
}

/* Top-left rings and dots: anchored to the section edge below 1440px (the
   shared rule places them from a 1440px frame), smaller on phones. */
@media (max-width: 1439px) {
  .cd-v2 .cd-rcm .uc-tailor-ring--solid  { left: -150px; }
  .cd-v2 .cd-rcm .uc-tailor-ring--dashed { left: -90px; }
  .cd-v2 .cd-rcm .uc-tailor-dot--orange  { left: 112px; }
  .cd-v2 .cd-rcm .uc-tailor-dot--blue    { left: 150px; }
}

@media (max-width: 1023px) {
  .cd-v2 .cd-rcm .cd-rcm-grid {
    grid-template-columns: repeat(2, minmax(0, 295px));
  }
}

/* Two columns: the odd ninth card centres on its own row. */
@media (min-width: 640px) and (max-width: 1023px) {
  .cd-v2 .cd-rcm .bh-sub-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 295px;
  }
}

@media (max-width: 991px) {
  .cd-v2 .cd-practice .bh-sub-title,
  .cd-v2 .cd-rcm .bh-sub-title {
    font-size: 28px;
    line-height: 38px;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .cd-v2 .cd-rcm .uc-tailor-ring--solid {
    top: -120px;
    left: -110px;
    width: 260px;
    height: 260px;
  }

  .cd-v2 .cd-rcm .uc-tailor-ring--dashed {
    top: -80px;
    left: -70px;
    width: 180px;
    height: 180px;
  }

  .cd-v2 .cd-rcm .uc-tailor-dot--orange {
    top: 14px;
    left: 12px;
    width: 10px;
    height: 10px;
  }

  .cd-v2 .cd-rcm .uc-tailor-dot--blue {
    top: 34px;
    left: 40px;
    width: 6px;
    height: 6px;
  }

  .cd-v2 .cd-rcm .uc-tailor-ring,
  .cd-v2 .cd-rcm .uc-tailor-dot {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 639px) {
  .cd-v2 .cd-rcm .cd-rcm-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
  }

  .cd-v2 .cd-rcm .bh-sub-card {
    height: auto;
    min-height: 0;
  }

  .cd-v2 .cd-rcm .cd-rcm-copy {
    flex: 1 1 auto;
    width: auto;
  }
}

@media (max-width: 575px) {

  .cd-v2 .cd-practice .container-page,
  .cd-v2 .cd-rcm .container-page,
  .cd-v2 .cd-ai .container-page {
    --page-gutter: 20px;
  }

  .cd-v2 .cd-practice .bh-sub-pill,
  .cd-v2 .cd-rcm .bh-sub-pill,
  .cd-v2 .cd-ai .bh-sub-pill {
    max-width: 100%;
    line-height: 14px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .cd-v2 .cd-practice .bh-sub-title,
  .cd-v2 .cd-rcm .bh-sub-title {
    font-size: 24px;
    line-height: 32px;
  }

  .cd-v2 .cd-practice .bh-sub-lead,
  .cd-v2 .cd-rcm .bh-sub-lead {
    font-size: 15px;
    line-height: 24px;
  }
}

/* ============================================================= */
/* AI-assisted billing — Figma 12832:9481 (1440 x 507.2). The      */
/* urgent care AI band; Figma's image box is 738 x 532 from x 702  */
/* (taller than the band, which clips it).                         */
/* ============================================================= */
.cd-v2 .cd-ai-media {
  left: calc(50% - 18px);
  bottom: auto;
  height: 532px;
}

.cd-v2 .cd-ai-photo {
  object-position: 50% 50%;
}

/* A soft pulse of light where the clinician touches the claim panel. */
.cd-v2 .cd-ai-glow {
  position: absolute;
  top: 26%;
  left: 52%;
  z-index: 1;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 93, 97, 0.32) 0%, rgba(146, 168, 231, 0.18) 38%, rgba(146, 168, 231, 0) 70%);
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

@keyframes cd-ai-glow {
  0%, 100% { opacity: 0.35; scale: 0.85; }
  50%      { opacity: 1; scale: 1.1; }
}

@keyframes cd-ai-float {
  0%, 100% { scale: 1; translate: 0 0; }
  50%      { scale: 1.035; translate: -6px -6px; }
}

.cd-v2 .cd-ai.is-in .cd-ai-photo {
  animation:
    uc-denial-photo-in 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    cd-ai-float 14s 1.2s ease-in-out infinite;
}

.cd-v2 .cd-ai:not(.is-armed) .cd-ai-photo {
  animation: cd-ai-float 14s ease-in-out infinite;
}

.cd-v2 .cd-ai.is-in .cd-ai-glow,
.cd-v2 .cd-ai:not(.is-armed) .cd-ai-glow {
  animation: cd-ai-glow 5s 1s ease-in-out infinite;
}

@media (max-width: 991px) {

  .cd-v2 .cd-ai-media {
    left: auto;
    height: 340px;
  }

  .cd-v2 .cd-ai-photo {
    object-position: 70% 50%;
  }

  .cd-v2 .cd-ai-glow {
    top: 10%;
    left: 50%;
  }
}

@media (max-width: 575px) {
  .cd-v2 .cd-ai-media {
    height: 240px;
  }

  .cd-v2 .cd-ai-glow {
    width: 200px;
    height: 200px;
  }
}

/* ============================================================= */
/* Why trust us — Figma 12832:9491 (1440 x 744). The air ambulance */
/* why-choose block on a faint panel (white under 28% BG Blue,     */
/* 2px BG-blue stroke, inner 64px glow); the pill shows; a 519px   */
/* title, two-paragraph 493px lead, the 413px button 30px below;   */
/* plain white cards (2px stroke, 10px corners, soft glow) whose   */
/* rows size to their copy.                                        */
/* ============================================================= */
.cd-v2 .cd-choose {
  background: #fbfbff;
  border: 2px solid var(--c-bg-blue);
  box-shadow: 0 2.704px 11.561px 0 var(--c-bg-blue), inset 0 0 64px 0 var(--c-bg-blue);
}

.cd-v2 .cd-choose .bh-choose-heading {
  width: 519px;
  max-width: 100%;
}

.cd-v2 .cd-choose .bh-choose-lead {
  width: 493px;
  max-width: 100%;
}

.cd-v2 .cd-choose .bh-choose-actions {
  width: 413px;
  max-width: 100%;
  margin-top: 0;
}

.cd-v2 .cd-choose .bh-choose-card {
  gap: 10px;
  height: auto;
  padding: 14px 18px;
  background: var(--c-white);
  border: 2px solid var(--c-bg-blue);
  border-radius: 10px;
  box-shadow: 0 2.704px 19.56px 0 var(--c-bg-blue);
}

/* Figma insets the second card's copy 30px (the others 20px). */
.cd-v2 .cd-choose .bh-choose-card:nth-child(2) {
  padding-left: 28px;
}

.cd-v2 .cd-choose .bh-choose-card::after {
  content: none;
}

.cd-v2 .cd-choose .bh-choose-card:hover {
  border-color: rgba(39, 55, 117, 0.16);
  box-shadow: 0 18px 30px -16px rgba(39, 55, 117, 0.3);
}

.cd-v2 .cd-choose .bh-choose-icon {
  transition: scale 0.35s ease, rotate 0.35s ease;
}

.cd-v2 .cd-choose .bh-choose-card:hover .bh-choose-icon {
  scale: 1.08;
  rotate: -6deg;
}

/* Figma's badge (120px + bleed) sits at 278 / 172.23 in the 695px grid. */
@media (min-width: 1200px) {
  .cd-v2 .cd-choose .bh-choose-badge {
    top: 160.53px;
    left: 266.3px;
    translate: none;
  }
}

@media (max-width: 575px) {
  .cd-v2 .cd-choose .container-page {
    --page-gutter: 20px;
  }

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

  .cd-v2 .cd-choose .bh-choose-card:nth-child(2) {
    padding-left: 18px;
  }
}

/* ============================================================= */
/* Trusted standards — Figma 12832:9566 (1440 x 466). The shared   */
/* band; here the dividers are flex items 60px from each logo, so  */
/* logos sit 121px apart with the rule centred between them.       */
/* ============================================================= */
@media (min-width: 1200px) {
  .cd-v2 .cd-trust .bh-trust-logos {
    gap: 121.1px;
  }

  .cd-v2 .cd-trust .bh-trust-logo + .bh-trust-logo::before {
    left: -61.1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-v2 .cd-practice *,
  .cd-v2 .cd-rcm *,
  .cd-v2 .cd-ai *,
  .cd-v2 .cd-choose * {
    animation: none !important;
    transition: none !important;
  }

  .cd-v2 .cd-ai-glow {
    opacity: 0.6;
  }
}

/* =================================================================
   Integrations, states, payers
   ================================================================= */
/* ============================================================= */
/* Cardiology — part D: integrations, state services, payers.     */
/* The sections reuse the air ambulance / orthopedic markup and   */
/* CSS (.bh-int / .bh-states / .bh-pay chains); these rules hold  */
/* only the cardiology differences, keyed to .cd-int / .cd-states */
/* / .cd-pay.                                                      */
/* ============================================================= */

/* ------------------------------------------------------------- */
/* Integrations — Figma 12832:9617 "C2" (1440 x 985): 40px above  */
/* and below, the EHR card grows to fit its three rows (Figma's   */
/* hug height), and the second and third logo rows sit in a 319px */
/* track as in Figma (a few px left of the first row's centre).   */
/* ------------------------------------------------------------- */
@media (min-width: 1200px) {

  .cd-v2 .cd-int .bh-int-card--ehr {
    height: auto;
  }

  .cd-v2 .cd-int :is(.bh-int-card--ehr, .bh-int-card--clearing) .bh-int-logos + .bh-int-logos {
    width: 319px;
  }

  /* Figma's down connector lands under the hub's centre (x 720.5). */
  .cd-v2 .cd-int .bh-int-link--down {
    margin-left: 4.65px;
  }
}

/* Hub copy: "Every test." on desktop, "Every system." on phones. A logo
   <picture> (phone-only artwork) lays out as its bare <img>. */
.cd-v2 .cd-int .cd-int-hub-m {
  display: none;
}

.cd-v2 .cd-int .bh-int-logo picture {
  display: contents;
}

/* Entrance extra: the four benefits follow the bar in, one by one,
   their icons popping (the template only fades the bar itself). */
.cd-v2 .cd-int.is-armed:not(.is-in) .bh-int-benefit {
  opacity: 0;
}

.cd-v2 .cd-int.is-in .bh-int-benefit {
  animation: cd-int-benefit 0.6s calc(1.7s + var(--i, 0) * 0.12s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.cd-v2 .cd-int.is-in .bh-int-benefit-icon {
  animation: cd-int-icon 0.6s calc(1.8s + var(--i, 0) * 0.12s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes cd-int-benefit {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes cd-int-icon {
  from { opacity: 0; scale: 0.5; }
  to   { opacity: 1; scale: 1; }
}

/* Phones: the new EHR crops at the 82.2% phone scale (the template
   sizes only its own logos). */
@media (max-width: 575px) {
  /* The orthopedic phone title (24 / 32); the air ambulance 18px size was
     for its own longer two-line heading. */
  .cd-v2 #or-integrations.cd-int .bh-int-title {
    font-size: 24px;
    line-height: 30px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:first-of-type .bh-int-logo:first-child img {
    width: 106.86px;
    height: 31.24px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:first-of-type .bh-int-logo:nth-child(2) img {
    width: 100.28px;
    height: 32.06px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:nth-of-type(2) .bh-int-logo:first-child img {
    width: 93.71px;
    height: 27.95px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:nth-of-type(2) .bh-int-logo:nth-child(2) img {
    width: 100.28px;
    height: 25.48px;
  }
}

/* ------------------------------------------------------------- */
/* State services — Figma 12832:9731 (1440 x 795): 40px above and */
/* below, the lead runs the title's width, the intro card has     */
/* 25 / 21px padding with 267px buttons, and the 903 x 441 frame  */
/* sits 2.2px above the 513px panel's centre.                      */
/* ------------------------------------------------------------- */
.cd-v2 .cd-states .bh-states-lead {
  max-width: 904px;
}

@media (min-width: 1200px) {

  .cd-v2 .cd-states .bh-states-intro {
    padding: 25px 21px;
  }

  .cd-v2 .cd-states .bh-states-intro :is(.bh-states-btn, .bh-states-btn-outline) {
    width: 267px;
  }

  /* Figma keeps the intro's 20px gap above the outline button too. */
  .cd-v2 .cd-states .bh-states-btn-outline {
    margin-top: 0;
  }
}

/* Figma's outline-button arrow is the same 11 x 10 glyph as the filled one. */
.cd-v2 .cd-states .bh-states-btn-outline-icon img {
  width: 11px;
  height: 10px;
}

@media (min-width: 1240px) {
  .cd-v2 .cd-states .or-states-stage {
    top: calc((100% - 441px * var(--or-states-s, 1)) / 2 - 2.2px * var(--or-states-s, 1));
  }
}

/* Entrance extra: each callout's icon pops in just after its card
   (the BH chain pops the cards and draws the connectors). */
.cd-v2 .cd-states.is-in .bh-states-card-icon img {
  animation: cd-states-icon 0.6s calc(1.3s + var(--i, 0) * 0.1s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes cd-states-icon {
  from { opacity: 0; scale: 0.4; }
  to   { opacity: 1; scale: 1; }
}

/* ------------------------------------------------------------- */
/* Payers — Figma 12832:10272 (1240 x 1265). The air ambulance    */
/* frame, but the logo and orbit parts keep their 40px padding     */
/* (each opens with a pill here), the banner title runs 263px wide */
/* (Figma's text box overhangs its 237px column), and the orbit    */
/* part is top-aligned with BH's 70px gaps, a 385px orbit and      */
/* 160px corner pills.                                              */
/* ------------------------------------------------------------- */
@media (min-width: 1200px) {
  .cd-v2 #or-payers.cd-pay .bh-pay-top,
  .cd-v2 #or-payers.cd-pay .bh-pay-bottom {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cd-v2 #or-payers.cd-pay .bh-pay-banner-title h3 {
    width: 263px;
    max-width: none;
  }

  .cd-v2 #or-payers.cd-pay .bh-pay-bottom {
    gap: 70px;
    align-items: flex-start;
  }

  .cd-v2 #or-payers.cd-pay .bh-pay-intro--sm {
    flex: none;
    width: 315px;
  }

  .cd-v2 #or-payers.cd-pay .bh-pay-orbit {
    width: 385px;
    height: 300px;
  }

  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-ring {
    top: calc(50% + 1.2px);
    left: calc(50% + 0.5px);
  }

  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-dot--1 { top: 47.2px; right: auto; bottom: auto; left: 137px; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-dot--2 { top: 47.2px; right: 136px; bottom: auto; left: auto; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-dot--3 { top: auto; right: auto; bottom: 43.8px; left: 137px; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-dot--4 { top: auto; right: 136px; bottom: 43.8px; left: auto; }

  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--commercial { top: 15.81px; right: auto; bottom: auto; left: -30px; width: 160px; height: auto; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--medicare   { top: 4.94%;   right: -57px; bottom: auto; left: auto; width: 160px; padding-right: 10px; padding-left: 10px; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--medicaid   { top: 73.94%;  right: auto; bottom: auto; left: -30px; width: 160px; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--specialty  { top: 73.94%;  right: -57px; bottom: auto; left: auto; width: 160px; }

  /* Figma's fixed-width labels run past the pill padding rather than wrap. */
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill:not(.bh-pay-orbit-pill--commercial) > span:last-child { flex: none; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--medicare > span:last-child  { width: 104px; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--medicaid > span:last-child  { width: 93px; }
  .cd-v2 #or-payers.cd-pay .bh-pay-orbit-pill--specialty > span:last-child { width: 101px; }

  .cd-v2 #or-payers.cd-pay .bh-pay-trust {
    padding: 48px 20px 48px 21px;
  }

  /* Figma's five avatars (344px) overhang the 317px column evenly. */
  .cd-v2 #or-payers.cd-pay .bh-pay-avatars {
    flex: none;
    gap: 16px;
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-v2 .cd-int .bh-int-benefit,
  .cd-v2 .cd-int .bh-int-benefit-icon,
  .cd-v2 .cd-states .bh-states-card-icon img {
    animation: none !important;
  }
}

/* Narrower desktops (1240-1439px): the frame is up to 120px narrower than
   Figma's, so the orbit part is zoomed with the banner (--or-pay-zoom, set
   by the page script) instead of squeezing its columns, keeping the corner
   pills clear of the payer-types column and the avatars inside it. */
@media (min-width: 1240px) {
  .cd-v2 #or-payers.cd-pay .bh-pay-bottom {
    zoom: var(--or-pay-zoom, 1);
  }
}

/* =================================================================
   Testimonials, consultation, FAQs
   ================================================================= */
/* Cardiology billing page, part E: testimonials, book a consultation and FAQs.
   Reuses the air ambulance / orthopedic sections (dme-testi, bh-consult, bh-faq);
   only the differences live here. Every selector is scoped under .cd-v2. */

/* ============================================================= */
/* Section rhythm — Figma stacks the frames 60px apart, and these */
/* three frames carry their own inner padding: testimonials 72 /  */
/* 56, consultation 60 / 60, FAQs 60 / 60 (60px to the footer).   */
/* Outranks the air ambulance rhythm rule (.uc-v2.aa-v2 > ...).   */

/* ============================================================= */
/* Testimonials — Figma 12832:10448 (1440 x 918). Desktop slots:   */
/* columns 1fr 422px 1fr 1fr with 20px gaps on the 1240px track;   */
/* side cards 500px tall, the centre card 544px; content top-      */
/* aligned with 17px between rows. Below 1200px the shared DME     */
/* layouts (three slots, then one card) take over unchanged.        */
/* ============================================================= */
@media (min-width: 1200px) {
  .cd-v2 .cd-testi .dme-testi-arrow {
    top: calc(50% + 3.73px);
  }

  .cd-v2 .cd-testi .dme-testi-track {
    min-height: max(544px, var(--dme-testi-track-height, 0px));
  }

  .cd-v2 .cd-testi .dme-testi-card {
    --x: 79.6237%;
    --w: 20.3763%;
    height: auto;
    min-height: 500px;
    /* Figma's content column is 206px wide, left-aligned in the card. */
    /* (% padding resolves against the track, so var(--w) is the card's width.) */
    padding: 25px calc(var(--w) - 228px) 25px 20px;
  }

  .cd-v2 .cd-testi .dme-testi-card.is-prev  { --x: 0%; }
  .cd-v2 .cd-testi .dme-testi-card.is-next  { --x: 57.6344%; }
  .cd-v2 .cd-testi .dme-testi-card.is-after { --x: 79.6237%; }

  .cd-v2 .cd-testi .dme-testi-card.is-center {
    --x: 21.9892%;
    --w: 34.0323%;
    min-height: 544px;
    padding: 35px 34.26px 30px;
  }

  /* Figma's fixed card heights hold from 1360px; narrower tracks let the
     cards grow with their wrapped copy. */
  @media (min-width: 1360px) {
    .cd-v2 .cd-testi .dme-testi-card { height: 500px; }
    .cd-v2 .cd-testi .dme-testi-card.is-center { height: 544px; }

    .cd-v2 .cd-testi .dme-testi-verified {
      left: 72.45px;
      right: auto;
    }
  }

  /* Figma draws the gradient bar inside the 1px padding (y = 2). */
  .cd-v2 .cd-testi .dme-testi-card::before {
    inset: 1px 1px auto;
  }

  /* Top row: the quote mark, with the badge 72.45px in (side cards) or
     pushed to the right edge (centre card). */
  .cd-v2 .cd-testi .dme-testi-card-top {
    position: relative;
    display: flex;
    gap: 0;
    justify-content: flex-start;
    height: 38.39px;
    margin: 0 0 17px;
  }

  /* Narrower side cards keep the badge on the content's right edge. */
  .cd-v2 .cd-testi .dme-testi-verified {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
  }

  .cd-v2 .cd-testi .dme-testi-card.is-center .dme-testi-card-top {
    justify-content: space-between;
    height: 52px;
    margin-bottom: 17px;
  }

  .cd-v2 .cd-testi .dme-testi-card.is-center .dme-testi-verified {
    position: static;
  }

  .cd-v2 .cd-testi .dme-testi-quote,
  .cd-v2 .cd-testi .dme-testi-card.is-center .dme-testi-quote {
    flex: none;
    margin: 0 0 17px;
  }

  .cd-v2 .cd-testi .dme-testi-sep,
  .cd-v2 .cd-testi .dme-testi-card.is-center .dme-testi-sep {
    margin: 17px 0;
  }

  .cd-v2 .cd-testi .dme-testi-who {
    flex: 0 0 137px;
  }

  /* Centre card: the role wraps to the name's width (Figma 159px column). */
  .cd-v2 .cd-testi .dme-testi-card.is-center .dme-testi-who {
    flex: none;
    gap: 3.01px;
  }

  .cd-v2 .cd-testi .dme-testi-card.is-center .dme-testi-who small {
    width: 0;
    min-width: 100%;
  }

  .cd-v2 .cd-testi .dme-testi-who small {
    font-size: 10px;
    letter-spacing: 0;
  }
}

/* ---------- Testimonials motion ---------- */
/* Cards slide in from their own side (prev from the left, next / after from
   the right) on top of the shared rise; the stars then fill one by one. */
@keyframes cd-testi-from-left {
  from { opacity: 0; translate: -48px 18px; }
  to   { opacity: 1; translate: 0 0; }
}

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

@keyframes cd-testi-star {
  0%   { opacity: 0; transform: scale(0.2) rotate(-60deg); }
  70%  { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.cd-v2 .cd-testi.is-in .dme-testi-card.is-prev {
  animation-name: cd-testi-from-left;
}

.cd-v2 .cd-testi.is-in .dme-testi-card.is-next,
.cd-v2 .cd-testi.is-in .dme-testi-card.is-after {
  animation-name: cd-testi-from-right;
}

.cd-v2 .cd-testi.is-armed:not(.is-in) .dme-testi-stars img {
  opacity: 0;
}

.cd-v2 .cd-testi.is-in .dme-testi-stars img {
  animation: cd-testi-star 0.5s calc(1s + var(--s, 0) * 0.09s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* ============================================================= */
/* Book a consultation — Figma 12839:14152 (1440 x 745). The       */
/* orthopedic section renders it as is (same 197 x 90 dashed       */
/* badges, 540px form card); the button carries no arrow here.     */
/* Extra motion: a soft glow breathes around the form card.        */
/* ============================================================= */
.cd-v2 .cd-consult .bh-consult-card {
  position: relative;
}

/* Figma's 5px stroke sits inside the 30 / 40px padding (strokes take no
   layout space there), so the content box is 460px wide. */
@media (min-width: 992px) {
  .cd-v2 .cd-consult .bh-consult-card {
    padding: 25px 35px;
  }
}

/* Figma's field icons sit flush in their 16px slots (only the 11.67px user
   glyph is inset), so the placeholders start 10px after a 16px icon. */
.cd-v2 .cd-consult .bh-consult-field img:not([width="11.6668"]) {
  margin: 0;
}

.cd-v2 .cd-consult .bh-consult-card::after {
  content: "";
  position: absolute;
  /* Outer shadows only (nothing paints inside the box), so it can sit on top. */
  inset: -5px;
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(252, 93, 97, 0.12), 0 18px 48px -12px rgba(39, 55, 117, 0.35);
  opacity: 0;
  pointer-events: none;
}

@keyframes cd-consult-glow {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 1; }
}

.cd-v2 .cd-consult.is-in .bh-consult-card::after,
.cd-v2 .cd-consult:not(.is-armed) .bh-consult-card::after {
  animation: cd-consult-glow 4.5s 1.2s ease-in-out infinite;
}

/* ============================================================= */
/* FAQs — Figma 12832:10961 (1440 x 847). The orthopedic / air     */
/* ambulance accordion with Figma's numbers: a 32 / 48 title, the  */
/* note's text 20px past its 4px bar, 64px closed rows (65 with    */
/* the divider), a 60px open header, and the answer text 17px past */
/* its 3px bar, 581px wide. Figma's question text runs right up to */
/* the chevron (538px), so the 24px gap before it is dropped.      */
/* ============================================================= */
@media (min-width: 992px) {
  .cd-v2 .cd-faq .bh-faq-title {
    font-size: 32px;
    line-height: 48px;
  }
}

.cd-v2 .cd-faq .bh-faq-note {
  padding-left: 20px;
}

@media (min-width: 576px) {
  .cd-v2 .cd-faq .bh-faq-chevron {
    margin-left: -24px;
  }

  .cd-v2 .cd-faq .bh-faq-q-text {
    padding-right: 4px;
  }
}

@media (min-width: 992px) {
  .cd-v2 .cd-faq .bh-faq-q button {
    min-height: 64px;
  }

  .cd-v2 .cd-faq .bh-faq-item:last-child .bh-faq-q button {
    min-height: 65px;
  }

  .cd-v2 .cd-faq .bh-faq-item.is-open .bh-faq-q button {
    min-height: 60px;
  }

  .cd-v2 .cd-faq .bh-faq-a-inner p {
    margin-right: 25px;
    padding-bottom: 0.875px;
    padding-left: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-v2 .cd-testi .dme-testi-stars img,
  .cd-v2 .cd-consult .bh-consult-card::after {
    animation: none !important;
  }

  .cd-v2 .cd-testi .dme-testi-stars img {
    opacity: 1 !important;
  }

  .cd-v2 .cd-consult .bh-consult-card::after {
    opacity: 0;
  }
}

/* Payer frame outline — Figma 12832:10272: a 1px dashed stroke (10 / 8) shading
   navy to coral at every width, so the orthopedic phone-only SVG outline is
   shown on desktop too and the plain dashed border is hidden. */
.cd-v2 #or-payers .bh-pay-frame {
  position: relative;
  border-color: transparent;
}

.cd-v2 #or-payers .or-pay-outline {
  position: absolute;
  inset: -1px;
  display: block;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
}

.cd-v2 #or-payers .or-pay-outline rect {
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  fill: none;
  stroke: url(#or-pay-outline-grad);
  stroke-width: 1;
  stroke-dasharray: 10 8;
}

/* Hero form heading ("Let's Handle Your Cardiology Billing", from the page
   copy): a full-width first row of the booking card, above the fields. */
.cd-v2 .cd-hero .bh-hero-form {
  flex-wrap: wrap;
}

.cd-v2 .cd-hero-form-title {
  flex: 0 0 100%;
  margin: 0 0 10px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: var(--c-blue);
}

.cd-v2 .cd-hero-form-title .accent {
  color: var(--c-orange);
}

/* Why trust us: "Talk to Our Team" and "Explore Our Services" side by side,
   sharing the copy column (the MH rule stacks them in a 413px column); they
   wrap onto two full-width rows on phones. */
.cd-v2 .cd-choose .bh-choose-actions {
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  gap: 20px;
}

.cd-v2 .cd-choose .bh-choose-actions .bh-choose-btn {
  flex: 1 1 240px;
  gap: 20px;
}

/* Payer logos: the page copy lists 13 payers (no Optum) in its own order, so
   the logos keep their source order at every width (the orthopedic phone
   reordering is for its own list) and "+ More Payers" spans two cells to close
   the last row of the 5-column (desktop) and 3-column (tablet / phone) grids. */
.uc-v2.aa-v2.cd-v2 #or-payers .bh-pay-logo {
  order: 0;
}

.uc-v2.aa-v2.cd-v2 #or-payers .bh-pay-logo--more {
  grid-column: span 2;
}

/* =================================================================
   PHONES — Figma "Mobile Version" 12832:11338 (440 wide, 20px gutters).
   Every rule below is phone-only (except the coding-title accent) and
   sits last so it outranks the shared template rules it adjusts.
   ================================================================= */

/* Desktop keeps the plain coding title; the coral "Coding Services" is the
   phone design's (12832:11724). */
@media (min-width: 576px) {
  .cd-v2 .cd-codes-head .aa-head-title .accent {
    color: inherit;
  }
}

/* The hero art is the desktop composition scaled to the column: 400px wide
   at 440 (x 0.6431), stepping down on narrower phones. */
@media (max-width: 490px) { .cd-v2 .cd-hero-art { zoom: 0.6431; } }
@media (max-width: 439px) { .cd-v2 .cd-hero-art { zoom: 0.6; } }
@media (max-width: 419px) { .cd-v2 .cd-hero-art { zoom: 0.57; } }
@media (max-width: 399px) { .cd-v2 .cd-hero-art { zoom: 0.54; } }
@media (max-width: 379px) { .cd-v2 .cd-hero-art { zoom: 0.5; } }
@media (max-width: 359px) { .cd-v2 .cd-hero-art { zoom: 0.47; } }
@media (max-width: 339px) { .cd-v2 .cd-hero-art { zoom: 0.44; } }

/* Case-study portrait: Figma's 376px group at full size in the 360px panel
   at 440 and up, stepping down below. */
@media (min-width: 440px) and (max-width: 575px) { .cd-v2 .cd-cases .bh-case-portrait { zoom: 1; } }
@media (max-width: 439px) { .cd-v2 .cd-cases .bh-case-portrait { zoom: 0.93; } }
@media (max-width: 409px) { .cd-v2 .cd-cases .bh-case-portrait { zoom: 0.85; } }
@media (max-width: 379px) { .cd-v2 .cd-cases .bh-case-portrait { zoom: 0.78; } }
@media (max-width: 349px) { .cd-v2 .cd-cases .bh-case-portrait { zoom: 0.7; } }

@media (max-width: 575px) {
  /* ---------- Hero (12832:11409) ---------- */
  .cd-v2 .cd-hero .bh-hero-pill {
    font-size: 10px;
  }

  .cd-v2 .cd-hero .bh-hero-heading {
    font-size: 32px;
    line-height: 40px;
  }

  .cd-v2 .cd-hero .bh-hero-lead {
    margin-bottom: -10px; /* 10px to the list (the column gap is 20) */
    font-size: 14px;
    line-height: 28.8px;
  }

  .cd-v2 .cd-hero .bh-hero-list li {
    padding-left: 34px;
    font-size: 14px;
    line-height: 28.8px;
  }

  .cd-v2 .cd-hero .bh-hero-list li::before {
    top: 2.4px;
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
  }

  .cd-v2 .cd-hero .bh-hero-certs {
    gap: 14.398px;
    margin-top: 0;
  }

  .cd-v2 .cd-hero .bh-cert {
    flex: 1 1 0;
    box-sizing: border-box;
    height: 65.387px;
    padding: 8.066px;
    border-radius: 6.722px;
  }

  .cd-v2 .cd-hero-top {
    margin-bottom: 40px;
  }

  .cd-v2 .cd-hero-art {
    margin-top: 40px;
  }

  /* Form 12832:11460: no heading on phones, 20px between fields, 30px to the button. */
  .cd-v2 .cd-hero .bh-hero-form {
    gap: 30px;
  }

  .cd-v2 .cd-hero .cd-hero-form-title {
    display: none;
  }

  .cd-v2 .cd-hero .booking-fields {
    gap: 20px;
  }

  /* ---------- Why (12832:11558) ---------- */
  .cd-v2 .cd-why .uc-why-title {
    letter-spacing: -0.9px;
  }

  .cd-v2 .cd-why .uc-why-layout {
    gap: 10px;
  }

  /* A 400 x 354 card inside the gutters (not full bleed). */
  .cd-v2 .cd-why-media {
    margin: 0;
    aspect-ratio: 400 / 354;
    border-radius: 0;
  }

  .cd-v2 .cd-why-photo {
    filter: blur(3px);
  }

  .cd-v2 .cd-why-media::after {
    inset: 0;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 1.515%, rgba(255, 255, 255, 0) 94.066%);
  }

  .cd-v2 .cd-why-card {
    top: 20px;
    right: auto;
    left: 20px;
    width: 250px;
    margin: 0;
    border-radius: 10.87px;
  }

  .cd-v2 .cd-why-card .uc-why-card-inner {
    gap: 3.417px;
    padding: 11.618px 10.251px 6.834px 12.985px;
    border-width: 0.683px;
    border-radius: 4.784px;
  }

  .cd-v2 .cd-why-card .uc-why-card-title {
    padding: 3.882px 6.211px;
    font-size: 10.87px;
    line-height: 15.528px;
    border-radius: 5.435px;
  }

  .cd-v2 .cd-why-card .uc-why-card-list {
    gap: 6.834px;
    width: 226.708px;
  }

  .cd-v2 .cd-why-card .uc-why-card-list li {
    gap: 9.568px;
    height: 22.781px;
    font-size: 9.568px;
    line-height: 9.568px;
  }

  .cd-v2 .cd-why-card .uc-why-card-list li + li::before {
    top: -3.417px;
    height: 0.683px;
  }

  .cd-v2 .cd-why-card .uc-why-card-tick {
    width: 9.568px;
    height: 9.568px;
    font-size: 6.834px;
    line-height: 9.568px;
    border-radius: 4.784px;
  }

  /* ---------- CTA bar (12832:11601) ---------- */
  .cd-v2 .cd-ctabar .uc-ctabar-inner {
    gap: 20px;
    padding: 20px 22px;
    border-radius: 20px;
  }

  .cd-v2 .cd-ctabar .uc-ctabar-outline {
    display: none;
  }

  .cd-v2 .cd-ctabar .uc-ctabar-main {
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
  }

  .cd-v2 .cd-ctabar .uc-ctabar-copy {
    flex: 1 1 0;
    gap: 20px;
  }

  .cd-v2 .cd-ctabar .uc-ctabar-title {
    font-size: 20px;
    line-height: 30px;
  }

  .cd-v2 .cd-ctabar .uc-ctabar-btn {
    width: 100%;
    margin-left: 0;
    font-size: 14px;
  }

  /* ---------- Billing services (12832:11615) ---------- */
  .cd-v2 .cd-svc :is(.aa-svc-ring, .aa-svc-bead, .aa-svc-glow, .aa-svc-plus) {
    display: none;
  }

  .cd-v2 .cd-svc .aa-head-title {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.8px;
  }

  .cd-v2 .cd-svc .aa-head-lead {
    margin-top: 18px;
    font-size: 14px;
    line-height: 25px;
  }

  .cd-v2 .cd-svc .aa-svc-item {
    gap: 12px;
    padding: 24px 0;
  }

  .cd-v2 .cd-svc .aa-svc-item:first-child {
    padding-top: 0;
  }

  .cd-v2 .cd-svc .aa-svc-title {
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.3px;
  }

  .cd-v2 .cd-svc .aa-svc-text {
    font-size: 14px;
    line-height: 28px;
  }

  /* "What We Review Before Billing" (12832:11648): left-aligned heading,
     one column read row by row (the desktop grid fills by column). */
  .cd-v2 .cd-review {
    padding: 24px 20px;
  }

  .cd-v2 .cd-review .aa-review-head {
    justify-content: flex-start;
  }

  .cd-v2 .cd-review .aa-review-head::after {
    display: none;
  }

  .cd-v2 .cd-review .aa-review-title {
    flex: 1 1 0;
    font-size: 20px;
    line-height: 30px;
  }

  .cd-v2 .cd-review .aa-review-grid {
    gap: 16px;
    margin-top: 24px;
  }

  .cd-v2 .cd-review .aa-review-grid li {
    min-height: 0;
  }

  .cd-v2 .cd-review .aa-review-grid li:nth-child(1)  { order: 0; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(4)  { order: 1; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(7)  { order: 2; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(10) { order: 3; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(2)  { order: 4; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(5)  { order: 5; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(8)  { order: 6; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(11) { order: 7; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(3)  { order: 8; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(6)  { order: 9; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(9)  { order: 10; }
  .cd-v2 .cd-review .aa-review-grid li:nth-child(12) { order: 11; }

  /* ---------- Coding (12832:11716) ---------- */
  /* The two floating cards sit in a 210px band between the lead and the
     cards: the section becomes a 3-column grid (20px gutters) and the
     container's children join it. */
  .cd-v2 .cd-codes {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
  }

  .cd-v2 .cd-codes > .container-page {
    display: contents;
  }

  .cd-v2 .cd-codes .cd-codes-head {
    grid-row: 1;
    grid-column: 2;
  }

  .cd-v2 .cd-codes .aa-codes-grid {
    grid-row: 3;
    grid-column: 2;
    gap: 16px;
    margin-top: 28px;
  }

  .cd-v2 .cd-codes-float {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: block;
    grid-row: 2;
    grid-column: 2;
    align-self: start;
  }

  /* Figma 12832:11747 / 11730: the 196px cards at -4 / +4deg in the 400 x 210 band. */
  .cd-v2 .cd-codes-float--encounter {
    justify-self: start;
    margin: 25px 0 0 4px;
  }

  .cd-v2 .cd-codes-float--capture {
    justify-self: end;
    margin: 100.7px 11px 0 0;
  }

  .cd-v2 .cd-codes .cd-codes-head .aa-head-pill {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 14px;
  }

  .cd-v2 .cd-codes .cd-codes-head .aa-head-title {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1px;
  }

  .cd-v2 .cd-codes .cd-codes-head .aa-head-bars {
    margin-top: 12px;
  }

  .cd-v2 .cd-codes .cd-codes-head .aa-head-lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 25px;
  }

  .cd-v2 .cd-codes .aa-code {
    gap: 18px;
    padding: 16px 22px 16px 16px;
  }

  .cd-v2 .cd-codes .aa-code-body {
    gap: 10px;
  }

  .cd-v2 .cd-codes .aa-code-title {
    font-size: 16px;
    line-height: 22.4px;
  }

  .cd-v2 .cd-codes .aa-code-note {
    font-size: 14px;
    line-height: 21px;
  }

  /* ---------- A/R management (12832:11901) ---------- */
  .uc-v2.aa-v2.cd-v2 > section#cd-ar-management {
    padding-bottom: 0;
  }

  .cd-v2 .cd-ar .cd-ar-title {
    line-height: 30px;
    letter-spacing: -1.6px;
  }

  /* The dashboard runs edge to edge at the foot, 440 x 378 at 440 (the
     image box 126% tall, 10.6% up), fading in from the band. */
  .cd-v2 .cd-ar .uc-denial-media {
    margin-top: 48px;
    aspect-ratio: 440 / 378;
  }

  .cd-v2 .cd-ar .cd-ar-photo {
    position: absolute;
    top: -10.59%;
    left: 0;
    width: 100%;
    height: 126.06%;
    object-fit: fill;
  }

  .cd-v2 .cd-ar .uc-denial-media::after {
    background: linear-gradient(180deg, var(--c-bg-blue) 1.515%, rgba(255, 255, 255, 0) 94.066%);
  }

  /* ---------- Practice types (12832:11932) ---------- */
  .cd-v2 .cd-practice .bh-sub-head {
    gap: 10px;
    margin-bottom: 40px;
  }

  .cd-v2 .cd-practice .bh-sub-pill {
    font-size: 12px;
  }

  .cd-v2 .cd-practice .bh-sub-title,
  .cd-v2 .cd-rcm .bh-sub-title {
    font-size: 24px;
    line-height: 30px;
  }

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

  .cd-v2 .cd-practice .uc-clinic-grid {
    gap: 20px;
  }

  .cd-v2 .cd-practice .bh-sub-card {
    padding: 16px 20px;
    border: 1px solid #ccc;
    border-radius: 18px;
  }

  .cd-v2 .cd-practice .bh-sub-card-body {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-top: 2px;
  }

  .cd-v2 .cd-practice .bh-sub-card-title {
    font-size: 18px;
    line-height: 25px;
    text-align: left;
  }

  /* ---------- RCM services (12832:11979) ---------- */
  .cd-v2 .cd-rcm .bh-sub-deco {
    display: none;
  }

  .cd-v2 .cd-rcm .bh-sub-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .cd-v2 .cd-rcm .bh-sub-pill {
    font-size: 10px;
    line-height: 16px;
  }

  .cd-v2 .cd-rcm .bh-sub-lead {
    font-size: 14px;
    line-height: 25px;
  }

  .cd-v2 .cd-rcm .cd-rcm-grid {
    gap: 20px;
    max-width: none;
  }

  .cd-v2 .cd-rcm .bh-sub-card {
    min-height: 130px;
    padding: 18px 17px;
  }

  .cd-v2 .cd-rcm .bh-sub-card-body {
    gap: 10px;
    align-items: flex-start;
  }

  /* ---------- AI band (12832:12086) ---------- */
  .uc-v2.aa-v2.cd-v2 > section#cd-ai-billing {
    padding-bottom: 0;
  }

  .cd-v2 .cd-ai .bh-sub-pill {
    height: 26px;
    font-size: 12px;
    line-height: 9.976px;
    white-space: nowrap;
  }

  .cd-v2 .cd-ai .uc-denial-title {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1.6px;
  }

  .cd-v2 .cd-ai .uc-denial-text {
    font-size: 14px;
    line-height: 24px;
  }

  /* 440 x 311 at the foot: the image 286px tall from 25px down, its box
     tucked 22px under the copy and fading in from the band. */
  .cd-v2 .cd-ai-media {
    height: auto;
    margin-top: -22px;
    aspect-ratio: 440 / 311;
  }

  .cd-v2 .cd-ai-photo {
    position: absolute;
    top: 8.04%;
    left: 0;
    width: 100%;
    height: 91.96%;
    object-fit: cover;
  }

  /* Covers the whole box (the photo's idle float lifts it a few px above
     its 25px start); solid band down to the image's 2.6% stop. */
  .cd-v2 .cd-ai .uc-denial-media::after {
    inset: 0;
    height: auto;
    background: linear-gradient(179.44deg, var(--c-blue) 10.47%, rgba(39, 55, 117, 0) 95.25%);
  }

  /* ---------- Why trust us (12832:12097): one button ---------- */
  .cd-v2 .cd-choose .or-choose-btn--ghost {
    display: none;
  }

  .cd-v2 .cd-choose .bh-choose-actions {
    margin-top: 40px;
  }

  .cd-v2 .cd-choose .bh-choose-grid {
    gap: 20px;
  }

  /* ---------- Case study (12843:16880) ---------- */
  .cd-v2 .cd-cases .bh-case-card {
    gap: 30px;
    padding: 20px;
  }

  .cd-v2 .cd-cases .bh-case-story {
    padding: 34px 20px 52px;
    overflow: hidden;
  }

  .cd-v2 .cd-cases .bh-case-portrait {
    align-self: center;
  }

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

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

  .cd-v2 .cd-cases .bh-case-quote blockquote {
    font-weight: 500;
  }

  .cd-v2 .cd-cases .bh-case-body,
  .cd-v2 .cd-cases .bh-case-outcomes {
    padding: 0;
  }

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

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

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

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

  .cd-v2 .cd-cases .bh-case-outcomes,
  .cd-v2 .cd-cases .bh-case-stats {
    gap: 24px;
  }

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

  .cd-v2 .cd-cases .bh-case-stat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

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

  .cd-v2 .cd-cases .bh-case-stat-body > span {
    font-size: 14px;
    line-height: 25.2px;
  }

  /* ---------- Integrations (12832:12222) ---------- */
  /* EHR, hub, clearinghouses, then PMS. */
  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing { order: 5; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--pms      { order: 7; }

  .cd-v2 #or-integrations.cd-int .bh-int-card {
    gap: 12px;
    padding: 16px;
    filter: drop-shadow(0 4px 10px rgba(39, 55, 117, 0.09));
  }

  /* Header row sits 12px above the first logo row (the card gap only). */
  .cd-v2 #or-integrations.cd-int .bh-int-card-head {
    margin-bottom: 0;
  }

  .cd-v2 #or-integrations.cd-int .cd-int-hub-d { display: none; }
  .cd-v2 #or-integrations.cd-int .cd-int-hub-m { display: inline; }

  /* Figma sets the last benefit in SemiBold. */
  .cd-v2 #or-integrations.cd-int .bh-int-benefit:last-child > span:last-child {
    font-weight: 600;
  }

  /* The hub keeps the gradient dashed ring and a one-line title. */
  .cd-v2 #or-integrations.cd-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;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-hub strong {
    max-width: none;
    white-space: nowrap;
  }

  /* EHR and PMS logos at full size in 139 x 45 tiles (NextGen 150), 20px apart. */
  .cd-v2 #or-integrations.cd-int :is(.bh-int-card--ehr, .bh-int-card--pms) .bh-int-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    width: 100%;
  }

  .cd-v2 #or-integrations.cd-int :is(.bh-int-card--ehr, .bh-int-card--pms) .bh-int-logos + .bh-int-logos {
    margin-top: 0;
  }

  .cd-v2 #or-integrations.cd-int :is(.bh-int-card--ehr, .bh-int-card--pms) .bh-int-logo {
    box-sizing: border-box;
    width: 139px !important; /* over the template's phone tile widths */
    height: 45px;
    padding: 0;
    border-width: 1px;
    border-radius: 10px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--pms .bh-int-logo:nth-child(3) {
    width: 150px !important;
  }

  /* Narrower phones: below a 298px row the tiles shrink to two per row
     (never one per row) and the logos scale down inside them. */
  @media (max-width: 420px) {
    .cd-v2 #or-integrations.cd-int :is(.bh-int-card--ehr, .bh-int-card--pms) .bh-int-logos {
      gap: 12px;
    }

    .cd-v2 #or-integrations.cd-int :is(.bh-int-card--ehr, .bh-int-card--pms) .bh-int-logo {
      width: min(139px, calc((100% - 12px) / 2)) !important;
    }

    .cd-v2 #or-integrations.cd-int .bh-int-card--pms .bh-int-logo:nth-child(3) {
      width: min(150px, calc((100% - 12px) / 2)) !important;
    }
  }

  .cd-v2 #or-integrations.cd-int :is(.bh-int-card--ehr, .bh-int-card--pms) .bh-int-logo img {
    flex: none;
    max-width: calc(100% - 8px);
    object-fit: contain;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:first-of-type .bh-int-logo:first-child img { width: 130px; height: 38px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:first-of-type .bh-int-logo:nth-child(2) img { width: 122px; height: 39px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:nth-of-type(2) .bh-int-logo:first-child img { width: 114px; height: 34px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:nth-of-type(2) .bh-int-logo:nth-child(2) img { width: 122px; height: 31px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--ehr .bh-int-logos:nth-of-type(3) .bh-int-logo img { width: 122px; height: 25px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--pms .bh-int-logo:nth-child(1) img { width: 129px; height: 25px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--pms .bh-int-logo:nth-child(2) img { width: 119px; height: 23px; }
  .cd-v2 #or-integrations.cd-int .bh-int-card--pms .bh-int-logo:nth-child(3) img { width: 86px; height: 32px; }

  /* Clearinghouses: small 90 x 37 tiles, rows 8px apart; TriZetto before Waystar. */
  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing .bh-int-logos {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing .bh-int-logos + .bh-int-logos {
    margin-top: -4px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing .bh-int-logos:nth-of-type(2) .bh-int-logo:first-child {
    order: 2;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing .bh-int-logo {
    box-sizing: border-box;
    width: auto !important;
    min-width: 90px;
    height: 37px;
    padding: 6px;
    border-width: 1px;
    border-radius: 6px;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing .bh-int-logo img {
    width: 78px;
    max-width: none;
    height: auto;
    max-height: 25px;
    object-fit: contain;
  }

  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing .bh-int-logos:first-of-type .bh-int-logo:first-child img {
    width: 68px;
  }

  /* TriZetto with its "Provider Solutions" line: Figma's 78 x 25 crop of a
     78 x 35.2 render, shifted up 3.1px (3.1 / 10.2 = 30.4%). */
  .cd-v2 #or-integrations.cd-int .bh-int-card--clearing img[alt="TriZetto logo"] {
    height: 25px;
    max-height: none;
    object-fit: cover;
    object-position: 50% 30.4%;
  }

  /* ---------- States (12832:12332) ---------- */
  /* Promo card 12832:12338: 28% BG Blue on white, 1px BG Blue stroke,
     soft outer shadow and a 64px inner glow; pill-shaped buttons. */
  .cd-v2 #cd-states .bh-states-intro {
    padding: 20px;
    background: linear-gradient(rgba(239, 242, 255, 0.28), rgba(239, 242, 255, 0.28)), #fff;
    border: 1px solid #eff2ff;
    border-radius: 16px;
    box-shadow: 0 2.704px 11.561px #eff2ff, inset 0 0 64px #eff2ff;
  }

  .cd-v2 #cd-states .bh-states-btn {
    border-radius: 50px;
    filter: drop-shadow(0 4px 6px rgba(252, 93, 97, 0.25));
  }

  .cd-v2 #cd-states .bh-states-btn-outline {
    box-sizing: border-box;
    height: 45px;
    padding: 9px 15px;
    border-radius: 50px;
  }

  /* ---------- Payers (12832:12858): banner heading centred ---------- */
  .cd-v2 #or-payers .bh-pay-banner-title h3 {
    align-self: stretch;
    text-align: center;
  }

  /* ---------- Testimonials (12832:13032): a static stack ---------- */
  .cd-v2 .cd-testi .dme-testi-carousel,
  .cd-v2 .cd-testi .dme-testi-blob,
  .cd-v2 .cd-testi .dme-testi-dotgrid,
  .cd-v2 .cd-testi .dme-testi-ring,
  .cd-v2 .cd-testi .dme-testi-dot,
  .cd-v2 .cd-testi .dme-testi-bubble {
    display: none;
  }

  .cd-v2 #cd-testimonials {
    background: radial-gradient(ellipse 83% 100% at 50% 0, #fff 0%, #f5f7fc 55%, #eef1f8 100%);
  }

  /* The container is a flex column with a 36px gap: 32px under the intro. */
  .cd-v2 #cd-testimonials .container-page {
    row-gap: 32px;
  }

  .cd-v2 .cd-testi .dme-testi-head {
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 0;
    text-align: left;
  }

  .cd-v2 .cd-testi .dme-testi-pill {
    padding: 8px 10px;
    color: var(--c-blue);
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0;
    text-transform: none;
    background: rgba(39, 55, 117, 0.1);
    border: 0;
    border-radius: 7px;
    box-shadow: none;
  }

  .cd-v2 .cd-testi .dme-testi-title {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1.08px;
  }

  .cd-v2 .cd-testi .dme-testi-lead {
    max-width: none;
    margin: 0;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 25px;
  }

  .cd-v2 .cd-testi-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .cd-v2 .cd-testi-scard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: #fff;
    border: 0.7px solid #f3f4f6;
    border-radius: 11px;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.11));
  }

  .cd-v2 .cd-testi-scard .dme-testi-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0;
  }

  .cd-v2 .cd-testi-scard .dme-testi-mark {
    position: static;
    width: 25px;
    height: 29px;
    color: #eff2ff;
    font: 700 48px/38.4px Georgia, serif;
  }

  .cd-v2 .cd-testi-scard .dme-testi-verified {
    gap: 6px;
    padding: 5px 11px 6px;
    color: var(--c-blue);
    font-size: 12px;
    font-weight: 600;
    background: #eff2ff;
    border-radius: 30px;
  }

  .cd-v2 .cd-testi-squote {
    margin: 0;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 22.04px;
  }

  .cd-v2 .cd-testi-srating {
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .cd-v2 .cd-testi-srating > img {
    width: 85.48px;
    height: 14px;
  }

  .cd-v2 .cd-testi-sscore {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 11px;
    border-left: 0.7px solid #d1d5db;
    font-size: 10px;
    white-space: nowrap;
  }

  .cd-v2 .cd-testi-sscore b {
    color: #3d3d3d;
    font-weight: 700;
  }

  .cd-v2 .cd-testi-sscore span {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #3b82f6;
    font-weight: 500;
  }

  .cd-v2 .cd-testi-ssep {
    width: 100%;
    height: 0.7px;
    margin: 0;
    background: #e2e8f0;
    border: 0;
    opacity: 1;
  }

  /* Figma puts the separator under the author on cards 3 and 4. */
  .cd-v2 .cd-testi-scard:nth-child(n + 3) .cd-testi-ssep {
    order: 1;
  }

  .cd-v2 .cd-testi-sauthor {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .cd-v2 .cd-testi-savatar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    background: var(--c-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dce3f3;
  }

  .cd-v2 .cd-testi-swho {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }

  .cd-v2 .cd-testi-swho b {
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 18.2px;
  }

  .cd-v2 .cd-testi-swho small {
    color: #9a9a9f;
    font-size: 10px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
  }

  .cd-v2 .cd-testi-scard.is-featured .cd-testi-savatar {
    width: 56px;
    height: 56px;
    background: var(--c-orange, #fc5d61);
  }

  .cd-v2 .cd-testi-scard.is-featured .cd-testi-swho b {
    font-size: 17px;
    line-height: 22.1px;
  }

  .cd-v2 .cd-testi-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
  }

  /* Shield between two fading 1px rules. */
  .cd-v2 .cd-testi-trust-ico {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
  }

  .cd-v2 .cd-testi-trust-ico::before,
  .cd-v2 .cd-testi-trust-ico::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 210, 234, 0), #c9d2ea);
  }

  .cd-v2 .cd-testi-trust-ico::after {
    background: linear-gradient(90deg, #c9d2ea, rgba(201, 210, 234, 0));
  }

  .cd-v2 .cd-testi-trust-ico img {
    box-sizing: content-box;
    flex: none;
    width: 22px;
    height: 24px;
    padding: 11px 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px -8px rgba(39, 55, 117, 0.4);
  }

  .cd-v2 .cd-testi-trust p {
    margin: 0;
    color: #5b6584;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
  }

  .cd-v2 .cd-testi-sites {
    display: flex;
    gap: 20px;
    margin-top: 8px;
  }

  .cd-v2 .cd-testi-site {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 80px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 7.56px rgba(0, 0, 0, 0.1);
  }

  .cd-v2 .cd-testi-site-logo {
    display: block;
    height: 29px;
  }

  .cd-v2 .cd-testi-site-logo img {
    display: block;
    width: 94px;
    height: 29px;
  }

  /* The Trustpilot artwork stacks two lockups; Figma shows the top one. */
  .cd-v2 .cd-testi-site-logo--tp {
    width: 111px;
    height: 27px;
    overflow: hidden;
  }

  .cd-v2 .cd-testi-site-logo--tp img {
    width: 111px;
    height: 54px;
  }

  .cd-v2 .cd-testi-site-rate {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3d3d3d;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
  }

  .cd-v2 .cd-testi-site-rate img {
    width: 9px;
    height: 9px;
    margin: 2px;
  }
}

@media (max-width: 575px) {
  /* ---------- Consultation (12843:16948) ---------- */
  .cd-v2 .cd-consult .bh-consult-field {
    border-radius: 5px;
  }

  /* Typed text stays 16px so iOS doesn't zoom on focus; the placeholder
     takes Figma's 14px. */
  .cd-v2 .cd-consult .bh-consult-field input::placeholder {
    font-size: 14px;
  }

  .cd-v2 .cd-consult .bh-consult-submit {
    font-size: 14px;
  }

  /* ---------- FAQ (12832:13442): 89px rows ---------- */
  .cd-v2 #or-faqs .bh-faq-q button {
    gap: 24px;
    padding: 20px;
  }

  /* 20 + 40 badge + 24 + 268 text + 10 + 16 chevron + 20 = 398. */
  .cd-v2 #or-faqs .bh-faq-q-text {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    line-height: 24px;
  }

  .cd-v2 #or-faqs .bh-faq-chevron {
    margin-left: -14px;
  }
}

/* The phone-only review stack stays out of larger layouts. */
@media (min-width: 576px) {
  .cd-v2 .cd-testi-stack {
    display: none;
  }
}
