/* ============================================================
   URBot Mobile Boost — Sticky CTA + Touch Optimizations
   Applied globally across all bot subdomain pages.
   ============================================================ */

/* Ensure 48px touch targets for interactive elements */
@media (max-width: 768px) {
  .cta-btn, .tier-btn, .buy-btn, .checkout-btn,
  button[type="submit"], .btn, .ulp-send {
    min-height: 48px;
    font-size: 1rem;
  }

  /* Better line height on small screens */
  .description, .feature-text, .tier-desc, p {
    line-height: 1.65;
  }

  /* Tighter feature grid */
  .features-grid, .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  /* Remove horizontal scroll traps */
  .page, .container, main, section {
    overflow-x: hidden;
  }

  /* Tier cards: better spacing on mobile */
  .tier-card {
    padding: 1.25rem !important;
  }

  /* Larger tap area on tier CTAs */
  .tier-btn {
    padding: 14px 20px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
  }

  /* Bot avatar: slightly smaller */
  .bot-avatar, .hero-bot-avatar, img.bot-img {
    max-width: 90px;
  }

  /* Chat demo and preview: full width */
  .chat-demo, #chat-demo, .ulp-widget {
    border-radius: 10px !important;
  }

  /* Section padding: tighter on mobile */
  .section {
    padding: 2rem 0 !important;
  }

  .section-title {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .tagline, h1.tagline, .hero-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
}

/* ============================================================
   Sticky Bottom CTA Bar (mobile only)
   Hidden by default, JS populates and shows when user
   scrolls past the hero section.
   ============================================================ */
#urbot-sticky-cta {
  display: none; /* hidden until JS enables it */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

#urbot-sticky-cta.visible {
  display: flex;
  animation: stickySlideUp 0.25s ease;
}

@keyframes stickySlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#urbot-sticky-cta .sticky-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#urbot-sticky-cta .sticky-name {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#urbot-sticky-cta .sticky-price {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

#urbot-sticky-cta .sticky-price .sticky-price-note {
  font-size: 0.7rem;
  font-weight: 400;
  color: #64748b;
  margin-left: 4px;
}

#urbot-sticky-cta .sticky-btn {
  background: var(--bot-accent, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: opacity 0.15s;
}
#urbot-sticky-cta .sticky-btn:hover { opacity: 0.9; }

/* Dismiss button */
#urbot-sticky-cta .sticky-dismiss {
  background: none;
  border: none;
  color: #475569;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
#urbot-sticky-cta .sticky-dismiss:hover { color: #94a3b8; }

/* Only show on mobile; hide on desktop */
@media (min-width: 769px) {
  #urbot-sticky-cta { display: none !important; }
}

/* Make room for sticky bar when it's visible */
#urbot-sticky-cta.visible ~ .page,
body.sticky-cta-active .page {
  padding-bottom: 72px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #urbot-sticky-cta.visible { animation: none; }
}
