/*
  CTA 23 — standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy this file and
  index.html into any project and open it as-is.
*/

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

:root {
  --white: #ffffff;
  --blue-100: #dbeafe;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--white);
  line-height: 1.5;
}

.cta {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(160deg, #1d4ed8 0%, #1e3a8a 100%);
  padding: clamp(3.5rem, 2.7rem + 3vw, 8rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.cta__inner {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__heading {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cta__description {
  margin: 1rem 0 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--blue-100);
}

.badges {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.badge:active {
  background-color: rgba(255, 255, 255, 0.25);
}

.badge:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.phones {
  position: relative;
  margin-top: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.phone {
  width: 128px;
  flex-shrink: 0;
  border-radius: 1.75rem;
  border: 5px solid var(--white);
  background-color: var(--white);
  box-shadow: 0 20px 40px -20px rgba(23, 37, 84, 0.5);
}

.phone__screen {
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #1e40af;
}

.phone__bar {
  background-color: rgba(23, 37, 84, 0.5);
  padding: 0.5rem 0.625rem;
  font-size: 0.5625rem;
  font-weight: 600;
}

.phone__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.625rem;
}

.phone__block {
  height: 2.25rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
}

.phone__block--gradient {
  background-image: linear-gradient(to bottom right, #93c5fd, #818cf8);
}

.phone__block--light {
  background-color: rgba(255, 255, 255, 0.8);
}

.phone__line {
  height: 0.375rem;
  width: 66%;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
}

.phone__line--short {
  width: 50%;
}

@media (min-width: 640px) {
  .phone {
    width: 144px;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query with
   no shimmer sweep. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta23-shimmer {
    from {
      transform: translateX(-130%) rotate(8deg);
    }
    to {
      transform: translateX(130%) rotate(8deg);
    }
  }

  @keyframes al-cta23-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .shimmer::after {
    content: "";
    position: absolute;
    inset: -20% -60%;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    pointer-events: none;
    animation: al-cta23-shimmer 1600ms ease-out 900ms both;
  }

  .reveal {
    animation: al-cta23-up 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
