/* EMS Billing Services page (v2/services/ems-billing.blade.php).
   Figma: Meds Nexus Design, node 12563:125 (1440 wide). Everything is scoped to .ems-v2
   and uses ems-* classes, so no other page is affected.

   Animation: script-v2.js arms every [data-bh-reveal] section (.is-armed hides the
   pieces) and adds .is-in when it scrolls into view, which plays the entrances
   below. [data-bh-count] numbers count up at the same time. Without JS, or with
   prefers-reduced-motion, nothing is hidden and nothing moves. Entrances use
   `backwards` fill and the individual `translate` / `scale` properties, so hover
   transforms keep working after they finish. */

/* ============================================================= */
/* Base: tokens, container, section rhythm, shared keyframes     */
/* ============================================================= */
.ems-v2 {
  --ems-blue: #273775;
  --ems-orange: #fc5d61;
  --ems-text: #3d3d3d;
  --ems-white: #ffffff;
  --ems-muted: #5e6888;
  --ems-line: #e3e8f3;
  --ems-soft: #f5f7fc;
  --ems-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: "Poppins", sans-serif;
  color: var(--ems-text);
  overflow-x: clip;
}

.ems-v2 *,
.ems-v2 *::before,
.ems-v2 *::after {
  box-sizing: border-box;
}

/* Resets use :where() so they weigh like one class: they beat style-v2.css element rules
   but never override a section rule's own margin/padding (:is() would add a type selector). */
.ems-v2 :where(h1, h2, h3, h4, h5, p, ul, ol, figure) {
  margin: 0;
}

/* style-v2.css capitalizes every heading site-wide; this page keeps Figma's casing. */
.ems-v2 :where(h1, h2, h3, h4, h5, h6) {
  text-transform: none;
}

.ems-v2 :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.ems-v2 img {
  max-width: 100%;
}

/* Figma content column: 1240px inside the 1440 frame (100px gutters). */
.ems-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section rhythm: every section carries 60px top and bottom padding (no margins).
   This is the only place section spacing is set. */
.ems-v2 > section {
  margin: 0;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Phones: 30px top and bottom. */
@media (max-width: 767px) {
  .ems-v2 > section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Shared Core Strengths band: style-v2.css gives it a fixed 350px height with 40px
   padding; 390px keeps its 270px content box with the 60px padding. */
.ems-v2 > .strengths {
  height: 390px;
}

@media (max-width: 768px) {
  .ems-v2 > .strengths {
    height: auto;
  }
}

/* Shared section heading pieces (eyebrow chip, orange accent, in-text links). */
.ems-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(39, 55, 117, 0.1);
  color: var(--ems-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 10px;
  text-transform: capitalize;
}

.ems-accent {
  color: var(--ems-orange);
}

.ems-inline-link {
  color: var(--ems-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.ems-inline-link:hover,
.ems-inline-link:focus-visible {
  color: var(--ems-blue);
}

.ems-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes ems-rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}

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

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

@keyframes ems-pop {
  from { opacity: 0; scale: 0.85; }
  to   { opacity: 1; scale: 1; }
}

@keyframes ems-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ems-v2 *,
  .ems-v2 *::before,
  .ems-v2 *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================= */
/* Section: 01-hero                                               */
/* ============================================================= */
/* ============================================================= */
/* 01 HERO — Figma 12563:208 (1440x796, inside 12563:126)          */
/* Copy column 658 wide (vertically centred in a 539 row), art     */
/* 675x405 at x565 / y85.5, booking form card below (gap 48).      */
/* The copy and form animate on load (no JS needed, LCP stays      */
/* visible); the art plays when script-v2.js adds .is-in.          */
/* ============================================================= */
.ems-hero {
  position: relative;
  background: linear-gradient(
    to left,
    rgba(239, 242, 255, 0.6) 0%,
    #f9faff 48.866%,
    rgba(239, 242, 255, 0.3) 98.681%
  );
  /* Clip sideways only: the open Service dropdown hangs ~320px below the hero, so it must be
     allowed to overflow vertically, and the hero stacks above the Core Strengths band so the
     list isn't painted underneath it. Nothing else in the hero extends past its edges. */
  overflow-x: clip;
  overflow-y: visible;
  z-index: 2;
}

.ems-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 539px row: copy centred on the left, art absolutely placed on the right. */
.ems-hero__main {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 539px;
}

.ems-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 658px;
  max-width: 100%;
}

.ems-hero__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ems-hero__title {
  max-width: 669px;
  width: 669px;
  color: var(--ems-blue);
  font-size: 42px;
  font-weight: 700;
  line-height: 50.4px;
}

.ems-hero__lead {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
}

.ems-hero__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.ems-hero__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
}

.ems-hero__tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: scale 0.25s var(--ems-ease);
}

.ems-hero__item:hover .ems-hero__tick {
  scale: 1.15;
}

/* ---------- Certification badges (12639:38) ---------- */
/* "Let's Handle Your EMS Billing" CTA (content brief), styled like the page's orange buttons. */
.ems-hero__cta {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 8px 24px;
  overflow: hidden;
  border-radius: 75px;
  background: var(--ems-orange);
  color: var(--ems-white);
  font-size: 15px;
  font-weight: 600;
  line-height: 20.8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, translate 0.3s var(--ems-ease);
}

.ems-hero__cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.ems-hero__cta:hover,
.ems-hero__cta:focus-visible {
  color: var(--ems-white);
  background: #f04449;
  box-shadow: 0 10px 22px rgba(252, 93, 97, 0.35);
  text-decoration: none;
  translate: 0 -2px;
}

.ems-hero__cta:hover::before {
  left: 120%;
}

.ems-hero__cta-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--ems-white);
  transition: translate 0.3s var(--ems-ease);
}

.ems-hero__cta-icon img {
  display: block;
  width: 11px;
  height: 10px;
}

.ems-hero__cta:hover .ems-hero__cta-icon {
  translate: 4px 0;
}

.ems-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16.197px;
}

.ems-hero__badge {
  display: flex;
  align-items: center;
  padding: 9.074px;
  border-radius: 7.562px;
  background: #ffffff;
  box-shadow: 0 0 3.781px rgba(0, 0, 0, 0.1);
  transition: translate 0.25s var(--ems-ease), box-shadow 0.25s ease;
}

.ems-hero__badge:hover {
  translate: 0 -3px;
  box-shadow: 0 8px 18px rgba(39, 55, 117, 0.14);
}

/* 121.053 x 55.412 window; each logo is cropped exactly like the Figma fill. */
.ems-hero__badge-frame {
  position: relative;
  display: block;
  width: 121.053px;
  height: 55.412px;
  overflow: hidden;
}

.ems-hero__badge-frame img {
  position: absolute;
  max-width: none;
}

.ems-hero__badge-frame--iso img {
  left: -4.59%;
  top: -9.7%;
  width: 108.84%;
  height: 119.4%;
}

.ems-hero__badge-frame--hipaa img {
  left: -19.23%;
  top: -0.7%;
  width: 122.89%;
  height: 100%;
}

.ems-hero__badge-frame--aapc img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Art (12589:6645): 675 x 405 stage ---------- */
/* The stage is drawn in Figma px times --u, which shrinks with the column
   (container units), so the composition scales as one piece on small screens. */
.ems-hero__art {
  position: absolute;
  top: 85.5px;
  left: 565px;
  width: 675px;
  container-type: inline-size;
}

.ems-hero__stage {
  --u: min(1px, 100cqw / 675);
  position: relative;
  width: calc(675 * var(--u));
  height: calc(405 * var(--u));
}

/* Soft pink glow behind the ambulance + clipboard comes with the photo. */
.ems-hero__photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(439 * var(--u));
  height: calc(359 * var(--u));
  max-width: none;
  object-fit: cover;
}

/* Dashed connectors: each SVG is centred on its Figma box and rotated. */
.ems-hero__line {
  position: absolute;
  height: calc(6.44055 * var(--u));
  max-width: none;
  translate: -50% -50%;
}

.ems-hero__line--pcr {
  left: calc(396.4 * var(--u));
  top: calc(66.96 * var(--u));
  width: calc(78.9636 * var(--u));
  rotate: -45.54deg;
}

.ems-hero__line--level {
  left: calc(422.7 * var(--u));
  top: calc(156.04 * var(--u));
  width: calc(85.7038 * var(--u));
  rotate: -22.18deg;
}

.ems-hero__line--paid {
  left: calc(408.89 * var(--u));
  top: calc(244.47 * var(--u));
  width: calc(73.2079 * var(--u));
  rotate: 9.69deg;
}

.ems-hero__pill {
  position: absolute;
  height: calc(68 * var(--u));
}

.ems-hero__pill--pcr {
  left: calc(425 * var(--u));
  top: 0;
  width: calc(222 * var(--u));
}

.ems-hero__pill--level {
  left: calc(457 * var(--u));
  top: calc(103 * var(--u));
  width: calc(218 * var(--u));
}

.ems-hero__pill--paid {
  left: calc(445 * var(--u));
  top: calc(216 * var(--u));
  width: calc(202 * var(--u));
}

.ems-hero__pill-body {
  display: flex;
  align-items: center;
  gap: calc(14.49 * var(--u));
  width: 100%;
  height: 100%;
  padding-left: calc(8.45 * var(--u));
  border-radius: calc(96.608 * var(--u));
  background: #ffffff;
  box-shadow: 0 0 calc(7.246 * var(--u)) rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: box-shadow 0.25s ease, scale 0.25s var(--ems-ease);
}

.ems-hero__pill--level .ems-hero__pill-body {
  padding-left: calc(16.05 * var(--u));
}

.ems-hero__pill--paid .ems-hero__pill-body {
  padding-left: calc(12.45 * var(--u));
}

.ems-hero__pill-icon {
  flex-shrink: 0;
  width: calc(50.7193 * var(--u));
  height: calc(50.7193 * var(--u));
  max-width: none;
}

.ems-hero__pill-label {
  color: var(--ems-blue);
  font-size: calc(19.322 * var(--u));
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

.ems-hero__pill:hover .ems-hero__pill-body {
  scale: 1.04;
  box-shadow: 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(39, 55, 117, 0.18);
}

/* ---------- Booking form card (12563:400) ---------- */
.ems-hero__form-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ems-hero__form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 30px 40px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.ems-hero__fields {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  padding: 0 1px;
}

.ems-hero__field {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ems-hero__field label {
  margin: 0;
  color: var(--ems-text);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}

.ems-hero__field :is(input, select) {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #eff2ff;
  color: var(--ems-text);
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ems-hero__field input::placeholder {
  color: #9a9a9f;
  opacity: 1;
}

.ems-hero__field :is(input, select):focus-visible,
.ems-hero__field input:focus {
  border-color: var(--ems-blue);
  box-shadow: 0 0 0 3px rgba(39, 55, 117, 0.12);
}

.ems-hero__field select {
  padding-right: 34px;
  color: #9a9a9f;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* octicon chevron-up, flipped as in Figma, 11px from the right edge. */
.ems-hero__chevron {
  position: absolute;
  right: 11px;
  bottom: 12px;
  width: 16px;
  height: 16px;
  max-width: none;
  rotate: 180deg;
  pointer-events: none;
  transition: rotate 0.25s ease;
}

.ems-hero__field--select.is-open .ems-hero__chevron {
  rotate: 0deg;
}

/* [data-bh-select] enhancement: script-v2.js hides the native select and adds
   .bh-select-trigger + .bh-select-list after it. */
.ems-hero__field--select.is-enhanced .bh-select-native {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.ems-hero__field--select .bh-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #eff2ff;
  color: var(--ems-text);
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ems-hero__field--select .bh-select-trigger.is-placeholder {
  color: #9a9a9f;
}

.ems-hero__field--select .bh-select-trigger:focus-visible,
.ems-hero__field--select.is-open .bh-select-trigger {
  border-color: var(--ems-blue);
  box-shadow: 0 0 0 3px rgba(39, 55, 117, 0.12);
  outline: none;
}

.ems-hero__field--select .bh-select-trigger.is-invalid {
  border-color: var(--ems-orange);
}

.ems-hero__field--select .bh-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ems-hero__field--select .bh-select-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 100%;
  max-width: min(612px, calc(100vw - 32px));
  margin: 0;
  padding: 9.5px 21px;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  outline: none;
  visibility: hidden;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity 0.2s ease, translate 0.2s ease, visibility 0s 0.2s;
}

.ems-hero__field--select.is-open .bh-select-list {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.2s ease, translate 0.2s ease, visibility 0s;
}

.ems-hero__field--select .bh-select-option {
  margin: 0 -10px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ems-hero__field--select .bh-select-option.is-active {
  background: #eff2ff;
  color: var(--ems-blue);
}

.ems-hero__field--select .bh-select-option[aria-selected="true"] {
  color: var(--ems-blue);
  font-weight: 500;
}

/* Book Now: 150 x 40 pill (the Figma container clips the button to 60px radius). */
.ems-hero .ems-hero__submit {
  flex-shrink: 0;
  width: 150px;
  height: 40px;
  padding: 0 21px;
  border: 1px solid #ffffff;
  border-radius: 60px;
  background: var(--ems-orange);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 12px;
  cursor: pointer;
  transform: none;
  transition: translate 0.2s var(--ems-ease), background-color 0.2s ease, box-shadow 0.2s ease;
}

.ems-hero .ems-hero__submit:hover:not(:disabled) {
  transform: none;
  translate: 0 -2px;
  background: #e94f55;
  box-shadow: 0 8px 18px rgba(252, 93, 97, 0.32);
}

.ems-hero .ems-hero__submit:focus-visible {
  outline: 2px solid var(--ems-blue);
  outline-offset: 2px;
}

.ems-hero .ems-hero__response {
  margin: 0;
}

/* ---------- Motion ---------- */
/* Copy + form: on load, CSS only (the H1 is never hidden before JS). */
.ems-hero__eyebrow { animation: ems-rise 0.6s var(--ems-ease) 0.05s backwards; }
.ems-hero__title   { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-hero__lead    { animation: ems-rise 0.6s var(--ems-ease) 0.22s backwards; }
.ems-hero__item    { animation: ems-from-left 0.55s var(--ems-ease) calc(0.28s + var(--i) * 0.06s) backwards; }
.ems-hero__cta     { animation: ems-rise 0.6s var(--ems-ease) 0.6s backwards; }
.ems-hero__badge   { animation: ems-pop 0.5s var(--ems-ease) calc(0.72s + var(--i) * 0.08s) backwards; }
.ems-hero__form    { animation: ems-rise 0.7s var(--ems-ease) 0.45s backwards; }

/* Art: hidden only once script-v2.js has armed it. */
.ems-hero__art.is-armed:not(.is-in) :is(.ems-hero__photo, .ems-hero__line, .ems-hero__pill) {
  opacity: 0;
}

.ems-hero__art.is-in .ems-hero__photo {
  animation: ems-hero-photo-in 0.8s var(--ems-ease) 0.1s backwards;
}

.ems-hero__art.is-in .ems-hero__line {
  animation: ems-hero-draw 0.5s ease-out 0.7s backwards;
}

.ems-hero__art.is-in .ems-hero__line--level { animation-delay: 0.85s; }
.ems-hero__art.is-in .ems-hero__line--paid  { animation-delay: 1s; }

.ems-hero__art.is-in .ems-hero__pill {
  animation: ems-from-right 0.6s var(--ems-ease) calc(0.45s + var(--i) * 0.15s) backwards;
}

/* Gentle float on the pills and a soft pulse on their icons after the entrance. */
.ems-hero__art.is-in .ems-hero__pill-body {
  animation: ems-hero-float 4.5s ease-in-out calc(1.4s + var(--i) * 0.6s) infinite;
}

.ems-hero__art.is-in .ems-hero__pill-icon {
  animation: ems-hero-pulse 2.8s ease-in-out calc(1.6s + var(--i) * 0.5s) infinite;
}

@keyframes ems-hero-photo-in {
  from { opacity: 0; translate: -36px 18px; scale: 0.96; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

/* Connectors reveal from the clipboard end outward. */
@keyframes ems-hero-draw {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes ems-hero-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

@keyframes ems-hero-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(252, 93, 97, 0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(39, 55, 117, 0.35)); }
}

/* ---------- Responsive ---------- */
/* Art can't sit beside the 658px copy below 1240px content: stack it under. */
@media (max-width: 1279px) {
  .ems-hero__main {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    min-height: 0;
  }

  .ems-hero__title {
    width: auto;
  }

  .ems-hero__art {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 675px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .ems-hero__fields {
    flex-wrap: wrap;
  }

  .ems-hero__field {
    flex: 1 1 calc(50% - 10px);
  }

  .ems-hero__form {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
  }

  .ems-hero .ems-hero__submit {
    align-self: flex-start;
  }
}

@media (max-width: 767px) {

  .ems-hero .ems-container {
    padding: 0 16px;
  }

  .ems-hero__inner {
    gap: 32px;
  }

  .ems-hero__main {
    gap: 28px;
  }

  .ems-hero__title {
    font-size: 30px;
    line-height: 38px;
  }

  .ems-hero__item {
    align-items: flex-start;
    font-size: 15px;
    line-height: 24px;
  }

  .ems-hero__badges {
    gap: 10px;
  }

  .ems-hero__badge {
    padding: 6px;
  }

  .ems-hero__badge-frame {
    width: 88px;
    height: 40.28px;
  }

  .ems-hero__fields {
    flex-direction: column;
    gap: 14px;
  }

  .ems-hero__field {
    flex: none;
    width: 100%;
  }

  .ems-hero__form {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .ems-hero .ems-hero__submit {
    align-self: stretch;
    width: 100%;
    height: 44px;
  }
}

/* ============================================================= */
/* Section: 03-why                                               */
/* ============================================================= */
/* Figma 12563:496: copy column (609) + visual card (572 x 528), vertically centred. */
.ems-why__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ems-why__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 609px;
  max-width: 100%;
}

.ems-why__eyebrow {
  line-height: 9.976px;
}

.ems-why__title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.9px;
}

/* Figma separates the paragraphs with empty 28px lines. */
.ems-why__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.ems-why__visual {
  position: relative;
  flex: none;
  width: 572px;
  height: 528px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ems-white);
  transition: box-shadow 0.4s ease;
}

.ems-why__visual:hover {
  box-shadow: 0 18px 40px rgba(39, 55, 117, 0.14);
}

/* Blurred office photo with a white-to-clear wash from the top (Figma 12563:503). */
.ems-why__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ems-why__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  scale: 1.02;
  transition: scale 1.2s var(--ems-ease);
}

.ems-why__visual:hover .ems-why__photo img {
  scale: 1.07;
}

.ems-why__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 1.515%, rgba(255, 255, 255, 0) 94.066%);
}

/* "What Specialized EMS Billing Delivers" card (Figma 12563:504 / 12563:505). */
.ems-why__card {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4.401px;
  width: 326px;
  max-width: calc(100% - 40px);
  padding: 14.964px 13.204px 8.802px 16.725px;
  border: 0.88px solid #eff2ff;
  border-radius: 14px;
  background: var(--ems-white);
  box-shadow: 0 10px 30px rgba(39, 55, 117, 0.08);
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s ease;
}

.ems-why__visual:hover .ems-why__card {
  translate: 0 -4px;
  box-shadow: 0 16px 36px rgba(39, 55, 117, 0.16);
}

.ems-why__card-title {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--ems-blue);
  color: var(--ems-white);
  font-size: 14.084px;
  font-weight: 700;
  line-height: 14.084px;
  white-space: nowrap;
}

.ems-why__benefits {
  display: flex;
  flex-direction: column;
  gap: 8.802px;
  width: 100%;
}

.ems-why__benefit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12.323px;
  min-height: 29.341px;
  color: var(--ems-text);
  font-size: 12.323px;
  line-height: 12.323px;
  transition: color 0.25s ease, translate 0.25s var(--ems-ease);
}

.ems-why__benefit:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.88px;
  background: #e5e7eb;
}

.ems-why__benefit:hover {
  color: var(--ems-blue);
  translate: 3px 0;
}

.ems-why__check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 12.323px;
  height: 12.323px;
  border-radius: 6.162px;
  background: var(--ems-blue);
  color: var(--ems-white);
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 8.802px;
  font-weight: 700;
  line-height: 12.323px;
  transition: background-color 0.25s ease, scale 0.25s var(--ems-ease);
}

.ems-why__benefit:hover .ems-why__check {
  background: var(--ems-orange);
  scale: 1.2;
}

/* style-v2.css colours every <p> grey; keep Figma's #3d3d3d. */
.ems-why__body p {
  color: var(--ems-text);
}

/* Entrances: copy from the left, visual from the right, then the card and its rows. */
.ems-why.is-armed:not(.is-in) :is(
  .ems-why__eyebrow, .ems-why__title, .ems-why__body > p,
  .ems-why__visual, .ems-why__card, .ems-why__benefit, .ems-why__check
) {
  opacity: 0;
}

.ems-why.is-in :is(.ems-why__eyebrow, .ems-why__title, .ems-why__body > p) {
  animation: ems-from-left 0.8s var(--ems-ease) backwards;
}

.ems-why.is-in .ems-why__eyebrow               { animation-delay: 0.05s; }
.ems-why.is-in .ems-why__title                 { animation-delay: 0.15s; }
.ems-why.is-in .ems-why__body > p:nth-child(1) { animation-delay: 0.3s; }
.ems-why.is-in .ems-why__body > p:nth-child(2) { animation-delay: 0.42s; }
.ems-why.is-in .ems-why__body > p:nth-child(3) { animation-delay: 0.54s; }

.ems-why.is-in .ems-why__visual {
  animation: ems-from-right 0.9s var(--ems-ease) 0.2s backwards;
}

.ems-why.is-in .ems-why__photo img {
  animation: ems-why-focus 1.6s var(--ems-ease) 0.2s backwards;
}

.ems-why.is-in .ems-why__card {
  animation: ems-pop 0.6s var(--ems-ease) 0.6s backwards;
}

.ems-why.is-in .ems-why__benefit {
  animation: ems-rise 0.5s var(--ems-ease) backwards;
  animation-delay: calc(0.8s + var(--i, 0) * 0.08s);
}

.ems-why.is-in .ems-why__check {
  animation: ems-pop 0.4s var(--ems-ease) backwards;
  animation-delay: calc(0.95s + var(--i, 0) * 0.08s);
}

@keyframes ems-why-focus {
  from { scale: 1.15; filter: blur(10px); }
  to   { scale: 1.02; filter: blur(3px); }
}

@media (max-width: 1199px) {
  .ems-why__copy {
    flex: 1 1 0;
    width: auto;
  }

  .ems-why__visual {
    width: 46%;
    height: auto;
    aspect-ratio: 572 / 528;
  }
}

@media (max-width: 991px) {
  .ems-why__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .ems-why__visual {
    width: 100%;
    max-width: 572px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {

  .ems-why__inner {
    gap: 28px;
  }

  .ems-why__title {
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -0.5px;
  }

  .ems-why__body {
    gap: 20px;
    font-size: 15px;
    line-height: 26px;
  }

  .ems-why__visual {
    border-radius: 14px;
  }

  .ems-why__card {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
  }
}

@media (max-width: 374px) {
  .ems-why__card-title {
    white-space: normal;
  }
}

/* ============================================================= */
/* Section: 04-cta-bar                                           */
/* ============================================================= */
/* Figma 12563:538: 1240 x 156 bar, #eff2ff fill, 2px dashed gradient border, 10px radius. */

.ems-cta-bar__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 156px;
  padding: 22px 24px;
  border-radius: 10px;
  background: #eff2ff;
  box-shadow: 0 2px 15.1px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.35s ease, translate 0.35s var(--ems-ease);
}

.ems-cta-bar__box:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 30px rgba(39, 55, 117, 0.18);
}

.ems-cta-bar__border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ems-cta-bar__border rect {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  fill: none;
  stroke: url(#ems-cta-bar-stroke);
  stroke-width: 2;
  stroke-dasharray: 10 6;
}

.ems-cta-bar__box:hover .ems-cta-bar__border rect {
  animation: ems-cta-bar-march 1s linear infinite;
}

@keyframes ems-cta-bar-march {
  to { stroke-dashoffset: -32; }
}

.ems-cta-bar__main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 802px;
  max-width: 100%;
}

.ems-cta-bar__badge {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  padding: 15px;
  border-radius: 180px;
  background: var(--ems-white);
  box-shadow: 0 0 10.9px rgba(0, 0, 0, 0.11);
}

/* Soft pulse ring behind the shield. */
.ems-cta-bar__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(39, 55, 117, 0.25);
  animation: ems-cta-bar-pulse 2.4s ease-out infinite;
}

@keyframes ems-cta-bar-pulse {
  0%   { opacity: 0.9; scale: 1; }
  100% { opacity: 0; scale: 1.45; }
}

.ems-cta-bar__badge img {
  display: block;
  width: 42px;
  height: 43px;
  transition: scale 0.35s var(--ems-ease), rotate 0.35s var(--ems-ease);
}

.ems-cta-bar__box:hover .ems-cta-bar__badge img {
  scale: 1.08;
  rotate: -6deg;
}

.ems-cta-bar__divider {
  flex: none;
  width: 1px;
  height: 74px;
  background: #9a9a9f;
}

.ems-cta-bar__copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ems-cta-bar__title {
  color: var(--ems-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.ems-cta-bar__text {
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

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

/* Light sweep across the button on hover. */
.ems-cta-bar__btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.ems-cta-bar__btn:hover,
.ems-cta-bar__btn:focus-visible {
  color: var(--ems-white);
  background: #f04449;
  box-shadow: 0 10px 22px rgba(252, 93, 97, 0.35);
  translate: 0 -2px;
}

.ems-cta-bar__btn:hover::before {
  left: 120%;
}

.ems-cta-bar__btn-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--ems-white);
  transition: translate 0.3s var(--ems-ease);
}

.ems-cta-bar__btn-icon img {
  display: block;
  width: 11px;
  height: 10px;
}

.ems-cta-bar__btn:hover .ems-cta-bar__btn-icon {
  translate: 4px 0;
}

/* Entrances: bar rises, badge pops, divider grows, copy and button follow. */
.ems-cta-bar.is-armed:not(.is-in) :is(
  .ems-cta-bar__box, .ems-cta-bar__badge, .ems-cta-bar__divider,
  .ems-cta-bar__title, .ems-cta-bar__text, .ems-cta-bar__btn
) {
  opacity: 0;
}

.ems-cta-bar.is-in .ems-cta-bar__box     { animation: ems-rise 0.7s var(--ems-ease) backwards; }
.ems-cta-bar.is-in .ems-cta-bar__badge   { animation: ems-pop 0.5s var(--ems-ease) 0.3s backwards; }
.ems-cta-bar.is-in .ems-cta-bar__divider { animation: ems-cta-bar-grow 0.5s var(--ems-ease) 0.4s backwards; }
.ems-cta-bar.is-in .ems-cta-bar__title   { animation: ems-from-left 0.6s var(--ems-ease) 0.45s backwards; }
.ems-cta-bar.is-in .ems-cta-bar__text    { animation: ems-from-left 0.6s var(--ems-ease) 0.55s backwards; }
.ems-cta-bar.is-in .ems-cta-bar__btn     { animation: ems-from-right 0.6s var(--ems-ease) 0.6s backwards; }

@keyframes ems-cta-bar-grow {
  from { opacity: 0; scale: 1 0; }
  to   { opacity: 1; scale: 1 1; }
}

@media (max-width: 1199px) {
  .ems-cta-bar__main {
    width: auto;
    flex: 1 1 0;
  }

  .ems-cta-bar__title {
    font-size: 22px;
    line-height: 28px;
  }

  .ems-cta-bar__btn {
    width: 230px;
  }
}

@media (max-width: 991px) {
  .ems-cta-bar__box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .ems-cta-bar__main {
    width: 100%;
  }
}

@media (max-width: 767px) {

  .ems-cta-bar__box {
    align-items: stretch;
    padding: 22px 18px;
  }

  .ems-cta-bar__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ems-cta-bar__divider {
    width: 74px;
    height: 1px;
  }

  .ems-cta-bar__title {
    font-size: 20px;
    line-height: 26px;
  }

  .ems-cta-bar__btn {
    width: 100%;
  }
}

/* ============================================================= */
/* Section: 05-process                                            */
/* ============================================================= */
/* ============================================================= */
/* 05 PROCESS — "Emergency Medical Billing Backed by a Proven     */
/* Process" (Figma 12576:6346): header, 6 numbered steps in a     */
/* 2-column ruled grid, "What We Review Before Billing" panel.    */
/* ============================================================= */
.ems-process {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

/* 1440 frame wrapper: decoration is positioned against it, like Figma. */
.ems-process__frame {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.ems-process .ems-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---------- Decoration ---------- */
.ems-process__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ems-process__ring,
.ems-process__dot,
.ems-process__glow,
.ems-process__tile {
  position: absolute;
  display: block;
}

.ems-process__ring--solid {
  left: -180px;
  top: -235px;
  width: 560px;
  height: 560px;
  border: 1px solid #dce3f2;
  border-radius: 50%;
}

.ems-process__ring--dashed {
  left: -120px;
  top: -175px;
  width: 440px;
  height: 440px;
  border: 1px dashed #e1e7f4;
  border-radius: 50%;
  animation: ems-process-spin 80s linear infinite;
}

.ems-process__dot {
  border-radius: 50%;
}

.ems-process__dot--orange {
  left: 88px;
  top: 47px;
  width: 12px;
  height: 12px;
  background: #fc5d61;
  animation: ems-process-float 6s ease-in-out infinite;
}

.ems-process__dot--faint {
  left: 236px;
  top: 197px;
  width: 8px;
  height: 8px;
  background: #273775;
  opacity: 0.55;
  animation: ems-process-float 7s ease-in-out 1s infinite;
}

.ems-process__dot--blue {
  left: 30px;
  top: 253px;
  width: 16px;
  height: 16px;
  background: #273775;
  animation: ems-process-float 8s ease-in-out 0.5s infinite;
}

.ems-process__glow {
  right: -140px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 233, 248, 1) 0%, rgba(227, 233, 248, 0) 70%);
  opacity: 0.2;
}

.ems-process__tile {
  right: 120px;
  top: 70px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(39, 55, 117, 0.1);
  rotate: -8deg;
  animation: ems-process-float 6.5s ease-in-out infinite;
}

.ems-process__tile img {
  display: block;
  width: 30.0012px;
  height: 30.0012px;
}

@keyframes ems-process-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

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

/* ---------- Header ---------- */
.ems-process__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ems-process__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid #e1e7f4;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(39, 55, 117, 0.06);
  color: #273775;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.ems-process__chip img {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.ems-process__title {
  padding-top: 21px;
  color: #273775;
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
  letter-spacing: -0.8px;
}

