/* Public site navigation, shared by every page that includes _nav.php (Day319, 2026-11-23).
   1) The link of the page you are on: _nav.php marks it class="is-active" aria-current="page". A white label on a soft light pill
      (a box-shadow, so it takes no room and cannot wrap or push other links); no coloured strip.
   2) Fit (owner decision W1): ten links plus the two buttons do not fit one row on a narrow desktop, so each page's own copy of the
      nav css used to wrap labels onto two lines and push "Start free trial" against the screen edge. Measured with the real font, the row
      needs about 1190 px. So: above 1200 px the spacing is tightened (the same on every page) and labels never wrap; at 1200 px and
      below the phone menu (hamburger) is used, on every page the same way. The rules are scoped with .site-nav so they win over each
      page's own copy of the nav css (this file loads after it on purpose).
   3) A safety net: the first block gives a page that carries NO nav css of its own (testimonials.php was one) a usable bar. It has zero
      specificity (:where), so any page's own rule beats it and no other page changes. */

/* ── safety net (zero specificity) ── */
:where(.site-nav) { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 64px; background: #0B1829; border-bottom: 1px solid rgba(255, 255, 255, .07); }
:where(.site-nav) :where(.nav-inner) { max-width: 1200px; margin: 0 auto; padding: 0 80px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
:where(.site-nav) :where(.nav-wordmark) { font-weight: 900; font-size: 22px; letter-spacing: -.03em; flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
:where(.site-nav) :where(.nav-wordmark-metriq) { color: #0B63B6; }
:where(.site-nav) :where(.nav-wordmark-os) { color: #0E8A7B; }
:where(.site-nav) :where(.nav-links) { display: flex; align-items: center; gap: 32px; list-style: none; flex: 1; justify-content: center; margin: 0; padding: 0; }
:where(.site-nav) :where(.nav-links a) { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6); text-decoration: none; }
:where(.site-nav) :where(.nav-right) { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
:where(.site-nav) :where(.nav-sep) { width: 1px; height: 20px; background: rgba(255, 255, 255, .15); margin-right: 4px; }
:where(.site-nav) :where(.btn) { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
:where(.site-nav) :where(.btn-ghost-white) { background: transparent; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
:where(.site-nav) :where(.btn-teal) { background: #0E8A7B; border-color: #0E8A7B; color: #fff; }
:where(.site-nav) :where(.nav-hamburger) { display: none; }

/* ── wide desktop (above 1200 px): one tidy row, labels never wrap ── */
@media (min-width: 1201px) {
  .site-nav .nav-inner { padding-left: clamp(20px, 2.2vw, 40px); padding-right: clamp(20px, 2.2vw, 40px); gap: clamp(12px, 1.4vw, 24px); }
  .site-nav .nav-links { gap: clamp(10px, 1.1vw, 22px); }
  .site-nav .nav-links a { font-size: 13px; white-space: nowrap; }
  .site-nav .nav-right { gap: 8px; flex-shrink: 0; }
  .site-nav .nav-right .btn { padding: 8px 14px; white-space: nowrap; }
  .site-nav .nav-wordmark { flex-shrink: 0; }
  .site-nav .nav-hamburger { display: none; }
  .nav-mobile-menu.open { display: none; }
}

/* ── 1200 px and below: the phone menu on every page ── */
@media (max-width: 1200px) {
  .site-nav .nav-links, .site-nav .nav-right { display: none; }
  .site-nav .nav-inner { padding-left: 24px; padding-right: 24px; }
  .site-nav .nav-hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: transparent; border: none; padding: 4px; }
  .site-nav .nav-hamburger-bar { display: block; width: 22px; height: 2px; background: rgba(255, 255, 255, .7); border-radius: 2px; }
  .nav-mobile-menu { position: fixed; top: var(--nav-height, 64px); left: 0; right: 0; background: var(--navy, #0B1829); border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 24px 24px 32px; z-index: 899; max-height: calc(100vh - var(--nav-height, 64px)); overflow-y: auto; }
  .nav-mobile-menu:not(.open) { display: none; }
  .nav-mobile-menu.open { display: block; }
  .nav-mobile-links { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; }
  .nav-mobile-links a { display: block; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .7); padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); text-decoration: none; }
  .nav-mobile-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav-mobile-btns .btn { justify-content: center; }
}

/* ── the current page ── */
.site-nav .nav-links a.is-active,
.site-nav .nav-links a[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .14);
  border-radius: 4px;
  text-shadow: 0 0 .5px rgba(255, 255, 255, .9);   /* a touch heavier without changing the width of the label */
}
.site-nav .nav-links a.is-active:hover,
.site-nav .nav-links a[aria-current="page"]:hover { color: #FFFFFF; }

/* phone menu: a full-width row, so the pill fills the row */
.nav-mobile-links a.is-active,
.nav-mobile-links a[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .12);
  border-radius: 6px;
  padding-left: 12px;
  padding-right: 12px;
  text-shadow: 0 0 .5px rgba(255, 255, 255, .9);
}

.site-nav .nav-links a.is-active:focus-visible,
.nav-mobile-links a.is-active:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
