/*
  CTA 14 — 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-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --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__grid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 2rem;
}

.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: 24rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.cta__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.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,
    border-color 150ms ease;
}

.button:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

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

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

.button--secondary {
  color: var(--slate-900);
  border: 1px solid var(--slate-300);
}

.button--secondary:hover {
  border-color: var(--slate-400);
  background-color: var(--slate-50);
}

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}

.phone {
  width: 128px;
  flex-shrink: 0;
  border-radius: 1.5rem;
  border: 5px solid var(--slate-900);
  background-color: var(--slate-900);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}

.phone--offset {
  margin-bottom: 1rem;
}

.phone__screen {
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--white);
}

.phone__bar {
  background-color: var(--slate-50);
  padding: 0.375rem 0.5rem;
  font-size: 0.5rem;
  font-weight: 600;
}

.phone__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
}

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

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

.phone__block--accent {
  background-image: linear-gradient(to bottom right, #60a5fa, #6366f1);
}

.phone__line {
  height: 0.375rem;
  width: 66%;
  border-radius: 999px;
  background-color: var(--slate-50);
}

.phone__line--short {
  width: 50%;
}

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

  .cta__grid {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
  }
}

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

  .phone {
    width: 148px;
  }
}

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

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

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

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