/* ============================================================= */
/* Section: 11-states */
/* ============================================================= */
/* ===== Nationwide States — Figma node 12183:1442 (1440 x 1215) ===== */
.ai-states {
  position: relative;
  overflow: hidden;
}

/* Decorative rings (12183:1469 / 1470) */
.ai-states-ring {
  position: absolute;
  border: 1px solid rgba(39, 55, 117, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.ai-states-ring--lg {
  top: -120.85px;
  left: calc(50% - 910px);
  width: 520px;
  height: 520px;
}

.ai-states-ring--sm {
  top: -30.85px;
  left: calc(50% - 820px);
  width: 340px;
  height: 340px;
}

/* Dot grids (6px dots, 14px gaps) */
.ai-states-dots {
  position: absolute;
  pointer-events: none;
  background-size: 20px 20px;
}

.ai-states-dots--blue {
  top: 23.15px;
  left: calc(50% - 620px);
  width: 106px;
  height: 106px;
  background-image: radial-gradient(circle at 3px 3px, rgba(39, 55, 117, 0.16) 2.9px, transparent 3.1px);
}

.ai-states-dots--orange {
  top: 19.15px;
  right: calc(50% - 620px);
  width: 86px;
  height: 66px;
  background-image: radial-gradient(circle at 3px 3px, var(--ai-orange) 2.9px, transparent 3.1px);
}

/* Header (12183:1529) */
.ai-states-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ai-states-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 10px;
  border: 1px solid #fbd3d4;
  border-radius: 100px;
  background: #fff1f1;
  color: var(--ai-orange);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
}

.ai-states-chip img {
  display: block;
  flex: 0 0 8px;
}

.ai-states-title {
  max-width: 658px;
  color: var(--ai-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
  letter-spacing: -0.48px;
}

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

/* ---------- Map stage (12183:1535) ---------- */
.ai-states-stage {
  position: relative;
  max-width: 1032px;
  margin: 18.84px auto 0;
}

.ai-states-map {
  position: relative;
  overflow: hidden;
  border-radius: 23.319px;
  background: #f5f8ff;
  box-shadow: 0 33.313px 74.953px -41.641px rgba(39, 55, 117, 0.45);
  container-type: inline-size;
}

.ai-states-map::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.833px rgba(39, 55, 117, 0.06);
  pointer-events: none;
}

.ai-states-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1032 / 699.564;
}

.ai-states-art > span,
.ai-states-pin,
.ai-states-pin-glow,
.ai-states-callout,
.ai-states-leader,
.ai-states-leader-dot,
.ai-states-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-states-layer,
.ai-states-layer-bleed {
  position: absolute;
  display: block;
}

.ai-states-layer img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.ai-states-label {
  position: absolute;
  color: var(--ai-blue);
  font-size: 1.6947cqw; /* 17.489px at the 1032px Figma width */
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
  pointer-events: auto;
}

a.ai-states-label {
  transition: color 0.25s ease;
}

a.ai-states-label:hover,
a.ai-states-label:focus-visible {
  color: var(--ai-orange);
}

.ai-states-label--center {
  text-align: center;
}

