/*
  CTA 06 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --slate-900: #0f172a;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --emerald-400: #34d399;
  --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;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta {
  padding: clamp(3.5rem, 2.9rem + 2.4vw, 5.5rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.cta__card {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--slate-900);
}

.cta__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.cta__heading {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

.cta__description {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.checklist {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.checklist svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--emerald-400);
}

.button {
  display: inline-flex;
  width: fit-content;
  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(--white);
  outline-offset: 2px;
}

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

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

.cta__media {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.cta__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)) scale(1.08);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__media-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent 60%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .cta__card {
    grid-template-columns: 1fr 1fr;
  }

  .cta__media {
    height: auto;
  }

  .cta__media-overlay {
    background-image: linear-gradient(to left, rgba(15, 23, 42, 0.4), transparent 60%);
  }
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query, and
   script.js never attaches the pointermove listener either. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta06-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .reveal {
    animation: al-cta06-fade 600ms ease-out both;
  }
}
