/* ===== Sticky CTA bar (desktop) ===== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(31, 34, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-faded-steel);
  padding: var(--spacing-12) var(--spacing-24)
          max(var(--spacing-12), env(safe-area-inset-bottom))
          var(--spacing-24);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms ease, opacity 320ms ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
}

.sticky-cta-text {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  color: var(--color-frost-white);
  font-size: var(--text-body-sm);
  letter-spacing: var(--tracking-body);
  min-width: 0;
}

.sticky-cta-text .badge-neutral {
  color: var(--color-electric-blue);
}

.sticky-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  flex-shrink: 0;
}

/* Sticky-bar dismiss X — chrome only; visual style from .btn-ghost.compact.
   Uses .btn-ghost.sticky-cta-dismiss to match specificity of .btn-ghost.compact. */
.btn-ghost.sticky-cta-dismiss {
  padding: var(--spacing-8);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.btn-ghost.sticky-cta-dismiss svg {
  width: 20px;
  height: 20px;
}


/* ===== Mobile floating pill =====
   Chrome only — visual button comes from .btn-filled.compact in components.css.
   This class adds position, shadow, and reveal/dismiss animation. */
.mobile-pill {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.mobile-pill.is-visible {
  transform: translateY(0);
  opacity: 1;
}


/* ===== Responsive switching ===== */
@media (max-width: 768px) {
  .sticky-cta {
    display: none !important;
  }

  .mobile-pill {
    display: inline-flex;
  }
}

@media (min-width: 769px) {
  .mobile-pill {
    display: none !important;
  }
}
