/*
  CTA 08 — 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-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --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__grid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

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

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

.checklist {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
}

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

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

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

.button--primary:hover {
  background-color: var(--blue-700);
}

.cta__mock {
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
  padding: 1.25rem;
}

.cta__mock-inner {
  position: absolute;
  inset: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
}

.dot--rose {
  background-color: #fb7185;
}
.dot--amber {
  background-color: #fbbf24;
}
.dot--emerald {
  background-color: #34d399;
}

.mock-card {
  flex: 1;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  padding: 1rem;
}

.bar {
  height: 0.625rem;
  border-radius: 999px;
  background-color: var(--slate-100);
}

.bar + .bar {
  margin-top: 0.5rem;
}

.bar--title {
  width: 66%;
  background-color: var(--slate-200);
}

.bar--short {
  width: 83%;
}

.tiles {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tile {
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--slate-100);
}

.tile--accent {
  background-color: var(--blue-100);
}

@media (min-width: 640px) {
  .cta__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* 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-cta08-row {
    from {
      opacity: 0;
      transform: translateX(-16px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

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

  @keyframes al-cta08-panel {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .row {
    animation: al-cta08-row 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

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

  .panel {
    animation: al-cta08-panel 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
