/*
  CTA 10 — 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 {
  --slate-900: #0f172a;
  --slate-50: #f8fafc;
  --slate-600: #475569;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --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(--slate-900);
  background-color: var(--white);
  line-height: 1.5;
}

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

.cta {
  padding: clamp(3.5rem, 2.9rem + 2.4vw, 5.5rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.cta__grid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

.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 var(--white);
  color: var(--white);
  font-size: 0.5625rem;
  font-weight: 600;
  margin-left: -0.5rem;
}

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

.avatar--violet {
  background-color: #8b5cf6;
}
.avatar--blue {
  background-color: #3b82f6;
}
.avatar--teal {
  background-color: #14b8a6;
}

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

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

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

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

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

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

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

.cta__device {
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
}

.phone {
  border-radius: 2rem;
  border: 6px solid var(--slate-900);
  background-color: var(--slate-900);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.4);
}

.phone__screen {
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: var(--white);
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--slate-50);
  padding: 0.625rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
}

.phone__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: var(--blue-600);
}

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

.phone__metric {
  border-radius: 0.5rem;
  background-color: var(--blue-50);
  padding: 0.625rem;
}

.phone__metric-label {
  font-size: 0.5rem;
  color: #64748b;
}

.phone__metric-value {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.phone__block {
  height: 4rem;
  border-radius: 0.5rem;
  background-color: var(--slate-50);
}

.phone__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
}

.phone__tile {
  height: 2rem;
  border-radius: 0.375rem;
  background-color: var(--slate-50);
}

.phone__tile--accent {
  background-color: var(--blue-50);
}

@media (min-width: 640px) {
  .cta__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta10-rise {
    from {
      opacity: 0;
      transform: translateY(36px) rotate(-4deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(0deg);
    }
  }

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

  .rise {
    animation: al-cta10-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

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