/*
  CTA 13 — 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-700: #334155;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-50: #f8fafc;
  --sky-50: #f0f9ff;
  --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 {
  position: relative;
  overflow: hidden;
  background-color: var(--sky-50);
  padding: clamp(3.5rem, 2.7rem + 3vw, 8rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.blob--a {
  top: -4rem;
  left: -3rem;
  width: 18rem;
  height: 18rem;
  background-color: rgba(191, 219, 254, 0.6);
}

.blob--b {
  right: -3rem;
  bottom: -4rem;
  width: 20rem;
  height: 20rem;
  background-color: rgba(199, 210, 254, 0.5);
}

.cta__inner {
  position: relative;
  width: 100%;
  max-width: 48rem;
  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 var(--sky-50);
  color: var(--white);
  font-size: 0.5625rem;
  font-weight: 600;
  margin-left: -0.5rem;
}

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

.avatar--blue {
  background-color: #3b82f6;
}
.avatar--sky {
  background-color: #0ea5e9;
}
.avatar--indigo {
  background-color: #6366f1;
}

.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.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(--slate-600);
}

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

.phone {
  width: 136px;
  flex-shrink: 0;
  border-radius: 1.75rem;
  border: 5px solid var(--slate-900);
  background-color: var(--slate-900);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.3);
}

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

.phone__bar {
  background-color: var(--slate-50);
  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.5rem;
  border-radius: 0.5rem;
  background-color: var(--slate-50);
}

.phone__block--accent {
  background-image: linear-gradient(to bottom right, #60a5fa, #6366f1);
}

.phone__block--sky {
  background-color: #e0f2fe;
}

.phone__line {
  height: 0.5rem;
  width: 66%;
  border-radius: 999px;
  background-color: var(--slate-50);
}

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

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

.cta__actions {
  margin-top: 2.5rem;
  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(--slate-900);
  outline-offset: 2px;
}

.button--primary {
  color: var(--white);
  background-color: var(--slate-900);
}

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

.button--secondary {
  color: var(--slate-900);
  background-color: var(--white);
  border: 1px solid var(--slate-300);
}

.button--secondary:hover {
  border-color: #94a3b8;
}

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

  .button {
    width: auto;
  }

  .phone {
    width: 160px;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query, and
   the background blobs render static instead of drifting. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta13-drift-a {
    0%,
    100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(24px, -16px);
    }
  }

  @keyframes al-cta13-drift-b {
    0%,
    100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(-20px, 18px);
    }
  }

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

  .blob--a {
    animation: al-cta13-drift-a 9000ms ease-in-out infinite;
  }

  .blob--b {
    animation: al-cta13-drift-b 11000ms ease-in-out infinite;
  }

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