/*
  CTA 17 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

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

:root {
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --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;
}

a {
  text-decoration: none;
  color: inherit;
}

.cta {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(ellipse 120% 100% at 50% 0%, #2563eb 0%, #1e3a8a 70%);
  padding: clamp(3.5rem, 2.7rem + 3vw, 8rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.spotlight {
  background-image: radial-gradient(ellipse 120% 100% at 50% 0%, #2563eb 0%, #1e3a8a 70%),
    radial-gradient(480px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
  background-blend-mode: normal, screen;
}

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

.cta__proof {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.avatars {
  display: flex;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--blue-700);
  font-size: 0.5625rem;
  font-weight: 600;
  margin-left: -0.5rem;
}

.avatar:first-child {
  margin-left: 0;
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  color: #fcd34d;
}

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

.cta__heading {
  margin: 1.25rem 0 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-50);
}

.cta__actions {
  margin-top: 2.25rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

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

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

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

.button--secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .cta__actions {
    width: auto;
    flex-direction: row;
  }

  .button {
    width: auto;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query, and
   script.js never attaches the pointermove listener either. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta17-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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