.ai-states-map-btn {
  position: absolute;
  top: 89.91%;
  left: 41.02%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 214px;
  height: 50px;
  padding: 15px 20px;
  border: 1px solid var(--ai-white);
  border-radius: 100px;
  background: var(--ai-orange);
  color: var(--ai-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ai-states-map-btn:hover,
.ai-states-map-btn:focus-visible {
  color: var(--ai-white);
  background: #e94a4e;
  box-shadow: 0 12px 24px -10px rgba(252, 93, 97, 0.6);
  transform: translateY(-2px);
}

/* ---------- Floating cards ---------- */
.ai-states-float {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 13.325px 14.991px;
  border-radius: 13.325px;
  background: var(--ai-white);
  box-shadow: 0 18.322px 36.644px -18.322px rgba(39, 55, 117, 0.38), 0 0 0 0.833px rgba(39, 55, 117, 0.07);
  color: var(--ai-blue);
  line-height: normal;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ai-states-float:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -18px rgba(39, 55, 117, 0.45), 0 0 0 0.833px rgba(39, 55, 117, 0.08);
}

.ai-states-float img {
  display: block;
  flex: 0 0 auto;
}

/* 262px (Figma 235) so "Accident Claim Review" fits beside the Matched badge. */
.ai-states-float--claim {
  top: -48.3px;
  left: -43.31px;
  width: 262px;
  gap: 6.663px;
}

/* "Days in AR Card" 12203:1555: section x 1061 / y 201.88, 210 wide. */
.ai-states-float--payment {
  top: -60.4px;
  right: -35px;
  width: 210px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 10px rgba(39, 55, 117, 0.06);
}

.ai-states-float--payment:hover {
  box-shadow: 0 18px 30px -8px rgba(39, 55, 117, 0.18);
}

.ai-states-float--ar {
  right: -42.34px;
  bottom: -27.98px;
  flex-direction: row;
  align-items: center;
  gap: 9.994px;
  width: 219px;
}

.ai-states-float--coverage {
  bottom: -46.2px;
  left: -43.31px;
  width: 289px;
  gap: 9.161px;
}

.ai-states-float-head {
  display: flex;
  align-items: center;
  gap: 6.663px;
  padding-bottom: 0.833px;
  font-size: 8.328px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Claim card */
.ai-states-claim-row {
  display: flex;
  align-items: flex-start;
  gap: 9.994px;
  width: 100%;
  padding-bottom: 4.997px;
}

.ai-states-claim-icon {
  display: flex;
  flex: 0 0 31.647px;
  align-items: center;
  justify-content: center;
  width: 31.647px;
  height: 31.647px;
  border-radius: 9.161px;
  background: var(--ai-blue);
}

.ai-states-claim-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.ai-states-claim-title {
  padding-bottom: 0.833px;
  font-size: 10.827px;
  font-weight: 600;
  white-space: nowrap;
}

.ai-states-claim-sub {
  padding-bottom: 0.833px;
  color: var(--ai-text);
  font-size: 9.161px;
  white-space: nowrap;
  opacity: 0.7;
}

.ai-states-claim-badge {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4.997px;
  padding: 3.331px 7.495px 4.164px;
  border-radius: 83.281px;
  background: #e9f8f1;
  color: #1e9e6a;
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.ai-states-claim-badge i {
  flex: 0 0 4.164px;
  width: 4.164px;
  height: 4.164px;
  border-radius: 50%;
  background: #1e9e6a;
}

.ai-states-claim-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 4.997px;
  overflow: hidden;
  border-radius: 83.281px;
  background: #edf0f9;
}

.ai-states-claim-bar i {
  position: absolute;
  inset: 0 14% 0 0;
  border-radius: 83.281px;
  background: var(--ai-blue);
  transform-origin: left center;
}

.ai-states-claim-foot {
  display: flex;
  gap: 10px;
  color: #8a93b2;
  font-size: 8.328px;
  font-weight: 500;
  letter-spacing: 0.1666px;
  white-space: nowrap;
}

/* Payment Reconciliation / EOB Review */
.ai-states-payment-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 1px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ai-states-payment-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  white-space: nowrap;
}

.ai-states-payment-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: 100%;
  height: 50px;
  margin-top: -1px;
  padding-top: 6px;
}

.ai-states-payment-bars i {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: #e3e8f6;
  transform-origin: bottom center;
}

.ai-states-payment-bars i:last-child {
  background: var(--ai-orange);
}

.ai-states-payment-note {
  margin-top: 6px;
  color: #8a93b2;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 15px;
}

/* Unpaid claim follow-up */
.ai-states-ar-donut {
  position: relative;
  display: flex;
  flex: 0 0 48.303px;
  align-items: center;
  justify-content: center;
  width: 48.303px;
  height: 48.303px;
}

.ai-states-ar-donut img {
  position: absolute;
  inset: 0;
}

.ai-states-ar-donut > span {
  position: relative;
  font-size: 9.161px;
  font-weight: 600;
}

.ai-states-ar-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.ai-states-ar-copy .ai-states-float-head {
  gap: 5.83px;
}

/* "Next Action Tracked" (13px so it fits the 219px card; Figma's figure was 16.66px). */
.ai-states-ar-value {
  padding-top: 4.997px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18.322px;
  letter-spacing: -0.1666px;
  white-space: nowrap;
}

.ai-states-ar-text {
  padding-bottom: 0.833px;
  color: var(--ai-text);
  font-size: 9.161px;
  opacity: 0.7;
}

/* Billing coverage chips */
.ai-states-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 259.231px;
  max-width: 100%;
}

