/*
  CTA 01 — 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-50: #f8fafc;
  --slate-200: #e2e8f0;
  --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__card {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  padding: 2rem;
  text-align: center;
}

.cta__heading {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}

.cta__description {
  margin: 1rem auto 0;
  max-width: 26rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

.cta__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

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

.button__arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.button--link:hover .button__arrow {
  transform: translateX(2px);
}

@media (min-width: 640px) {
  .cta__card {
    padding: 3rem;
  }

  .cta__actions {
    flex-direction: row;
  }

  .button {
    width: auto;
  }
}

/* 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-cta01-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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