/* Shared mobile nav toggle — used by index, features, pricing, about, guide,
   support, privacy, terms, dpa, trydemo. Hides behind the site's own nav
   styling on desktop; below 860px it swaps the always-visible-on-desktop
   nav links for a hamburger-triggered drawer instead of hiding them outright. */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink, #1C1C1E);
  position: relative;
  transition: background .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink, #1C1C1E);
  transition: transform .15s ease, top .15s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line, #E5E0D8);
    padding: 0 24px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .2s ease, opacity .2s ease;
  }
  .nav-links.nav-open {
    max-height: 420px;
    opacity: 1;
    padding: 12px 24px 20px;
    overflow-y: auto;
  }
  .nav-links.nav-open .hide-sm { display: block !important; }

  .nav-links .nav-dropdown { width: 100%; }
  .nav-links .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    margin-top: 2px;
  }

  .nav-cta { order: -1; align-self: flex-start; }
}
