/*
  CTA 22 — 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 {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-800: #1e40af;
  --white: #ffffff;
  --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 {
  padding: clamp(3.5rem, 2.9rem + 2.4vw, 5.5rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.cta__card {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--blue-600);
  padding: 2rem;
}

.cta__heading {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}

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

.button--primary {
  margin-top: 1.75rem;
  color: var(--blue-700);
  background-color: var(--white);
}

.button--primary:hover {
  background-color: var(--blue-100);
}

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}

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

.phone__screen {
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--blue-700);
}

.phone__bar {
  background-color: var(--blue-800);
  opacity: 0.6;
  padding: 0.375rem 0.5rem;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--white);
}

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

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

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

.phone__block--accent {
  background-color: rgba(96, 165, 250, 0.6);
}

.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) {
  .cta__card {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
  }

  .phone {
    width: 128px;
  }
}

@media (min-width: 1024px) {
  .cta__card {
    padding: 3rem;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query, and
   the press compression below is skipped too. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta22-fade {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal {
    animation: al-cta22-fade 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .press {
    transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .press:active {
    transform: scale(0.94);
  }
}
