/* ============================================================= */
/* Section: 04-cta-claims */
/* ============================================================= */
/* ===== CTA "What Is Holding Up Your Accident Claims?" — Figma node 12183:704 =====
   1240 x 341 gradient banner (40px side padding, copy 496 wide), art group 12183:717
   anchored to the right edge (Figma x 699 -> 1240, so a 541 x 341 box). */
.ai-cta-claims-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 341px;
  padding: 0 40px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--ai-blue) 29.808%, var(--ai-orange) 100%);
  box-shadow: 0 2.704px 41.56px rgba(0, 0, 0, 0.12);
  isolation: isolate;
}

.ai-cta-claims-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 496px;
}

.ai-cta-claims-title,
.ai-cta-claims-text {
  width: 532px;
  max-width: none;
  color: var(--ai-white);
}

.ai-cta-claims-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 45px;
}

.ai-cta-claims-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
}

.ai-cta-claims-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 284px;
  max-width: 100%;
  height: 50px;
  margin-top: 10px; /* 20px between the copy block and the button */
  padding: 8px 20px;
  overflow: hidden;
  border-radius: 60px;
  background: var(--ai-orange);
  color: var(--ai-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 20.8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ai-ease), transform 0.3s var(--ai-ease), box-shadow 0.3s var(--ai-ease);
}

.ai-cta-claims-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  translate: -120% 0;
  pointer-events: none;
}

.ai-cta-claims-btn-label,
.ai-cta-claims-btn-arrow {
  position: relative;
}

.ai-cta-claims-btn-arrow {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ai-ease);
}

.ai-cta-claims-btn:hover,
.ai-cta-claims-btn:focus-visible {
  background: #e94a4e;
  color: var(--ai-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(252, 93, 97, 0.35);
}

.ai-cta-claims-btn:hover::before,
.ai-cta-claims-btn:focus-visible::before {
  animation: ai-cta-claims-shine 0.8s ease-out;
}

.ai-cta-claims-btn:hover .ai-cta-claims-btn-arrow,
.ai-cta-claims-btn:focus-visible .ai-cta-claims-btn-arrow {
  transform: translateX(5px);
}

.ai-cta-claims-btn:focus-visible {
  outline: 2px solid var(--ai-white);
  outline-offset: 3px;
}

/* Art box 541 x 341; children in % of it so it can scale. */
.ai-cta-claims-art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 541px;
  height: 341px;
  pointer-events: none;
}

.ai-cta-claims-circle {
  position: absolute;
  display: block;
  max-width: none !important;
  height: auto;
  aspect-ratio: 1;
}

/* Circle centres from the rotated Figma boxes (12183:718-720). */
.ai-cta-claims-circle--left  { top: 26.449%; left: 9.965%;  width: 29.760%; }
.ai-cta-claims-circle--top   { top: 12.053%; left: 35.272%; width: 39.002%; }
.ai-cta-claims-circle--right { top: 28.193%; left: 59.308%; width: 35.305%; }

/* Illustration 12183:721: 493.179 x 329 at the art box's left, bottom -0.28. */
.ai-cta-claims-scene {
  position: absolute;
  bottom: -0.082%;
  left: 0;
  width: 91.161%;
  aspect-ratio: 493.179 / 329;
}

.ai-cta-claims-illustration {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none !important;
  height: 100%;
  object-fit: cover;
}

.ai-cta-claims-tag {
  position: absolute;
  display: block;
  max-width: none !important;
  height: auto;
}

/* Tag crops (source px / 998 x 666 base) — exactly where they sit in the original raster. */
.ai-cta-claims-tag--missing { top: 10.210%; left: 62.926%; width: 29.559%; }
.ai-cta-claims-tag--carrier { top: 31.982%; left: 76.353%; width: 23.747%; }
.ai-cta-claims-tag--unpaid  { top: 52.553%; left: 76.754%; width: 21.343%; }

/* ---------- Animation ---------- */
@keyframes ai-cta-claims-shine {
  from { translate: -120% 0; }
  to   { translate: 220% 0; }
}

