/*
  CTA 18 — 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-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;
}

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

.cta__strip {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background-color: var(--white);
  padding: 1.5rem;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.mock {
  width: 100%;
  max-width: 220px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
  padding: 0.75rem;
}

.mock__dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

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

.dot--rose {
  background-color: #fda4af;
}
.dot--amber {
  background-color: #fcd34d;
}
.dot--emerald {
  background-color: #6ee7b7;
}

.mock__card {
  margin-top: 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 0.625rem;
}

.bar {
  width: 50%;
  height: 0.5rem;
  border-radius: 999px;
  background-color: var(--slate-200);
}

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

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

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

.block {
  margin-top: 0.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background-color: var(--slate-100);
}

.cta__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.cta__description {
  margin: 0.625rem 0 0;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate-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: 1.5rem;
  color: var(--white);
  background-color: var(--blue-600);
}

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

@media (min-width: 640px) {
  .cta__strip {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
  }

  .cta__copy {
    align-items: flex-start;
    text-align: left;
  }
}

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

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

  .cta__strip:hover,
  .cta__strip:focus-within {
    border-color: transparent;
    box-shadow:
      0 0 0 1.5px var(--blue-600),
      0 8px 30px -12px rgba(37, 99, 235, 0.35);
  }
}
