/*
  CTA 27 — 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 {
  --rose-950: #4c0519;
  --rose-900: #881337;
  --rose-200: #fecdd3;
  --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(--rose-950);
  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;
  overflow: hidden;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, #fff1f2, #fff7ed, #fffbeb);
}

.cta__copy {
  order: 2;
  padding: clamp(2rem, 1.5rem + 2vw, 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 #fff1f2;
  color: var(--white);
  font-size: 0.5625rem;
  font-weight: 600;
  margin-left: -0.5rem;
}

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

.avatar--rose {
  background-color: #f43f5e;
}
.avatar--orange {
  background-color: #fb923c;
}
.avatar--amber {
  background-color: #f59e0b;
}

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

.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;
}

.cta__description {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(76, 5, 25, 0.7);
}

.cta__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.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,
    border-color 150ms ease;
}

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

.button--primary {
  color: var(--white);
  background-color: var(--rose-950);
}

.button--primary:hover {
  background-color: var(--rose-900);
}

.button--secondary {
  color: var(--rose-950);
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rose-200);
}

.button--secondary:hover {
  border-color: #fda4af;
  background-color: var(--white);
}

.cta__figure {
  order: 1;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.cta__figure svg {
  display: block;
  width: 100%;
  height: 100%;
}

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

  .cta__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta__copy {
    order: 1;
  }

  .cta__figure {
    order: 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

/* 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-cta27-tracking {
    from {
      opacity: 0;
      letter-spacing: 0.12em;
    }
    to {
      opacity: 1;
      letter-spacing: -0.01em;
    }
  }

  @keyframes al-cta27-fade {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .tracking {
    animation: al-cta27-tracking 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

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