/* Mobile sticky call to action (shared by every landing).
   Markup, last child of <body>:
     <div class="m-cta" data-mcta>
       <a class="m-cta-button" href="https://testflight.apple.com/join/VDhZpJ8W">Попробовать в TestFlight</a>
       <span class="m-cta-note">Бета для iPhone</span>
     </div>
   Mark the hero button wrapper with data-cta-hero and the final call wrapper with data-cta-final.
   The bar shows on phones (max-width 900px) once the hero button has scrolled away, and hides again while
   the final call is on screen. Colours come from the page: set --mcta-bg, --mcta-ink, --mcta-btn, --mcta-btn-ink
   on :root in the landing's own stylesheet. Without JavaScript the bar never shows. */
.m-cta { display: none; }
@media (max-width: 900px) {
  .m-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--mcta-bg, rgb(251 243 234 / 0.94));
    color: var(--mcta-ink, #2a1420);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 -10px 30px rgb(20 10 20 / 0.12);
    transform: translateY(110%); opacity: 0; pointer-events: none;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.mcta-on .m-cta { transform: none; opacity: 1; pointer-events: auto; }
  .m-cta-button {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 16px; border-radius: 999px;
    background: var(--mcta-btn, #2a1420); color: var(--mcta-btn-ink, #fff8f2);
    font: 600 16px/1.2 Manrope, ui-sans-serif, system-ui, sans-serif; text-decoration: none; text-align: center; white-space: nowrap;
    transition: transform 160ms ease-out;
  }
  .m-cta-button:active { transform: scale(0.97); }
  .m-cta-button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
  .m-cta-note { flex: 0 1 auto; min-width: 0; max-width: 34%; font: 500 13px/1.25 Manrope, ui-sans-serif, system-ui, sans-serif; opacity: 0.8; }
  /* Room at the end of the page so the bar never covers the footer. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  .m-cta { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .m-cta-button { font-size: 15px; padding: 0 12px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .m-cta { transition: opacity 200ms linear; transform: none; }
}