@keyframes ai-cta-claims-tag-in {
  from { opacity: 0; translate: 26px 0; scale: 0.9; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes ai-cta-claims-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}

.ai-cta-claims.is-armed:not(.is-in) :is(
  .ai-cta-claims-card,
  .ai-cta-claims-copy > *,
  .ai-cta-claims-circle,
  .ai-cta-claims-illustration,
  .ai-cta-claims-tag
) {
  opacity: 0;
}

.ai-cta-claims.is-in .ai-cta-claims-card {
  animation: ai-rise 0.8s var(--ai-ease) backwards;
}

.ai-cta-claims.is-in .ai-cta-claims-copy > * {
  animation: ai-slide-left 0.7s var(--ai-ease) 0.2s backwards;
}

.ai-cta-claims.is-in .ai-cta-claims-copy > :nth-child(2) { animation-delay: 0.3s; }
.ai-cta-claims.is-in .ai-cta-claims-copy > :nth-child(3) { animation-delay: 0.42s; }

.ai-cta-claims.is-in .ai-cta-claims-circle {
  animation:
    ai-pop 0.8s var(--ai-ease) 0.35s backwards,
    ai-float 7s ease-in-out 1.2s infinite;
}

.ai-cta-claims.is-in .ai-cta-claims-circle--top {
  animation-delay: 0.45s, 1.6s;
  animation-duration: 0.8s, 8s;
}

.ai-cta-claims.is-in .ai-cta-claims-circle--right {
  animation-delay: 0.55s, 2s;
  animation-duration: 0.8s, 6s;
}

.ai-cta-claims.is-in .ai-cta-claims-illustration {
  animation: ai-slide-right 0.9s var(--ai-ease) 0.3s backwards;
}

/* Tags: staggered entrance, then a gentle float (ai-float is 8px; slowed right down). */
.ai-cta-claims.is-in .ai-cta-claims-tag {
  animation:
    ai-cta-claims-tag-in 0.65s var(--ai-ease) backwards,
    ai-cta-claims-bob 5.5s ease-in-out infinite;
}

.ai-cta-claims.is-in .ai-cta-claims-tag--missing { animation-delay: 0.8s, 1.6s; }
.ai-cta-claims.is-in .ai-cta-claims-tag--carrier { animation-delay: 0.95s, 2.3s; animation-duration: 0.65s, 6.2s; }
.ai-cta-claims.is-in .ai-cta-claims-tag--unpaid  { animation-delay: 1.1s, 3s; animation-duration: 0.65s, 5.8s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ai-cta-claims-copy {
    width: 440px;
  }

  .ai-cta-claims-title,
  .ai-cta-claims-text {
    width: auto;
    max-width: 100%;
  }

  .ai-cta-claims-art {
    top: auto;
    bottom: 0;
    width: 460px;
    height: 290px;
  }
}

@media (max-width: 991px) {
  .ai-cta-claims-card {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 40px 32px 0;
  }

  .ai-cta-claims-copy {
    width: 100%;
  }

  .ai-cta-claims-title {
    font-size: 30px;
    line-height: 40px;
  }

  .ai-cta-claims-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 541px);
    height: auto;
    aspect-ratio: 541 / 341;
    margin: 0 auto;
  }
}

/* ---------- Phones — Figma mobile node 12183:2947 (400 x 586 card) ----------
   Copy at (20, 32), 360 wide: title 24/35, text 16/25.2 (gap 10), 20px to a 284 x 50 button.
   The art group (12183:2961) follows directly under the button: a 360-wide box where the
   illustration (360 x 241) sits 36px down and the three circles are centred at (134.4, 124.4),
   (296.3, 147.3) and (416.4, 145.4); the right one runs off the card and is clipped.
   Children are in % of the 360-wide box so the whole group scales with the card. */
@media (max-width: 767px) {
  .ai-cta-claims-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 32px 20px 51px;
    border-radius: 20px;
  }

  .ai-cta-claims-copy {
    width: 100%;
    gap: 10px;
  }

  .ai-cta-claims-title,
  .ai-cta-claims-text {
    width: auto;
    max-width: 100%;
  }

  .ai-cta-claims-title {
    font-size: 24px;
    line-height: 35px;
  }

  .ai-cta-claims-text {
    font-size: 16px;
    line-height: 25.2px;
  }

  .ai-cta-claims-btn {
    width: 284px;
    max-width: 100%;
    font-size: min(16px, calc((100vw - 120px) * 16 / 216));
  }

  /* Art box: 360 x 277 (illustration bottom); circles overflow it and are clipped by the card. */
  .ai-cta-claims-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0;
    aspect-ratio: 360 / 277;
  }

  /* Circles: Figma diameters 161 / 211 / 191 on the 360 box. */
  .ai-cta-claims-circle--left  { top: 15.848%; left: 14.972%; width: 44.722%; }
  .ai-cta-claims-circle--top   { top: 15.090%; left: 53.000%; width: 58.611%; }
  .ai-cta-claims-circle--right { top: 18.014%; left: 89.139%; width: 53.056%; }

  .ai-cta-claims-scene {
    top: 12.996%;
    bottom: auto;
    left: 0;
    width: 100%;
    aspect-ratio: 360 / 241;
  }
}
