.final-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 2px solid var(--ring);
  border-radius: 1.75rem;
  margin-bottom: 2rem;
}

/* The source photo is blank/white past its left half — fading it out here
   (rather than covering it with a color block) lets the page's own aurora
   background show through instead of a stark white patch. Only this layer
   fades; the heading/button in front stay fully opaque. */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/final-cta/handshake-bg.webp');
  background-size: cover;
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 78%);
  mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 78%);
}

/* Frosted-glass layer over the photo, sitting below the text/button so the
   content stays fully opaque. Masked left-to-right so the left edge shows
   the photo clearly with no blur, gradually thickening into full frosted
   glass by the right side, instead of a uniform blur across the whole box. */
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--background) 45%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 75%);
  mask-image: linear-gradient(to right, transparent 0%, #000 75%);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h3 {
  margin: 0;
}

.final-cta-heading-chip {
  display: inline-block;
  margin-left: clamp(2.5rem, 6vw, 5rem);
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: 0.6em;
  background-color: color-mix(in srgb, var(--background) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.final-cta-heading-text {
  background-image: linear-gradient(135deg, #7c3aed, #4f46e5, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.final-cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--primary);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 600;
}

.final-cta-right .hero-cta {
  padding: 1.25rem 2.5rem;
  font-size: 1.1875rem;
}

.final-cta-right .hero-cta svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Direct child only — .hero-cta's label is also a <span> (wrapped for
   i18n) but nested one level deeper inside the <a>, so a plain descendant
   selector here would give the button text this frosted pill background
   too. */
.final-cta-right > span {
  display: inline-block;
  padding: 0.4em 0.75em;
  border-radius: 0.6em;
  background-color: color-mix(in srgb, var(--background) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