.ai-states-chips i {
  display: inline-flex;
  align-items: center;
  height: 23.734px;
  padding: 4.164px 8.328px;
  border: 0.833px solid #e1e7f8;
  border-radius: 83.281px;
  background: #f1f4fd;
  font-size: 8.745px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ai-states-chips i:hover {
  border-color: rgba(39, 55, 117, 0.25);
  background: #e6ebfa;
}

/* ---------- Stats row (12183:1443) ---------- */
.ai-states .ai-states-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 163px;
  margin-top: 90.44px;
  border-top: 1px solid #e6eaf6;
}

.ai-states-stat {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4.895px;
  min-width: 0;
  padding: 30px 34px;
  border-right: 1px solid #e6eaf6;
}

.ai-states-stat:first-child {
  gap: 5px;
  padding: 30px 34px 50.79px 0;
}

.ai-states-stat:last-child {
  border-right: 0;
}

.ai-states-stat-value {
  color: var(--ai-blue);
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.68px;
  white-space: pre-wrap;
}

.ai-states-stat-value [data-bh-count] {
  font-variant-numeric: tabular-nums;
}

.ai-states-stat-text {
  color: var(--ai-text);
  font-size: 14px;
  line-height: 20.8px;
}

/* Phone-only state list */
.ai-states-list {
  display: none;
}

/* ---------- Animation ---------- */
@keyframes ai-states-zoom {
  from { opacity: 0; scale: 0.9; }
  to   { opacity: 1; scale: 1; }
}

@keyframes ai-states-drop {
  0%   { opacity: 0; translate: 0 -28px; }
  65%  { opacity: 1; translate: 0 3px; }
  100% { opacity: 1; translate: 0 0; }
}

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

@keyframes ai-states-pulse {
  0%, 100% { opacity: 0.5; scale: 0.92; }
  50%      { opacity: 1;   scale: 1.08; }
}

@keyframes ai-states-ping {
  0%   { opacity: 1; scale: 1; }
  60%  { opacity: 0; scale: 2.2; }
  61%  { opacity: 0; scale: 1; }
  100% { opacity: 1; scale: 1; }
}

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

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

@keyframes ai-states-ring-fill {
  from { opacity: 0; rotate: -150deg; scale: 0.7; }
  to   { opacity: 1; rotate: 0deg; scale: 1; }
}

.ai-states.is-armed:not(.is-in) :is(
  .ai-states-head > *,
  .ai-states-ring,
  .ai-states-dots,
  .ai-states-map,
  .ai-states-land,
  .ai-states-arc,
  .ai-states-pin,
  .ai-states-leader,
  .ai-states-leader-dot,
  .ai-states-label,
  .ai-states-map-btn,
  .ai-states-float,
  .ai-states-list li,
  .ai-states-stat
) {
  opacity: 0;
}

.ai-states.is-in .ai-states-head > * { animation: ai-rise 0.7s var(--ai-ease) backwards; }
.ai-states.is-in .ai-states-head > :nth-child(2) { animation-delay: 0.1s; }

.ai-states.is-in .ai-states-ring { animation: ai-states-zoom 1.2s var(--ai-ease) backwards; }
.ai-states.is-in .ai-states-ring--sm { animation-delay: 0.15s; }

.ai-states.is-in .ai-states-dots {
  animation: ai-fade 0.8s ease 0.2s backwards, ai-float 6s ease-in-out 1s infinite;
}

.ai-states.is-in .ai-states-dots--orange { animation-delay: 0.3s, 1.6s; }

/* map card scales in, the land fades, arcs draw across it */
.ai-states.is-in .ai-states-map { animation: ai-states-zoom 0.9s var(--ai-ease) 0.2s backwards; }
.ai-states.is-in .ai-states-land { animation: ai-fade 0.8s ease 0.5s backwards; }

.ai-states.is-in .ai-states-arc { animation: ai-states-draw 1.1s ease-out 1.2s backwards; }
.ai-states.is-in .ai-states-arc:nth-of-type(3n + 1) { animation-delay: 1.32s; }
.ai-states.is-in .ai-states-arc:nth-of-type(3n + 2) { animation-delay: 1.44s; }