.ems-process__bars {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.ems-process__bars span {
  display: block;
  height: 4px;
  border-radius: 4px;
}

.ems-process__bars span:first-child {
  width: 44px;
  background: #fc5d61;
}

.ems-process__bars span:last-child {
  width: 12px;
  background: #273775;
}

.ems-process__intro {
  max-width: 900px;
  padding: 18.75px 3.27px 0 3.25px;
  color: #3d3d3d;
  font-size: 17px;
  line-height: 29.75px;
}

/* ---------- Steps (2-column ruled grid) ---------- */
.ems-process__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ems-process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  transition: background-color 0.3s ease;
}

/* Bottom rule (rows 1-2) and centre rule, drawn as pseudo-elements so they can
   draw in on reveal. Colour/weight from Figma (#c4c6c9, 1px). */
.ems-process__step::after,
.ems-process__step::before {
  content: "";
  position: absolute;
  background: #c4c6c9;
  pointer-events: none;
}

.ems-process__step::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform-origin: left center;
}

.ems-process__step:nth-last-child(-n + 2)::after {
  display: none;
}

.ems-process__step::before {
  display: none;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  transform-origin: center top;
}

.ems-process__step:nth-child(odd)::before {
  display: block;
}

.ems-process__step-title {
  color: #273775;
  font-size: 24px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -0.3px;
}

.ems-process__num {
  display: inline-block;
  color: #fc5d61;
  transition: scale 0.3s var(--ems-ease);
}

.ems-process__step-text {
  color: #3d3d3d;
  font-size: 16px;
  line-height: 28px;
}

.ems-process__step:hover {
  background-color: #f7f9fd;
}

.ems-process__step:hover .ems-process__num {
  scale: 1.18;
}

/* ---------- Bottom panel ---------- */
.ems-process__panel {
  position: relative;
  padding: 18.5px 25px 22.5px;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #273775 0%, #fc5d61 100%) border-box;
  box-shadow: 0 3px 13px rgba(39, 55, 117, 0.07);
  transition: box-shadow 0.35s ease, translate 0.35s var(--ems-ease);
}

.ems-process__panel:hover {
  translate: 0 -4px;
  box-shadow: 0 18px 40px rgba(39, 55, 117, 0.12);
}

.ems-process__panel-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 29px;
  color: #273775;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}

.ems-process__panel-title img {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
}

.ems-process__panel-title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 37.41px;
  width: 46px;
  height: 3px;
  margin-left: -23px;
  border-radius: 2px;
  background: #fc5d61;
  transform-origin: center;
}

.ems-process__checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 36px;
  column-gap: 26px;
  row-gap: 20px;
}

/* Dividers (#e5e7eb, Figma 12576:6417-6422):
   - ::after  a 181px horizontal rule centred in the column, 9.91px under the item
     (Figma top 45.91 in the 36px-row grid), under every item of rows 1 and 2 (items 1-8);
   - ::before a 146px vertical rule in the column gap, from the first-row items (cols 1-3).
     Figma places them at x 285 / 583 / 880 of the 1186px grid, i.e. 8px / 3px / -3px
     past each column's right edge. */
.ems-process__check:nth-child(-n + 8) {
  position: relative;
}

.ems-process__check:nth-child(-n + 8)::after,
.ems-process__check:nth-child(-n + 3)::before {
  content: "";
  position: absolute;
  background: #e5e7eb;
  pointer-events: none;
}

.ems-process__check:nth-child(-n + 8)::after {
  left: 50%;
  top: 45.91px;
  width: 181px;
  height: 1px;
  margin-left: -90.5px;
  transform-origin: center;
}

.ems-process__check:nth-child(-n + 3)::before {
  top: -0.25px;
  height: 146px;
  width: 1px;
  transform-origin: top;
}

.ems-process__check:nth-child(1)::before { right: -8px; }
.ems-process__check:nth-child(2)::before { right: -3px; }
.ems-process__check:nth-child(3)::before { right: 3px; }

.ems-process__check {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #273775;
  font-size: 14px;
  line-height: 20px;
}

.ems-process__check img {
  display: block;
  flex: none;
  transition: scale 0.3s var(--ems-ease);
}

.ems-process__check span {
  min-width: 0;
}

.ems-process__check:nth-child(4) span {
  white-space: nowrap;
}

.ems-process__check:hover img {
  scale: 1.2;
}

/* ---------- Reveal (script-v2.js: .is-armed / .is-in) ---------- */
.ems-process.is-armed:not(.is-in) :is(
  .ems-process__head > *,
  .ems-process__step,
  .ems-process__panel,
  .ems-process__check,
  .ems-process__tile,
  .ems-process__ring,
  .ems-process__dot
) {
  opacity: 0;
}

.ems-process.is-in .ems-process__ring { animation: ems-fade 1.2s ease 0s backwards; }
.ems-process.is-in .ems-process__ring--dashed { animation: ems-fade 1.2s ease 0.15s backwards, ems-process-spin 80s linear 1.35s infinite; }
.ems-process.is-in .ems-process__dot--orange { animation: ems-pop 0.6s var(--ems-ease) 0.3s backwards, ems-process-float 6s ease-in-out 0.9s infinite; }
.ems-process.is-in .ems-process__dot--faint { animation: ems-pop 0.6s var(--ems-ease) 0.4s backwards, ems-process-float 7s ease-in-out 1s infinite; }
.ems-process.is-in .ems-process__dot--blue { animation: ems-pop 0.6s var(--ems-ease) 0.5s backwards, ems-process-float 8s ease-in-out 1.1s infinite; }
.ems-process.is-in .ems-process__tile { animation: ems-pop 0.7s var(--ems-ease) 0.45s backwards, ems-process-float 6.5s ease-in-out 1.15s infinite; }

.ems-process.is-in .ems-process__head > * { animation: ems-rise 0.7s var(--ems-ease) backwards; }
.ems-process.is-in .ems-process__chip { animation-delay: 0.05s; }
.ems-process.is-in .ems-process__title { animation-delay: 0.15s; }
.ems-process.is-in .ems-process__bars { animation: ems-pop 0.6s var(--ems-ease) 0.3s backwards; }
.ems-process.is-in .ems-process__intro { animation-delay: 0.35s; }

.ems-process.is-in .ems-process__step {
  animation: ems-rise 0.7s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.1s) backwards;
}

.ems-process.is-in .ems-process__step::after {
  animation: ems-process-draw-x 0.9s var(--ems-ease) calc(0.7s + var(--i, 0) * 0.1s) backwards;
}

.ems-process.is-in .ems-process__step::before {
  animation: ems-process-draw-y 0.9s var(--ems-ease) calc(0.6s + var(--i, 0) * 0.15s) backwards;
}

.ems-process.is-in .ems-process__num {
  animation: ems-pop 0.5s var(--ems-ease) calc(0.65s + var(--i, 0) * 0.1s) backwards;
}

.ems-process.is-in .ems-process__panel { animation: ems-rise 0.8s var(--ems-ease) 1s backwards; }
.ems-process.is-in .ems-process__panel-title::after { animation: ems-process-draw-x 0.6s var(--ems-ease) 1.4s backwards; }
.ems-process.is-in .ems-process__checks { animation: ems-fade 0.8s ease 1.3s backwards; }
.ems-process.is-in .ems-process__check {
  animation: ems-rise 0.55s var(--ems-ease) calc(1.25s + var(--i, 0) * 0.05s) backwards;
}

/* Dividers draw in once their items have landed. */
.ems-process.is-in .ems-process__check:nth-child(-n + 8)::after {
  animation: ems-process-draw-x 0.7s var(--ems-ease) calc(1.6s + var(--i, 0) * 0.1s) backwards;
}

.ems-process.is-in .ems-process__check:nth-child(-n + 3)::before {
  animation: ems-process-draw-y 0.8s var(--ems-ease) calc(1.5s + var(--i, 0) * 0.1s) backwards;
}

@keyframes ems-process-draw-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes ems-process-draw-y {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-process__tile {
    right: 40px;
  }

  .ems-process__checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    row-gap: 14px;
  }

  /* The divider layout only fits Figma's 4-column grid. */
  .ems-process__check:nth-child(-n + 8)::after,
  .ems-process__check:nth-child(-n + 3)::before {
    display: none;
  }

  .ems-process__check {
    min-height: 36px;
  }

  .ems-process__check:nth-child(4) span {
    white-space: normal;
  }
}

@media (max-width: 991px) {
  .ems-process .ems-container {
    gap: 44px;
  }

  .ems-process__tile {
    display: none;
  }

  .ems-process__title {
    font-size: 28px;
    line-height: 38px;
  }

  .ems-process__step-title {
    font-size: 21px;
    line-height: 26px;
  }
}

@media (max-width: 767px) {

  .ems-process .ems-container {
    gap: 32px;
    padding: 0 16px;
  }

  .ems-process__ring--solid,
  .ems-process__ring--dashed {
    scale: 0.6;
    transform-origin: 0 0;
  }

  .ems-process__glow {
    display: none;
  }

  .ems-process__chip {
    padding: 8px 14px;
    font-size: 13px;
  }

  .ems-process__title {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }

  .ems-process__intro {
    padding: 16px 0 0;
    font-size: 15px;
    line-height: 26px;
  }

  .ems-process__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-process__step {
    gap: 12px;
    padding: 20px 4px;
  }

  .ems-process__step::before {
    display: none !important;
  }

  .ems-process__step:nth-last-child(2)::after {
    display: block;
  }

  .ems-process__step-title {
    font-size: 19px;
    line-height: 25px;
  }

  .ems-process__step-text {
    font-size: 15px;
    line-height: 26px;
  }

  .ems-process__panel {
    padding: 18px 16px 20px;
  }

  .ems-process__panel-title {
    margin-bottom: 26px;
    font-size: 20px;
    gap: 10px;
  }

  .ems-process__panel-title img {
    width: 30px;
    height: 30px;
  }

  .ems-process__checks {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
}

/* ============================================================= */
/* Section: 06-coding                                             */
/* ============================================================= */
/* ============================================================= */
/* 06 EMS CODING — "Accurate EMS Coding Services for Proper       */
/* Reimbursement" (Figma 12563:752): header, two floating UI      */
/* cards, 12 numbered HCPCS code rows in a 2-column grid.         */
/* ============================================================= */
.ems-coding {
  position: relative;
  background: #ffffff;
}

/* Figma "Section" 12563:753: 1440 wide, 60px vertical padding, clips its decoration. */
.ems-coding__frame {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

.ems-coding .ems-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ---------- Decoration ---------- */
.ems-coding__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ems-coding__ring,
.ems-coding__dot,
.ems-coding__dots {
  position: absolute;
  display: block;
}

.ems-coding__ring--solid {
  left: -150px;
  top: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid #e1e7f4;
  border-radius: 50%;
}

.ems-coding__ring--dashed {
  left: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border: 1px dashed #e1e7f4;
  border-radius: 50%;
  animation: ems-coding-spin 70s linear infinite;
}

.ems-coding__dot {
  border-radius: 50%;
}

.ems-coding__dot--orange {
  left: 112px;
  top: 58px;
  width: 16px;
  height: 16px;
  background: #fc5d61;
  animation: ems-coding-float 6s ease-in-out infinite;
}

.ems-coding__dot--blue {
  left: 150px;
  top: 110px;
  width: 8px;
  height: 8px;
  background: #273775;
  opacity: 0.55;
  animation: ems-coding-float 7s ease-in-out 0.8s infinite;
}

/* 12563:759: dot-grid patch (#c9d2ea) bottom-left, behind the grid. */
.ems-coding__dots {
  left: 100px;
  bottom: 40px;
  width: 120px;
  height: 48px;
  background: radial-gradient(circle, #c9d2ea 1.7px, rgba(201, 210, 234, 0) 1.7px) 0 0 / 12px 12px;
}

@keyframes ems-coding-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

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

/* ---------- Floating cards ---------- */
.ems-coding__float {
  position: absolute;
  z-index: 2;
  width: 196px;
  padding: 14px 16px;
  border-radius: 16px;
  transition: translate 0.4s var(--ems-ease), box-shadow 0.4s ease;
}

.ems-coding__float--review {
  left: 100px;
  top: 135px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e6ebf5;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(39, 55, 117, 0.12);
  rotate: -4deg;
  animation: ems-coding-float 7s ease-in-out infinite;
}

.ems-coding__float--capture {
  right: 100px;
  top: 143px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #273775;
  box-shadow: 0 18px 40px rgba(39, 55, 117, 0.28);
  rotate: 4deg;
  animation: ems-coding-float 7.5s ease-in-out 1s infinite;
}

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

.ems-coding__review-title {
  color: #273775;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}

.ems-coding__review-pill {
  padding: 2px 8px 3px;
  border-radius: 999px;
  background: #ffe9ea;
  color: #fc5d61;
  font-size: 9px;
  font-weight: 600;
  line-height: normal;
}

.ems-coding__review-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ems-coding__review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d3d3d;
  font-size: 10px;
  line-height: normal;
}

.ems-coding__code {
  flex: none;
  padding: 2px 7px 3px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: normal;
}

.ems-coding__code--blue { background: #273775; color: #ffffff; }
.ems-coding__code--orange { background: #fc5d61; color: #ffffff; }
.ems-coding__code--soft { background: #eef2fb; color: #273775; }

.ems-coding__capture-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ems-coding__capture-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fc5d61;
}

.ems-coding__capture-icon img {
  display: block;
  width: 18.0041px;
  height: 18.0041px;
}

.ems-coding__capture-copy {
  display: flex;
  flex-direction: column;
}

.ems-coding__capture-label {
  color: #d7def1;
  font-size: 11px;
  line-height: normal;
}

.ems-coding__capture-value {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 20.7px;
}

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

.ems-coding__capture-bars span {
  flex: 1 1 0;
  height: var(--h);
  border-radius: 3px;
  background: #4e62ae;
  transform-origin: bottom center;
}

.ems-coding__capture-bars span:last-child {
  background: #fc5d61;
}

/* ---------- Header ---------- */
.ems-coding__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ems-coding__eyebrow {
  border-radius: 9.069px;
  line-height: 9.976px;
}

.ems-coding__title {
  max-width: 700px;
  color: #273775;
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
  letter-spacing: -1px;
}

.ems-coding__bars {
  display: flex;
  gap: 6px;
}

.ems-coding__bars span {
  display: block;
  height: 4px;
  border-radius: 4px;
}

.ems-coding__bars span:first-child {
  width: 56px;
  background: #fc5d61;
}

.ems-coding__bars span:last-child {
  width: 14px;
  background: #273775;
}

.ems-coding__intro {
  max-width: 744px;
  color: #3d3d3d;
  font-size: 16px;
  line-height: 28px;
}

/* ---------- Code grid ---------- */
.ems-coding__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 16px;
}

.ems-coding__item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80.39px;
  padding: 16px 22px 16px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #eff2ff;
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ems-coding__item--rose {
  border-color: #fddcdd;
  background: #fff4f4;
}

.ems-coding__item:hover {
  translate: 0 -4px;
  border-color: #c9d2ea;
  box-shadow: 0 16px 32px rgba(39, 55, 117, 0.1);
}

.ems-coding__item--rose:hover {
  border-color: #f9b9bb;
}

.ems-coding__badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #273775;
  box-shadow: 0 8px 18px rgba(39, 55, 117, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  transition: rotate 0.35s var(--ems-ease), scale 0.35s var(--ems-ease);
}

.ems-coding__badge--orange {
  background: #fc5d61;
}

.ems-coding__item:hover .ems-coding__badge {
  rotate: -6deg;
  scale: 1.06;
}

.ems-coding__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ems-coding__item-title {
  color: #273775;
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
}

.ems-coding__item-text {
  color: #3d3d3d;
  font-size: 14px;
  line-height: 21px;
}

.ems-coding__check {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: scale 0.3s var(--ems-ease), box-shadow 0.3s ease;
}

.ems-coding__item:hover .ems-coding__check {
  scale: 1.15;
  box-shadow: 0 4px 10px rgba(39, 55, 117, 0.15);
}

/* ---------- Reveal (script-v2.js: .is-armed / .is-in) ---------- */
.ems-coding.is-armed:not(.is-in) :is(
  .ems-coding__head > *,
  .ems-coding__item,
  .ems-coding__badge,
  .ems-coding__check,
  .ems-coding__float,
  .ems-coding__ring,
  .ems-coding__dot,
  .ems-coding__dots
) {
  opacity: 0;
}

.ems-coding.is-in .ems-coding__ring { animation: ems-fade 1.2s ease backwards; }
.ems-coding.is-in .ems-coding__ring--dashed { animation: ems-fade 1.2s ease 0.15s backwards, ems-coding-spin 70s linear 1.35s infinite; }
.ems-coding.is-in .ems-coding__dot--orange { animation: ems-pop 0.6s var(--ems-ease) 0.3s backwards, ems-coding-float 6s ease-in-out 0.9s infinite; }
.ems-coding.is-in .ems-coding__dot--blue { animation: ems-pop 0.6s var(--ems-ease) 0.4s backwards, ems-coding-float 7s ease-in-out 1s infinite; }
.ems-coding.is-in .ems-coding__dots { animation: ems-fade 1s ease 0.8s backwards; }

.ems-coding.is-in .ems-coding__float--review { animation: ems-from-left 0.8s var(--ems-ease) 0.35s backwards, ems-coding-float 7s ease-in-out 1.15s infinite; }
.ems-coding.is-in .ems-coding__float--capture { animation: ems-from-right 0.8s var(--ems-ease) 0.45s backwards, ems-coding-float 7.5s ease-in-out 1.25s infinite; }
.ems-coding.is-in .ems-coding__capture-bars span {
  animation: ems-coding-grow 0.7s var(--ems-ease) calc(0.9s + var(--i, 0) * 0.08s) backwards;
}

@keyframes ems-coding-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.ems-coding.is-in .ems-coding__head > * { animation: ems-rise 0.7s var(--ems-ease) backwards; }
.ems-coding.is-in .ems-coding__eyebrow { animation-delay: 0.05s; }
.ems-coding.is-in .ems-coding__title { animation-delay: 0.15s; }
.ems-coding.is-in .ems-coding__bars { animation: ems-pop 0.6s var(--ems-ease) 0.3s backwards; }
.ems-coding.is-in .ems-coding__intro { animation-delay: 0.35s; }

.ems-coding.is-in .ems-coding__item:nth-child(odd) {
  animation: ems-from-left 0.7s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.06s) backwards;
}

.ems-coding.is-in .ems-coding__item:nth-child(even) {
  animation: ems-from-right 0.7s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.06s) backwards;
}

.ems-coding.is-in .ems-coding__badge {
  animation: ems-pop 0.5s var(--ems-ease) calc(0.7s + var(--i, 0) * 0.06s) backwards;
}

.ems-coding.is-in .ems-coding__check {
  animation: ems-pop 0.45s var(--ems-ease) calc(0.9s + var(--i, 0) * 0.06s) backwards;
}

/* ---------- Responsive ---------- */
/* The floating cards sit beside the 744px intro at 1440; below that they would
   collide with the copy, so they tuck in and then hide. */
@media (max-width: 1365px) {
  .ems-coding__float--review { left: 24px; }
  .ems-coding__float--capture { right: 24px; }
}

@media (max-width: 1199px) {
  .ems-coding__float {
    display: none;
  }

  .ems-coding__grid {
    column-gap: 20px;
  }
}

@media (max-width: 991px) {
  .ems-coding__title {
    font-size: 28px;
    line-height: 38px;
  }

  .ems-coding__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  /* Single column: keep the blue / rose rhythm alternating row by row. */
  .ems-coding__item:nth-child(odd) {
    border-color: #e5e7eb;
    background: #eff2ff;
  }

  .ems-coding__item:nth-child(even) {
    border-color: #fddcdd;
    background: #fff4f4;
  }
}

@media (max-width: 767px) {

  .ems-coding__frame {
    padding: 40px 0;
  }

  .ems-coding .ems-container {
    gap: 32px;
    padding: 0 16px;
  }

  .ems-coding__ring--solid,
  .ems-coding__ring--dashed {
    scale: 0.6;
    transform-origin: 0 0;
  }

  .ems-coding__dots {
    display: none;
  }

  .ems-coding__title {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }

  .ems-coding__intro {
    font-size: 15px;
    line-height: 26px;
  }

  .ems-coding__item {
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border-radius: 16px;
  }

  .ems-coding__badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 12px;
  }

  .ems-coding__item-title {
    font-size: 15px;
    line-height: 21px;
  }

  .ems-coding__item-text {
    font-size: 13px;
    line-height: 19px;
  }
}

/* ============================================================= */
/* Section: 07-denials                                            */
/* ============================================================= */
/* ============================================================= */
/* 07 · EMS Denial & A/R Management — Figma 12563:940            */
/* 1440x765.5 band, #eff2ff, 40px padding; copy 600 wide at x100; */
/* dashboard visual clipped to x733..1440, 766 square box with a  */
/* left-to-right #eff2ff fade.                                    */
/* ============================================================= */

.ems-denials {
  position: relative;
  overflow: hidden;
  background: #eff2ff;
}

.ems-denials__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15.1px;
  width: 600px;
  max-width: 100%;
}

.ems-denials__eyebrow {
  height: 26px;
}

.ems-denials__title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -1.6px;
}

.ems-denials__bar {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 3px;
  background: var(--ems-orange);
  transform-origin: left center;
}

.ems-denials__lead,
.ems-denials__block p {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.ems-denials__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ems-denials__block-title {
  color: var(--ems-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  transition: color 0.25s ease, translate 0.3s var(--ems-ease);
}

.ems-denials__block:hover .ems-denials__block-title {
  color: var(--ems-orange);
  translate: 4px 0;
}

.ems-denials__stat {
  font-variant-numeric: tabular-nums;
}

/* Visual: the 707-wide clip window starts 13px right of centre (x733 at 1440). */
.ems-denials__visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 13px);
  right: 0;
  overflow: hidden;
}

/* The 766-wide image box overflows the window by 59px on the right, as in Figma. */
.ems-denials__visual-box {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: -59px;
  overflow: hidden;
}

.ems-denials__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 100% 50%;
  transition: scale 1.2s var(--ems-ease);
}

.ems-denials__visual-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eff2ff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.ems-denials:hover .ems-denials__img {
  scale: 1.03;
}

/* ---------- Entrance ---------- */
@keyframes ems-denials-bar {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes ems-denials-zoom {
  from { opacity: 0; scale: 1.08; }
  to   { opacity: 1; scale: 1; }
}

.ems-denials.is-armed:not(.is-in) :is(
  .ems-denials__eyebrow,
  .ems-denials__title,
  .ems-denials__bar,
  .ems-denials__lead,
  .ems-denials__block,
  .ems-denials__img
) {
  opacity: 0;
}

.ems-denials.is-in .ems-denials__eyebrow { animation: ems-from-left 0.6s var(--ems-ease) 0.05s backwards; }
.ems-denials.is-in .ems-denials__title   { animation: ems-rise 0.7s var(--ems-ease) 0.15s backwards; }
.ems-denials.is-in .ems-denials__bar     { animation: ems-denials-bar 0.6s var(--ems-ease) 0.4s backwards; }
.ems-denials.is-in .ems-denials__lead    { animation: ems-rise 0.7s var(--ems-ease) 0.3s backwards; }
.ems-denials.is-in .ems-denials__block:nth-of-type(1) { animation: ems-rise 0.7s var(--ems-ease) 0.45s backwards; }
.ems-denials.is-in .ems-denials__block:nth-of-type(2) { animation: ems-rise 0.7s var(--ems-ease) 0.6s backwards; }
.ems-denials.is-in .ems-denials__img     { animation: ems-denials-zoom 1.2s var(--ems-ease) 0.1s backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-denials__copy {
    width: calc(50% - 10px);
  }

  .ems-denials__visual {
    left: 50%;
  }
}

@media (max-width: 991px) {
  .ems-denials {
    display: flex;
    flex-direction: column;
  }

  .ems-denials__copy {
    width: 100%;
  }

  .ems-denials__visual {
    position: relative;
    order: 2;
    left: auto;
    right: auto;
    width: 100%;
    height: 440px;
    margin-top: 32px;
  }

  .ems-denials__visual-box {
    right: 0;
  }

  .ems-denials__img {
    object-position: 75% 40%;
  }

  .ems-denials__visual-box::after {
    background: linear-gradient(180deg, #eff2ff 0%, rgba(239, 242, 255, 0) 35%);
  }
}

@media (max-width: 767px) {

  .ems-denials .ems-container {
    padding: 0 16px;
  }

  .ems-denials__title {
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -1px;
  }

  .ems-denials__lead,
  .ems-denials__block p {
    font-size: 15px;
  }

  .ems-denials__visual {
    height: 300px;
    margin-top: 24px;
  }
}

/* ============================================================= */
/* Section: 08-serve                                              */
/* ============================================================= */
/* ============================================================= */
/* 08 · Who We Serve — Figma 12563:981                            */
/* 1440x422, white, 60px padding, heading group (gap 10) then a   */
/* row of five 232x140 cards (gap 20), section gap 20.            */
/* ============================================================= */

.ems-serve {
  position: relative;
  background: #ffffff;
}

.ems-serve__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 878px;
  margin: 0 auto 20px;
  text-align: center;
}

.ems-serve__title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
}

.ems-serve__intro {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

.ems-serve__grid {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.ems-serve__card {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 140px;
  padding: 18px 20px 16px;
  border: 1px solid #cccccc;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 15px rgba(39, 55, 117, 0.07);
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease), border-color 0.35s ease;
}

.ems-serve__card:hover {
  translate: 0 -6px;
  border-color: rgba(39, 55, 117, 0.35);
  box-shadow: 0 20px 30px rgba(39, 55, 117, 0.14);
}

.ems-serve__icon {
  position: relative;
  display: block;
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  transition: scale 0.35s var(--ems-ease), rotate 0.35s var(--ems-ease);
}

.ems-serve__icon img {
  display: block;
  width: 46px;
  height: 46px;
  max-width: none;
}

/* Glyphs that sit inside their 46px icon frame at Figma's offsets. */
.ems-serve__icon .ems-serve__glyph {
  position: absolute;
}

.ems-serve__icon .ems-serve__glyph--extinguisher {
  top: 2.583px;
  left: 6.417px;
  width: 33.1667px;
  height: 40.8333px;
}

.ems-serve__icon .ems-serve__glyph--cross {
  top: 6.279px;
  left: 7px;
  width: 33px;
  height: 33px;
}

.ems-serve__card:hover .ems-serve__icon {
  scale: 1.12;
  rotate: -6deg;
}

.ems-serve__name {
  color: var(--ems-blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
}

/* ---------- Entrance ---------- */
.ems-serve.is-armed:not(.is-in) :is(
  .ems-serve__head > *,
  .ems-serve__card,
  .ems-serve__icon
) {
  opacity: 0;
}

.ems-serve.is-in .ems-serve__head > :nth-child(1) { animation: ems-pop 0.5s var(--ems-ease) 0.05s backwards; }
.ems-serve.is-in .ems-serve__head > :nth-child(2) { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-serve.is-in .ems-serve__head > :nth-child(3) { animation: ems-rise 0.7s var(--ems-ease) 0.22s backwards; }

.ems-serve.is-in .ems-serve__card { animation: ems-rise 0.7s var(--ems-ease) backwards; }
.ems-serve.is-in .ems-serve__icon { animation: ems-pop 0.5s var(--ems-ease) backwards; }

.ems-serve.is-in .ems-serve__card:nth-child(1) { animation-delay: 0.3s; }
.ems-serve.is-in .ems-serve__card:nth-child(2) { animation-delay: 0.4s; }
.ems-serve.is-in .ems-serve__card:nth-child(3) { animation-delay: 0.5s; }
.ems-serve.is-in .ems-serve__card:nth-child(4) { animation-delay: 0.6s; }
.ems-serve.is-in .ems-serve__card:nth-child(5) { animation-delay: 0.7s; }
.ems-serve.is-in .ems-serve__card:nth-child(1) .ems-serve__icon { animation-delay: 0.6s; }
.ems-serve.is-in .ems-serve__card:nth-child(2) .ems-serve__icon { animation-delay: 0.7s; }
.ems-serve.is-in .ems-serve__card:nth-child(3) .ems-serve__icon { animation-delay: 0.8s; }
.ems-serve.is-in .ems-serve__card:nth-child(4) .ems-serve__icon { animation-delay: 0.9s; }
.ems-serve.is-in .ems-serve__card:nth-child(5) .ems-serve__icon { animation-delay: 1s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-serve__grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ems-serve__card {
    flex: 0 1 calc((100% - 40px) / 3);
  }
}

@media (max-width: 767px) {

  .ems-serve .ems-container {
    padding: 0 16px;
  }

  .ems-serve__title {
    font-size: 26px;
    line-height: 36px;
  }

  .ems-serve__intro {
    font-size: 15px;
    line-height: 24px;
  }

  .ems-serve__grid {
    gap: 12px;
  }

  .ems-serve__card {
    flex: 0 1 calc((100% - 12px) / 2);
    min-height: 0;
    padding: 16px;
  }

  .ems-serve__name {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (max-width: 359px) {
  .ems-serve__card {
    flex-basis: 100%;
  }
}

/* ============================================================= */
/* Section: 09-types                                              */
/* ============================================================= */
/* ============================================================= */
/* 09 · EMS Service Types — Figma 12563:1020 (inside 12563:1019)  */
/* 1440x727, #eff2ff, 60px padding; heading (gap 10, 1006 wide),  */
/* two rows of four 295x200 cards (gap 20). Decorations: rings +  */
/* dots top-left, radial glow + tilted pill outline top-right.    */
/* ============================================================= */

.ems-types {
  position: relative;
  overflow: hidden;
  background: #eff2ff;
}

/* ---------- Decorations ---------- */
.ems-types__deco {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ems-types__deco--left {
  left: 0;
}

.ems-types__deco--right {
  right: 0;
}

.ems-types__deco > span {
  position: absolute;
  display: block;
}

.ems-types__ring {
  border: 1px solid #e1e7f4;
  border-radius: 50%;
}

.ems-types__ring--outer {
  top: -169.64px;
  left: -150px;
  width: 420px;
  height: 420px;
}

.ems-types__ring--dashed {
  top: -109.64px;
  left: -90px;
  width: 300px;
  height: 300px;
  border-style: dashed;
  animation: ems-types-spin 60s linear infinite;
}

.ems-types__dot {
  border-radius: 50%;
}

.ems-types__dot--orange {
  top: 58.36px;
  left: 112px;
  width: 16px;
  height: 16px;
  background: var(--ems-orange);
}

.ems-types__dot--blue {
  top: 110.36px;
  left: 150px;
  width: 8px;
  height: 8px;
  background: var(--ems-blue);
  opacity: 0.55;
}

.ems-types__glow {
  top: -114.36px;
  right: -288.1px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle 415.78px at 126px 126px, rgba(146, 168, 231, 0.35) 0%, rgba(146, 168, 231, 0) 70%);
  filter: blur(1px);
}

/* 234.8x122.1 outline, rotated -7.56deg, centred 64.6px in from the right edge at y106.6. */
.ems-types__pill {
  top: 45.56px;
  right: -52.8px;
  width: 234.8px;
  height: 122.1px;
  border: 1px solid rgba(39, 55, 117, 0.12);
  border-radius: 86px;
  rotate: -7.56deg;
}

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

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

.ems-types.is-in .ems-types__dot--orange { animation: ems-pop 0.5s var(--ems-ease) 0.3s backwards, ems-types-float 5s ease-in-out 1s infinite; }
.ems-types.is-in .ems-types__dot--blue   { animation: ems-pop 0.5s var(--ems-ease) 0.4s backwards, ems-types-float 4s ease-in-out 1.2s infinite reverse; }

/* ---------- Heading ---------- */
.ems-types .ems-container {
  z-index: 1;
}

.ems-types__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 1006px;
  margin: 0 auto 20px;
  text-align: center;
}

.ems-types__title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
}

.ems-types__intro {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

/* ---------- Cards ---------- */
.ems-types__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ems-types__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 18px 20px 16px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 15px rgba(39, 55, 117, 0.07);
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease);
}

.ems-types__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ems-orange), var(--ems-blue));
  scale: 0 1;
  transform-origin: left center;
  transition: scale 0.45s var(--ems-ease);
}

