/* Cookie notice + mobile conversion bar. Shared by every page. */

/* ---------- Cookie notice ---------- */
.ke-cookie {
  position: fixed; z-index: 99998; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 14px 18px; border-radius: 16px;
  background: #1e1b4b; color: #ede9fe;
  box-shadow: 0 12px 40px rgba(30, 27, 75, .35);
  font: 400 14px/1.5 Inter, system-ui, sans-serif;
}
.ke-cookie__text { margin: 0; flex: 1 1 280px; }
.ke-cookie__text a { color: #c4b5fd; text-decoration: underline; text-underline-offset: 2px; }
.ke-cookie__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ke-cookie__btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 Inter, system-ui, sans-serif; border: 1.5px solid transparent;
}
.ke-cookie__btn--primary { background: #8b5cf6; color: #fff; }
.ke-cookie__btn--primary:hover { background: #7c3aed; }
.ke-cookie__btn--ghost { background: transparent; color: #ede9fe; border-color: rgba(237, 233, 254, .45); }
.ke-cookie__btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.ke-cookie__btn:focus-visible, .ke-cookie a:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
@media (max-width: 640px) {
  .ke-cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 10px 12px; gap: 8px; border-radius: 14px; flex-wrap: nowrap; transition: bottom .25s ease; }
  .ke-cookie__text { flex: 1 1 auto; font-size: 13px; line-height: 1.35; }
  .ke-cookie__actions { gap: 6px; }
  .ke-cookie__btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  body.mcta-on .ke-cookie { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .ke-cookie { flex-wrap: wrap; } .ke-cookie__actions { width: 100%; } .ke-cookie__btn { flex: 1 1 0; } }

/* ---------- Mobile sticky CTA bar ---------- */
.ke-mcta { display: none; }
@media (max-width: 768px) {
  .ke-mcta {
    display: flex; gap: 10px; position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid rgba(76, 29, 149, .12); box-shadow: 0 -6px 24px rgba(76, 29, 149, .12);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .ke-mcta.is-visible { transform: none; }
  .ke-mcta a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 999px; text-decoration: none;
    font: 700 15px/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  }
  .ke-mcta__demo { flex: 1 1 auto; color: #fff; background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 6px 16px rgba(124, 58, 237, .35); }
  .ke-mcta__call { flex: 0 0 auto; padding: 0 18px; color: #5b21b6; background: #f5f3ff; border: 1.5px solid #ddd6fe; }
  body.has-mobile-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.modal-open .ke-mcta, body:has(.modal-overlay.open) .ke-mcta { display: none; }
}

/* ---------- Small global accessibility / mobile polish ---------- */
@media (max-width: 768px) {
  /* 44px minimum touch targets for in-page controls that were 9-30px */
  .footer-col-premium a, .footer-col-premium h5 { text-align: center; }
  .footer-col-premium a { padding-block: 8px; margin-bottom: 4px; }
  .footer-legal-premium { flex-wrap: wrap; justify-content: center; gap: 0 8px !important; }
  .footer-legal-premium a { display: inline-block; padding: 10px 6px; }
  [class*="dot"][role="button"], .dash-dot, .carousel-dot, button[aria-label^="Go to"] { min-width: 24px; min-height: 24px; }
}
:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* The sticky bar replaces the floating "Book a Demo" button on phones; lift other floating controls above it. */
@media (max-width: 768px) {
  body.has-mobile-cta .fab { display: none !important; }
  body.has-mobile-cta .back-to-top { bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
  body.has-mobile-cta #pluto-launch { bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
}