/* pins drop in sequence, then glow / ping on a loop */
.ai-states.is-in .ai-states-pin { animation: ai-states-drop 0.6s var(--ai-ease) 0.8s backwards; }
.ai-states.is-in .ai-states-pin--blue:nth-of-type(2n) { animation-delay: 0.88s; }
.ai-states.is-in .ai-states-pin--blue:nth-of-type(3n) { animation-delay: 0.96s; }
.ai-states.is-in .ai-states-pin--blue:nth-of-type(5n) { animation-delay: 1.04s; }
.ai-states.is-in .ai-states-pin--red { animation-delay: 1.15s; }
.ai-states.is-in .ai-states-pin--red:nth-of-type(2n) { animation-delay: 1.3s; }
.ai-states.is-in .ai-states-pin--red:nth-of-type(3n) { animation-delay: 1.45s; }

.ai-states.is-in .ai-states-pin-glow .ai-states-layer {
  animation: ai-states-pulse 2.6s ease-in-out 1.8s infinite;
}

.ai-states.is-in .ai-states-pin--blue:nth-of-type(odd) .ai-states-pin-glow .ai-states-layer { animation-delay: 2.4s; }

.ai-states.is-in .ai-states-pin--red .ai-states-layer-bleed {
  animation: ai-states-ping 2.4s ease-out 2s infinite;
}

/* state call-outs: leader draws, end dot appears, label rises */
.ai-states.is-in .ai-states-leader { animation: ai-states-draw 0.6s ease-out 1.7s backwards; }
.ai-states.is-in .ai-states-leader-dot { animation: ai-fade 0.3s ease 2.2s backwards; }
.ai-states.is-in .ai-states-label { animation: ai-rise 0.6s var(--ai-ease) 2.2s backwards; }

.ai-states.is-in .ai-states-map-btn { animation: ai-rise 0.7s var(--ai-ease) 1.6s backwards; }

/* floating cards slide in from their side, then float */
.ai-states.is-in .ai-states-float--claim,
.ai-states.is-in .ai-states-float--coverage {
  animation: ai-slide-left 0.8s var(--ai-ease) 1s backwards, ai-float 6s ease-in-out 2.2s infinite;
}

.ai-states.is-in .ai-states-float--payment,
.ai-states.is-in .ai-states-float--ar {
  animation: ai-slide-right 0.8s var(--ai-ease) 1.15s backwards, ai-float 6.5s ease-in-out 2.6s infinite;
}

.ai-states.is-in .ai-states-float--coverage { animation-delay: 1.3s, 3s; }
.ai-states.is-in .ai-states-float--ar { animation-delay: 1.45s, 3.3s; }

.ai-states.is-in .ai-states-claim-bar i { animation: ai-states-grow-x 1.2s var(--ai-ease) 1.6s backwards; }
.ai-states.is-in .ai-states-payment-bars i { animation: ai-states-grow-y 0.7s var(--ai-ease) 1.6s backwards; }
.ai-states.is-in .ai-states-payment-bars i:nth-child(2) { animation-delay: 1.68s; }
.ai-states.is-in .ai-states-payment-bars i:nth-child(3) { animation-delay: 1.76s; }
.ai-states.is-in .ai-states-payment-bars i:nth-child(4) { animation-delay: 1.84s; }
.ai-states.is-in .ai-states-payment-bars i:nth-child(5) { animation-delay: 1.92s; }
.ai-states.is-in .ai-states-payment-bars i:nth-child(6) { animation-delay: 2s; }
.ai-states.is-in .ai-states-ar-donut img { animation: ai-states-ring-fill 1.1s var(--ai-ease) 1.7s backwards; }
.ai-states.is-in .ai-states-chips i { animation: ai-pop 0.5s var(--ai-ease) 1.9s backwards; }
.ai-states.is-in .ai-states-chips i:nth-child(n + 3) { animation-delay: 2s; }
.ai-states.is-in .ai-states-chips i:nth-child(n + 5) { animation-delay: 2.1s; }

.ai-states.is-in .ai-states-list li { animation: ai-rise 0.6s var(--ai-ease) 0.6s backwards; }