.ems-types__card:hover {
  translate: 0 -6px;
  box-shadow: 0 22px 32px rgba(39, 55, 117, 0.14);
}

.ems-types__card:hover::after {
  scale: 1 1;
}

.ems-types__card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* icon-park-solid:success frame (24x26); the badge glyph sits at Figma's inset. */
.ems-types__check {
  position: relative;
  flex: none;
  width: 24px;
  height: 26px;
  overflow: hidden;
  transition: scale 0.35s var(--ems-ease), rotate 0.35s var(--ems-ease);
}

.ems-types__check img {
  position: absolute;
  top: 3.316px;
  left: 2.152px;
  display: block;
  width: 19.6949px;
  height: 20.5472px;
  max-width: none;
}

.ems-types__card:hover .ems-types__check {
  scale: 1.15;
  rotate: 12deg;
}

.ems-types__name {
  flex: 1 1 0;
  min-width: 0;
  color: var(--ems-blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
}

.ems-types__text {
  padding-left: 34px;
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* ---------- Entrance ---------- */
.ems-types.is-armed:not(.is-in) :is(
  .ems-types__head > *,
  .ems-types__card,
  .ems-types__check,
  .ems-types__ring,
  .ems-types__dot,
  .ems-types__glow,
  .ems-types__pill
) {
  opacity: 0;
}

.ems-types.is-in .ems-types__ring--outer { animation: ems-pop 0.9s var(--ems-ease) 0s backwards; }
.ems-types.is-in .ems-types__ring--dashed { animation: ems-fade 0.9s ease 0.15s backwards, ems-types-spin 60s linear 0.15s infinite; }
.ems-types.is-in .ems-types__glow { animation: ems-fade 1.2s ease 0.1s backwards; }
.ems-types.is-in .ems-types__pill { animation: ems-from-right 0.9s var(--ems-ease) 0.2s backwards; }

.ems-types.is-in .ems-types__head > :nth-child(1) { animation: ems-pop 0.5s var(--ems-ease) 0.05s backwards; }
.ems-types.is-in .ems-types__head > :nth-child(2) { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-types.is-in .ems-types__head > :nth-child(3) { animation: ems-rise 0.7s var(--ems-ease) 0.22s backwards; }

.ems-types.is-in .ems-types__card  { animation: ems-rise 0.7s var(--ems-ease) backwards; }
.ems-types.is-in .ems-types__check { animation: ems-pop 0.45s var(--ems-ease) backwards; }

.ems-types.is-in .ems-types__card:nth-child(1) { animation-delay: 0.3s; }
.ems-types.is-in .ems-types__card:nth-child(2) { animation-delay: 0.38s; }
.ems-types.is-in .ems-types__card:nth-child(3) { animation-delay: 0.46s; }
.ems-types.is-in .ems-types__card:nth-child(4) { animation-delay: 0.54s; }
.ems-types.is-in .ems-types__card:nth-child(5) { animation-delay: 0.5s; }
.ems-types.is-in .ems-types__card:nth-child(6) { animation-delay: 0.58s; }
.ems-types.is-in .ems-types__card:nth-child(7) { animation-delay: 0.66s; }
.ems-types.is-in .ems-types__card:nth-child(8) { animation-delay: 0.74s; }
.ems-types.is-in .ems-types__card:nth-child(1) .ems-types__check { animation-delay: 0.65s; }
.ems-types.is-in .ems-types__card:nth-child(2) .ems-types__check { animation-delay: 0.75s; }
.ems-types.is-in .ems-types__card:nth-child(3) .ems-types__check { animation-delay: 0.85s; }
.ems-types.is-in .ems-types__card:nth-child(4) .ems-types__check { animation-delay: 0.95s; }
.ems-types.is-in .ems-types__card:nth-child(5) .ems-types__check { animation-delay: 1.05s; }
.ems-types.is-in .ems-types__card:nth-child(6) .ems-types__check { animation-delay: 1.15s; }
.ems-types.is-in .ems-types__card:nth-child(7) .ems-types__check { animation-delay: 1.25s; }
.ems-types.is-in .ems-types__card:nth-child(8) .ems-types__check { animation-delay: 1.35s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ems-types__card {
    min-height: 0;
    padding-bottom: 22px;
  }
}

@media (max-width: 767px) {

  .ems-types .ems-container {
    padding: 0 16px;
  }

  .ems-types__title {
    font-size: 26px;
    line-height: 36px;
  }

  .ems-types__intro {
    font-size: 15px;
    line-height: 24px;
  }

  .ems-types__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ems-types__name {
    font-size: 17px;
    line-height: 24px;
  }

  .ems-types__ring--outer,
  .ems-types__ring--dashed {
    scale: 0.7;
    transform-origin: 0 0;
  }

  .ems-types__glow,
  .ems-types__pill {
    display: none;
  }
}

/* ============================================================= */
/* Section: 09b-payments                                          */
/* ============================================================= */
/* ============================================================= */
/* 09b · AI-Powered Payment Accuracy — Figma 12563:1122           */
/* (second half of 12563:1019, directly under 09 · Service Types, */
/* no gap). 1440x507, #273775, 40px padding; copy 600 at x100;    */
/* visual window x733..1440 holding an 845-wide cover image at    */
/* x-69 with a #273775 left-to-right fade.                        */
/* ============================================================= */

.ems-payments {
  position: relative;
  overflow: hidden;
  background: var(--ems-blue);
  color: #ffffff;
}

.ems-payments__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15.1px;
  width: 600px;
  max-width: 100%;
}

.ems-payments .ems-payments__eyebrow {
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ems-payments__title {
  margin-top: 6.9px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 35px;
  letter-spacing: -1.6px;
}

.ems-payments__bar {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 3px;
  background: var(--ems-orange);
  transform-origin: left center;
}

.ems-payments__text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: pre-wrap;
}

/* Visual window: starts 13px right of centre (x733 at 1440). */
.ems-payments__visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 13px);
  right: 0;
  overflow: hidden;
}

/* The 845-wide image box overhangs the window by 69px on each side, as in Figma. */
.ems-payments__visual-box {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -69px;
  right: -69px;
  overflow: hidden;
}

.ems-payments__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: scale 1.2s var(--ems-ease);
}

.ems-payments__visual-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #273775 0%, rgba(39, 55, 117, 0) 100%);
  pointer-events: none;
}

/* One-off light sweep across the dashboard when the section reveals. */
.ems-payments__visual-box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(160, 200, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
}

.ems-payments:hover .ems-payments__img {
  scale: 1.03;
}

/* ---------- Entrance ---------- */
@keyframes ems-payments-bar {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes ems-payments-zoom {
  from { opacity: 0; scale: 1.08; }
  to   { opacity: 1; scale: 1; }
}

@keyframes ems-payments-sweep {
  0%   { opacity: 0; translate: -100% 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; translate: 380% 0; }
}

.ems-payments.is-armed:not(.is-in) :is(
  .ems-payments__eyebrow,
  .ems-payments__title,
  .ems-payments__bar,
  .ems-payments__text,
  .ems-payments__img
) {
  opacity: 0;
}

.ems-payments.is-in .ems-payments__eyebrow { animation: ems-from-left 0.6s var(--ems-ease) 0.05s backwards; }
.ems-payments.is-in .ems-payments__title   { animation: ems-rise 0.7s var(--ems-ease) 0.15s backwards; }
.ems-payments.is-in .ems-payments__bar     { animation: ems-payments-bar 0.6s var(--ems-ease) 0.4s backwards; }
.ems-payments.is-in .ems-payments__text    { animation: ems-rise 0.7s var(--ems-ease) 0.3s backwards; }
.ems-payments.is-in .ems-payments__img     { animation: ems-payments-zoom 1.2s var(--ems-ease) 0.1s backwards; }
.ems-payments.is-in .ems-payments__visual-box::before { animation: ems-payments-sweep 1.6s ease-in-out 0.9s 1 both; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-payments__copy {
    width: calc(50% - 10px);
  }

  .ems-payments__visual {
    left: 50%;
  }
}

@media (max-width: 991px) {
  .ems-payments {
    display: flex;
    flex-direction: column;
  }

  .ems-payments__copy {
    width: 100%;
  }

  .ems-payments__visual {
    position: relative;
    order: 2;
    left: auto;
    right: auto;
    width: 100%;
    height: 420px;
    margin-top: 32px;
  }

  .ems-payments__visual-box {
    left: 0;
    right: 0;
  }

  .ems-payments__img {
    object-position: 70% 50%;
  }

  .ems-payments__visual-box::after {
    background: linear-gradient(180deg, #273775 0%, rgba(39, 55, 117, 0) 35%);
  }
}

@media (max-width: 767px) {

  .ems-payments .ems-container {
    padding: 0 16px;
  }

  .ems-payments__title {
    margin-top: 0;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -1px;
  }

  .ems-payments__text {
    font-size: 15px;
  }

  .ems-payments__visual {
    height: 280px;
    margin-top: 24px;
  }
}

/* ============================================================= */
/* Section: 10-credentialing                                      */
/* ============================================================= */
/* ===== EMS Credentialing & Enrollment Services — Figma node 12563:1132 (1440 x 639) =====
   40px frame padding plus the 60px page gap above it. */

.ems-credentialing-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

/* ---------- Left column (12563:1134) ---------- */
.ems-credentialing-copy {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 430px;
}

.ems-credentialing-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ems-credentialing-title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 35px;
}

.ems-credentialing-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 9999px;
  background: var(--ems-orange);
}

.ems-credentialing-lead {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

/* Key features (12563:1141): 54px icon discs, bold 16px label over a dotted rule. */
.ems-credentialing-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.ems-credentialing-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ems-credentialing-item-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  background: #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s var(--ems-ease);
}

.ems-credentialing-item-icon img {
  display: block;
  max-width: none;
}

.ems-credentialing-item:hover .ems-credentialing-item-icon {
  transform: translateY(-3px) rotate(-8deg) scale(1.06);
}

.ems-credentialing-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: 20px;
  width: 315px;
  min-width: 0;
  min-height: 54px;
}

.ems-credentialing-item-text {
  color: var(--ems-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  transition: color 0.3s var(--ems-ease);
}

.ems-credentialing-item:last-child .ems-credentialing-item-text {
  line-height: 20px;
}

.ems-credentialing-item:hover .ems-credentialing-item-text {
  color: var(--ems-orange);
}

/* Line 129: a zero-height rule whose end dot overflows 5.33px to the right. */
.ems-credentialing-item-rule {
  display: block;
  width: calc(100% + 5.333px);
  max-width: none;
  height: 10.667px;
  margin: -5.333px 0;
  transform-origin: left center;
}

.ems-credentialing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 280px;
  height: 50px;
  padding: 8px 14px;
  border-radius: 75px;
  background: var(--ems-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 20.8px;
  text-decoration: none;
  transition: background-color 0.3s var(--ems-ease), box-shadow 0.3s var(--ems-ease), transform 0.3s var(--ems-ease);
}

.ems-credentialing-btn-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #fff;
  transition: transform 0.3s var(--ems-ease);
}

.ems-credentialing-btn-arrow img {
  display: block;
  max-width: none;
}

.ems-credentialing-btn:hover,
.ems-credentialing-btn:focus-visible {
  background: #e9474b;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(252, 93, 97, 0.3);
}

.ems-credentialing-btn:hover .ems-credentialing-btn-arrow,
.ems-credentialing-btn:focus-visible .ems-credentialing-btn-arrow {
  transform: translateX(4px);
}

/* ---------- Right panel: enrollment workflow mock (12563:1171) ---------- */
.ems-credentialing-panel {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  min-width: 0;
  padding: 20px;
  border: 2px solid #eff2ff;
  border-radius: 10px;
  background: rgba(239, 242, 255, 0.28);
  box-shadow: 0 2.704px 11.561px #eff2ff, inset 0 0 64px #eff2ff;
  overflow: clip;
}

/* tdesign:secured (12563:1262) at 30% opacity, top right. */
.ems-credentialing-shield,
.ems-credentialing-cross {
  position: absolute;
  display: block;
  max-width: none;
  opacity: 0.3;
  pointer-events: none;
}

.ems-credentialing-shield {
  top: 20.5px;
  right: 35.9px;
  width: 71.25px;
  height: 82.48px;
}

.ems-credentialing-cross {
  top: 47.23px;
  right: 56px;
  width: 30px;
  height: 30px;
}

.ems-credentialing-badge,
.ems-credentialing-stats {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 90px;
  padding: 17px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fff;
  filter: drop-shadow(0 0 7.5px rgba(0, 0, 0, 0.1));
}

.ems-credentialing-stats {
  width: 100%;
}

.ems-credentialing-badge-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s var(--ems-ease);
}

.ems-credentialing-badge-icon img {
  display: block;
  max-width: none;
}

.ems-credentialing-badge:hover .ems-credentialing-badge-icon,
.ems-credentialing-stat:hover .ems-credentialing-badge-icon {
  transform: rotate(-10deg) scale(1.06);
}

.ems-credentialing-badge-body,
.ems-credentialing-stat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.ems-credentialing-badge-title {
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.ems-credentialing-badge-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ems-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.ems-credentialing-badge-dot {
  display: block;
  flex: none;
}

/* Steps row (12563:1183) with the gradient connector (12563:1172) and number chips. */
.ems-credentialing-flow {
  position: relative;
  width: 100%;
}

.ems-credentialing-line {
  position: absolute;
  top: -15.68px;
  left: -2px;
  width: calc(100% + 3.1px);
  height: 21.02px;
  max-width: none;
  pointer-events: none;
}

.ems-credentialing-steps {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.ems-credentialing-step {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 230px;
  padding: 17px;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.11);
  text-align: center;
  transition: transform 0.3s var(--ems-ease), box-shadow 0.3s var(--ems-ease), border-color 0.3s var(--ems-ease);
}

.ems-credentialing-step:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 93, 97, 0.25);
  box-shadow: 0 14px 30px rgba(39, 55, 117, 0.14);
}

.ems-credentialing-step-num {
  position: absolute;
  top: -26.77px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  padding: 3px;
  border: 3px solid #fff;
  border-radius: 31px;
  background: #fff;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.21));
  color: var(--ems-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  transition: background-color 0.3s var(--ems-ease), border-color 0.3s var(--ems-ease), color 0.3s var(--ems-ease);
}

.ems-credentialing-step:hover .ems-credentialing-step-num {
  border-color: var(--ems-orange);
  background: var(--ems-orange);
  color: #fff;
}

.ems-credentialing-step-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #fff;
  filter: drop-shadow(0 1px 2.5px rgba(0, 0, 0, 0.18));
  transition: transform 0.3s var(--ems-ease);
}

.ems-credentialing-step-icon img {
  display: block;
  max-width: none;
}

.ems-credentialing-step:hover .ems-credentialing-step-icon {
  transform: scale(1.08) rotate(-6deg);
}

.ems-credentialing-step-title {
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 22.5px;
}

.ems-credentialing-step-bar {
  display: block;
  flex: none;
  width: 28px;
  height: 4px;
  border-radius: 9999px;
  background: var(--ems-orange);
  transition: width 0.3s var(--ems-ease);
}

.ems-credentialing-step:hover .ems-credentialing-step-bar {
  width: 44px;
}

