/* ==========================================================================
   KOBIL — AI Trust — Section: Pre-footer CTA
   Figma: desktop 5896:67782 (1440x644, copy column 483 at x=80, vertically
   centred) · mobile 6087:14235 (393x572, copy 321 at x=24/y=39).
   ========================================================================== */

.sec-ait-cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--w644);
  padding: var(--w48) var(--w80);
}

/* Figma stretches the photo to 100% x 105.7% of the band and anchors it 5.64%
   above the top edge — `fill`, not `cover`, so the crop matches the design. */
.ait-cta__photo {
  position: absolute;
  top: -5.64%;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 105.7%;
  max-width: none;
  object-fit: fill;
}

.ait-cta__photo--mobile { display: none; }

.ait-cta__scrim {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: var(--w688);
  max-width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

.ait-cta__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--w48);
  width: 100%;
  max-width: var(--w483);
}

.ait-cta__copy {
  display: flex;
  flex-direction: column;
  gap: var(--w12);
  width: 100%;
}

.ait-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--w14);
  font-weight: 500;
  line-height: var(--w32);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.ait-cta__title {
  font-family: var(--font-serif);
  font-size: var(--w56);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

/* Outlined pill (Figma: 1px System/100% border, no fill) */
.ait-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--w8);
  height: var(--w56);
  padding: var(--w8) var(--w20) var(--w8) var(--w24);
  border: 1px solid var(--navy);
  border-radius: var(--w32);
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--w16);
  font-weight: 600;
  line-height: var(--w20);
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.ait-cta__btn:hover {
  background: var(--navy);
  color: var(--white);
}

.ait-cta__btn-icon {
  flex: none;
  width: var(--w18);
  height: var(--w18);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.ait-cta__btn:hover .ait-cta__btn-icon {
  transform: translateX(3px);
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .sec-ait-cta {
    align-items: flex-start;
    min-height: var(--m572);
    padding: var(--m39) var(--m24);
  }

  .ait-cta__photo--desktop { display: none; }
  .ait-cta__photo--mobile {
    display: block;
    top: 0;
    height: 100%;
    object-fit: cover;
  }

  /* The phone frame fades the wash downwards over the top 251px instead. */
  .ait-cta__scrim {
    bottom: auto;
    width: 100%;
    height: var(--m251);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
  }

  .ait-cta__content { gap: var(--m32); max-width: var(--m321); }
  .ait-cta__copy { gap: var(--m8); }
  .ait-cta__eyebrow { font-size: var(--m12); line-height: var(--m32); }
  .ait-cta__title { font-size: var(--m28); line-height: var(--m36); }

  .ait-cta__btn {
    height: var(--m40);
    padding: var(--m4) var(--m12) var(--m4) var(--m16);
    border-radius: var(--m32);
    font-size: var(--m14);
    line-height: var(--m18);
  }
  .ait-cta__btn-icon { width: var(--m18); height: var(--m18); }
}
