/*
  CTA 25 — 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 {
  --orange-950: #431407;
  --orange-900: #7c2d12;
  --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(--orange-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, #fffbeb, #fff7ed, #ffedd5);
}

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

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

.avatar--orange {
  background-color: #f97316;
}
.avatar--amber {
  background-color: #f59e0b;
}
.avatar--rose {
  background-color: #fb7185;
}

.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;
  letter-spacing: -0.01em;
}

.cta__description {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(124, 45, 18, 0.75);
}

.cta__actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.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(--orange-950);
  outline-offset: 2px;
}

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

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

.link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 100%;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
}

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

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

@media (min-width: 640px) {
  .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, and
   the underline still appears on hover — only its animated grow is
   skipped. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta25-fade {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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