/* stats rise in sequence (the 50 counts up via data-bh-count) */
.ai-states.is-in .ai-states-stat { animation: ai-rise 0.7s var(--ai-ease) 0.4s backwards; }
.ai-states.is-in .ai-states-stat:nth-child(2) { animation-delay: 0.5s; }
.ai-states.is-in .ai-states-stat:nth-child(3) { animation-delay: 0.6s; }
.ai-states.is-in .ai-states-stat:nth-child(4) { animation-delay: 0.7s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ai-states-stage {
    max-width: min(1032px, calc(100% - 60px));
    margin-top: 50px;
  }

  .ai-states-float--claim,
  .ai-states-float--coverage {
    left: -30px;
  }

  .ai-states-float--payment,
  .ai-states-float--ar {
    right: -30px;
  }

  .ai-states-stat {
    padding: 26px 22px;
  }

  .ai-states-stat:first-child {
    padding: 26px 22px 26px 0;
  }
}

@media (max-width: 991px) {
  .ai-states-title {
    font-size: 30px;
    line-height: 40px;
  }

  /* Floating cards leave the map and sit in a tidy grid below it. */
  .ai-states-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    max-width: 100%;
    margin-top: 32px;
  }

  .ai-states-map {
    grid-column: 1 / -1;
  }

  .ai-states-float,
  .ai-states-float--claim,
  .ai-states-float--payment,
  .ai-states-float--ar,
  .ai-states-float--coverage {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
  }

  .ai-states-float--payment {
    box-shadow: 0 18.322px 36.644px -18.322px rgba(39, 55, 117, 0.38), 0 0 0 0.833px rgba(39, 55, 117, 0.07);
  }

  .ai-states-chips {
    width: 100%;
  }

  .ai-states-float--coverage { order: 3; }
  .ai-states-float--ar { order: 4; }

  .ai-states .ai-states-stats {
    flex-wrap: wrap;
    margin-top: 48px;
  }

  .ai-states-stat,
  .ai-states-stat:first-child {
    flex: 1 1 50%;
    padding: 24px 20px;
    border-bottom: 1px solid #e6eaf6;
  }

  .ai-states-stat:nth-child(2n) {
    border-right: 0;
  }

  .ai-states-stat:nth-child(n + 3) {
    border-bottom: 0;
  }
}

/* ---------- Phones — Figma mobile node 12183:3627 ("mobile-nationwide-coverage", a 390px #f5f8ff
   panel at x 25 with 20px / 16px padding, so a 358px column). Same layout as the workers' comp
   page's states section on mobile (11966:2887): header -> 32px -> map cropped to its 358 x 209.43
   land box -> 32px -> 2-column state list -> 32px -> four cards stacked 12px apart -> 32px ->
   stats between two rules. Card copy stays the page copy (not Figma's placeholder copy). ---------- */
