/* Sticky bottom CTA bar — phones only, appears once the hero CTA scrolls
   out of view. Shares tokens with styles.css. */

.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 20, 48, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(169, 163, 207, 0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta-bar.is-visible { transform: translateY(0); }

/* Hidden whenever the CTA modal is open, or on larger screens. */
body.cta-open .sticky-cta-bar,
.sticky-cta-bar.is-hidden { display: none !important; }

.sticky-cta-bar .btn {
  flex: 1 1 auto;
  width: 100%;
  max-width: 420px;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 641px) {
  .sticky-cta-bar { display: none !important; }
}

@media (max-width: 640px) {
  .sticky-cta-bar { display: flex; }
  /* Leave room so the sticky bar never covers the last section's content. */
  body { padding-bottom: 0; }
}
