/* ============================================================
   Shared site chrome — the sticky nav.

   The nav markup is byte-identical on all 17 pages, so it gets one
   stylesheet rather than a copy in site.css and another in sections.css.
   Loaded by every page, immediately after tokens.css.

   Collapse point is 960px: the home page's grids collapse there, and the
   nav carries five links plus a login and a CTA, so it needs the room
   back before the layout does.
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { width: 28px; height: 28px; }
.nav__wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -.01em;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--navy); }
.nav__links a.is-active { color: var(--navy); font-weight: 600; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__login { color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.nav__login:hover { color: var(--navy); }

/* Mobile menu — hidden until the toggle opens it */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nav__menu { display: none; }
.nav__menu.is-open {
  display: block;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 32px 20px;
}
.nav__menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.nav__menu a:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__login { display: none; }
  .nav__toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .nav__inner { padding: 0 20px; }
  .nav__menu.is-open { padding: 12px 20px 20px; }
  /* Scoped to .nav to outrank .btn{display:inline-flex}, which lands later
     in the cascade now that this file loads first. "Book a demo" is still
     reachable — it's the last item in the open menu. */
  .nav .nav__cta { display: none; }
}