.ems-credentialing-step-text {
  color: var(--ems-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.25px;
}

/* Bottom stats card (12563:1230). */
.ems-credentialing-stat {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ems-credentialing-stat-body {
  flex: 1 1 0;
  min-width: 0;
}

.ems-credentialing-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}

/* Track 12563:1240 with the 192px fill 12563:1242 (of 201.2px). */
.ems-credentialing-progress-track {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 7px;
  border-radius: 28px;
  background: #fedfe0;
}

.ems-credentialing-progress-fill {
  position: absolute;
  top: 0.23px;
  left: 0;
  width: 95.43%;
  height: 7px;
  border-radius: 28px;
  background: var(--ems-orange);
  transform-origin: left center;
}

.ems-credentialing-progress-value {
  flex: none;
  color: var(--ems-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.ems-credentialing-divider {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1px;
  height: 45.54px;
}

.ems-credentialing-divider img {
  display: block;
  flex: none;
  max-width: none;
  width: 45.546px;
  height: 1px;
  rotate: -90.76deg;
}

.ems-credentialing-stat-meta {
  color: var(--ems-orange);
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.ems-credentialing-stat-meta strong {
  font-weight: 700;
}

.ems-credentialing-stat-meta > span {
  font-weight: 400;
}

/* ---------- Animation ---------- */
@keyframes ems-cred-grow-x {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes ems-cred-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes ems-cred-ghost {
  from { opacity: 0; scale: 0.6; }
  to   { opacity: 0.3; scale: 1; }
}

@keyframes ems-cred-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

@keyframes ems-cred-pulse {
  0%, 100% { scale: 1; opacity: 1; }
  50%      { scale: 1.35; opacity: 0.6; }
}

.ems-credentialing.is-armed:not(.is-in) :is(.ems-credentialing-head > *, .ems-credentialing-item, .ems-credentialing-btn, .ems-credentialing-panel, .ems-credentialing-badge, .ems-credentialing-line, .ems-credentialing-step, .ems-credentialing-step-num, .ems-credentialing-stats, .ems-credentialing-shield, .ems-credentialing-cross) {
  opacity: 0;
}

.ems-credentialing.is-in .ems-credentialing-head > * {
  animation: ems-rise 0.7s var(--ems-ease) backwards;
}

.ems-credentialing.is-in .ems-credentialing-head > :nth-child(2) { animation-delay: 0.1s; }
.ems-credentialing.is-in .ems-credentialing-head > :nth-child(3) { animation: ems-cred-grow-x 0.6s var(--ems-ease) 0.3s backwards; transform-origin: left center; }
.ems-credentialing.is-in .ems-credentialing-head > :nth-child(4) { animation-delay: 0.3s; }

.ems-credentialing.is-in .ems-credentialing-item {
  animation: ems-from-left 0.7s var(--ems-ease) 0.4s backwards;
}

.ems-credentialing.is-in .ems-credentialing-item:nth-child(2) { animation-delay: 0.52s; }
.ems-credentialing.is-in .ems-credentialing-item:nth-child(3) { animation-delay: 0.64s; }

.ems-credentialing.is-in .ems-credentialing-item-icon {
  animation: ems-pop 0.6s var(--ems-ease) 0.5s backwards;
}

.ems-credentialing.is-in .ems-credentialing-item:nth-child(2) .ems-credentialing-item-icon { animation-delay: 0.62s; }
.ems-credentialing.is-in .ems-credentialing-item:nth-child(3) .ems-credentialing-item-icon { animation-delay: 0.74s; }

.ems-credentialing.is-in .ems-credentialing-item-rule {
  animation: ems-cred-draw 0.9s var(--ems-ease) 0.7s backwards;
}

.ems-credentialing.is-in .ems-credentialing-item:nth-child(2) .ems-credentialing-item-rule { animation-delay: 0.82s; }
.ems-credentialing.is-in .ems-credentialing-item:nth-child(3) .ems-credentialing-item-rule { animation-delay: 0.94s; }

.ems-credentialing.is-in .ems-credentialing-btn {
  animation: ems-rise 0.7s var(--ems-ease) 0.85s backwards;
}

/* Panel slides in, then the workflow assembles: badge, connector draws, numbers pop, cards rise. */
.ems-credentialing.is-in .ems-credentialing-panel {
  animation: ems-from-right 0.8s var(--ems-ease) 0.1s backwards;
}

.ems-credentialing.is-in .ems-credentialing-shield,
.ems-credentialing.is-in .ems-credentialing-cross {
  animation: ems-cred-ghost 0.8s var(--ems-ease) 0.5s backwards, ems-cred-float 5s ease-in-out 1.4s infinite;
}

.ems-credentialing.is-in .ems-credentialing-badge {
  animation: ems-pop 0.6s var(--ems-ease) 0.4s backwards;
}

.ems-credentialing.is-in .ems-credentialing-badge-dot {
  animation: ems-cred-pulse 1.8s ease-in-out 1.2s infinite;
}

.ems-credentialing.is-in .ems-credentialing-line {
  animation: ems-cred-draw 1.3s cubic-bezier(0.45, 0, 0.2, 1) 0.6s backwards;
}

.ems-credentialing.is-in .ems-credentialing-step {
  animation: ems-rise 0.7s var(--ems-ease) 0.7s backwards;
}

.ems-credentialing.is-in .ems-credentialing-step:nth-child(2) { animation-delay: 0.95s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(3) { animation-delay: 1.2s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(4) { animation-delay: 1.45s; }

.ems-credentialing.is-in .ems-credentialing-step-num {
  animation: ems-pop 0.55s var(--ems-ease) 0.85s backwards;
}

.ems-credentialing.is-in .ems-credentialing-step:nth-child(2) .ems-credentialing-step-num { animation-delay: 1.1s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(3) .ems-credentialing-step-num { animation-delay: 1.35s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(4) .ems-credentialing-step-num { animation-delay: 1.6s; }

.ems-credentialing.is-in .ems-credentialing-step-icon {
  animation: ems-pop 0.6s var(--ems-ease) 0.95s backwards;
}

.ems-credentialing.is-in .ems-credentialing-step:nth-child(2) .ems-credentialing-step-icon { animation-delay: 1.2s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(3) .ems-credentialing-step-icon { animation-delay: 1.45s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(4) .ems-credentialing-step-icon { animation-delay: 1.7s; }

.ems-credentialing.is-in .ems-credentialing-step-bar {
  animation: ems-cred-grow-x 0.5s var(--ems-ease) 1.1s backwards;
}

.ems-credentialing.is-in .ems-credentialing-step:nth-child(2) .ems-credentialing-step-bar { animation-delay: 1.35s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(3) .ems-credentialing-step-bar { animation-delay: 1.6s; }
.ems-credentialing.is-in .ems-credentialing-step:nth-child(4) .ems-credentialing-step-bar { animation-delay: 1.85s; }

.ems-credentialing.is-in .ems-credentialing-stats {
  animation: ems-rise 0.7s var(--ems-ease) 0.8s backwards;
}

.ems-credentialing.is-in .ems-credentialing-progress-fill {
  animation: ems-cred-grow-x 1.4s var(--ems-ease) 0.9s backwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-credentialing-row {
    flex-direction: column;
    gap: 40px;
  }

  .ems-credentialing-copy {
    width: 100%;
    max-width: 720px;
  }

  .ems-credentialing-item-body {
    flex: 1 1 0;
    width: auto;
  }

  .ems-credentialing-panel {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 991px) {

  .ems-credentialing-title {
    font-size: 30px;
    line-height: 38px;
  }

  .ems-credentialing-steps {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .ems-credentialing-step {
    flex: 1 1 calc(50% - 10px);
    min-height: 0;
  }

  .ems-credentialing-line,
  .ems-credentialing-step-num {
    display: none;
  }
}

@media (max-width: 767px) {

  .ems-credentialing-row {
    gap: 30px;
  }

  .ems-credentialing-title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-credentialing-item-text,
  .ems-credentialing-item:last-child .ems-credentialing-item-text {
    font-size: 14px;
    line-height: 20px;
  }

  .ems-credentialing-btn {
    width: auto;
    padding: 8px 24px;
  }

  .ems-credentialing-panel {
    gap: 30px;
    padding: 16px;
  }

  .ems-credentialing-shield {
    top: 16.5px;
    right: 23.9px;
  }

  .ems-credentialing-cross {
    top: 43.23px;
    right: 44px;
  }

  .ems-credentialing-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ems-credentialing-step {
    padding: 14px 10px;
  }

  .ems-credentialing-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    height: auto;
  }

  .ems-credentialing-divider {
    width: 100%;
    height: 1px;
  }

  .ems-credentialing-divider img {
    width: 100%;
    rotate: none;
  }
}

@media (max-width: 400px) {
  .ems-credentialing-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-credentialing-badge-title {
    white-space: normal;
  }
}

/* ============================================================= */
/* Section: 11-why-choose                                         */
/* ============================================================= */
/* ===== Why EMS Providers Choose Our Specialized Billing Services — Figma node 12563:1268 =====
   BG-blue band (12563:1269, 1440 x 794, 40px padding), 60px below the previous section. */

.ems-v2 > .ems-why-choose {
  background: #eff2ff;
  overflow: clip;
}

.ems-why-choose-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Left column (12563:1271) ---------- */
.ems-why-choose-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  min-width: 0;
}

.ems-why-choose-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 493px;
  max-width: 100%;
}

.ems-why-choose-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Figma's title box is 519px, wider than the 493px copy block. */
.ems-why-choose-title {
  width: 519px;
  max-width: calc(100vw - 40px);
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 35px;
}

.ems-why-choose-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 9999px;
  background: var(--ems-orange);
  transform-origin: left center;
}

.ems-why-choose-lead {
  display: flex;
  flex-direction: column;
  gap: 25.2px; /* the empty paragraph between Figma's three blocks */
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

/* style-v2.css colours every <p> grey; keep Figma's #3d3d3d. */
.ems-why-choose-lead p {
  color: var(--ems-text);
  font-size: inherit;
  line-height: inherit;
}

.ems-why-choose-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 413px;
  max-width: 100%;
  height: 50px;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--ems-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.3s var(--ems-ease), box-shadow 0.3s var(--ems-ease), transform 0.3s var(--ems-ease);
}

/* A soft light sweep across the button every few seconds. */
.ems-why-choose-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  translate: -120% 0;
  pointer-events: none;
}

.ems-why-choose-btn-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #fff;
  transition: transform 0.3s var(--ems-ease);
}

.ems-why-choose-btn-arrow img {
  display: block;
  max-width: none;
}

.ems-why-choose-btn:hover,
.ems-why-choose-btn:focus-visible {
  background: #1d2a5e;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(39, 55, 117, 0.28);
}

.ems-why-choose-btn:hover .ems-why-choose-btn-arrow,
.ems-why-choose-btn:focus-visible .ems-why-choose-btn-arrow {
  transform: translateX(4px);
}

/* ---------- Card grid (12563:1290) ---------- */
.ems-why-choose-grid-wrap {
  position: relative;
  flex: none;
  width: 695px;
}

.ems-why-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.ems-why-choose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 179px;
  padding: 16px 20px;
  border: 2px solid #eff2ff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2.704px 11.561px #eff2ff;
  overflow: clip;
  transition: transform 0.35s var(--ems-ease), border-color 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease);
}

.ems-why-choose-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 64px #eff2ff;
  pointer-events: none;
}

.ems-why-choose-card:hover {
  transform: translateY(-5px);
  border-color: rgba(39, 55, 117, 0.16);
  box-shadow: 0 18px 30px -16px rgba(39, 55, 117, 0.3);
}

/* 50px icon disc (20px above the title, with the 10px gap). */
.ems-why-choose-icon {
  position: relative;
  z-index: 1;
  flex: none;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: transform 0.35s var(--ems-ease);
}

.ems-why-choose-card:hover .ems-why-choose-icon {
  transform: rotate(-8deg) scale(1.06);
}

.ems-why-choose-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 35.833px;
  background: #fff;
  filter: drop-shadow(0 0 2.083px rgba(0, 0, 0, 0.25));
}

.ems-why-choose-glyphs {
  position: relative;
  display: block;
  width: 33.333px;
  height: 33.333px;
}

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

/* Card 3's export (12563:1319) carries its disc, arc and shadow bleed. */
.ems-why-choose-icon-art {
  position: absolute;
  top: -4.165px;
  left: -4.165px;
  display: block;
  max-width: none;
}

/* Orange arc (Line 131) hugging the disc's lower right. */
.ems-why-choose-arc {
  position: absolute;
  top: 26.39px;
  left: 29.17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.718px;
  height: 27.21px;
}

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

.ems-why-choose-arc img {
  position: absolute;
  top: -0.416px;
  left: -2.222px;
  display: block;
  max-width: none;
}

.ems-why-choose-card-title {
  position: relative;
  z-index: 1;
  color: var(--ems-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.ems-why-choose-card-text {
  position: relative;
  z-index: 1;
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 19.2px;
}

/* MedsIT badge (12563:1337): 120px plus its ring/shadow bleed, centred on the grid. */
.ems-why-choose-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: 143.4px;
  height: 143.4px;
  max-width: none;
  translate: -50% -50%;
  pointer-events: none;
}

/* ---------- Animation ---------- */
@keyframes ems-why-in {
  from { opacity: 0; translate: var(--from-x, 0) var(--from-y, 0); }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes ems-why-badge-pop {
  0%   { opacity: 0; scale: 0.3; rotate: -90deg; }
  70%  { opacity: 1; scale: 1.1; rotate: 8deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}

@keyframes ems-why-breathe {
  0%, 100% { scale: 1; }
  50%      { scale: 1.05; }
}

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

@keyframes ems-why-arc-spin {
  from { rotate: -240deg; opacity: 0; }
  to   { rotate: 0deg; opacity: 1; }
}

@keyframes ems-why-shine {
  0%, 72% { translate: -120% 0; }
  100%    { translate: 420% 0; }
}

.ems-why-choose-card:nth-child(1) { --from-x: -40px; --from-y: -30px; }
.ems-why-choose-card:nth-child(2) { --from-x: 40px;  --from-y: -30px; }
.ems-why-choose-card:nth-child(3) { --from-x: -40px; --from-y: 30px; }
.ems-why-choose-card:nth-child(4) { --from-x: 40px;  --from-y: 30px; }

.ems-why-choose.is-armed:not(.is-in) :is(.ems-why-choose-head > *, .ems-why-choose-btn, .ems-why-choose-card, .ems-why-choose-badge) {
  opacity: 0;
}

.ems-why-choose.is-in .ems-why-choose-head > * {
  animation: ems-rise 0.7s var(--ems-ease) backwards;
}

.ems-why-choose.is-in .ems-why-choose-head > :nth-child(2) { animation-delay: 0.1s; }
.ems-why-choose.is-in .ems-why-choose-head > :nth-child(3) { animation-delay: 0.25s; }

.ems-why-choose.is-in .ems-why-choose-bar {
  animation: ems-why-grow-x 0.6s var(--ems-ease) 0.35s backwards;
}

.ems-why-choose.is-in .ems-why-choose-btn {
  animation: ems-rise 0.7s var(--ems-ease) 0.4s backwards;
}

.ems-why-choose.is-in .ems-why-choose-btn::after {
  animation: ems-why-shine 5s ease-in-out 2.5s infinite;
}

.ems-why-choose.is-in .ems-why-choose-card {
  animation: ems-why-in 0.8s var(--ems-ease) 0.2s backwards;
}

.ems-why-choose.is-in .ems-why-choose-card:nth-child(2) { animation-delay: 0.32s; }
.ems-why-choose.is-in .ems-why-choose-card:nth-child(3) { animation-delay: 0.44s; }
.ems-why-choose.is-in .ems-why-choose-card:nth-child(4) { animation-delay: 0.56s; }

.ems-why-choose.is-in .ems-why-choose-icon {
  animation: ems-pop 0.6s var(--ems-ease) 0.6s backwards;
}

.ems-why-choose.is-in .ems-why-choose-card:nth-child(2) .ems-why-choose-icon { animation-delay: 0.72s; }
.ems-why-choose.is-in .ems-why-choose-card:nth-child(3) .ems-why-choose-icon { animation-delay: 0.84s; }
.ems-why-choose.is-in .ems-why-choose-card:nth-child(4) .ems-why-choose-icon { animation-delay: 0.96s; }

/* The arc sweeps round the disc into place. */
.ems-why-choose-arc {
  transform-origin: -4.17px -1.39px; /* the disc centre, in the arc box */
}

.ems-why-choose.is-in .ems-why-choose-arc {
  animation: ems-why-arc-spin 0.9s var(--ems-ease) 0.9s backwards;
}

.ems-why-choose.is-in .ems-why-choose-card:nth-child(2) .ems-why-choose-arc { animation-delay: 1.02s; }
.ems-why-choose.is-in .ems-why-choose-card:nth-child(4) .ems-why-choose-arc { animation-delay: 1.26s; }

.ems-why-choose.is-in .ems-why-choose-badge {
  animation:
    ems-why-badge-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s backwards,
    ems-why-breathe 4s ease-in-out 1.8s infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-why-choose-row {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .ems-why-choose-copy {
    flex: none;
    width: 100%;
  }

  .ems-why-choose-head {
    width: 100%;
    max-width: 720px;
  }

  .ems-why-choose-title {
    width: auto;
    max-width: 640px;
  }

  .ems-why-choose-grid-wrap {
    width: 100%;
    max-width: 695px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .ems-why-choose-title {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-width: 767px) {

  .ems-why-choose-head {
    gap: 20px;
  }

  .ems-why-choose-title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-why-choose-lead {
    font-size: 15px;
    line-height: 24px;
    gap: 16px;
  }

  .ems-why-choose-btn {
    width: 100%;
  }

  .ems-why-choose-grid {
    gap: 20px;
  }

  .ems-why-choose-badge {
    width: 110px;
    height: 110px;
  }
}

/* Phones: one column; the badge sits above the cards instead of between them. */
@media (max-width: 575px) {
  .ems-why-choose-grid-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .ems-why-choose-badge {
    position: static;
    order: -1;
    width: 100px;
    height: 100px;
    translate: none;
  }

  .ems-why-choose-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .ems-why-choose-card {
    min-height: 0;
  }
}

/* ============================================================= */
/* Section: 12-trust                                              */
/* ============================================================= */
/* ===== Trusted Standards — Figma node 12563:1346 (1440 x 466 dark band, 60px below the previous section) =====
   Radial gradient centred at (1008, 139.8) with radii 1167 x 647.3:
   #273775 -> #142048 (50%) -> #0b1431 (75%) -> #01081a; the wave photo on top at 10%. */

.ems-trust {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-left: 16px;
  padding-right: 16px;
  overflow: hidden;
  background: radial-gradient(81.04% 138.91% at 70% 30%, #273775 0%, #142048 50%, #0b1431 75%, #01081a 100%);
}

.ems-trust-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ems-trust-bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.1;
}

.ems-trust-title,
.ems-trust-logos,
.ems-trust-text {
  position: relative;
  z-index: 1;
}

.ems-trust-title {
  width: 1026px;
  max-width: 100%;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
}

/* Logos 60px apart with 1px 40%-white rules (Line 111, 142.8px tall) between them. */
.ems-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.ems-trust-logo {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
}

.ems-trust-logo + .ems-trust-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -30.5px;
  width: 1px;
  height: 142.814px;
  background: rgba(255, 255, 255, 0.4);
  translate: 0 -50%;
  rotate: 0.45deg; /* Figma's rules sit at 89.55deg */
}

.ems-trust-logo img {
  display: block;
  max-width: none;
  transition: transform 0.35s var(--ems-ease), filter 0.35s var(--ems-ease);
}

.ems-trust-logo:hover img {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

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

.ems-trust-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Animation ---------- */
/* Title rises, logos pop in one by one as their rules draw down, then the copy line;
   the wave photo drifts slowly behind. */
@keyframes ems-trust-pop {
  0%   { opacity: 0; scale: 0.6; }
  70%  { opacity: 1; scale: 1.08; }
  100% { opacity: 1; scale: 1; }
}

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

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

@keyframes ems-trust-drift {
  0%, 100% { scale: 1; translate: 0 0; }
  50%      { scale: 1.06; translate: -1.5% 1%; }
}

.ems-trust.is-armed:not(.is-in) :is(.ems-trust-title, .ems-trust-logo, .ems-trust-text) {
  opacity: 0;
}

.ems-trust.is-in .ems-trust-title {
  animation: ems-rise 0.7s var(--ems-ease) backwards;
}

.ems-trust.is-in .ems-trust-logo {
  animation: ems-trust-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.25s + var(--i, 0) * 0.15s) backwards;
}

.ems-trust.is-in .ems-trust-logo + .ems-trust-logo::before {
  animation: ems-trust-rule 0.6s ease-out calc(0.4s + var(--i, 0) * 0.15s) backwards;
}

.ems-trust.is-in .ems-trust-text {
  animation: ems-rise 0.7s var(--ems-ease) 0.9s backwards;
}

.ems-trust.is-in .ems-trust-bg img {
  animation: ems-trust-drift 18s ease-in-out infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-trust-logos {
    gap: 40px;
  }

  .ems-trust-logo + .ems-trust-logo::before {
    left: -20.5px;
    height: 120px;
  }

  /* Scale the four marks by the same factor so they keep their ratio. */
  .ems-trust-logo:nth-child(1) img { width: 145px; height: 144px; }
  .ems-trust-logo:nth-child(2) img { width: 110px; height: 151px; }
  .ems-trust-logo:nth-child(3) img { width: 150px; height: 151px; }
  .ems-trust-logo:nth-child(4) img { width: 143px; height: 112px; }

  .ems-trust-text {
    max-width: 900px;
    white-space: normal;
  }
}

/* Tablets: a 2 x 2 grid, no vertical rules. */
@media (max-width: 991px) {
  .ems-trust-logos {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 40px 80px;
  }

  .ems-trust-logo + .ems-trust-logo::before {
    display: none;
  }
}

/* Phones: logos stack 60px apart with a 142.8px horizontal rule centred in each gap. */
@media (max-width: 767px) {

  .ems-trust {
    gap: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .ems-trust-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ems-trust-logos {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .ems-trust-logo + .ems-trust-logo::before {
    display: block;
    top: -30.5px;
    left: 50%;
    width: 142.814px;
    height: 1px;
    translate: -50% 0;
    rotate: none;
  }

  .ems-trust.is-in .ems-trust-logo + .ems-trust-logo::before {
    animation-name: ems-trust-rule-x;
  }

  .ems-trust-text {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ============================================================= */
/* Section: 13-case-study                                         */
/* ============================================================= */
/* ============================================================= */
/* 13. Case Study #1 — Figma 12563:1397 (1240 x 840 card)        */
/* ============================================================= */
.ems-case-study__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding-right: 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 9.55px rgba(0, 0, 0, 0.1);
}

/* Left: gradient panel with photo, name and quote */
.ems-case-study__media {
  flex: 0 0 544px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 48px 40px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(to top, #273775 29.688%, #fc5d61 99.881%);
  color: #ffffff;
}

.ems-case-study__figure {
  position: relative;
  width: min(452.383px, 100%);
  aspect-ratio: 452.383 / 386.21;
  flex: none;
}

.ems-case-study__ring {
  position: absolute;
  left: 50.79%;
  top: 17.13%;
  width: 41.23%;
  height: 78.11%;
  rotate: 0deg;
}

.ems-case-study__photo {
  position: absolute;
  left: 3.72%;
  top: 0.13%;
  width: 93.08%;
  height: 100%;
  border-bottom: 4.813px solid #fc5d61;
  overflow: hidden;
}

.ems-case-study__photo img {
  position: absolute;
  left: 0;
  top: -0.11%;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  transition: scale 0.6s var(--ems-ease);
  transform-origin: 50% 30%;
}

.ems-case-study__card:hover .ems-case-study__photo img {
  scale: 1.03;
}

.ems-case-study__quotes {
  position: absolute;
  left: 0;
  top: 12.77%;
  width: 19.95%;
  height: auto;
}

.ems-case-study__person {
  width: 100%;
  max-width: 448px;
  margin-top: 30.79px;
}

/* Figma 12563:1404: name and role are white on the photo panel. */
.ems-case-study__name,
.ems-case-study__role,
.ems-case-study__quote p {
  color: #ffffff;
}

.ems-case-study__name {
  font-size: 24px;
  font-weight: 700;
  line-height: 33.84px;
}

.ems-case-study__role {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
}

.ems-case-study__quote {
  width: 100%;
  max-width: 448px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 23.6px;
  color: #ffffff;
}

/* Middle: narrative */
.ems-case-study__body {
  flex: 0 0 349px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}

.ems-case-study__title {
  color: var(--ems-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 35px;
}

.ems-case-study__text p {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 26.2px;
}

.ems-case-study__text p + p {
  margin-top: 26.2px;
}

/* Right: outcomes (Figma: 20.5px inset from a 1px #eff2ff rule, 9.5px after the copy) */
.ems-case-study__outcomes {
  position: relative;
  flex: 0 0 275.5px;
  margin: 66px 0 0 -20.5px;
  padding-left: 20.5px;
}

.ems-case-study__outcomes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 1px;
  height: 460px;
  background: #eff2ff;
}

.ems-case-study__outcomes-title {
  color: var(--ems-blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  text-transform: capitalize;
}

.ems-case-study__list {
  display: flex;
  flex-direction: column;
  gap: 29px;
  margin-top: 24px;
}

.ems-case-study__stat {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
  background: #eff2ff;
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease);
}

.ems-case-study__stat:hover {
  translate: -4px 0;
  box-shadow: 0 10px 24px rgba(39, 55, 117, 0.12);
}

/* Figma 12563:1418: a 50px tinted disc with a 7px white stroke drawn OUTSIDE it (64px overall).
   content-box keeps the disc at 50px; the -7px margin keeps the stroke out of the layout,
   exactly like a Figma outside stroke, so the copy still sits 20px from the 50px disc. */
.ems-case-study__stat-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 50px;
  height: 50px;
  margin: -7px;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background: rgba(39, 55, 117, 0.1);
  transition: background-color 0.35s ease;
}

.ems-case-study__stat-icon img {
  display: block;
  max-width: none;
}

.ems-case-study__stat:hover .ems-case-study__stat-icon {
  background: rgba(252, 93, 97, 0.16);
}

.ems-case-study__stat-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ems-case-study__stat-value {
  color: var(--ems-orange);
  font-size: 22px;
  font-weight: 700;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.ems-case-study__stat-label {
  max-width: 151px;
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 25.2px;
}

/* Entrance */
.ems-case-study.is-armed:not(.is-in) :is(.ems-case-study__card, .ems-case-study__photo, .ems-case-study__ring, .ems-case-study__quotes, .ems-case-study__person, .ems-case-study__quote, .ems-case-study__eyebrow, .ems-case-study__title, .ems-case-study__text, .ems-case-study__outcomes-title, .ems-case-study__stat) {
  opacity: 0;
}

.ems-case-study.is-in .ems-case-study__card { animation: ems-rise 0.7s var(--ems-ease) backwards; }
.ems-case-study.is-in .ems-case-study__photo { animation: ems-pop 0.8s var(--ems-ease) 0.2s backwards; }
.ems-case-study.is-in .ems-case-study__ring { animation: ems-case-study-ring 1.1s var(--ems-ease) 0.35s backwards; }
.ems-case-study.is-in .ems-case-study__quotes { animation: ems-from-left 0.7s var(--ems-ease) 0.5s backwards; }
.ems-case-study.is-in .ems-case-study__person { animation: ems-rise 0.7s var(--ems-ease) 0.55s backwards; }
.ems-case-study.is-in .ems-case-study__quote { animation: ems-rise 0.7s var(--ems-ease) 0.7s backwards; }
.ems-case-study.is-in .ems-case-study__eyebrow { animation: ems-fade 0.6s var(--ems-ease) 0.25s backwards; }
.ems-case-study.is-in .ems-case-study__title { animation: ems-rise 0.7s var(--ems-ease) 0.32s backwards; }
.ems-case-study.is-in .ems-case-study__text { animation: ems-rise 0.7s var(--ems-ease) 0.42s backwards; }
.ems-case-study.is-in .ems-case-study__outcomes-title { animation: ems-fade 0.6s var(--ems-ease) 0.4s backwards; }
.ems-case-study.is-in .ems-case-study__stat { animation: ems-from-right 0.7s var(--ems-ease) 0.45s backwards; }
.ems-case-study.is-in .ems-case-study__stat:nth-child(2) { animation-delay: 0.6s; }
.ems-case-study.is-in .ems-case-study__stat:nth-child(3) { animation-delay: 0.75s; }

@keyframes ems-case-study-ring {
  from { opacity: 0; rotate: -40deg; }
  to   { opacity: 1; rotate: 0deg; }
}

/* Responsive */
@media (max-width: 1199px) {
  .ems-case-study__card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 30px;
    padding-right: 0;
    padding-bottom: 30px;
  }

  .ems-case-study__media {
    grid-row: 1;
    padding: 30px 28px 34px;
  }

  .ems-case-study__body {
    padding: 20px 24px 0 0;
  }

  .ems-case-study__outcomes {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 24px;
  }

  .ems-case-study__outcomes::before {
    display: none;
  }

  .ems-case-study__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .ems-case-study__stat-label {
    max-width: none;
  }
}

@media (max-width: 991px) {
  .ems-case-study__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-case-study__media {
    border-radius: 10px 10px 0 0;
  }

  .ems-case-study__body {
    padding: 0 24px;
  }

  .ems-case-study__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-case-study__person,
  .ems-case-study__quote {
    max-width: 452px;
  }
}

@media (max-width: 767px) {

  .ems-case-study .ems-container {
    padding: 0 16px;
  }

  .ems-case-study__card {
    gap: 24px;
    padding-bottom: 20px;
  }

  .ems-case-study__media {
    padding: 24px 18px 28px;
  }

  .ems-case-study__body,
  .ems-case-study__outcomes {
    padding: 0 18px;
  }

  .ems-case-study__person {
    margin-top: 22px;
  }

  .ems-case-study__name {
    font-size: 21px;
    line-height: 30px;
  }

  .ems-case-study__role,
  .ems-case-study__quote,
  .ems-case-study__text p {
    font-size: 15px;
  }

  .ems-case-study__title {
    font-size: 24px;
    line-height: 32px;
  }

  .ems-case-study__stat {
    padding: 16px;
    gap: 16px;
  }
}

/* ============================================================= */
/* Section: 14-integrations                                       */
/* ============================================================= */
/* ============================================================= */
/* 14. EMS Billing Software Integrations ("C2") — Figma 12563:1445 */
/* ============================================================= */
.ems-integrations__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ems-integrations__title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
}

.ems-integrations__lead {
  max-width: 812px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

/* ---------- Diagram (12563:1451, 1240 x 580) ---------- */
.ems-integrations__diagram {
  display: grid;
  grid-template-columns: minmax(0, 378px) 484px minmax(0, 378px);
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 44.6px 0 36px;
}

.ems-integrations__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 26px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 13px rgba(39, 55, 117, 0.09);
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease);
}

.ems-integrations__card:hover {
  translate: 0 -4px;
  box-shadow: 0 14px 30px rgba(39, 55, 117, 0.14);
}

.ems-integrations__card--billing {
  grid-column: 1 / -1;
  justify-self: center;
  width: 459px;
  max-width: 100%;
  min-height: 0;
}

.ems-integrations__card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ems-integrations__card-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef1fb;
  transition: background-color 0.35s ease;
}

.ems-integrations__card-icon img {
  display: block;
  max-width: none;
}

.ems-integrations__card:hover .ems-integrations__card-icon {
  background: rgba(252, 93, 97, 0.14);
}

.ems-integrations__card-heading {
  display: flex;
  flex-direction: column;
  gap: 8.25px;
}

.ems-integrations__card-title {
  color: var(--ems-blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 23.76px;
}

.ems-integrations__card-bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ems-orange);
  transition: width 0.35s var(--ems-ease);
}

.ems-integrations__card:hover .ems-integrations__card-bar {
  width: 42px;
}

.ems-integrations__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.ems-integrations__card--clearing .ems-integrations__logos:last-child {
  width: 319px;
  max-width: 100%;
}

.ems-integrations__logo {
  flex: 0 1 139px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 10px;
  border: 1px solid #eff2ff;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ems-integrations__logo:hover {
  border-color: rgba(39, 55, 117, 0.25);
  box-shadow: 0 6px 14px rgba(39, 55, 117, 0.1);
}

.ems-integrations__logo-box {
  position: relative;
  display: block;
  flex: none;
  max-width: 100%;
  overflow: hidden;
  transition: scale 0.3s var(--ems-ease);
}

.ems-integrations__logo:hover .ems-integrations__logo-box {
  scale: 1.06;
}

.ems-integrations__logo-box img {
  position: absolute;
  display: block;
  max-width: none;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Per-logo slot sizes and crops, copied from the Figma image fills. */
.ems-integrations__logo--eso .ems-integrations__logo-box { width: 110px; aspect-ratio: 110 / 38; }
.ems-integrations__logo--eso img { left: 35.14%; top: 0.97%; width: 26.22%; height: 99.33%; }
.ems-integrations__logo--imagetrend .ems-integrations__logo-box { width: 122px; aspect-ratio: 122 / 25; }
.ems-integrations__logo--emscharts .ems-integrations__logo-box { width: 121px; aspect-ratio: 121 / 25; }
:is(.ems-integrations__logo--imagetrend, .ems-integrations__logo--emscharts, .ems-integrations__logo--availity) img { object-fit: cover; }
.ems-integrations__logo--zoll .ems-integrations__logo-box { width: 122px; aspect-ratio: 122 / 37; }
.ems-integrations__logo--zoll img { left: -0.41%; top: -59.91%; width: 100%; height: 219.82%; }
.ems-integrations__logo--availity .ems-integrations__logo-box { width: 101px; aspect-ratio: 101 / 25; }
.ems-integrations__logo--office-ally { flex-basis: 150px; }
.ems-integrations__logo--office-ally .ems-integrations__logo-box { width: 143px; aspect-ratio: 143 / 25; }
.ems-integrations__logo--office-ally img { left: 2.21%; width: 95.57%; }
.ems-integrations__logo--waystar .ems-integrations__logo-box { width: 119px; aspect-ratio: 119 / 25; }
.ems-integrations__logo--waystar img { left: 0.96%; width: 97.25%; }
.ems-integrations__logo--trizetto .ems-integrations__logo-box { width: 116px; aspect-ratio: 116 / 24; }
.ems-integrations__logo--trizetto img { left: 6.47%; top: -9.62%; width: 87.07%; height: 190.08%; }
.ems-integrations__logo--rescuenet { flex: 0 0 auto; }
.ems-integrations__logo--rescuenet .ems-integrations__logo-box { width: 62px; aspect-ratio: 62 / 31; }
.ems-integrations__logo--rescuenet img { left: 12.03%; top: -0.84%; width: 77.7%; height: 100.84%; }
.ems-integrations__logo--traumasoft .ems-integrations__logo-box { width: 129px; aspect-ratio: 129 / 25; }
.ems-integrations__logo--traumasoft img { left: -0.34%; top: 20.83%; width: 100.34%; height: 62.72%; }
.ems-integrations__logo--angeltrack { flex-basis: 150px; }
.ems-integrations__logo--angeltrack .ems-integrations__logo-box { width: 89px; aspect-ratio: 89 / 37; }
.ems-integrations__logo--angeltrack img { left: 1.12%; top: -1.5%; width: 96.63%; height: 100.72%; }

/* Center: connectors + hub */
.ems-integrations__mid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ems-integrations__hline {
  position: relative;
  flex: none;
  width: 102px;
  height: 10.667px;
}

.ems-integrations__hline--left { margin: 0 17px 0 15px; }
.ems-integrations__hline--right { margin: 0 17px 0 15px; }

.ems-integrations__hline img,
.ems-integrations__vline img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112.667px;
  height: 10.667px;
  max-width: none;
  translate: -50% -50%;
}

.ems-integrations__hline--left img {
  rotate: 180deg;
}

.ems-integrations__vline {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  width: 10.667px;
  height: 102px;
  margin: 6.8px 0 11px 2px;
}

.ems-integrations__vline img {
  rotate: 90deg;
}

.ems-integrations__hub {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 216px;
  border-radius: 108px;
  box-shadow: 0 4px 20px rgba(39, 55, 117, 0.12);
  transition: box-shadow 0.4s var(--ems-ease);
}

.ems-integrations__hub:hover {
  box-shadow: 0 8px 34px rgba(39, 55, 117, 0.22);
}

.ems-integrations__hub-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 194px;
  height: 194px;
  border-radius: 97px;
  background: #fcfcfe;
  text-align: center;
}

/* Dashed ring lives on a pseudo-element so it can turn without turning the text. */
.ems-integrations__hub-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed var(--ems-blue);
  border-radius: 50%;
  pointer-events: none;
}

.ems-integrations.is-in .ems-integrations__hub-core::before {
  animation: ems-integrations-spin 18s linear 1.2s infinite;
}

/* Ongoing motion once revealed (same idea as the bh-int / el-int hubs on other pages):
   the hub radiates a soft ripple, its linked rings drift, and data pulses travel from the
   hub out along each connector to the three cards. */
.ems-integrations__hub {
  position: relative;
}

.ems-integrations__hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(39, 55, 117, 0.18);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.ems-integrations.is-in .ems-integrations__hub::after {
  animation: ems-integrations-ripple 2.8s ease-out 1.6s infinite;
}

.ems-integrations.is-in .ems-integrations__hub-mark span {
  animation: ems-integrations-drift 3.6s ease-in-out 1.4s infinite;
}

.ems-integrations.is-in .ems-integrations__hub-mark span + span {
  animation-direction: reverse;
}

.ems-integrations__hline::after,
.ems-integrations__vline::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ems-orange);
  box-shadow: 0 0 0 3px rgba(252, 93, 97, 0.22), 0 0 12px rgba(252, 93, 97, 0.65);
  opacity: 0;
  pointer-events: none;
}

.ems-integrations__hline::after {
  top: 50%;
  margin-top: -4.5px;
}

.ems-integrations__vline::after {
  left: 50%;
  margin-left: -4.5px;
}

/* Left connector: hub is on its right, so the pulse runs right-to-left. */
.ems-integrations.is-in .ems-integrations__hline--left::after {
  animation: ems-integrations-pulse-rev 2.4s ease-in-out 1.8s infinite;
}

.ems-integrations.is-in .ems-integrations__hline--right::after {
  animation: ems-integrations-pulse 2.4s ease-in-out 2.2s infinite;
}

.ems-integrations.is-in .ems-integrations__vline::after {
  animation: ems-integrations-pulse-down 2.4s ease-in-out 2.6s infinite;
}

@keyframes ems-integrations-pulse {
  0%   { opacity: 0; left: 4%; }
  12%, 80% { opacity: 1; }
  100% { opacity: 0; left: 88%; }
}

@keyframes ems-integrations-pulse-rev {
  0%   { opacity: 0; left: 88%; }
  12%, 80% { opacity: 1; }
  100% { opacity: 0; left: 4%; }
}

@keyframes ems-integrations-pulse-down {
  0%   { opacity: 0; top: 4%; }
  12%, 80% { opacity: 1; }
  100% { opacity: 0; top: 88%; }
}

@keyframes ems-integrations-ripple {
  0%   { opacity: 0.9; scale: 1; }
  100% { opacity: 0; scale: 1.22; }
}

@keyframes ems-integrations-drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 3px 0; }
}

.ems-integrations__hub-mark {
  position: relative;
  display: block;
  width: 50px;
  height: 32px;
}

.ems-integrations__hub-mark span {
  position: absolute;
  top: -0.37px;
  left: 0;
  width: 32px;
  height: 32px;
  border: 3px solid var(--ems-blue);
  border-radius: 16px;
  transition: translate 0.4s var(--ems-ease);
}

.ems-integrations__hub-mark span + span {
  left: 18px;
  border-color: var(--ems-orange);
}

.ems-integrations__hub-title {
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 15px;
}

.ems-integrations__hub-text {
  color: var(--ems-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

/* ---------- Benefits bar (12563:1528) ---------- */
.ems-integrations__bar {
  position: relative;
  padding: 20px 12px;
  border-radius: 18px;
  background: #ffffff;
  filter: drop-shadow(0 10px 15px rgba(39, 55, 117, 0.08));
}

.ems-integrations__bar-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ems-integrations__bar-border rect {
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  fill: none;
  stroke: url(#ems-integrations-bar-stroke);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.ems-integrations__bar:hover .ems-integrations__bar-border rect {
  animation: ems-integrations-march 1.2s linear infinite;
}

.ems-integrations__benefits {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ems-integrations__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 0 19px;
}

.ems-integrations__benefit:first-child {
  padding-left: 18px;
}

.ems-integrations__benefit-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #ffffff;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.15));
  transition: scale 0.3s var(--ems-ease);
}

.ems-integrations__benefit-icon img {
  display: block;
  max-width: none;
}

.ems-integrations__benefit:hover .ems-integrations__benefit-icon {
  scale: 1.12;
}

.ems-integrations__benefit-label {
  padding-bottom: 1px;
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.ems-integrations__divider {
  flex: none;
  width: 1px;
  height: 43px;
  background: #e5e7eb;
}

/* ---------- Entrance ---------- */
.ems-integrations.is-armed:not(.is-in) :is(.ems-integrations__eyebrow, .ems-integrations__title, .ems-integrations__lead, .ems-integrations__card, .ems-integrations__logo, .ems-integrations__hub, .ems-integrations__hline img, .ems-integrations__vline img, .ems-integrations__bar, .ems-integrations__benefit) {
  opacity: 0;
}

.ems-integrations.is-in .ems-integrations__eyebrow { animation: ems-fade 0.6s var(--ems-ease) 0.05s backwards; }
.ems-integrations.is-in .ems-integrations__title { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-integrations.is-in .ems-integrations__lead { animation: ems-rise 0.7s var(--ems-ease) 0.2s backwards; }
.ems-integrations.is-in .ems-integrations__hub { animation: ems-pop 0.8s var(--ems-ease) 0.3s backwards; }
.ems-integrations.is-in .ems-integrations__hline img,
.ems-integrations.is-in .ems-integrations__vline img { animation: ems-integrations-draw 0.7s var(--ems-ease) 0.75s backwards; }
.ems-integrations.is-in .ems-integrations__vline img { animation-delay: 0.9s; }
.ems-integrations.is-in .ems-integrations__card--epcr { animation: ems-from-left 0.7s var(--ems-ease) 1s backwards; }
.ems-integrations.is-in .ems-integrations__card--clearing { animation: ems-from-right 0.7s var(--ems-ease) 1s backwards; }
.ems-integrations.is-in .ems-integrations__card--billing { animation: ems-rise 0.7s var(--ems-ease) 1.15s backwards; }
.ems-integrations.is-in .ems-integrations__logo { animation: ems-pop 0.5s var(--ems-ease) 1.3s backwards; }
.ems-integrations.is-in .ems-integrations__logos:nth-of-type(1) .ems-integrations__logo:nth-child(2) { animation-delay: 1.38s; }
.ems-integrations.is-in .ems-integrations__logos:nth-of-type(1) .ems-integrations__logo:nth-child(3) { animation-delay: 1.46s; }
.ems-integrations.is-in .ems-integrations__logos:nth-of-type(2) .ems-integrations__logo:nth-child(1) { animation-delay: 1.46s; }
.ems-integrations.is-in .ems-integrations__logos:nth-of-type(2) .ems-integrations__logo:nth-child(2) { animation-delay: 1.54s; }
.ems-integrations.is-in .ems-integrations__bar { animation: ems-rise 0.7s var(--ems-ease) 0.5s backwards; }
.ems-integrations.is-in .ems-integrations__benefit { animation: ems-rise 0.6s var(--ems-ease) 0.7s backwards; }
.ems-integrations.is-in .ems-integrations__benefit:nth-child(3) { animation-delay: 0.8s; }
.ems-integrations.is-in .ems-integrations__benefit:nth-child(5) { animation-delay: 0.9s; }
.ems-integrations.is-in .ems-integrations__benefit:nth-child(7) { animation-delay: 1s; }

@keyframes ems-integrations-draw {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

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

@keyframes ems-integrations-march {
  to { stroke-dashoffset: -14; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .ems-integrations__diagram {
    grid-template-columns: minmax(0, 1fr) 450px minmax(0, 1fr);
    column-gap: 0;
  }

  .ems-integrations__hline {
    width: 85px;
  }

  .ems-integrations__hline--left,
  .ems-integrations__hline--right {
    margin: 0 8px;
  }

  .ems-integrations__hline img {
    width: 95.667px;
  }

  .ems-integrations__card {
    padding: 26px 18px;
  }

  .ems-integrations__logos {
    gap: 12px;
  }
}

@media (max-width: 1199px) {

  .ems-integrations__diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 0;
  }

  .ems-integrations__mid {
    grid-column: 1 / -1;
    order: -2;
  }

  .ems-integrations__hline {
    display: none;
  }

  .ems-integrations__vline {
    order: -1;
    margin: 10px 0 14px;
  }

  .ems-integrations__card {
    padding: 26px 24px;
  }

  .ems-integrations__card--billing {
    margin-top: 24px;
  }

  .ems-integrations__card--clearing .ems-integrations__logos:last-child {
    width: auto;
  }

  .ems-integrations__bar {
    margin-top: 40px;
  }

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

  .ems-integrations__divider {
    display: none;
  }

  .ems-integrations__benefit,
  .ems-integrations__benefit:first-child {
    padding: 0 12px;
  }
}

@media (max-width: 767px) {

  .ems-integrations .ems-container {
    padding: 0 16px;
  }

  .ems-integrations__title {
    font-size: 26px;
    line-height: 36px;
  }

  .ems-integrations__lead {
    font-size: 15px;
  }

  .ems-integrations__diagram {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    margin-top: 32px;
  }

  .ems-integrations__vline {
    margin: -6px 0 -6px;
    height: 70px;
  }

  .ems-integrations__vline img {
    width: 80.667px;
  }

  .ems-integrations__card--billing {
    margin-top: 0;
    width: 100%;
  }

  .ems-integrations__card {
    min-height: 0;
    padding: 22px 16px;
  }

  .ems-integrations__logos {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ems-integrations__logo,
  .ems-integrations__logo--office-ally,
  .ems-integrations__logo--angeltrack {
    flex: 1 1 120px;
  }

  .ems-integrations__logo--rescuenet {
    flex: 0 1 82px;
  }

  .ems-integrations__card--clearing .ems-integrations__logos:last-child {
    width: auto;
  }

  .ems-integrations__bar {
    margin-top: 32px;
    padding: 20px 8px;
  }

  .ems-integrations__benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-integrations__benefit-label {
    white-space: normal;
  }
}

/* ============================================================= */
/* Section: 15-coverage                                           */
/* ============================================================= */
/* ============================================================= */
/* 15. Nationwide Coverage — Figma 12563:1562 (1440 x 723)       */
/* ============================================================= */
.ems-coverage__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 909px;
  margin: 0 auto;
  text-align: center;
}

.ems-coverage__title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
}

.ems-coverage__lead {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

.ems-coverage__grid {
  display: flex;
  align-items: stretch;
  gap: 40px;
  margin-top: 40px;
}

/* Shared card skin (both "Key Impact Highlights" frames) */
.ems-coverage__intro,
.ems-coverage__panel {
  position: relative;
  border: 1px solid #eff2ff;
  border-radius: 16px;
  background: rgba(239, 242, 255, 0.28);
  box-shadow: 0 2.704px 11.561px #eff2ff, inset 0 0 64px #eff2ff;
}

/* ---------- Intro card (12563:1569) ---------- */
.ems-coverage__intro {
  flex: 0 0 297px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
}

.ems-coverage__logo {
  display: block;
  width: 227px;
  height: 37px;
}

.ems-coverage__intro-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ems-coverage__intro-title {
  color: var(--ems-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.ems-coverage__intro-text {
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.ems-coverage__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 8px 14px;
  border-radius: 75px;
  background: var(--ems-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 20.8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, translate 0.3s var(--ems-ease);
}

.ems-coverage__btn:hover,
.ems-coverage__btn:focus-visible {
  background: var(--ems-blue);
  color: #ffffff;
  text-decoration: none;
  translate: 0 -2px;
  box-shadow: 0 10px 20px rgba(39, 55, 117, 0.2);
}

.ems-coverage__btn-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #ffffff;
  transition: translate 0.3s var(--ems-ease);
}

.ems-coverage__btn-icon img {
  display: block;
  max-width: none;
}

.ems-coverage__btn:hover .ems-coverage__btn-icon,
.ems-coverage__btn:focus-visible .ems-coverage__btn-icon {
  translate: 4px 0;
}

/* ---------- Map panel (12563:1630): Figma's absolute layout at 1240 ---------- */
.ems-coverage__panel {
  flex: 1 1 0;
  min-width: 0;
  height: 441px;
  overflow: hidden;
}

.ems-coverage__map {
  position: absolute;
  left: 93px;
  top: 28.4px;
  display: block;
  width: 596.442px;
  height: 338.023px;
  max-width: none;
}

.ems-coverage__line {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ems-coverage__line-turn {
  position: relative;
  flex: none;
  display: block;
}

.ems-coverage__line-turn img {
  position: absolute;
  display: block;
  max-width: none;
  width: auto;
  height: auto;
}

.ems-coverage__line--california { left: 217.29px; top: 167.29px; width: 37.739px; height: 82.439px; }
.ems-coverage__line--california .ems-coverage__line-turn { width: 81.043px; height: 16.353px; rotate: 105.75deg; }
.ems-coverage__line--california img { left: -3.29%; top: -2.75%; }

.ems-coverage__line--texas { left: 320.98px; top: 250.31px; width: 103.992px; height: 111.843px; }
.ems-coverage__line--texas .ems-coverage__line-turn { width: 97.492px; height: 56.548px; rotate: 127.21deg; }
.ems-coverage__line--texas img { left: -2.74%; top: 0.53%; }

.ems-coverage__line--florida { left: 583.4px; top: 278.82px; width: 112.603px; height: 119.626px; }
.ems-coverage__line--florida .ems-coverage__line-turn { width: 101.184px; height: 64.557px; }
.ems-coverage__line--florida img { left: -2.64%; top: 0.47%; }

.ems-coverage__line--georgia { left: 594.94px; top: 195.72px; width: 102.057px; height: 106.365px; }
.ems-coverage__line--georgia .ems-coverage__line-turn { width: 85.609px; height: 63.141px; }
.ems-coverage__line--georgia img { left: -3.11%; top: -4.22%; }

.ems-coverage__line--illinois { left: 528.5px; top: 79.9px; width: 168.5px; height: 168.806px; }
.ems-coverage__line--illinois .ems-coverage__line-turn { width: 121.164px; height: 119.57px; }
.ems-coverage__line--illinois img { left: -2.2%; top: -2.23%; }

/* Figma: -scale-y-100 + rotate(52.79deg) — scale applies first, as with these properties. */
:is(.ems-coverage__line--florida, .ems-coverage__line--georgia, .ems-coverage__line--illinois) .ems-coverage__line-turn {
  rotate: 52.79deg;
  scale: 1 -1;
}

.ems-coverage__states {
  position: static;
}

.ems-coverage__state {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 190px;
  height: 72px;
  padding: 0 17px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease);
}

.ems-coverage__state:hover {
  translate: 0 -4px;
  box-shadow: 0 12px 26px rgba(39, 55, 117, 0.16);
}

.ems-coverage__state--california { left: 20px; top: 212.41px; width: 197px; }
.ems-coverage__state--texas { left: 249px; top: 341.41px; width: 197px; box-shadow: 0 0 15px -3px rgba(0, 0, 0, 0.1); }
.ems-coverage__state--new-york { left: 695px; top: 44.41px; }
.ems-coverage__state--illinois { left: 695px; top: 137.41px; }
.ems-coverage__state--georgia { left: 695px; top: 230.41px; }
.ems-coverage__state--florida { left: 695px; top: 323.41px; }

.ems-coverage__state-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--ems-blue);
  transition: scale 0.35s var(--ems-ease);
}

.ems-coverage__state-icon--orange {
  background: var(--ems-orange);
}

.ems-coverage__state-icon img {
  display: block;
  max-width: none;
}

.ems-coverage__state:hover .ems-coverage__state-icon {
  scale: 1.1;
}

.ems-coverage__state-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3.25px;
}

.ems-coverage__state-name {
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.ems-coverage__state-note {
  display: block;
  padding-bottom: 0.75px;
  color: var(--ems-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 12.5px;
}

/* ---------- Entrance ---------- */
.ems-coverage.is-armed:not(.is-in) :is(.ems-coverage__eyebrow, .ems-coverage__title, .ems-coverage__lead, .ems-coverage__intro, .ems-coverage__logo, .ems-coverage__intro-copy, .ems-coverage__btn, .ems-coverage__panel, .ems-coverage__map, .ems-coverage__line, .ems-coverage__state) {
  opacity: 0;
}

.ems-coverage.is-in .ems-coverage__eyebrow { animation: ems-fade 0.6s var(--ems-ease) 0.05s backwards; }
.ems-coverage.is-in .ems-coverage__title { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-coverage.is-in .ems-coverage__lead { animation: ems-rise 0.7s var(--ems-ease) 0.2s backwards; }
.ems-coverage.is-in .ems-coverage__intro { animation: ems-from-left 0.7s var(--ems-ease) 0.3s backwards; }
.ems-coverage.is-in .ems-coverage__logo { animation: ems-fade 0.6s var(--ems-ease) 0.55s backwards; }
.ems-coverage.is-in .ems-coverage__intro-copy { animation: ems-rise 0.6s var(--ems-ease) 0.62s backwards; }
.ems-coverage.is-in .ems-coverage__btn { animation: ems-pop 0.6s var(--ems-ease) 0.75s backwards; }
.ems-coverage.is-in .ems-coverage__panel { animation: ems-rise 0.7s var(--ems-ease) 0.35s backwards; }
.ems-coverage.is-in .ems-coverage__map { animation: ems-coverage-map 1s var(--ems-ease) 0.5s backwards; }
.ems-coverage.is-in .ems-coverage__state { animation: ems-pop 0.55s var(--ems-ease) 0.9s backwards; }
.ems-coverage.is-in .ems-coverage__state--texas { animation-delay: 1s; }
.ems-coverage.is-in .ems-coverage__state--new-york { animation-delay: 1.1s; }
.ems-coverage.is-in .ems-coverage__state--illinois { animation-delay: 1.2s; }
.ems-coverage.is-in .ems-coverage__state--georgia { animation-delay: 1.3s; }
.ems-coverage.is-in .ems-coverage__state--florida { animation-delay: 1.4s; }
.ems-coverage.is-in .ems-coverage__line { animation: ems-fade 0.6s var(--ems-ease) 1.15s backwards; }
.ems-coverage.is-in .ems-coverage__line--texas { animation-delay: 1.25s; }
.ems-coverage.is-in .ems-coverage__line--illinois { animation-delay: 1.45s; }
.ems-coverage.is-in .ems-coverage__line--georgia { animation-delay: 1.55s; }
.ems-coverage.is-in .ems-coverage__line--florida { animation-delay: 1.65s; }

@keyframes ems-coverage-map {
  from { opacity: 0; scale: 0.94; }
  to   { opacity: 1; scale: 1; }
}

/* ---------- Responsive ---------- */
/* The map panel needs its full 901px Figma stage; below that the callouts move under the map. */
@media (max-width: 1279px) {
  .ems-coverage__grid {
    flex-direction: column;
    gap: 24px;
  }

  .ems-coverage__intro {
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 32px;
  }

  .ems-coverage__logo {
    grid-column: 1 / -1;
  }

  .ems-coverage__btn {
    width: auto;
    padding: 8px 24px;
  }

  .ems-coverage__panel {
    flex: none;
    height: auto;
    padding: 28px 24px 24px;
  }

  .ems-coverage__map {
    position: static;
    width: 100%;
    max-width: 596.442px;
    height: auto;
    margin: 0 auto;
  }

  .ems-coverage__line {
    display: none;
  }

  .ems-coverage__states {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
  }

  .ems-coverage__state,
  .ems-coverage__state--california,
  .ems-coverage__state--texas {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 991px) {

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

@media (max-width: 767px) {

  .ems-coverage .ems-container {
    padding: 0 16px;
  }

  .ems-coverage__title {
    font-size: 26px;
    line-height: 36px;
  }

  .ems-coverage__lead {
    font-size: 15px;
  }

  .ems-coverage__grid {
    margin-top: 32px;
  }

  .ems-coverage__intro {
    display: flex;
    padding: 22px 18px;
  }

  .ems-coverage__logo {
    max-width: 100%;
    height: auto;
  }

  .ems-coverage__btn {
    width: 100%;
  }

  .ems-coverage__panel {
    padding: 20px 14px 16px;
  }

  .ems-coverage__states {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ems-coverage__state-note {
    font-size: 12px;
    line-height: 16px;
  }
}

/* ============================================================= */
/* Section: 16a-payers                                            */
/* ============================================================= */
/* ============================================================= */
/* 16a PAYER KNOWLEDGE — Figma 12563:2104 (in wrapper 12563:2103)  */
/* 30px (half the 60px gap) + wrapper inset 20px + 40px padding   */
/* = 90px above; the process-flow banner (16b) sits 40px below.   */
/* ============================================================= */
.ems-payers {
  background: #ffffff;
}

.ems-payers-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 29px;
}

.ems-payers-copy {
  display: flex;
  flex: 0 0 452px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ems-payers .ems-payers-title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.ems-payers-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--ems-orange);
  transform-origin: left center;
}

.ems-payers-text {
  max-width: 448px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
}

.ems-payers-board {
  display: flex;
  flex: 0 1 719px;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  min-width: 0;
}

.ems-payers .ems-payers-board-title {
  align-self: center;
  background: linear-gradient(90deg, #273775 29.808%, #fc5d61 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.ems-payers .ems-payers-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 60px;
  gap: 12px;
}

.ems-payers-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: translate 0.3s var(--ems-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ems-payers-logo img {
  display: block;
  height: auto;
  object-fit: contain;
  transition: scale 0.3s var(--ems-ease);
}

.ems-payers-logo:hover {
  translate: 0 -3px;
  border-color: rgba(39, 55, 117, 0.25);
  box-shadow: 0 10px 20px -12px rgba(39, 55, 117, 0.35);
}

.ems-payers-logo:hover img {
  scale: 1.06;
}

.ems-payers-logo--more {
  background: #eff2ff;
  border-color: #eff2ff;
  color: var(--ems-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.ems-payers-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  background: #eff2ff;
  border-radius: 9999px;
  color: var(--ems-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.ems-payers-status img {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

.ems-payers-status span {
  flex: 1 1 0;
  min-width: 0;
}

/* ---------- Entrance ---------- */
@keyframes ems-payers-grow {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes ems-payers-ping {
  0%, 100% { scale: 1; }
  50%      { scale: 1.12; }
}

.ems-payers.is-armed:not(.is-in) :is(.ems-payers-eyebrow, .ems-payers-title, .ems-payers-line, .ems-payers-text, .ems-payers-board-title, .ems-payers-logo, .ems-payers-status) {
  opacity: 0;
}

.ems-payers.is-in .ems-payers-eyebrow { animation: ems-from-left 0.7s var(--ems-ease) 0.05s backwards; }
.ems-payers.is-in .ems-payers-title   { animation: ems-from-left 0.7s var(--ems-ease) 0.15s backwards; }
.ems-payers.is-in .ems-payers-line    { animation: ems-payers-grow 0.6s var(--ems-ease) 0.4s backwards; }
.ems-payers.is-in .ems-payers-text    { animation: ems-rise 0.7s var(--ems-ease) 0.3s backwards; }
.ems-payers.is-in .ems-payers-board-title { animation: ems-fade 0.7s ease 0.2s backwards; }
.ems-payers.is-in .ems-payers-logo {
  animation: ems-pop 0.5s var(--ems-ease) calc(0.3s + var(--i, 0) * 0.05s) backwards;
}
.ems-payers.is-in .ems-payers-status { animation: ems-rise 0.7s var(--ems-ease) 1s backwards; }
.ems-payers.is-in .ems-payers-status img { animation: ems-payers-ping 1.6s ease-in-out 1.7s 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-payers-layout {
    flex-direction: column;
    gap: 40px;
  }

  .ems-payers-copy {
    flex: none;
    width: 100%;
    max-width: 720px;
  }

  .ems-payers-text {
    max-width: none;
  }

  .ems-payers-board {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 767px) {

  .ems-payers .ems-payers-title {
    font-size: 26px;
    line-height: 34px;
  }

  .ems-payers-text {
    font-size: 15px;
    line-height: 24px;
  }

  .ems-payers .ems-payers-board-title {
    font-size: 18px;
  }

  .ems-payers .ems-payers-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 56px;
    gap: 10px;
  }

  .ems-payers-logo {
    padding: 10px;
  }

  .ems-payers-status {
    align-items: flex-start;
    padding: 10px 16px;
    border-radius: 16px;
  }
}

@media (max-width: 399px) {
  .ems-payers .ems-payers-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================= */
/* Section: 16b-rules                                             */
/* ============================================================= */
/* ============================================================= */
/* 16b EMS PAYER RULES BANNER — Figma 12563:2166 (1200 x 278.5)    */
/* Sits 40px under 16a and 40px above 16c (wrapper 12563:2103).    */
/* The dashed arcs draw in, then a light spark travels each one.   */
/* ============================================================= */
.ems-rules {
  background: #ffffff;
}

.ems-rules-banner {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: var(--ems-blue);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  isolation: isolate;
}

.ems-rules .ems-rules-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  border-radius: 16px;
  pointer-events: none;
}

.ems-rules-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* ---------- Title block ---------- */
.ems-rules-head {
  display: flex;
  flex: 0 0 237px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18.5px;
  padding-right: 1px;
  border-right: 1px solid rgba(71, 85, 105, 0.5);
}

.ems-rules-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9.069px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 9.976px;
  text-transform: capitalize;
  white-space: nowrap;
}

.ems-rules .ems-rules-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  white-space: nowrap;
}

.ems-rules-line {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--ems-orange);
  transform-origin: left center;
}

/* ---------- Steps ---------- */
.ems-rules-flow {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
  height: 198.5px;
}

.ems-rules .ems-rules-steps {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
}

.ems-rules-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 110px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 110px;
  height: 170px;
  color: #ffffff;
  text-align: center;
}

.ems-rules-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
  transition: scale 0.35s var(--ems-ease), box-shadow 0.35s ease;
}

.ems-rules-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.ems-rules-step:hover .ems-rules-icon {
  scale: 1.08;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.ems-rules .ems-rules-step-title {
  width: 100%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.ems-rules-step-text {
  width: 100%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 400;
  line-height: 12.5px;
}

/* Dashed arcs (Figma 12563:2210-2213): 87 x 9 boxes at x 89 / 241 / 393 / 543
   of the 678px steps area, y 10. The SVG keeps its own 88.16 x 11.52 size. */
.ems-rules-connector {
  position: absolute;
  top: 10px;
  width: 87px;
  height: 9px;
  pointer-events: none;
}

.ems-rules-connector--1 { left: 13.127%; }
.ems-rules-connector--2 { left: 35.546%; }
.ems-rules-connector--3 { left: 57.965%; }
.ems-rules-connector--4 { left: 80.088%; }

.ems-rules .ems-rules-connector img {
  position: absolute;
  top: -0.5px;
  left: -0.66px;
  display: block;
  max-width: none;
}

.ems-rules-spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7);
  opacity: 0;
  offset-path: path("M1 9.5 C 24 -2.5, 63 -2.5, 87.4 9.5");
  offset-rotate: 0deg;
  offset-anchor: 50% 50%;
}

/* ---------- Proof column ---------- */
.ems-rules-proof {
  display: flex;
  flex: 0 0 165px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 10px;
  padding: 0 24px 0 25px;
  border-left: 1px solid #ffffff;
}

.ems-rules .ems-rules-clip {
  display: block;
  width: 50px;
  height: 63px;
  margin: -2px;
  max-width: none;
}

.ems-rules-proof p {
  width: 142px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 16.25px;
  text-align: center;
}

/* ---------- Entrance + motion ---------- */
@keyframes ems-rules-grow {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@keyframes ems-rules-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes ems-rules-travel {
  0%   { offset-distance: 0%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes ems-rules-tick {
  0%, 80%, 100% { rotate: 0deg; }
  85% { rotate: -6deg; }
  90% { rotate: 5deg; }
  95% { rotate: -3deg; }
}

.ems-rules.is-armed:not(.is-in) :is(.ems-rules-banner, .ems-rules-chip, .ems-rules-title, .ems-rules-line, .ems-rules-step, .ems-rules-connector, .ems-rules-proof) {
  opacity: 0;
}

.ems-rules.is-in .ems-rules-banner { animation: ems-rise 0.8s var(--ems-ease) 0s backwards; }
.ems-rules.is-in .ems-rules-chip   { animation: ems-from-left 0.6s var(--ems-ease) 0.25s backwards; }
.ems-rules.is-in .ems-rules-title  { animation: ems-from-left 0.7s var(--ems-ease) 0.35s backwards; }
.ems-rules.is-in .ems-rules-line   { animation: ems-rules-grow 0.6s var(--ems-ease) 0.6s backwards; }

.ems-rules.is-in .ems-rules-step {
  animation: ems-rise 0.6s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.22s) backwards;
}

.ems-rules.is-in .ems-rules-step .ems-rules-icon {
  animation: ems-pop 0.5s var(--ems-ease) calc(0.5s + var(--i, 0) * 0.22s) backwards;
}

.ems-rules.is-in .ems-rules-connector {
  animation: ems-rules-draw 0.5s ease-out calc(0.7s + var(--i, 0) * 0.22s) backwards;
}

.ems-rules.is-in .ems-rules-spark {
  animation: ems-rules-travel 1.6s ease-in-out calc(1.8s + var(--i, 0) * 0.4s) infinite;
}

.ems-rules.is-in .ems-rules-proof { animation: ems-from-right 0.7s var(--ems-ease) 1.5s backwards; }
.ems-rules.is-in .ems-rules-clip  { animation: ems-rules-tick 4s ease-in-out 2.4s infinite; transform-origin: 50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-rules-inner {
    flex-wrap: wrap;
    gap: 28px 20px;
  }

  .ems-rules-head {
    flex: 1 1 100%;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .ems-rules .ems-rules-title {
    white-space: normal;
  }

  .ems-rules .ems-rules-title br {
    display: none;
  }

  .ems-rules-flow {
    flex: 1 1 100%;
    height: auto;
  }

  .ems-rules-step {
    height: auto;
    min-height: 150px;
  }

  .ems-rules-proof {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .ems-rules-proof p {
    width: auto;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .ems-rules-banner {
    padding: 28px 20px;
  }

  .ems-rules .ems-rules-title {
    font-size: 26px;
    line-height: 32px;
  }

  .ems-rules .ems-rules-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    width: 100%;
  }

  .ems-rules-step {
    width: auto;
    min-height: 0;
  }

  .ems-rules-step:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 180px;
  }

  .ems-rules-step-text {
    font-size: 12px;
    line-height: 16px;
  }

  .ems-rules-connector {
    display: none;
  }
}

/* ============================================================= */
/* Section: 16c-coord                                             */
/* ============================================================= */
/* ============================================================= */
/* 16c PRIMARY PAYER COORDINATION — Figma 12563:2217 (1200 x 477)  */
/* 40px under the 16b banner + 40px section padding = 80px top;    */
/* 40px padding + 20px wrapper inset + 30px half-gap = 90px below. */
/* ============================================================= */
.ems-coord {
  background: #ffffff;
}

.ems-coord-layout {
  display: flex;
  align-items: flex-start;
  gap: 70px;
}

/* ---------- Copy ---------- */
.ems-coord-copy {
  display: flex;
  flex: 0 0 315px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ems-coord .ems-coord-title {
  color: var(--ems-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
}

.ems-coord-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--ems-orange);
  transform-origin: left center;
}

.ems-coord-text {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
}

/* ---------- Orbit (12563:2227, 385 x 300) ---------- */
.ems-coord-orbit {
  position: relative;
  display: flex;
  flex: 0 0 385px;
  align-items: center;
  justify-content: center;
  width: 385px;
  height: 300px;
}

.ems-coord-ring {
  position: absolute;
  top: calc(50% + 1.2px);
  left: calc(50% + 0.5px);
  width: 220px;
  height: 220px;
  border: 2px dashed #e5e7eb;
  border-radius: 110px;
  translate: -50% -50%;
}

.ems-coord-dot {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}

.ems-coord-dot--tl { top: 47.2px; left: 137px; background: #273775; }
.ems-coord-dot--tr { top: 47.2px; right: 136px; background: #563e85; }
.ems-coord-dot--bl { bottom: 43.8px; left: 137px; background: #fc5d61; }
.ems-coord-dot--br { bottom: 43.8px; right: 136px; background: #8f4588; }

.ems-coord-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  padding: 20px;
  background: #ffffff;
  border: 4px solid #eff2ff;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ems-coord-center p {
  width: 100%;
  color: var(--ems-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 22.5px;
  letter-spacing: -0.9px;
  text-align: center;
  text-transform: uppercase;
}

.ems-coord .ems-coord-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.ems-coord-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 160px;
  height: 48px;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: scale 0.3s var(--ems-ease), box-shadow 0.3s ease;
}

.ems-coord-card:hover {
  scale: 1.05;
  box-shadow: 0 16px 24px -6px rgba(39, 55, 117, 0.22);
}

.ems-coord-card--commercial { top: 16.2px; left: -30px; --dx: 90px; --dy: 80px; }
.ems-coord-card--medicare   { top: 15.24px; right: -61px; width: 164px; --dx: -90px; --dy: 80px; }
.ems-coord-card--auto       { top: 222.24px; left: -30px; --dx: 90px; --dy: -80px; }
.ems-coord-card--workers    { top: 222.24px; right: -61px; width: 164px; --dx: -90px; --dy: -80px; }

.ems-coord-card-ico {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
}

.ems-coord-card-ico img {
  display: block;
  width: 16px;
  height: 16px;
}

.ems-coord-card-label {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.ems-coord-card--commercial .ems-coord-card-ico { background: #dbeafe; }
.ems-coord-card--commercial .ems-coord-card-label { color: #273775; }
.ems-coord-card--medicare .ems-coord-card-ico { background: rgba(86, 62, 133, 0.1); }
.ems-coord-card--medicare .ems-coord-card-label { color: #563e85; }
.ems-coord-card--auto .ems-coord-card-ico { background: #ffedd5; }
.ems-coord-card--auto .ems-coord-card-label { color: #fc5d61; }
.ems-coord-card--workers .ems-coord-card-ico { background: #f3e8ff; }
.ems-coord-card--workers .ems-coord-card-label { flex: 0 0 101px; color: #c64d76; }

/* ---------- Payer types (12563:2260) ---------- */
.ems-coord-proof {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-width: 0;
  height: 300px;
  padding: 48px 20px 48px 21px;
  border-left: 1px solid #f1f5f9;
}

.ems-coord .ems-coord-proof-title {
  color: var(--ems-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.ems-coord .ems-coord-types {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.ems-coord-type {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 46px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
  transition: translate 0.3s var(--ems-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ems-coord-type img {
  display: block;
  width: 30px;
  height: 30px;
}

.ems-coord-type:hover {
  translate: 0 -4px;
  border-color: rgba(39, 55, 117, 0.3);
  box-shadow: 0 10px 18px -10px rgba(39, 55, 117, 0.45);
}

.ems-coord-proof-text {
  width: 100%;
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 22.75px;
  text-align: center;
}

/* ---------- Entrance + motion ---------- */
@keyframes ems-coord-grow {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

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

@keyframes ems-coord-in {
  from { opacity: 0; translate: var(--dx, 0) var(--dy, 0); scale: 0.6; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes ems-coord-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

@keyframes ems-coord-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  60%      { box-shadow: 0 0 0 7px transparent; }
}

.ems-coord-dot--tl { color: rgba(39, 55, 117, 0.35); }
.ems-coord-dot--tr { color: rgba(86, 62, 133, 0.35); }
.ems-coord-dot--bl { color: rgba(252, 93, 97, 0.35); }
.ems-coord-dot--br { color: rgba(143, 69, 136, 0.35); }

.ems-coord.is-armed:not(.is-in) :is(.ems-coord-eyebrow, .ems-coord-title, .ems-coord-line, .ems-coord-text, .ems-coord-ring, .ems-coord-dot, .ems-coord-center, .ems-coord-card, .ems-coord-proof-title, .ems-coord-type, .ems-coord-proof-text) {
  opacity: 0;
}

.ems-coord.is-in .ems-coord-eyebrow { animation: ems-from-left 0.7s var(--ems-ease) 0.05s backwards; }
.ems-coord.is-in .ems-coord-title   { animation: ems-from-left 0.7s var(--ems-ease) 0.15s backwards; }
.ems-coord.is-in .ems-coord-line    { animation: ems-coord-grow 0.6s var(--ems-ease) 0.4s backwards; }
.ems-coord.is-in .ems-coord-text    { animation: ems-rise 0.7s var(--ems-ease) 0.3s backwards; }

.ems-coord.is-in .ems-coord-ring {
  animation:
    ems-fade 0.8s ease 0.2s backwards,
    ems-coord-spin 40s linear 1s infinite;
}

.ems-coord.is-in .ems-coord-center { animation: ems-pop 0.7s var(--ems-ease) 0.25s backwards; }

.ems-coord.is-in .ems-coord-dot {
  animation:
    ems-pop 0.4s var(--ems-ease) 0.9s backwards,
    ems-coord-pulse 2.4s ease-out 1.4s infinite;
}

.ems-coord.is-in .ems-coord-dot--tr { animation-delay: 0.95s, 2s; }
.ems-coord.is-in .ems-coord-dot--bl { animation-delay: 1s, 2.6s; }
.ems-coord.is-in .ems-coord-dot--br { animation-delay: 1.05s, 3.2s; }

.ems-coord.is-in .ems-coord-card {
  animation:
    ems-coord-in 0.8s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.12s) backwards,
    ems-coord-bob 4.5s ease-in-out calc(1.6s + var(--i, 0) * 0.6s) infinite;
}

.ems-coord.is-in .ems-coord-proof-title { animation: ems-fade 0.7s ease 0.4s backwards; }
.ems-coord.is-in .ems-coord-type {
  animation: ems-pop 0.5s var(--ems-ease) calc(0.6s + var(--i, 0) * 0.1s) backwards;
}
.ems-coord.is-in .ems-coord-proof-text { animation: ems-rise 0.7s var(--ems-ease) 1.1s backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-coord-layout {
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 40px;
  }

  .ems-coord-copy {
    flex: 1 1 100%;
    max-width: none;
  }

  .ems-coord-orbit {
    margin: 0 61px 0 30px;
  }

  .ems-coord-proof {
    flex: 1 1 300px;
    max-width: 420px;
  }
}

@media (max-width: 991px) {
  .ems-coord-proof {
    flex: 1 1 100%;
    max-width: none;
    height: auto;
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid #f1f5f9;
  }
}

@media (max-width: 767px) {

  .ems-coord .ems-coord-title {
    font-size: 22px;
    line-height: 32px;
  }

  .ems-coord-text {
    font-size: 15px;
    line-height: 24px;
  }
}

/* Phones: the orbit no longer fits (476px with its overhanging cards), so the
   centre badge sits on top and the four payer cards drop into a 2 x 2 grid. */
@media (max-width: 575px) {
  .ems-coord-orbit {
    flex: 1 1 100%;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .ems-coord-ring,
  .ems-coord-dot {
    display: none;
  }

  .ems-coord .ems-coord-cards {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .ems-coord-card,
  .ems-coord-card--medicare,
  .ems-coord-card--workers {
    position: static;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 8px 12px;
  }

  .ems-coord-card--workers .ems-coord-card-label {
    flex: 1 1 0;
  }

  .ems-coord.is-in .ems-coord-card {
    animation: ems-rise 0.6s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.1s) backwards;
  }
}

/* ============================================================= */
/* Section: 17-reviews                                            */
/* ============================================================= */
/* ============================================================= */
/* 17 CLIENT REVIEWS — Figma 12563:2279 (1440 x 1138)              */
/* Full-bleed tinted band: 30px top margin (16c already gives the  */
/* other half of the 60px gap), 72px / 56px inner padding.         */
/* Carousel: script-v2.js [data-dme-testi] swaps the is-prev /     */
/* is-center / is-next / is-after slot classes and FLIPs the move. */
/* ============================================================= */
.ems-reviews {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 475.85px at 50% 0, #ffffff 0%, #f5f7fc 55%, #eef1f8 100%),
    #eef1f8;
  isolation: isolate;
}

.ems-reviews > .ems-container {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* ---------- Decorations (positions from the 1440 frame) ---------- */
.ems-reviews-blob,
.ems-reviews-dotgrid,
.ems-reviews-ring,
.ems-reviews-speck,
.ems-reviews-bubble {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.ems-reviews-blob {
  border-radius: 50%;
}

.ems-reviews-blob--left {
  top: 380px;
  left: calc(50% - 880px);
  width: 420px;
  height: 420px;
  background: rgba(39, 55, 117, 0.04);
}

.ems-reviews-blob--right {
  top: 120px;
  right: calc(50% - 860px);
  width: 360px;
  height: 360px;
  background: rgba(252, 93, 97, 0.04);
}

.ems-reviews-dotgrid {
  top: 44px;
  left: calc(50% + 280px);
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 8px;
  opacity: 0.55;
}

.ems-reviews-dotgrid i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.ems-reviews-dotgrid i:nth-child(1) { grid-area: 1 / 1; background: #9daedc; }
.ems-reviews-dotgrid i:nth-child(2) { grid-area: 1 / 3; background: #c6d1ee; }
.ems-reviews-dotgrid i:nth-child(3) { grid-area: 2 / 2; background: #9daedc; }
.ems-reviews-dotgrid i:nth-child(4) { grid-area: 3 / 1; background: #c6d1ee; }
.ems-reviews-dotgrid i:nth-child(5) { grid-area: 3 / 3; background: #9daedc; }

.ems-reviews-ring {
  top: 250px;
  left: calc(50% - 360px);
  width: 10px;
  height: 10px;
  border: 2px solid rgba(252, 93, 97, 0.4);
  border-radius: 5px;
}

.ems-reviews-speck {
  top: 96px;
  right: calc(50% - 390px);
  width: 8px;
  height: 8px;
  background: rgba(39, 55, 117, 0.2);
  border-radius: 4px;
}

.ems-reviews-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 235, 247, 0.5);
}

.ems-reviews-bubble > span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dce3f3;
}

.ems-reviews-bubble img {
  display: block;
}

.ems-reviews-bubble--left {
  top: 58px;
  left: calc(50% - 600px);
  width: 96px;
  height: 96px;
}

.ems-reviews-bubble--left > span { width: 64px; height: 64px; }

.ems-reviews-bubble--right {
  top: 48px;
  right: calc(50% - 600px);
  width: 100px;
  height: 100px;
}

.ems-reviews-bubble--right > span { width: 68px; height: 68px; }

/* ---------- Heading ---------- */
.ems-reviews-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-align: center;
}

.ems-reviews-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px 8px;
  background: #ffffff;
  border: 1px solid rgba(39, 55, 117, 0.15);
  border-radius: 40px;
  box-shadow: 0 4px 14px -6px rgba(39, 55, 117, 0.2);
  color: var(--ems-blue);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.78px;
  text-transform: uppercase;
}

.ems-reviews .ems-reviews-title {
  color: var(--ems-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 35px;
  letter-spacing: -1.08px;
}

.ems-reviews-lead {
  max-width: 738px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
}

/* ---------- Carousel ---------- */
.ems-reviews-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.ems-reviews-carousel:focus-visible {
  outline: 2px solid var(--ems-blue);
  outline-offset: 6px;
}

.ems-reviews-track {
  display: grid;
  align-items: center;
  min-height: max(611.61px, var(--dme-testi-track-height, 0px));
}

/* Slot geometry as % of the 1240px track (Figma grid 1fr 1.75fr 1fr 1fr with
   22px gaps; the centre card is 421.47px of its 432.5px column). */
.ems-reviews-card {
  --x: 80.068%;
  --w: 19.932%;
  position: relative;
  left: var(--x);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  grid-area: 1 / 1;
  width: var(--w);
  padding: 25px 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: 0 12px 30px -20px rgba(39, 55, 117, 0.25), 0 0 0 1px rgba(39, 55, 117, 0.05);
  cursor: pointer;
  transition: box-shadow 0.65s ease, border-color 0.65s ease, opacity 0.45s ease, translate 0.3s ease;
  will-change: transform;
}

.ems-reviews-card.is-prev  { --x: 0%; }
.ems-reviews-card.is-next  { --x: 58.36%; }
.ems-reviews-card.is-after { --x: 80.068%; }

.ems-reviews-card.is-center {
  --x: 21.706%;
  --w: 33.99%;
  z-index: 2;
  justify-content: flex-start;
  gap: 19px;
  min-height: 605.61px;
  padding: 33.5px 34px 30px;
  border-color: #ffffff;
  box-shadow: 0 30px 60px -24px rgba(39, 55, 117, 0.36), 0 0 0 1px rgba(39, 55, 117, 0.08);
  cursor: default;
}

.ems-reviews-card.is-hidden {
  z-index: 0;
  visibility: hidden;
  opacity: 0;
}

.ems-reviews-card.is-jump {
  opacity: 0;
  transition: none;
}

.ems-reviews-card:not(.is-center):hover {
  translate: 0 -4px;
  box-shadow: 0 20px 36px -20px rgba(39, 55, 117, 0.4), 0 0 0 1px rgba(39, 55, 117, 0.08);
}

/* Gradient top bar of the centre card (12563:2363). */
.ems-reviews-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #273775 29.808%, #fc5d61 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ems-reviews-card.is-center::before {
  opacity: 1;
}

.ems-reviews-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 38.39px;
}

.ems-reviews-mark {
  color: #eff2ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 38.4px;
}

.ems-reviews-card.is-center .ems-reviews-card-top { min-height: 51.2px; }
.ems-reviews-card.is-center .ems-reviews-mark { font-size: 64px; line-height: 51.2px; }

.ems-reviews-verified {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 6px;
  background: #eff2ff;
  border-radius: 30px;
  color: var(--ems-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.ems-reviews-verified-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #22a55b;
  border-radius: 7.5px;
}

.ems-reviews-verified-ico img {
  display: block;
  width: 9px;
  height: 9px;
}

.ems-reviews .ems-reviews-quote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ems-text);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24.3px;
}

.ems-reviews .ems-reviews-card.is-center .ems-reviews-quote {
  margin-top: -2px;
  font-size: 18px;
  font-weight: 500;
  line-height: 30.78px;
}

.ems-reviews-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ems-reviews-card.is-center .ems-reviews-rating {
  margin-top: auto;
}

.ems-reviews-stars {
  display: flex;
  gap: 3px;
}

.ems-reviews-stars img {
  display: block;
  width: 18px;
  height: 18px;
}

.ems-reviews-rating b {
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

.ems-reviews .ems-reviews-sep {
  width: 100%;
  height: 1px;
  margin: 0;
  background: #eff2ff;
  border: 0;
  opacity: 1;
}

.ems-reviews-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ems-reviews-avatar {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--ems-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #dce3f3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  transition: background-color 0.45s ease;
}

.ems-reviews-card.is-center .ems-reviews-avatar {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
  background: var(--ems-orange);
}

.ems-reviews-who {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ems-reviews-who b {
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 18.2px;
}

.ems-reviews-card.is-center .ems-reviews-who b {
  font-size: 17px;
  line-height: 22.1px;
}

.ems-reviews-who small {
  color: #9a9a9f;
  font-size: 10px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.ems-reviews-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ems-reviews-dotbtn {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(39, 55, 117, 0.4);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: width 0.35s var(--ems-ease), background-color 0.35s ease;
}

.ems-reviews-dotbtn:hover {
  background: rgba(39, 55, 117, 0.7);
}

.ems-reviews-dotbtn.is-active {
  width: 30px;
  background: var(--ems-orange);
}

.ems-reviews-arrow {
  position: absolute;
  top: calc(50% + 3.93px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 8px 22px -8px rgba(39, 55, 117, 0.35);
  cursor: pointer;
  translate: 0 -50%;
  transition: scale 0.25s var(--ems-ease), box-shadow 0.25s ease, background-color 0.25s ease;
}

.ems-reviews-arrow img {
  display: block;
  width: 18px;
  height: 18px;
}

.ems-reviews-arrow--prev { left: -80px; }
.ems-reviews-arrow--next { right: -80px; }

.ems-reviews-arrow:hover,
.ems-reviews-arrow:focus-visible {
  scale: 1.08;
  background: #fff5f5;
  box-shadow: 0 12px 26px -8px rgba(252, 93, 97, 0.45);
}

.ems-reviews-arrow:focus-visible {
  outline: 2px solid var(--ems-blue);
  outline-offset: 3px;
}

/* ---------- Entrance + ambient motion ---------- */
@keyframes ems-reviews-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

@keyframes ems-reviews-twinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.2; }
}

.ems-reviews.is-armed:not(.is-in) :is(.ems-reviews-pill, .ems-reviews-title, .ems-reviews-lead, .ems-reviews-card, .ems-reviews-dots, .ems-reviews-arrow, .ems-reviews-bubble) {
  opacity: 0;
}

.ems-reviews.is-in .ems-reviews-pill  { animation: ems-pop 0.6s var(--ems-ease) 0.05s backwards; }
.ems-reviews.is-in .ems-reviews-title { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-reviews.is-in .ems-reviews-lead  { animation: ems-rise 0.7s var(--ems-ease) 0.22s backwards; }

.ems-reviews.is-in .ems-reviews-bubble--left {
  animation: ems-pop 0.7s var(--ems-ease) 0.2s backwards, ems-reviews-float 6s ease-in-out 1s infinite;
}

.ems-reviews.is-in .ems-reviews-bubble--right {
  animation: ems-pop 0.7s var(--ems-ease) 0.3s backwards, ems-reviews-float 7s ease-in-out 1.8s infinite;
}

.ems-reviews.is-in .ems-reviews-dotgrid { animation: ems-reviews-twinkle 3.5s ease-in-out 1s infinite; }

.ems-reviews.is-in .ems-reviews-card { animation: ems-rise 0.8s var(--ems-ease) 0.4s backwards; }
.ems-reviews.is-in .ems-reviews-card.is-center { animation-delay: 0.3s; }
.ems-reviews.is-in .ems-reviews-card.is-prev   { animation-delay: 0.42s; }
.ems-reviews.is-in .ems-reviews-card.is-next   { animation-delay: 0.5s; }
.ems-reviews.is-in .ems-reviews-card.is-after  { animation-delay: 0.58s; }

.ems-reviews.is-in .ems-reviews-dots  { animation: ems-fade 0.6s ease 0.8s backwards; }
.ems-reviews.is-in .ems-reviews-arrow--prev { animation: ems-from-left 0.6s var(--ems-ease) 0.7s backwards; }
.ems-reviews.is-in .ems-reviews-arrow--next { animation: ems-from-right 0.6s var(--ems-ease) 0.7s backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
  .ems-reviews-arrow--prev { left: -12px; }
  .ems-reviews-arrow--next { right: -12px; }
}

@media (max-width: 1299px) {
  .ems-reviews-bubble--left { left: 20px; }
  .ems-reviews-bubble--right { right: 20px; }
}

/* Three slots: the "after" card waits behind the next one. */
@media (max-width: 1199px) {
  .ems-reviews-card { --w: 26%; }
  .ems-reviews-card.is-prev { --x: 0%; }
  .ems-reviews-card.is-next,
  .ems-reviews-card.is-after { --x: 74%; }
  .ems-reviews-card.is-center { --x: 28%; --w: 44%; }

  .ems-reviews-card.is-after {
    z-index: 0;
    visibility: hidden;
    opacity: 0;
  }

}

@media (max-width: 991px) {

  .ems-reviews .ems-reviews-title {
    font-size: 28px;
    line-height: 34px;
  }

  .ems-reviews-bubble {
    display: none;
  }

  .ems-reviews-card { --w: 30%; padding: 22px 18px 20px; }
  .ems-reviews-card.is-next,
  .ems-reviews-card.is-after { --x: 70%; }
  .ems-reviews-card.is-center { --x: 31.5%; --w: 37%; padding: 28px 24px 24px; }

  .ems-reviews .ems-reviews-card.is-center .ems-reviews-quote {
    font-size: 16px;
    line-height: 27px;
  }
}

/* Phones: one card at a time, every card wears the centre styling so the
   track height (the JS-measured tallest card) holds while slides change. */
@media (max-width: 767px) {

  .ems-reviews > .ems-container {
    gap: 32px;
  }

  .ems-reviews .ems-reviews-title {
    font-size: 24px;
    line-height: 31px;
    letter-spacing: -0.6px;
  }

  .ems-reviews-lead {
    font-size: 15px;
    line-height: 24px;
  }

  .ems-reviews-dotgrid,
  .ems-reviews-ring,
  .ems-reviews-speck {
    display: none;
  }

  .ems-reviews-track {
    align-items: start;
    min-height: 0;
  }

  .ems-reviews-card,
  .ems-reviews-card.is-center {
    --x: 0%;
    --w: 100%;
    justify-content: flex-start;
    gap: 17px;
    min-height: var(--dme-testi-mobile-card-height, 0px);
    padding: 28px 22px 24px;
  }

  .ems-reviews-card:not(.is-center) {
    z-index: 0;
    visibility: hidden;
    opacity: 0;
  }

  .ems-reviews-card .ems-reviews-card-top { min-height: 51.2px; }
  .ems-reviews-card .ems-reviews-mark { font-size: 64px; line-height: 51.2px; }

  .ems-reviews .ems-reviews-card .ems-reviews-quote,
  .ems-reviews .ems-reviews-card.is-center .ems-reviews-quote {
    margin-top: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 27px;
  }

  .ems-reviews-card .ems-reviews-rating { margin-top: auto; }

  .ems-reviews-card .ems-reviews-who b,
  .ems-reviews-card.is-center .ems-reviews-who b {
    font-size: 16px;
    line-height: 21px;
  }

  .ems-reviews-arrow {
    top: auto;
    bottom: -9px;
    width: 40px;
    height: 40px;
    translate: none;
  }

  .ems-reviews-arrow--prev { left: 0; }
  .ems-reviews-arrow--next { right: 0; }

  .ems-reviews-dots {
    min-height: 22px;
    align-items: center;
  }

}

/* ============================================================= */
/* Section: 18-consult                                            */
/* ============================================================= */
/* ============================================================= */
/* 18. Consultation — Figma 12563:2534 (1440 x 725)               */
/* ============================================================= */
.ems-consult {
  position: relative;
  background: rgba(239, 242, 255, 0.28);
  box-shadow: 0 2.704px 11.561px #eff2ff, inset 0 0 64px #eff2ff;
}

.ems-consult-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* ---------- Copy column (629 wide) ---------- */
.ems-consult-copy {
  display: flex;
  flex: 0 1 629px;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  min-width: 0;
}

.ems-consult-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ems-consult .ems-consult-title {
  color: var(--ems-blue);
  font-size: 42px;
  font-weight: 700;
  line-height: 50.4px;
}

.ems-consult .ems-consult-lead {
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
}

.ems-consult-checks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.ems-consult-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
}

.ems-consult-check img {
  flex: none;
  transition: scale 0.3s var(--ems-ease);
}

.ems-consult-check:hover img {
  scale: 1.15;
}

/* Trust badges: dashed gradient frame (SVG stroke, since CSS dashed borders
   cannot take a gradient). */
.ems-consult-badges {
  display: flex;
  gap: 19px;
}

.ems-consult-badge {
  position: relative;
  display: flex;
  flex: 0 0 197px;
  align-items: center;
  gap: 12px;
  height: 90px;
  padding: 17px;
  border-radius: 12px;
  background: #fff;
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease);
}

.ems-consult-badge:hover {
  translate: 0 -4px;
  box-shadow: 0 12px 24px rgba(39, 55, 117, 0.1);
}

.ems-consult-badge-frame {
  position: absolute;
  inset: 0.5px;
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  overflow: visible;
  pointer-events: none;
}

.ems-consult-badge-frame rect {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.ems-consult-badge-icon {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
  transition: scale 0.35s var(--ems-ease);
}

.ems-consult-badge:hover .ems-consult-badge-icon {
  scale: 1.08;
}

.ems-consult .ems-consult-badge-label {
  position: relative;
  width: 111px;
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

/* ---------- Booking card (540 wide, 5px gradient border) ---------- */
.ems-consult-card {
  display: flex;
  flex: 0 0 540px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  align-self: stretch;
  /* Figma draws the 5px stroke inside the 30/40 padding; 25/35 keeps the 605px card height. */
  padding: 25px 35px;
  border: 5px solid transparent;
  border-radius: 40px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #273775 0%, #273775 30%, #fc5d61 100%) border-box;
  scroll-margin-top: 120px;
}

.ems-consult .ems-consult-card-title {
  width: 100%;
  color: var(--ems-blue);
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

.ems-consult .ems-consult-card-text {
  width: 100%;
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 21.6px;
  text-align: center;
}

.ems-consult-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.ems-consult-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 1px;
}

.ems-consult-field {
  position: relative;
}

.ems-consult-field-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  translate: 0 -50%;
  pointer-events: none;
}

.ems-consult-field-icon img {
  display: block;
  max-width: none;
}

.ems-consult .ems-consult-input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 8px 14px 8px 40px;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #fff;
  color: var(--ems-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ems-consult-input::placeholder {
  color: #9a9a9f;
  opacity: 1;
}

.ems-consult-input:hover {
  border-color: #c9cfe0;
}

.ems-consult-input:focus {
  border-color: var(--ems-blue);
  box-shadow: 0 0 0 3px rgba(39, 55, 117, 0.12);
}

.ems-consult-field.is-invalid .ems-consult-input {
  border-color: var(--ems-orange);
  box-shadow: 0 0 0 3px rgba(252, 93, 97, 0.12);
}

.ems-consult .ems-consult-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 15px 21px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: var(--ems-blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 12px;
  cursor: pointer;
  transition: background-color 0.25s ease, translate 0.25s var(--ems-ease), box-shadow 0.25s ease;
}

.ems-consult .ems-consult-submit:hover,
.ems-consult .ems-consult-submit:focus-visible {
  background: var(--ems-orange);
  translate: 0 -2px;
  box-shadow: 0 10px 20px rgba(252, 93, 97, 0.25);
}

.ems-consult .ems-consult-submit:focus-visible {
  outline: 2px solid var(--ems-blue);
  outline-offset: 2px;
}

.ems-consult .ems-consult-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  translate: 0 0;
}

.ems-consult .ems-consult-response {
  margin: -6px 0 0;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.ems-consult-response.is-success {
  background: rgba(39, 174, 96, 0.1);
  color: #1e7b47;
}

.ems-consult-response.is-error {
  background: rgba(252, 93, 97, 0.1);
  color: #c9343a;
}

.ems-consult .ems-consult-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9a9a9f;
  font-size: 14px;
  font-weight: 400;
  line-height: 28.8px;
  text-align: center;
}

.ems-consult-note-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.ems-consult-note-icon img {
  display: block;
  max-width: none;
}

/* ---------- Entrance (script-v2.js .is-armed / .is-in) ---------- */
.ems-consult.is-armed:not(.is-in) :is(.ems-consult-chip, .ems-consult-title, .ems-consult-lead, .ems-consult-check, .ems-consult-badge, .ems-consult-card, .ems-consult-card-title, .ems-consult-card-text, .ems-consult-field, .ems-consult-submit, .ems-consult-note) {
  opacity: 0;
}

.ems-consult.is-in .ems-consult-chip { animation: ems-rise 0.6s var(--ems-ease) 0.05s backwards; }
.ems-consult.is-in .ems-consult-title { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-consult.is-in .ems-consult-lead { animation: ems-rise 0.7s var(--ems-ease) 0.22s backwards; }
.ems-consult.is-in .ems-consult-check { animation: ems-from-left 0.6s var(--ems-ease) calc(0.32s + var(--i, 0) * 0.08s) backwards; }
.ems-consult.is-in .ems-consult-badge { animation: ems-pop 0.55s var(--ems-ease) calc(0.75s + var(--i, 0) * 0.1s) backwards; }
.ems-consult.is-in .ems-consult-card { animation: ems-from-right 0.8s var(--ems-ease) 0.15s backwards; }
.ems-consult.is-in .ems-consult-card-title { animation: ems-rise 0.6s var(--ems-ease) 0.4s backwards; }
.ems-consult.is-in .ems-consult-card-text { animation: ems-rise 0.6s var(--ems-ease) 0.48s backwards; }
.ems-consult.is-in .ems-consult-field { animation: ems-rise 0.55s var(--ems-ease) calc(0.55s + var(--i, 0) * 0.07s) backwards; }
.ems-consult.is-in .ems-consult-submit { animation: ems-pop 0.5s var(--ems-ease) 0.95s backwards; }
.ems-consult.is-in .ems-consult-note { animation: ems-fade 0.6s ease 1.05s backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-consult-card {
    flex-basis: 470px;
    padding: 25px 28px;
  }

  .ems-consult .ems-consult-title {
    font-size: 38px;
    line-height: 46px;
  }

  .ems-consult-badges {
    flex-wrap: wrap;
    gap: 14px;
  }

  .ems-consult-badge {
    flex: 1 1 180px;
  }

  .ems-consult .ems-consult-badge-label {
    width: auto;
  }
}

@media (max-width: 991px) {

  .ems-consult-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .ems-consult-copy {
    flex: none;
  }

  .ems-consult .ems-consult-title {
    font-size: 34px;
    line-height: 42px;
  }

  .ems-consult-card {
    flex: none;
    align-self: center;
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 767px) {

  .ems-consult .ems-container {
    padding: 0 16px;
  }

  .ems-consult-copy {
    gap: 24px;
  }

  .ems-consult-head {
    gap: 14px;
  }

  .ems-consult .ems-consult-title {
    font-size: 28px;
    line-height: 36px;
  }

  .ems-consult .ems-consult-lead {
    font-size: 15px;
    line-height: 26px;
  }

  .ems-consult-check {
    align-items: flex-start;
    font-size: 15px;
    line-height: 24px;
  }

  .ems-consult-badges {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .ems-consult-badge {
    flex: none;
    width: 100%;
    height: 76px;
    padding: 13px 17px;
  }

  .ems-consult-card {
    gap: 16px;
    padding: 26px 18px;
    border-width: 4px;
    border-radius: 28px;
  }

  .ems-consult .ems-consult-card-title {
    font-size: 26px;
    line-height: 32px;
  }

  .ems-consult-form,
  .ems-consult-fields {
    gap: 14px;
  }

  .ems-consult .ems-consult-note {
    font-size: 13px;
    line-height: 20px;
    text-align: left;
  }
}

/* ============================================================= */
/* Section: 19-faq                                                */
/* ============================================================= */
/* ============================================================= */
/* 19. FAQ — Figma 12563:2635 (1440 x 908)                        */
/* ============================================================= */
.ems-faq {
  position: relative;
  background: #fff;
}

.ems-faq-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* ---------- Left block (518 wide) ---------- */
.ems-faq-intro {
  display: flex;
  flex: 0 1 518px;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  min-width: 0;
}

.ems-faq-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ems-faq .ems-faq-title {
  color: var(--ems-blue);
  font-size: 35px;
  font-weight: 700;
  line-height: 48px;
}

.ems-faq .ems-faq-lead {
  max-width: 512px;
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 29.25px;
}

.ems-faq-pills {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.ems-faq-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 426px;
  max-width: 100%;
  height: 50px;
  padding: 0 20px;
  border-radius: 5px;
  background: #eff2ff;
  color: var(--ems-blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  transition: translate 0.35s var(--ems-ease), box-shadow 0.35s var(--ems-ease), background-color 0.35s ease;
}

.ems-faq-pill:hover {
  translate: 6px 0;
  background: #e6eaff;
  box-shadow: 0 8px 18px rgba(39, 55, 117, 0.08);
}

.ems-faq-pill-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: rotate 0.4s var(--ems-ease);
}

.ems-faq-pill-icon img {
  display: block;
  max-width: none;
}

.ems-faq-pill:hover .ems-faq-pill-icon {
  rotate: -10deg;
}

.ems-faq .ems-faq-note {
  width: 100%;
  padding-left: 24px;
  border-left: 4px solid var(--ems-orange);
  color: var(--ems-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

/* ---------- Accordion (660 wide) ---------- */
.ems-faq-list {
  display: flex;
  flex: 0 1 660px;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ems-faq-item {
  position: relative;
}

.ems-faq .ems-faq-q {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.ems-faq .ems-faq-btn {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 65px;
  margin: 0;
  padding: 8px 20px;
  border: 0;
  border-bottom: 1px solid #eff2ff;
  border-radius: 0;
  background: #fff;
  color: var(--ems-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.ems-faq .ems-faq-btn:hover {
  background: #fff;
  filter: none;
}

.ems-faq .ems-faq-btn:focus-visible {
  outline: 2px solid var(--ems-blue);
  outline-offset: -3px;
}

.ems-faq-num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #eff2ff;
  color: var(--ems-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, scale 0.3s var(--ems-ease);
}

.ems-faq-btn:hover .ems-faq-num {
  scale: 1.06;
}

.ems-faq-item.is-open .ems-faq-num {
  background: var(--ems-blue);
  color: #fff;
}

.ems-faq-q-text {
  flex: 1 1 auto;
  min-width: 0;
  transition: color 0.25s ease;
}

.ems-faq-item.is-open .ems-faq-q-text {
  font-weight: 700;
}

.ems-faq-btn:hover .ems-faq-q-text {
  color: var(--ems-blue);
}

.ems-faq-chevron {
  flex: none;
  transition: rotate 0.35s var(--ems-ease);
}

.ems-faq-item.is-open .ems-faq-chevron {
  rotate: 180deg;
}

/* Answer: height animates via grid rows 0fr -> 1fr. */
.ems-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  background: #eff2ff;
  transition: grid-template-rows 0.4s var(--ems-ease);
}

.ems-faq-item.is-open .ems-faq-a {
  grid-template-rows: 1fr;
}

.ems-faq-a-inner {
  min-height: 0;
  overflow: hidden;
}

.ems-faq .ems-faq-a-inner p {
  margin: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--ems-blue);
  color: var(--ems-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 22.75px;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity 0.3s ease, translate 0.4s var(--ems-ease);
}

.ems-faq-item.is-open .ems-faq-a-inner p {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.1s;
}

/* ---------- Entrance (script-v2.js .is-armed / .is-in) ---------- */
.ems-faq.is-armed:not(.is-in) :is(.ems-faq-chip, .ems-faq-title, .ems-faq-lead, .ems-faq-pill, .ems-faq-note, .ems-faq-list, .ems-faq-item) {
  opacity: 0;
}

.ems-faq.is-in .ems-faq-chip { animation: ems-rise 0.6s var(--ems-ease) 0.05s backwards; }
.ems-faq.is-in .ems-faq-title { animation: ems-rise 0.7s var(--ems-ease) 0.12s backwards; }
.ems-faq.is-in .ems-faq-lead { animation: ems-rise 0.7s var(--ems-ease) 0.22s backwards; }
.ems-faq.is-in .ems-faq-pill { animation: ems-from-left 0.6s var(--ems-ease) calc(0.35s + var(--i, 0) * 0.1s) backwards; }
.ems-faq.is-in .ems-faq-note { animation: ems-fade 0.6s ease 0.7s backwards; }
.ems-faq.is-in .ems-faq-list { animation: ems-fade 0.5s ease 0.1s backwards; }
.ems-faq.is-in .ems-faq-item { animation: ems-from-right 0.6s var(--ems-ease) calc(0.15s + var(--i, 0) * 0.06s) backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ems-faq-intro {
    flex-basis: 400px;
  }

  .ems-faq-list {
    flex: 1 1 600px;
  }
}

@media (max-width: 991px) {

  .ems-faq-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }

  .ems-faq-intro {
    flex: none;
    gap: 28px;
  }

  .ems-faq-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .ems-faq-pill {
    width: auto;
  }

  .ems-faq-list {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 767px) {

  .ems-faq .ems-container {
    padding: 0 16px;
  }

  .ems-faq .ems-faq-title {
    font-size: 28px;
    line-height: 38px;
  }

  .ems-faq .ems-faq-lead {
    font-size: 15px;
    line-height: 26px;
  }

  .ems-faq-pills {
    flex-direction: column;
  }

  .ems-faq-pill {
    width: 100%;
    font-size: 15px;
  }

  .ems-faq .ems-faq-btn {
    gap: 14px;
    min-height: 60px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 22px;
  }

  .ems-faq-num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .ems-faq .ems-faq-a-inner p {
    margin: 20px 16px;
    padding-left: 14px;
  }
}

/* ============================================================= */
/* MOBILE (Figma 12563:3608, 440px frame / 400px column)           */
/* Kept last so these phone rules win over the per-section          */
/* responsive guesses above. Everything is inside max-width: 767px  */
/* (or narrower), apart from rules that hide mobile-only markup on  */
/* larger screens.                                                  */
/* ============================================================= */

/* ---------- Mobile: 01-hero-why-cta ---------- */
/* ============================================================= */
/* Mobile (<=767px) — Figma 12563:3608 (440 frame, 400 column)    */
/* Hero 12563:3610, Why 12563:3952, CTA bar 12563:3995            */
/* ============================================================= */
@media (max-width: 767px) {

  /* ---------- 01 Hero (12563:3681) ---------- */
  .ems-hero .ems-container {
    padding: 0 20px;
  }

  .ems-hero__inner,
  .ems-hero__main {
    gap: 40px;
  }

  .ems-hero__copy {
    gap: 19.1px;
  }

  .ems-hero__head {
    gap: 19.1px;
  }

  .ems-hero__eyebrow {
    padding: 8px 10px;
    border-radius: 9.069px;
    font-size: 10px;
    line-height: 9.976px;
  }

  .ems-hero__title {
    width: auto;
    font-size: 32px;
    line-height: 40px;
  }

  .ems-hero .ems-hero__lead {
    color: var(--ems-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 28.8px;
  }

  /* Lead -> list is 10px in Figma (the rest of the column is 19.1px apart). */
  .ems-hero__list {
    gap: 9px;
    margin-top: -9.1px;
  }

  .ems-hero__item {
    align-items: center;
    font-size: 14px;
    line-height: 25px;
  }

  /* Content-brief CTA (not in the mobile design): full width under the list. */
  .ems-hero__cta {
    align-self: stretch;
    width: 100%;
  }

  /* Badges 12639:46: three equal cards filling the 400 column. */
  .ems-hero__badges {
    flex-wrap: nowrap;
    gap: 14.398px;
    width: 100%;
  }

  .ems-hero__badge {
    flex: 1 1 0;
    min-width: 0;
    padding: 8.066px;
    border-radius: 6.722px;
    box-shadow: 0 0 3.361px rgba(0, 0, 0, 0.1);
  }

  .ems-hero__badge-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 107.603 / 49.255;
  }

  /* Art 12589:6646: the 675x405 stage at 400 wide (--u = 400/675) is the mobile layout 1:1. */
  .ems-hero__art {
    width: 100%;
    max-width: none;
  }

  /* Form 12563:3854 */
  .ems-hero__form {
    gap: 30px;
    padding: 20px;
    border-radius: 20px;
  }

  .ems-hero__fields {
    gap: 20px;
  }

  .ems-hero .ems-hero__submit {
    align-self: stretch;
    width: 100%;
    height: 40px;
    margin: 0;
  }

  /* ---------- 03 Why (12563:3952) ---------- */
  .ems-why__inner {
    gap: 10px;
  }

  .ems-why__copy {
    gap: 15.1px;
  }

  .ems-why__eyebrow {
    height: 26px;
    padding: 8px 10px;
    border-radius: 9.069px;
    font-size: 10px;
    line-height: 9.976px;
  }

  .ems-why__title {
    padding-top: 6.9px;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -1.6px;
  }

  .ems-why__body {
    gap: 24px;
    font-size: 14px;
    line-height: 24px;
  }

  .ems-why .ems-why__body p {
    margin: 0;
    color: var(--ems-text);
    font-size: 14px;
    line-height: 24px;
  }

  /* Photo panel 12563:3959: 400 x 354, square corners. */
  .ems-why__visual {
    width: 100%;
    max-width: none;
    height: 354px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
  }

  .ems-why__photo::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 1.515%, rgba(255, 255, 255, 0) 94.066%);
  }

  /* Card 12563:3961: 250 wide, centred, 63px from the top. */
  .ems-why__card {
    top: 63px;
    left: calc(50% - 125px);
    gap: 3.375px;
    width: 250px;
    max-width: 250px;
    padding: 11.476px 10.125px 6.75px 12.826px;
    border-width: 0.675px;
    border-radius: 10.736px;
    box-shadow: none;
  }

  .ems-why__card-title {
    padding: 3.834px 6.135px;
    border-radius: 5.368px;
    font-size: 10px;
    line-height: 10.8px;
    white-space: nowrap;
  }

  .ems-why__benefits {
    gap: 6.75px;
    width: 223.926px;
    max-width: 100%;
  }

  .ems-why__benefit {
    gap: 9.45px;
    min-height: 22.501px;
    font-size: 9px;
    line-height: 9.45px;
  }

  .ems-why__benefit:not(:last-child)::after {
    height: 0.675px;
  }

  .ems-why__check {
    width: 9.45px;
    height: 9.45px;
    border-radius: 4.725px;
    font-size: 6.75px;
    line-height: 9.45px;
  }

  /* ---------- 04 CTA bar (12563:3995) ---------- */
  .ems-cta-bar__box {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    min-height: 0;
    padding: 20px 22px;
    overflow: hidden;
    border-radius: 20px;
  }

  /* Mobile design has no dashed border or divider. */
  .ems-cta-bar__border,
  .ems-cta-bar__divider {
    display: none;
  }

  .ems-cta-bar__main {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .ems-cta-bar__copy {
    gap: 20px;
  }

  .ems-cta-bar__title {
    font-size: 20px;
    line-height: 30px;
  }

  .ems-cta-bar .ems-cta-bar__text {
    color: var(--ems-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
  }

  .ems-cta-bar__btn {
    width: 100%;
    height: 50px;
    font-size: 14px;
    font-weight: 600;
  }
}

/* ---------- Mobile: 02-process-coding ---------- */
/* ============================================================= */
/* MOBILE (<=767px) — 05-process (Figma 12639:147) and            */
/* 06-coding (Figma 12563:4201). 440 frame, 20px gutters.         */
/* ============================================================= */
@media (max-width: 767px) {

  /* ---------------- 05 PROCESS ---------------- */
  .ems-process .ems-container {
    gap: 32px;
    padding: 0 20px;
  }

  /* Mobile design has no decoration. */
  .ems-process__decor {
    display: none;
  }

  .ems-process__head {
    gap: 18px;
  }

  .ems-process__chip {
    gap: 10px;
    padding: 9px 20px;
    font-size: 14px;
    box-shadow: 0 6px 9px rgba(39, 55, 117, 0.06);
  }

  .ems-process__title {
    padding-top: 0;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.8px;
  }

  .ems-process__bars {
    margin-top: 0;
  }

  .ems-process__intro {
    max-width: none;
    padding: 0;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 28px;
  }

  .ems-process__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-process__step {
    gap: 12px;
    padding: 24px 0;
  }

  .ems-process__step:first-child {
    padding-top: 0;
  }

  .ems-process__step:last-child {
    padding-bottom: 0;
  }

  .ems-process__step:hover {
    background-color: transparent;
  }

  .ems-process__step::before {
    display: none !important;
  }

  .ems-process__step::after {
    display: block;
    background: #e5e7eb;
  }

  .ems-process__step:last-child::after {
    display: none;
  }

  .ems-process__step-title {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.3px;
  }

  .ems-process__step-text {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 28px;
  }

  .ems-process__panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
  }

  .ems-process__panel-title {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    font-size: 20px;
    line-height: 30px;
  }

  .ems-process__panel-title img {
    width: 36px;
    height: 36px;
  }

  .ems-process__panel-title span {
    flex: 1 1 0;
    min-width: 0;
  }

  .ems-process__panel-title::after {
    display: none;
  }

  .ems-process__checks {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    row-gap: 16px;
  }

  .ems-process__check {
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    font-size: 14px;
    line-height: 22px;
  }

  .ems-process__check img {
    margin-top: 1px;
  }

  /* ---------------- 06 CODING ---------------- */
  /* Frame spans the section's 30px mobile padding so the orbits can run up into it
     (Figma draws them from the frame top); layout is unchanged. */
  .ems-coding__frame {
    display: flex;
    flex-direction: column;
    margin: -30px 0;
    padding: 30px 20px;
  }

  /* Flatten the container so the floating cards can sit between the header
     and the grid, as in the mobile design. */
  .ems-coding .ems-container {
    display: contents;
  }

  .ems-coding__head {
    order: 1;
    gap: 0;
  }

  .ems-coding__eyebrow {
    padding: 8px 10px;
    border-radius: 9.07px;
    font-size: 10px;
    line-height: 14px;
  }

  .ems-coding__title {
    max-width: none;
    margin-top: 12px;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -1px;
  }

  .ems-coding__bars {
    margin-top: 12px;
  }

  .ems-coding__intro {
    max-width: none;
    margin-top: 20px;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 25px;
  }

  /* Decoration: two solid orbits + orange dot (12563:4203-4205). Positions are
     Figma's, offset by the frame's 30px top padding. */
  .ems-coding__ring--solid,
  .ems-coding__ring--dashed {
    scale: none;
    border: 1px solid #e1e7f4;
  }

  .ems-coding__ring--dashed {
    left: -150px;
    top: -150px;
    width: 300px;
    height: 300px;
  }

  .ems-coding__ring--solid {
    left: -210px;
    top: -210px;
    width: 420px;
    height: 420px;
  }

  .ems-coding__dot--orange {
    left: 47px;
    top: 46px;
    width: 12px;
    height: 12px;
  }

  .ems-coding__dot--blue,
  .ems-coding__dots {
    display: none;
  }

  /* Floating cards: shown inline in a 210px band under the intro (12563:4214). */
  .ems-coding__float {
    display: flex;
    position: relative;
    order: 2;
    left: auto;
    right: auto;
    top: auto;
    flex: none;
  }

  .ems-coding__float--review {
    align-self: flex-start;
    margin-top: 20px;
    /* Figma slot 204.66x144.34 at (0,-1.67): unrotated 196x131 card at (4.33, 5). */
    top: 5px;
    left: 4.33px;
    box-shadow: 0 18px 40px rgba(39, 55, 117, 0.12);
  }

  .ems-coding__float--capture {
    align-self: flex-start;
    /* Figma slot 203.38x126.09 at (189.02,74): unrotated 196x112.7 card at
       (192.71, 80.7) in the 210px band; pulled up over the review card. */
    margin-top: -50.3px;
    margin-left: min(192.71px, calc(100% - 200px));
    margin-bottom: 16.6px;
    box-shadow: 0 18px 40px rgba(39, 55, 117, 0.28);
  }

  .ems-coding__grid {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    margin-top: 28px;
  }

  .ems-coding__item {
    gap: 14px;
    min-height: 104px;
    padding: 16px;
    border-radius: 18px;
  }

  /* Mobile keeps the desktop pairs: blue, blue, rose, rose, ... */
  .ems-coding__item--blue,
  .ems-coding__item--blue:nth-child(n) {
    border-color: #e5e7eb;
    background: #eff2ff;
  }

  .ems-coding__item--rose,
  .ems-coding__item--rose:nth-child(n) {
    border-color: #fddcdd;
    background: #fff4f4;
  }

  .ems-coding__badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 13px;
  }

  .ems-coding__copy {
    gap: 4px;
  }

  .ems-coding__item-title {
    font-size: 16px;
    line-height: 22.4px;
  }

  .ems-coding__item-text {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 21px;
  }
}

/* ---------- Mobile: 03-denials-serve-types-payments ---------- */
/* ============================================================= */
/* Mobile (<=767px) — 07 denials, 08 serve, 09 types, 09b payments */
/* Figma mobile frame 12563:3608 (440 wide, 20px gutters):         */
/*   denials 12563:4386 · serve 12563:4160 ·                       */
/*   types 12563:4426 · payments 12563:4525                        */
/* ============================================================= */

@media (max-width: 767px) {

  /* ---------- 07 · Denials (12563:4386) ---------- */
  .ems-denials .ems-container {
    padding: 0 20px;
  }

  .ems-denials__copy {
    gap: 15.1px;
    width: 100%;
  }

  .ems-denials__eyebrow {
    height: 26px;
    font-size: 10px;
    line-height: 9.976px;
  }

  .ems-denials__title {
    margin-top: 6.9px;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -1px;
  }

  /* No orange rule under the heading on mobile. */
  .ems-denials__bar {
    display: none;
  }

  .ems-denials__lead {
    color: #3d3d3d;
    font-size: 16px;
    line-height: 24px;
  }

  .ems-denials__block {
    gap: 10px;
  }

  .ems-denials__block-title {
    font-size: 16px;
    line-height: 24px;
  }

  .ems-denials__block p {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 24px;
  }

  /* 440x378 window, 38px under the copy, flush with the section's bottom edge. */
  .ems-denials__visual {
    height: 378px;
    margin-top: 38px;
    margin-bottom: -30px;
  }

  /* Image frame 440x396 (overflows the 378 window); bitmap at Figma's crop. */
  .ems-denials__visual-box {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    height: 396px;
  }

  .ems-denials .ems-denials__img {
    max-width: none;
    position: absolute;
    top: -0.07%;
    left: -21.13%;
    width: 125.56%;
    height: 100%;
    object-fit: fill;
  }

  .ems-denials__visual-box::after {
    background: linear-gradient(180deg, #eff2ff 1.515%, rgba(255, 255, 255, 0) 94.066%);
  }

  /* ---------- 08 · Who We Serve (12563:4160) ---------- */
  .ems-serve .ems-container {
    padding: 0 20px;
  }

  .ems-serve__head {
    gap: 10px;
    margin-bottom: 40px;
  }

  .ems-serve__eyebrow {
    font-size: 12px;
    line-height: 9.976px;
  }

  .ems-serve__title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-serve__intro {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 25.2px;
  }

  .ems-serve__grid {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .ems-serve__card {
    /* Figma strokes are inside the 115px card: 1px border + 17/19/15 padding. */
    flex: none;
    width: 100%;
    min-height: 0;
    padding: 17px 19px 15px;
  }

  .ems-serve__name {
    font-size: 18px;
    line-height: 25px;
  }

  /* ---------- 09 · Service Types (12563:4426) ---------- */
  .ems-types .ems-container {
    padding: 0 20px;
  }

  /* No glow / tilted pill on mobile (the existing hide loses to .ems-types__deco > span). */
  .ems-types__deco--right {
    display: none;
  }

  /* Orbits + dots, top-left (12563:4427). */
  .ems-types__ring--outer,
  .ems-types__ring--dashed {
    scale: none;
  }

  .ems-types__ring--outer {
    top: -210px;
    left: -230px;
  }

  .ems-types__ring--dashed {
    top: -150px;
    left: -170px;
  }

  .ems-types__dot--orange {
    top: 18px;
    left: 32px;
  }

  .ems-types__dot--blue {
    top: 70px;
    left: 70px;
  }

  .ems-types__head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .ems-types__eyebrow {
    font-size: 10px;
    line-height: 16px;
  }

  .ems-types__title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-types__intro {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 25px;
  }

  .ems-types__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ems-types__card {
    gap: 10px;
    min-height: 230px;
    padding: 18px 20px 16px;
  }

  /* Icon stacked above the title. */
  .ems-types__card-head {
    flex-direction: column;
    gap: 10px;
  }

  /* icon-park-solid:success frame 46x46; glyph 37.75x39.38 at Figma's inset. */
  .ems-types__check {
    width: 46px;
    height: 46px;
  }

  .ems-types__check img {
    top: 3.307px;
    left: 4.125px;
    width: 37.7485px;
    height: 39.3821px;
  }

  .ems-types__name {
    flex: none;
    width: 100%;
    font-size: 18px;
    line-height: 25px;
  }

  .ems-types__text {
    padding-left: 0;
    font-size: 14px;
    line-height: 20px;
  }

  /* ---------- 09b · Payments (12563:4525) ---------- */
  .ems-payments .ems-container {
    padding: 0 20px;
  }

  .ems-payments__copy {
    gap: 15.1px;
    width: 100%;
  }

  .ems-payments .ems-payments__eyebrow {
    height: 26px;
    font-size: 12px;
    line-height: 9.976px;
  }

  .ems-payments__title {
    margin-top: 6.9px;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1.6px;
  }

  .ems-payments__text {
    color: #ffffff;
    font-size: 14px;
    line-height: 24px;
  }

  /* 440x294 image, 23.8px under the copy, flush with the section's bottom edge. */
  .ems-payments__visual {
    height: 294px;
    margin-top: 23.8px;
    margin-bottom: -30px;
  }

  .ems-payments__visual-box {
    left: 0;
    right: 0;
  }

  .ems-payments__img {
    object-position: 50% 50%;
  }

  .ems-payments__visual-box::after {
    background: linear-gradient(179.426deg, #273775 2.6432%, rgba(39, 55, 117, 0) 94.838%);
  }
}

/* ---------- Mobile: 04-cred-choose-trust-case ---------- */
/* ============================================================= */
/* Mobile (<=767px) — Figma 12563:3608 — credentialing / why-choose / trust / case-study */
/* ============================================================= */

/* ---------- 10-credentialing — Figma 12563:4550 ---------- */
@media (max-width: 767px) {
  .ems-credentialing-row {
    gap: 20px;
  }

  .ems-credentialing-copy {
    gap: 30px;
  }

  .ems-credentialing-title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-credentialing-item-body {
    flex: 0 1 315px;
    width: 315px;
  }

  .ems-credentialing-item-text {
    font-size: 16px;
    line-height: 16px;
  }

  .ems-credentialing-item:last-child .ems-credentialing-item-text {
    font-size: 16px;
    line-height: 20px;
  }

  .ems-credentialing-btn {
    width: 270px;
    max-width: 100%;
    padding: 8px 14px;
  }

  .ems-credentialing-panel {
    gap: 30px;
    padding: 18px; /* Figma strokes sit outside layout: 20px minus the 2px border */
  }

  /* tdesign:secured 12563:4671 (87px box, right 19 / top 18.18 of the bordered frame). */
  .ems-credentialing-shield {
    top: 18.44px;
    right: 24.88px;
  }

  .ems-credentialing-cross {
    top: 45.18px;
    right: 45px;
  }

  .ems-credentialing-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ems-credentialing-step {
    padding: 16px; /* 17px minus the 1px border */
  }

  /* Step 03 uses hugeicons:file-code (12563:4628) in the mobile design. */
  .ems-credentialing-step:nth-child(3) .ems-credentialing-step-icon img {
    content: url("../../images/ems-billing-v2/credentialing/mobile/step-file-code.svg");
    width: 28.6668px;
    height: 35.3334px;
  }

  .ems-credentialing-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    height: auto;
    padding: 16px;
  }

  .ems-credentialing-badge {
    padding: 16px;
  }

  .ems-credentialing-progress-fill {
    width: 92%;
  }

  .ems-credentialing-stat-meta > span {
    color: var(--ems-orange);
  }
}

@media (max-width: 399px) {
  .ems-credentialing-step {
    padding: 17px 10px;
  }
}

/* ---------- 11-why-choose — Figma 12563:4677 ---------- */
@media (max-width: 767px) {
  .ems-v2 > .ems-why-choose {
    position: relative;
  }

  /* Decorative orbit 12563:4679 (frame x 254.3 / y 570.05; the frame's 20px top padding is 30px here). */
  .ems-v2 > .ems-why-choose::before {
    content: "";
    position: absolute;
    top: 580.05px;
    left: 254.3px;
    width: 651.508px;
    height: 654.546px;
    background: url("../../images/ems-billing-v2/why-choose/mobile/orbit.svg") no-repeat 0 0 / 100% 100%;
    pointer-events: none;
  }

  .ems-why-choose > .ems-container {
    position: relative;
    z-index: 1;
  }

  .ems-why-choose-row {
    gap: 20px;
  }

  .ems-why-choose-copy {
    gap: 40px;
  }

  .ems-why-choose .ems-eyebrow {
    font-size: 10px;
  }

  .ems-why-choose-head {
    gap: 20px;
  }

  .ems-why-choose-title {
    max-width: none;
    font-size: 24px;
    line-height: 30px;
  }

  .ems-why-choose-lead {
    gap: 25.2px;
    font-size: 14px;
    line-height: 25.2px;
  }

  .ems-why-choose-btn {
    width: 100%;
  }

  /* No MedsIT badge on mobile: the four cards simply stack. */
  .ems-why-choose-badge {
    display: none;
  }

  .ems-why-choose-grid-wrap {
    display: block;
    max-width: none;
  }

  .ems-why-choose-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: 100%;
  }

  .ems-why-choose-card {
    min-height: 0;
    padding: 14px 18px; /* Figma 16/20 with the 2px stroke outside layout */
  }
}

/* ---------- 12-trust — Figma 12563:4757 ---------- */
@media (max-width: 767px) {
  .ems-trust {
    gap: 50px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .ems-trust-title {
    font-size: 24px;
    line-height: 35px;
  }

  /* Logos 30px either side of a zero-height 142.8px rule (12563:4760). */
  .ems-trust-logos {
    gap: 60px;
  }

  .ems-trust-logo + .ems-trust-logo::before {
    top: -30.5px;
  }

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

  .ems-trust-text {
    max-width: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
  }
}

/* ---------- 13-case-study — Figma 12563:4805 (400px card) ---------- */
@media (max-width: 767px) {
  .ems-case-study .ems-container {
    padding: 0 20px;
  }

  .ems-case-study__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 20px;
  }

  /* Gradient panel 12563:4806: 739px tall, photo group 376 x 321 centred 34px from the top. */
  .ems-case-study__media {
    flex: none;
    min-height: 739px;
    padding: 34px 0 0;
    border-radius: 10px;
  }

  .ems-case-study__figure {
    width: 376px;
    height: 321px;
    aspect-ratio: auto;
  }

  .ems-case-study__ring {
    left: 191px;
    top: 55px;
    width: 155.03px;
    height: 250.73px;
  }

  .ems-case-study__photo {
    left: 14px;
    top: 0.41px;
    width: 350px;
    height: 321px;
    border-bottom-width: 4px;
  }

  .ems-case-study__quotes {
    left: 34px;
    top: 27.82px;
    width: 75px;
    height: 54px;
  }

  .ems-case-study__person,
  .ems-case-study__quote {
    width: 320px;
    max-width: calc(100% - 40px);
  }

  .ems-case-study__person {
    margin-top: 21.77px;
  }

  .ems-case-study__name {
    font-size: 20px;
    line-height: 33.84px;
  }

  .ems-case-study__role {
    font-size: 14px;
    line-height: 25.6px;
  }

  .ems-case-study__quote,
  .ems-case-study__quote p {
    font-size: 14px;
    font-weight: 500;
    line-height: 25.6px;
  }

  .ems-case-study__quote {
    margin-top: 20px;
  }

  .ems-case-study__body {
    gap: 20px;
    padding: 0;
  }

  .ems-case-study .ems-case-study__eyebrow {
    font-size: 10px;
  }

  .ems-case-study__title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-case-study__text p {
    font-size: 14px;
    line-height: 25px;
  }

  .ems-case-study__text p + p {
    margin-top: 25px;
  }

  .ems-case-study__outcomes {
    margin: 0;
    padding: 0;
  }

  .ems-case-study__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }

  .ems-case-study__stat {
    gap: 20px;
    padding: 20px;
  }

  .ems-case-study__stat-label {
    max-width: none;
  }
}

/* Narrow phones: shrink the 376px photo group so the 350px photo still fits the panel. */
@media (max-width: 399px) {
  .ems-case-study__figure {
    zoom: 0.82;
  }
}

/* ---------- Mobile: 05-integrations-coverage-payers ---------- */
/* ============================================================= */
/* Mobile (<=767px) — sections 14-integrations, 15-coverage,      */
/* 16a-payers, 16b-rules, 16c-coord.                              */
/* Figma mobile: c2-mobile 12563:4851, mobile-state-services      */
/* 12563:4965, payers/rules/coord 12563:5491.                     */
/* ============================================================= */

/* Mobile-only integrations CTA (12563:4960) — never shown above 767px. */
.ems-integrations__cta {
  display: none;
}

@media (max-width: 767px) {

  /* =========================== 14 Integrations =========================== */
  /* c2-mobile is 400 wide with 16px inner padding -> 368px column. */
  .ems-integrations .ems-container {
    padding: 0 36px;
  }

  .ems-integrations__head {
    gap: 12px;
  }

  .ems-integrations .ems-integrations__eyebrow {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 14px;
  }

  .ems-integrations .ems-integrations__title {
    font-size: 24px;
    line-height: 30px;
  }

  .ems-integrations .ems-integrations__lead {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 20px;
  }

  /* Diagram: ePCR card, arrow, hub, arrow, Clearinghouses, arrow, Billing Tools */
  .ems-integrations__diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 0;
  }

  .ems-integrations__mid,
  .ems-integrations__vline {
    order: 0;
  }

  .ems-integrations__mid {
    flex-direction: column;
    gap: 16px;
  }

  /* Connectors become the 24px dashed down-arrows; the data pulse now runs downward. */
  .ems-integrations__hline,
  .ems-integrations__vline,
  .ems-integrations__hline--left,
  .ems-integrations__hline--right {
    display: block;
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0;
    background: url("../../images/ems-billing-v2/integrations/mobile/arrow-down.svg") center / 24px 24px no-repeat;
  }

  .ems-integrations__hline img,
  .ems-integrations__vline img {
    display: none;
  }

  .ems-integrations__hline::after,
  .ems-integrations__vline::after {
    top: auto;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: 0 0 0 -3px;
    box-shadow: 0 0 0 2px rgba(252, 93, 97, 0.22), 0 0 8px rgba(252, 93, 97, 0.65);
  }

  .ems-integrations.is-in .ems-integrations__hline--left::after {
    animation: ems-integrations-pulse-down 2.4s ease-in-out 1.8s infinite;
  }

  .ems-integrations.is-in .ems-integrations__hline--right::after {
    animation: ems-integrations-pulse-down 2.4s ease-in-out 2.2s infinite;
  }

  .ems-integrations.is-armed:not(.is-in) :is(.ems-integrations__hline, .ems-integrations__vline) {
    opacity: 0;
  }

  .ems-integrations.is-in :is(.ems-integrations__hline, .ems-integrations__vline) {
    animation: ems-fade 0.6s var(--ems-ease) 0.75s backwards;
  }

  .ems-integrations.is-in .ems-integrations__vline {
    animation-delay: 0.9s;
  }

  /* Hub (12563:4881): one 180px dashed circle */
  .ems-integrations__hub {
    width: 180px;
    height: 180px;
    border-radius: 90px;
    box-shadow: 0 4px 10px rgba(39, 55, 117, 0.12);
  }

  .ems-integrations__hub-core {
    gap: 4px;
    width: 180px;
    height: 180px;
    padding: 16px;
    border-radius: 90px;
    background: #ffffff;
  }

  .ems-integrations__hub-mark {
    width: 38px;
    height: 24px;
  }

  .ems-integrations__hub-mark span {
    top: 0;
    width: 24px;
    height: 24px;
    border-width: 2.25px;
    border-radius: 12px;
  }

  .ems-integrations__hub-mark span + span {
    left: 14px;
  }

  .ems-integrations .ems-integrations__hub-title {
    font-size: 15px;
    line-height: normal;
  }

  .ems-integrations .ems-integrations__hub-text {
    color: #3d3d3d;
    font-size: 10px;
    line-height: 14px;
  }

  /* Cards */
  .ems-integrations__card,
  .ems-integrations__card--billing {
    gap: 12px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: none;
    filter: drop-shadow(0 4px 10px rgba(39, 55, 117, 0.09));
  }

  .ems-integrations__card:hover {
    box-shadow: none;
  }

  .ems-integrations__card-head {
    align-items: center;
    gap: 10px;
  }

  .ems-integrations__card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .ems-integrations__card-icon img {
    width: 20px;
    height: 20px;
  }

  .ems-integrations__card--billing .ems-integrations__card-icon img {
    width: 18.46px;
    height: 18.46px;
  }

  .ems-integrations__card-heading {
    gap: 2px;
  }

  .ems-integrations .ems-integrations__card-title {
    font-size: 16px;
    line-height: 24px;
  }

  .ems-integrations__card-bar {
    width: 20px;
    border-radius: 1.5px;
  }

  .ems-integrations__card:hover .ems-integrations__card-bar {
    width: 32px;
  }

  /* Logo rows */
  .ems-integrations__logos,
  .ems-integrations__card--clearing .ems-integrations__logos:last-child {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    width: auto;
  }

  .ems-integrations__logo,
  .ems-integrations__logo--office-ally,
  .ems-integrations__logo--angeltrack,
  .ems-integrations__logo--rescuenet {
    flex: none;
    height: 37px;
    padding: 6px;
    border-radius: 6px;
  }

  .ems-integrations__logo-box {
    max-width: none;
  }

  /* ePCR: 140 x 37 tiles, 10px padding, 5px radius */
  .ems-integrations__card--epcr .ems-integrations__logo {
    width: 140px;
    padding: 10px;
    border-radius: 5px;
  }

  .ems-integrations__logo--zoll .ems-integrations__logo-box { width: 88px; aspect-ratio: 88 / 27; }

  /* Clearinghouses: 90px tiles (Office Ally hugs its logo), rows 8px apart, TriZetto first in row 2 */
  .ems-integrations__card--clearing .ems-integrations__logos + .ems-integrations__logos {
    margin-top: -4px;
  }

  .ems-integrations__logo--availity,
  .ems-integrations__logo--waystar,
  .ems-integrations__logo--trizetto {
    width: 90px;
  }

  .ems-integrations__logo--trizetto { order: -1; }

  .ems-integrations__logo--availity .ems-integrations__logo-box { width: 68px; aspect-ratio: 68 / 17; }
  .ems-integrations__logo--office-ally .ems-integrations__logo-box { width: 78px; aspect-ratio: 78 / 14; }
  .ems-integrations__logo--office-ally img,
  .ems-integrations__logo--waystar img { left: 0; width: 100%; object-fit: cover; }
  .ems-integrations__logo--waystar .ems-integrations__logo-box { width: 78px; aspect-ratio: 78 / 16.387; }
  .ems-integrations__logo--trizetto .ems-integrations__logo-box { width: 78px; aspect-ratio: 116 / 24; }

  /* Ambulance Billing Tools: two tiles, then AngelTrack centred below */
  .ems-integrations__card--billing .ems-integrations__logos {
    flex-wrap: wrap;
    align-self: center;
    gap: 8px 20px;
    width: 210px;
  }

  .ems-integrations__logo--rescuenet { width: 96px; }
  .ems-integrations__logo--traumasoft { width: 92px; }
  .ems-integrations__logo--angeltrack { width: 94px; }

  .ems-integrations__logo--rescuenet .ems-integrations__logo-box { width: 50px; aspect-ratio: 62 / 31; }
  .ems-integrations__logo--traumasoft .ems-integrations__logo-box { width: 78px; aspect-ratio: 129 / 25; }
  .ems-integrations__logo--angeltrack .ems-integrations__logo-box { width: 60px; aspect-ratio: 89 / 37; }

  /* Benefits (12563:4935): bordered vertical list */
  .ems-integrations__bar {
    margin-top: 32px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
  }

  .ems-integrations__bar-border {
    display: none;
  }

  .ems-integrations__benefits {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ems-integrations__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
  }

  .ems-integrations__benefit,
  .ems-integrations__benefit:first-child {
    gap: 12px;
    padding: 0;
  }

  .ems-integrations__benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    filter: drop-shadow(0 0 2.4px rgba(0, 0, 0, 0.15));
  }

  .ems-integrations__benefit:nth-child(1) .ems-integrations__benefit-icon img { width: 19.2px; height: 19.2px; }
  .ems-integrations__benefit:nth-child(3) .ems-integrations__benefit-icon img { width: 17.68px; height: 17.04px; }
  .ems-integrations__benefit:nth-child(5) .ems-integrations__benefit-icon img { width: 16.2px; height: 16.18px; }
  .ems-integrations__benefit:nth-child(7) .ems-integrations__benefit-icon img { width: 19.2px; height: 19.2px; }

  .ems-integrations__benefit-label {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    color: #273775;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    white-space: normal;
  }

  /* CTA (12563:4960) */
  .ems-integrations__cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
  }

  .ems-integrations__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 8px 14px;
    border-radius: 75px;
    background: var(--ems-orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20.8px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, translate 0.3s var(--ems-ease);
  }

  .ems-integrations__btn:hover,
  .ems-integrations__btn:focus-visible {
    background: var(--ems-blue);
    color: #ffffff;
    text-decoration: none;
    translate: 0 -2px;
    box-shadow: 0 10px 20px rgba(39, 55, 117, 0.2);
  }

  .ems-integrations__btn-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: #ffffff;
    transition: translate 0.3s var(--ems-ease);
  }

  .ems-integrations__btn-icon img {
    display: block;
    max-width: none;
  }

  .ems-integrations__btn:hover .ems-integrations__btn-icon,
  .ems-integrations__btn:focus-visible .ems-integrations__btn-icon {
    translate: 4px 0;
  }

  .ems-integrations.is-armed:not(.is-in) .ems-integrations__btn {
    opacity: 0;
  }

  .ems-integrations.is-in .ems-integrations__btn {
    animation: ems-pop 0.6s var(--ems-ease) 1.1s backwards;
  }

  /* ============================= 15 Coverage ============================= */
  .ems-coverage .ems-container {
    padding: 0 20px;
  }

  .ems-coverage__head {
    gap: 12px;
  }

  .ems-coverage .ems-coverage__eyebrow {
    padding: 8px 10px;
    border-radius: 9.069px;
    font-size: 10px;
    line-height: 9.976px;
    text-transform: uppercase;
  }

  .ems-coverage .ems-coverage__title {
    font-size: 24px;
    line-height: 32px;
  }

  .ems-coverage .ems-coverage__lead {
    color: #3d3d3d;
    font-size: 13px;
    line-height: 18px;
  }

  .ems-coverage__grid {
    gap: 28px;
    margin-top: 28px;
  }

  /* Intro card (12563:4971) */
  .ems-coverage__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }

  .ems-coverage__logo {
    width: 227px;
    max-width: 100%;
    height: auto;
    grid-column: auto;
  }

  .ems-coverage__intro-copy {
    gap: 20px;
  }

  .ems-coverage .ems-coverage__intro-title {
    font-size: 18px;
    line-height: 24px;
  }

  .ems-coverage .ems-coverage__intro-text {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 25px;
  }

  .ems-coverage__btn {
    gap: 8px;
    width: 100%;
    height: auto;
    margin-top: -4px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: normal;
    filter: drop-shadow(0 4px 6px rgba(252, 93, 97, 0.25));
  }

  .ems-coverage__btn-icon {
    width: 16px;
    height: 16px;
    border-radius: 0;
    background: url("../../images/ems-billing-v2/coverage/mobile/arrow-right.svg") center / 16px 16px no-repeat;
  }

  .ems-coverage__btn-icon img {
    display: none;
  }

  /* Map + state cards: no panel card on mobile */
  .ems-coverage__panel {
    height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  /* MAP frame 400 x 194.25; the map art sits at 4.18% / 3.49% insets, 369.3 x 192.5 */
  .ems-coverage__map {
    width: 92.33%;
    max-width: none;
    height: auto;
    aspect-ratio: 369.3 / 192.5;
    margin: 0 0 1.75px 4.18%;
  }

  /* State grid (12563:5093): "Highlighted Regions" label + 2-column cards */
  .ems-coverage__states {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }

  .ems-coverage__states::before {
    content: "Highlighted Regions";
    grid-column: 1 / -1;
    color: #273775;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.5px;
  }

  .ems-coverage__state,
  .ems-coverage__state--california,
  .ems-coverage__state--texas {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: 32px auto;
    align-content: start;
    gap: 8px;
    height: 100px;
    min-height: 0;
    padding: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: none;
    filter: drop-shadow(0 4px 6px rgba(39, 55, 117, 0.06));
  }

  .ems-coverage__state:hover {
    box-shadow: none;
  }

  .ems-coverage__state--california { order: 1; }
  .ems-coverage__state--texas { order: 2; }
  .ems-coverage__state--illinois { order: 3; }
  .ems-coverage__state--new-york { order: 4; }
  .ems-coverage__state--florida { order: 5; }
  .ems-coverage__state--georgia { order: 6; }

  .ems-coverage__state-icon {
    width: 32px;
    height: 32px;
  }

  .ems-coverage__state-copy {
    display: contents;
  }

  .ems-coverage .ems-coverage__state-name {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
  }

  .ems-coverage .ems-coverage__state-note {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0;
    color: #3d3d3d;
    font-size: 12px;
    line-height: 20px;
  }

  /* ======================= 16a / 16b / 16c shared ======================= */
  /* Figma 12563:5491 is 400 wide with 20px inner padding -> 360px column. */
  :is(.ems-payers, .ems-rules, .ems-coord) .ems-container {
    padding: 0 40px;
  }

  :is(.ems-payers-eyebrow, .ems-coord-eyebrow),
  .ems-rules .ems-rules-chip {
    padding: 8px 10px;
    border-radius: 9.069px;
    font-size: 10px;
    line-height: 9.976px;
  }

  /* =============================== 16a Payers ============================== */
  .ems-payers-layout {
    gap: 20px;
  }

  .ems-payers-copy {
    gap: 20px;
  }

  .ems-payers .ems-payers-title {
    font-size: 24px;
    line-height: 35px;
  }

  .ems-payers .ems-payers-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 29.25px;
  }

  .ems-payers-board {
    gap: 24px;
  }

  .ems-payers .ems-payers-board-title {
    font-size: 16px;
    line-height: 20px;
  }

  .ems-payers .ems-payers-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 60px;
    gap: 12px;
  }

  .ems-payers-logo {
    min-width: 0;
    padding: 13px;
  }

  .ems-payers-logo--more {
    white-space: nowrap;
  }

  .ems-payers-logo img {
    flex: none;
    max-width: none;
  }

  /* Mobile grid order: Optum, UHC, Aetna / Cigna, Anthem, Kaiser / Humana, Medicaid,
     Medicare / Tricare, BCBS, Molina / Centene, Wellpoint, + More */
  .ems-payers-logo:nth-child(1) { order: 1; }
  .ems-payers-logo:nth-child(2) { order: 2; }
  .ems-payers-logo:nth-child(3) { order: 3; }
  .ems-payers-logo:nth-child(4) { order: 5; }
  .ems-payers-logo:nth-child(5) { order: 4; }
  .ems-payers-logo:nth-child(6) { order: 6; }
  .ems-payers-logo:nth-child(7) { order: 7; }
  .ems-payers-logo:nth-child(8) { order: 10; }
  .ems-payers-logo:nth-child(9) { order: 8; }
  .ems-payers-logo:nth-child(10) { order: 9; }
  .ems-payers-logo:nth-child(11) { order: 11; }
  .ems-payers-logo:nth-child(12) { order: 12; }
  .ems-payers-logo:nth-child(13) { order: 13; }
  .ems-payers-logo:nth-child(14) { order: 14; }
  .ems-payers-logo:nth-child(15) { order: 15; }

  .ems-payers .ems-payers-status {
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 9999px;
    color: #3d3d3d;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
  }

  /* 26px export holds an 18px badge; trim to Figma's 18px slot */
  .ems-payers-status img {
    flex: 0 0 26px;
    margin: -4px -4px -4px -4px;
  }

  /* =============================== 16b Rules =============================== */
  .ems-rules-banner {
    padding: 20px;
    border-radius: 16px;
  }

  .ems-rules-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
  }

  .ems-rules-head {
    flex: none;
    width: 100%;
    gap: 18.5px;
    padding: 0 1px 0 0;
    border-bottom: 0;
    border-right: 1px solid rgba(71, 85, 105, 0.5);
  }

  .ems-rules .ems-rules-title {
    width: 100%;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    white-space: normal;
  }

  .ems-rules-flow {
    flex: none;
    width: 100%;
    height: auto;
  }

  .ems-rules .ems-rules-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .ems-rules-step,
  .ems-rules-step:last-child {
    flex: none;
    gap: 10px;
    width: 174px;
    max-width: none;
    height: auto;
    min-height: 0;
  }

  .ems-rules .ems-rules-step-title {
    font-size: 14px;
    line-height: 16px;
  }

  .ems-rules .ems-rules-step-text {
    color: #ffffff;
    font-size: 12px;
    line-height: 12.5px;
  }

  /* Vertical dashed arcs (12563:5596-5599): 9 x 87 boxes alternating right / left
     of the 174px step column; the 87 x 9 connector is turned 90deg about its centre. */
  .ems-rules-connector {
    display: block;
  }

  .ems-rules-connector--1 { top: 135.93px; left: calc(50% + 51px); rotate: 90deg; }
  .ems-rules-connector--2 { top: 273.93px; left: calc(50% - 147px); rotate: 90deg; scale: 1 -1; }
  .ems-rules-connector--3 { top: 406.93px; left: calc(50% + 51px); rotate: 90deg; }
  .ems-rules-connector--4 { top: 523.93px; left: calc(50% - 147px); rotate: 90deg; scale: 1 -1; }

  .ems-rules-proof {
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-self: auto;
    gap: 10px;
    width: 100%;
    height: 198.5px;
    padding: 1px 24px 0;
    border-left: 0;
    border-top: 1px solid #ffffff;
  }

  .ems-rules .ems-rules-proof p {
    width: auto;
    color: #ffffff;
    font-size: 12px;
    line-height: 16.25px;
    text-align: center;
  }

  /* =============================== 16c Coord =============================== */
  .ems-coord-layout {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
  }

  .ems-coord-copy {
    flex: none;
    width: 100%;
    gap: 24px;
  }

  .ems-coord .ems-coord-title {
    font-size: 24px;
    line-height: 35px;
  }

  .ems-coord .ems-coord-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 25px;
  }

  /* Orbit (12563:5613): 309 x 226 stage, cards overhang both sides */
  .ems-coord-orbit {
    flex: none;
    flex-direction: row;
    gap: 0;
    width: 309px;
    height: 226.098px;
    margin: 0;
  }

  .ems-coord-ring,
  .ems-coord-dot {
    display: block;
  }

  .ems-coord-ring {
    top: calc(50% - 0.07px);
    left: 50%;
    width: 165.805px;
    height: 165.805px;
    border-width: 1.507px;
    border-radius: 82.902px;
  }

  .ems-coord-dot {
    width: 9.044px;
    height: 9.044px;
  }

  .ems-coord-dot--tl { top: 34.6px; left: 112.3px; }
  .ems-coord-dot--tr { top: 34.6px; right: 112.3px; }
  .ems-coord-dot--bl { top: auto; bottom: 33.99px; left: 112.3px; }
  .ems-coord-dot--br { top: auto; bottom: 33.99px; right: 112.3px; }

  .ems-coord-center {
    width: 120.585px;
    height: 120.585px;
    padding: 15.074px;
    border-width: 3.015px;
    box-shadow: 0 18.841px 37.683px -9.044px rgba(0, 0, 0, 0.25);
  }

  .ems-coord .ems-coord-center p {
    font-size: 13.566px;
    line-height: 16.957px;
    letter-spacing: -0.6783px;
  }

  .ems-coord .ems-coord-cards {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
  }

  .ems-coord-card,
  .ems-coord-card--medicare,
  .ems-coord-card--workers {
    position: absolute;
    gap: 6.029px;
    width: 120.585px;
    height: 36.176px;
    min-height: 0;
    padding: 6.029px 12.059px;
    border-radius: 37.683px;
    box-shadow: 0 7.537px 11.305px -2.261px rgba(0, 0, 0, 0.1);
  }

  .ems-coord-card--commercial { top: 11.99px; left: -22.61px; }
  .ems-coord-card--medicare   { top: 11.26px; right: -27.13px; width: 123.6px; }
  .ems-coord-card--auto       { top: 167.27px; left: -22.61px; }
  .ems-coord-card--workers    { top: 167.27px; right: -27.13px; width: 123.6px; }

  .ems-coord-card-ico {
    flex: 0 0 24.117px;
    width: 24.117px;
    height: 24.117px;
  }

  .ems-coord-card-ico img {
    width: 12.059px;
    height: 12.059px;
  }

  .ems-coord-card-label {
    font-size: 9.044px;
    line-height: 12.059px;
  }

  .ems-coord-card--workers .ems-coord-card-label {
    flex: 0 0 76.12px;
  }

  .ems-coord.is-in .ems-coord-card {
    animation:
      ems-coord-in 0.8s var(--ems-ease) calc(0.45s + var(--i, 0) * 0.12s) backwards,
      ems-coord-bob 4.5s ease-in-out calc(1.6s + var(--i, 0) * 0.6s) infinite;
  }

  .ems-coord-card--commercial { --dx: 60px; --dy: 50px; }
  .ems-coord-card--medicare   { --dx: -60px; --dy: 50px; }
  .ems-coord-card--auto       { --dx: 60px; --dy: -50px; }
  .ems-coord-card--workers    { --dx: -60px; --dy: -50px; }

  /* Payer types (12563:5646) */
  .ems-coord-proof {
    flex: none;
    gap: 20px;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0 20px 0 21px;
    border-top: 0;
    border-left: 1px solid #f1f5f9;
  }

  .ems-coord .ems-coord-types {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .ems-coord-type {
    flex: none;
  }

  .ems-coord .ems-coord-proof-text {
    color: #3d3d3d;
    font-size: 14px;
    font-weight: 500;
    line-height: 22.75px;
  }
}

/* Narrow phones: fall back to the standard 20px gutters so nothing overflows. */
@media (max-width: 399px) {
  .ems-integrations .ems-container,
  :is(.ems-payers, .ems-rules, .ems-coord) .ems-container {
    padding: 0 20px;
  }

  .ems-integrations__card--epcr .ems-integrations__logos {
    gap: 12px;
  }

  .ems-integrations__card--epcr .ems-integrations__logo {
    flex: 0 1 140px;
    min-width: 0;
  }

  .ems-integrations__card--epcr .ems-integrations__logo-box {
    max-width: 100%;
  }

  .ems-payers .ems-payers-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ems-payers-logo {
    padding: 8px;
  }

  .ems-payers-logo img {
    max-width: 100%;
  }

  .ems-coord .ems-coord-types {
    gap: 10px;
  }
}

/* ---------- Mobile: 06-reviews-consult-faq ---------- */
/* ============================================================= */
/* Mobile (<=767px) — 17 reviews, 18 consult, 19 faq              */
/* Figma mobile: 12563:5665 (reviews), 12563:5806 (consult form),  */
/* 12563:5909 (faq).                                               */
/* ============================================================= */

/* Mobile-only "5.0 | Verified Review" tag in the review rating row. */
.ems-reviews-rating-verified {
  display: none;
}

@media (max-width: 767px) {

  /* ---------- 17 Reviews: all four cards stacked (Figma 12563:5671) ---------- */
  .ems-reviews {
    background:
      radial-gradient(365.2px 816.08px at 50% 0, #ffffff 0%, #f5f7fc 55%, #eef1f8 100%),
      #eef1f8;
  }

  .ems-reviews > .ems-container {
    gap: 32px;
  }

  .ems-reviews-head {
    align-items: flex-start;
    gap: 17px;
    text-align: left;
  }

  .ems-reviews-pill {
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: rgba(39, 55, 117, 0.1);
    box-shadow: none;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0;
    text-transform: none;
  }

  .ems-reviews .ems-reviews-title {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -1.08px;
  }

  .ems-reviews .ems-reviews-lead {
    max-width: none;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 25px;
  }

  .ems-reviews-carousel {
    gap: 0;
    padding-top: 0;
  }

  .ems-reviews-carousel:focus-visible {
    outline: 0;
  }

  .ems-reviews-arrow,
  .ems-reviews-dots {
    display: none;
  }

  .ems-reviews-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
  }

  .ems-reviews-card,
  .ems-reviews-card.is-center,
  .ems-reviews-card.is-prev,
  .ems-reviews-card.is-next,
  .ems-reviews-card.is-after,
  .ems-reviews-card.is-hidden,
  .ems-reviews-card:not(.is-center) {
    --x: 0%;
    --w: 100%;
    left: 0;
    z-index: 1;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    min-height: 0;
    padding: 28px;
    border: 0.7px solid #f3f4f6;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.11);
    visibility: visible;
    opacity: 1;
    cursor: default;
  }

  .ems-reviews-card.is-jump {
    opacity: 1;
  }

  .ems-reviews-card:not(.is-center):hover {
    translate: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.11);
  }

  .ems-reviews-card::before,
  .ems-reviews-card.is-center::before {
    display: none;
  }

  .ems-reviews-card .ems-reviews-card-top,
  .ems-reviews-card.is-center .ems-reviews-card-top {
    align-items: flex-start;
    min-height: 0;
    height: 29px;
  }

  .ems-reviews-card .ems-reviews-mark,
  .ems-reviews-card.is-center .ems-reviews-mark {
    width: 25px;
    height: 29px;
    font-size: 48px;
    line-height: 38.4px;
  }

  .ems-reviews .ems-reviews-card .ems-reviews-quote,
  .ems-reviews .ems-reviews-card.is-center .ems-reviews-quote {
    margin-top: 0;
    color: #3d3d3d;
    font-size: 14px;
    font-weight: 400;
    line-height: 22.04px;
  }

  .ems-reviews-card .ems-reviews-rating,
  .ems-reviews-card.is-center .ems-reviews-rating {
    gap: 11px;
    margin-top: 0;
  }

  /* star.svg draws a 14.25px star inside an 18px box: trim the box to the
     14px stars on a 17.87px pitch of Figma's 85.48 x 14 rating. */
  .ems-reviews-card .ems-reviews-stars {
    gap: 0;
    height: 14px;
    align-items: center;
  }

  .ems-reviews-card .ems-reviews-stars img {
    width: 18px;
    height: 18px;
    margin: -2px -0.065px;
  }

  .ems-reviews-card .ems-reviews-stars img:first-child { margin-left: -1.9px; }
  .ems-reviews-card .ems-reviews-stars img:last-child { margin-right: -1.9px; }

  .ems-reviews-card .ems-reviews-rating b {
    padding-left: 11px;
    border-left: 0.7px solid #d1d5db;
    color: #3d3d3d;
    font-size: 10px;
    font-weight: 700;
    line-height: normal;
  }

  .ems-reviews-rating-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: -4px;
    color: #3b82f6;
    font-size: 10px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
  }

  .ems-reviews-rating-verified img {
    display: block;
    width: 10px;
    height: 10px;
  }

  .ems-reviews .ems-reviews-sep {
    height: 0.7px;
    background: #e2e8f0;
  }

  .ems-reviews-card .ems-reviews-author {
    gap: 11px;
  }

  .ems-reviews-card .ems-reviews-avatar,
  .ems-reviews-card.is-center .ems-reviews-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: var(--ems-blue);
    box-shadow: none;
    font-size: 13px;
  }

  /* Figma colours the second review's avatar orange. */
  .ems-reviews-card:nth-child(2) .ems-reviews-avatar,
  .ems-reviews-card.is-center:nth-child(2) .ems-reviews-avatar {
    background: var(--ems-orange);
  }

  .ems-reviews-card .ems-reviews-who {
    flex: 1 1 auto;
    gap: 4px;
  }

  .ems-reviews-card .ems-reviews-who b,
  .ems-reviews-card.is-center .ems-reviews-who b {
    font-size: 12px;
    line-height: 16px;
  }

  .ems-reviews-card .ems-reviews-who small {
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
  }

  /* Stacked cards rise in order instead of by carousel slot. */
  .ems-reviews.is-in .ems-reviews-card,
  .ems-reviews.is-in .ems-reviews-card.is-center,
  .ems-reviews.is-in .ems-reviews-card.is-prev,
  .ems-reviews.is-in .ems-reviews-card.is-next,
  .ems-reviews.is-in .ems-reviews-card.is-after {
    animation-delay: calc(0.3s + var(--i, 0) * 0.1s);
  }

  /* ---------- 18 Consult (Figma 12563:5806, 400 wide panel) ---------- */
  .ems-consult {
    background: transparent;
    box-shadow: none;
  }

  .ems-consult .ems-container {
    padding: 0 20px;
  }

  .ems-consult-layout {
    gap: 40px;
    padding: 40px 20px;
    background: rgba(239, 242, 255, 0.28);
    box-shadow: 0 2.704px 11.561px #eff2ff, inset 0 0 64px #eff2ff;
  }

  .ems-consult-copy {
    gap: 20px;
  }

  .ems-consult .ems-consult-chip {
    padding: 8px 10px;
    border-radius: 9.069px;
    font-size: 10px;
    line-height: 9.976px;
  }

  .ems-consult-head {
    gap: 20px;
  }

  .ems-consult .ems-consult-title {
    font-size: 32px;
    line-height: 40px;
  }

  .ems-consult .ems-consult-lead {
    color: #3d3d3d;
    font-size: 14px;
    font-weight: 500;
    line-height: 28.8px;
  }

  .ems-consult-checks {
    gap: 9px;
  }

  .ems-consult-check {
    align-items: center;
    gap: 10px;
    color: #3d3d3d;
    font-size: 14px;
    font-weight: 500;
    line-height: 28.8px;
  }

  .ems-consult-badges {
    gap: 19px;
  }

  .ems-consult-badge {
    height: auto;
    min-height: 58px;
    padding: 9px 17px;
    gap: 12px;
  }

  .ems-consult-badge-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 1.6px 1.6px rgba(0, 0, 0, 0.15));
  }

  .ems-consult-badge-icon img {
    width: 24px;
    height: 24px;
  }

  .ems-consult .ems-consult-badge-label {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 20px;
  }

  /* Card: 5px stroke inside Figma's 30/20 padding. */
  .ems-consult-card {
    gap: 20px;
    padding: 25px 15px;
    border-width: 5px;
    border-radius: 40px;
  }

  .ems-consult .ems-consult-card-title {
    font-size: 22px;
    line-height: 34px;
  }

  .ems-consult .ems-consult-card-text {
    margin-top: -10px;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 21.6px;
  }

  .ems-consult-form,
  .ems-consult-fields {
    gap: 20px;
  }

  .ems-consult .ems-consult-input {
    height: 50px;
    padding-left: 40px;
    border-radius: 5px;
    font-size: 14px;
  }

  .ems-consult-field-icon {
    left: 15px;
  }

  .ems-consult .ems-consult-submit {
    font-size: 14px;
  }

  .ems-consult .ems-consult-note {
    justify-content: flex-start;
    width: 100%;
    color: #9a9a9f;
    font-size: 14px;
    line-height: 28.8px;
    text-align: left;
  }

  .ems-consult .ems-consult-note > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* ---------- 19 FAQ (Figma 12563:5909) ---------- */
  .ems-faq .ems-container {
    padding: 0 20px;
  }

  .ems-faq-layout {
    gap: 50px;
  }

  .ems-faq-intro {
    gap: 40px;
  }

  .ems-faq-head {
    gap: 16px;
  }

  .ems-faq .ems-faq-chip {
    padding: 8px 10px;
    border-radius: 9.069px;
    font-size: 10px;
    line-height: 9.976px;
  }

  .ems-faq .ems-faq-title {
    font-size: 24px;
    line-height: 35px;
  }

  .ems-faq .ems-faq-lead {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 29.25px;
  }

  .ems-faq-pills {
    flex-direction: column;
    gap: 20px;
  }

  .ems-faq-pill {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    gap: 12px;
    font-size: 14px;
    line-height: 24px;
  }

  .ems-faq .ems-faq-note {
    color: #3d3d3d;
    font-size: 14px;
    line-height: 20px;
  }

  .ems-faq .ems-faq-btn {
    gap: 10px;
    min-height: 0;
    padding: 20px 20px 21px;
    font-size: 14px;
    line-height: 24px;
  }

  /* 24px between number and question, 10px before the chevron. */
  .ems-faq-num {
    width: 40px;
    height: 40px;
    margin-right: 14px;
    font-size: 14px;
    line-height: 20px;
  }

  /* Figma keeps the open item's number on the light pill. */
  .ems-faq-item.is-open .ems-faq-num {
    background: #eff2ff;
    color: var(--ems-blue);
  }

  .ems-faq .ems-faq-a-inner p {
    margin: 32px;
    padding-left: 20px;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 22.75px;
  }
}


/* EMS QA: retain the section artwork and compact card layouts on phones. */
.ems-v2 .ems-why-choose-btn { width: 100%; }
.ems-v2 .ems-faq-btn { cursor: default; }
.ems-v2 .ems-faq-chevron { cursor: pointer; flex-shrink: 0; box-sizing: content-box; padding: 12px; margin: -12px; }
.ems-v2 .ems-rules-connector { top: 20px; width: 9%; }
.ems-v2 .ems-rules-connector img { width: 100%; height: auto; }
.ems-v2 .ems-rules-spark { display: none; }
@media (max-width: 767px) {
  .ems-v2 .ems-why__visual { height: 300px; }
  .ems-v2 .ems-why__photo img { object-fit: contain; }
  .ems-v2 .ems-why__card { top: 40px; }
  /* Scale the 418px reference card with its available width, including type.
     Fixed desktop-sized type made the copy wrap into a much taller column. */
  .ems-v2 .ems-cta-bar > .ems-container { container-type: inline-size; }
  .ems-v2 .ems-cta-bar__box {
    gap: 5.742cqw;
    padding: 5.742cqw;
    border: 0;
    border-radius: 5.742cqw;
    background: #eff2ff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  }
  .ems-v2 .ems-cta-bar__border,
  .ems-v2 .ems-cta-bar__divider { display: none; }
  .ems-v2 .ems-cta-bar__main {
    display: grid;
    grid-template-columns: 16.746cqw minmax(0, 1fr);
    align-items: start;
    gap: 4.785cqw;
  }
  .ems-v2 .ems-cta-bar__badge { width: 16.746cqw; height: 16.746cqw; padding: 0; }
  .ems-v2 .ems-cta-bar__badge img { width: 10.048cqw; height: 10.287cqw; }
  .ems-v2 .ems-cta-bar__badge::before { display: none; }
  .ems-v2 .ems-cta-bar__copy { gap: 5.742cqw; }
  .ems-v2 .ems-cta-bar__title { font-size: clamp(16px, 4.785cqw, 20px); line-height: 1.55; }
  .ems-v2 .ems-cta-bar__text { font-size: clamp(12px, 3.828cqw, 16px); line-height: 1.5625; font-weight: 400; }
  .ems-v2 .ems-cta-bar__btn { width: 100%; height: 12.919cqw; min-height: 44px; font-size: clamp(12px, 3.349cqw, 14px); }
  .ems-v2 .ems-cta-bar__btn-icon { width: 4.785cqw; height: 4.785cqw; }
  .ems-v2 .ems-cta-bar__btn-icon img { width: 2.632cqw; height: 2.392cqw; }
  .ems-v2 .ems-process__decor { display: block; opacity: .5; }
  .ems-v2 .ems-process__dot { display: none; }
  .ems-v2 .ems-process__panel-title { padding-bottom: 0; }
  .ems-v2 .ems-process__panel-title::after { display: none; }
  .ems-v2 .ems-process__check { padding-bottom: 10px; border-bottom: 1px solid #e1e7f4; }
  .ems-v2 .ems-coding__ring { display: none; }
  .ems-v2 .ems-serve__grid { display: flex; flex-direction: column; gap: 16px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .ems-v2 .ems-serve__card { flex: none; width: 100%; min-height: 110px; padding: 18px; }
  .ems-v2 .ems-serve__name { font-size: 16px; line-height: 24px; }
  .ems-v2 .ems-types__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ems-v2 .ems-types__card { min-height: 220px; padding: 20px; }
  .ems-v2 .ems-types__name { font-size: 18px; line-height: 25px; overflow-wrap: normal; }
  .ems-v2 .ems-types__text { font-size: 14px; line-height: 20px; }
  .ems-v2 .ems-credentialing-panel { padding: 16px; gap: 24px; }
  .ems-v2 .ems-credentialing-line,
  .ems-v2 .ems-credentialing-step-num { display: none; }
  .ems-v2 .ems-credentialing-steps { padding-top: 0; gap: 16px; }
  .ems-v2 .ems-credentialing-step { min-width: 0; min-height: 190px; padding: 16px 12px; gap: 10px; }
  .ems-v2 .ems-credentialing-step-icon { width: 54px; height: 54px; }
  .ems-v2 .ems-credentialing-step-title { font-size: 12px; line-height: 18px; }
  .ems-v2 .ems-credentialing-step-text { font-size: 11px; line-height: 15px; }
  .ems-v2 .ems-credentialing-step-bar { width: 24px; height: 3px; }
  .ems-v2 .ems-credentialing-badge { width: max-content; max-width: calc(100% - 72px); height: auto; padding: 12px; gap: 10px; }
  .ems-v2 .ems-credentialing-badge-icon { width: 40px; height: 40px; }
  .ems-v2 .ems-credentialing-badge-title { font-size: 12px; line-height: 18px; white-space: normal; }
  .ems-v2 .ems-credentialing-badge-meta { font-size: 10px; line-height: 16px; }
  .ems-v2 .ems-credentialing-shield { width: 62px; height: 72px; right: 18px; top: 16px; }
  .ems-v2 .ems-credentialing-cross { width: 26px; height: 26px; right: 36px; top: 39px; }
  .ems-v2 .ems-credentialing-stats { padding: 12px; gap: 10px; }
  .ems-v2 .ems-credentialing-divider { width: 100%; height: 1px; background: #e5e7eb; }
  .ems-v2 .ems-credentialing-divider img { display: none; }
  .ems-v2 .ems-credentialing-progress-value,
  .ems-v2 .ems-credentialing-stat-meta { font-size: 10px; line-height: 16px; }
  .ems-v2 .ems-credentialing-progress-fill { width: 79%; }
  .ems-v2 .ems-integrations__diagram > * { order: 0; }
  .ems-v2 .ems-integrations__btn {
    width: 100%;
    max-width: 340px;
    min-height: 48px;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 20px;
    white-space: normal;
    text-align: center;
  }
  .ems-v2 .ems-integrations__btn-icon { width: 18px; height: 18px; }
  .ems-v2 .ems-integrations__card--billing .ems-integrations__logos { display: flex; flex-direction: row; gap: 8px; }
  .ems-v2 .ems-integrations__card--billing .ems-integrations__logo { flex: 1 1 0; min-width: 0; width: auto; }
  .ems-v2 .ems-integrations__logo-box { max-width: 100%; }
  .ems-v2 .ems-integrations__logo img { max-width: 100%; object-fit: contain; }
  .ems-v2 .ems-payers .ems-payers-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ems-v2 .ems-payers-logo { padding: 8px; }
  .ems-v2 .ems-payers-logo img { max-width: 100%; height: auto; object-fit: contain; }
  .ems-v2 .ems-coverage__state { height: auto; min-height: 120px; }
  .ems-v2 .ems-rules-connector { width: 87px; }
  .ems-v2 .ems-rules-connector--1 { top: 135.93px; }
  .ems-v2 .ems-rules-connector--2 { top: 273.93px; }
  .ems-v2 .ems-rules-connector--3 { top: 406.93px; }
  .ems-v2 .ems-rules-connector--4 { top: 523.93px; }
  .ems-v2 .ems-reviews-track { display: grid; min-height: var(--dme-testi-mobile-card-height, 460px); }
  .ems-v2 .ems-reviews-card { grid-area: 1 / 1; }
  .ems-v2 .ems-reviews-card:not(.is-center) { visibility: hidden; opacity: 0; pointer-events: none; }
  .ems-v2 .ems-reviews-card.is-center { visibility: visible; opacity: 1; }
  .ems-v2 .ems-reviews-carousel { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
  .ems-v2 .ems-reviews-track { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .ems-v2 .ems-reviews-dots { display: flex; grid-column: 2; grid-row: 2; min-height: 44px; padding: 0; justify-content: center; align-items: center; }
  .ems-v2 .ems-reviews-arrow { display: flex; position: static; grid-row: 2; width: 36px; height: 36px; margin: 0; translate: none; justify-self: center; }
  .ems-v2 .ems-reviews-arrow--prev { grid-column: 1; }
  .ems-v2 .ems-reviews-arrow--next { grid-column: 3; }
  .ems-v2 .ems-reviews-arrow img { width: 16px; height: 16px; }
  .ems-v2 .ems-reviews-verified { display: inline-flex; }
  .ems-v2 .ems-consult-badges { display: flex; flex-direction: column; width: 100%; }
  .ems-v2 .ems-consult-badge { display: flex; width: 100%; }
}