@media (max-width: 767px) {
  .ai-states .ai-container {
    position: relative;
    width: auto;
    margin: 0 25px;
    padding: 20px 16px;
    overflow: hidden;
    background: #f5f8ff;
  }

  .ai-states .ai-container::before,
  .ai-states .ai-container::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(39, 55, 117, 0.06);
    border-radius: 50%;
    pointer-events: none;
  }

  .ai-states .ai-container::before { top: -80px; left: -80px; width: 240px; height: 240px; }
  .ai-states .ai-container::after  { top: -40px; left: -40px; width: 160px; height: 160px; }

  .ai-states-ring,
  .ai-states-dots {
    display: none;
  }

  .ai-states-head {
    gap: 16px;
  }

  /* 11px bold; shrinks to stay on one line below ~375px */
  .ai-states-chip {
    gap: 8px;
    padding: 8px 16px;
    font-size: min(11px, calc((100vw - 132px) * 11 / 246));
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
  }

  .ai-states-title {
    font-size: 24px;
    line-height: 35px;
    letter-spacing: -0.48px;
  }

  .ai-states-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* the <=991 grid sets "start", which collapsed the map to 0 width */
    gap: 12px;
    max-width: none;
    margin-top: 32px;
  }

  /* The map crops to its land box (map-base sits at 10.9% / 13.68% of the art, 74.28% x 64.15% of it). */
  .ai-states-map {
    order: 1;
    margin-bottom: 20px;
    aspect-ratio: 358 / 209.43;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ai-states-map::after,
  .ai-states-deco,
  .ai-states-callout,
  .ai-states-labels,
  .ai-states-map-btn {
    display: none;
  }

  .ai-states-art {
    position: absolute;
    top: -21.325%;
    left: -14.674%;
    width: 134.626%;
  }

  .ai-states-list {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }

  .ai-states-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ai-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
  }

  .ai-states-list img {
    display: block;
    flex: none;
  }

  .ai-states-float,
  .ai-states-float--claim,
  .ai-states-float--payment,
  .ai-states-float--ar,
  .ai-states-float--coverage {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 10px rgba(39, 55, 117, 0.06);
  }

  .ai-states-float:hover {
    transform: none;
  }

  /* Stacked cards just rise in once (no side slide or float loop). */
  .ai-states.is-in .ai-states-float--claim,
  .ai-states.is-in .ai-states-float--payment,
  .ai-states.is-in .ai-states-float--ar,
  .ai-states.is-in .ai-states-float--coverage {
    animation: ai-rise 0.7s var(--ai-ease) 0.9s backwards;
  }

  .ai-states-float--claim    { order: 3; gap: 8px; }
  .ai-states-float--payment  { order: 4; }
  .ai-states-float--ar       { order: 5; }
  .ai-states-float--coverage { order: 6; gap: 10px; }

  .ai-states-float-head {
    gap: 5px;
    padding-bottom: 1px;
    font-size: 12px;
  }

  .ai-states-float-head img {
    width: 16px;
    height: 16px;
  }

  .ai-states-claim-row {
    align-items: center;
    gap: 8px;
    padding-bottom: 0;
  }

  .ai-states-claim-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-radius: 5px;
  }

  .ai-states-claim-title { padding-bottom: 0; font-size: 12px; }
  .ai-states-claim-sub { padding-bottom: 0; font-size: 11px; }

  .ai-states-claim-badge {
    gap: 4px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
  }

  .ai-states-claim-bar { height: 6px; }

  .ai-states-claim-foot {
    justify-content: space-between;
    width: 100%;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: normal;
  }


  /* Payment card (12183:3759): copy left, bar chart right, note under both. The copy column
     sizes to the one-line label so the chart takes the rest (178px in Figma). */
  .ai-states-float--payment {
    display: grid;
    grid-template-columns: auto minmax(0, 178px);
    justify-content: space-between;
    grid-template-areas: "head bars" "title bars" "note note";
    align-items: start;
    column-gap: 12px;
    row-gap: 0;
  }

  .ai-states-payment-head { grid-area: head; }
  .ai-states-payment-note { text-align: right; }
  .ai-states-payment-title { grid-area: title; }
  .ai-states-payment-bars { grid-area: bars; margin-top: 0; }
  .ai-states-payment-note { grid-area: note; }

  .ai-states-float--ar {
    gap: 12px;
    min-height: 105px;
    padding: 16px 18px;
    box-shadow: 0 22px 44px -22px rgba(39, 55, 117, 0.38), 0 0 0 1px rgba(39, 55, 117, 0.07);
  }

  .ai-states-ar-donut {
    order: 2;
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .ai-states-ar-donut img { width: 58px; height: 58px; }
  .ai-states-ar-donut > span { font-size: 11px; }

  .ai-states-ar-copy .ai-states-float-head img {
    width: 14.88px;
    height: 15.005px;
  }

  .ai-states-ar-value {
    padding-top: 6px;
    font-size: 20px;
    line-height: 22px;
  }

  .ai-states-ar-text { font-size: 10px; }

  /* Chips keep their desktop size (8.745px in pills 5px apart), as in Figma. */
  .ai-states-chips {
    width: 100%;
  }

  .ai-states .ai-states-stats {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 0;
    margin-top: 32px;
    padding: 16px 0;
    border-top: 1px solid #e6eaf6;
    border-bottom: 1px solid #e6eaf6;
  }

  .ai-states-stat,
  .ai-states-stat:first-child {
    flex: none;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .ai-states-stat-value {
    font-size: 24px;
    line-height: normal;
  }

  .ai-states-stat-text {
    font-size: 14px;
    line-height: 16px;
  }
}

/* Narrow phones: the 2-column state names shrink a little to stay on one line. */
@media (max-width: 379px) {
  .ai-states-list li {
    font-size: 16px;
  }
}
