/*
  CTA 04 — 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-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --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__strip {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background-color: var(--white);
  padding: 1.5rem;
}

.cta__heading {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}

.cta__description {
  margin: 0.625rem 0 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.cta__actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.625rem;
}

.button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 150ms ease, background-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--link {
  color: var(--slate-700);
}

.button--link:hover {
  color: var(--slate-900);
}

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

  .button {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .cta__strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query, and
   the hover lift below is skipped too. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta04-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .reveal {
    animation: al-cta04-fade 550ms ease-out both;
  }

  .cta__strip {
    transition:
      transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
      border-color 280ms ease;
  }

  .cta__strip:hover,
  .cta__strip:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
    border-color: var(--slate-300);
  }
}
