/* ── Shared site header (generated by scripts/build_landing.py, wired by nav.js).
   Self-contained: declares its own tokens on .nav so it renders the same on every page. ── */
.nav {
  --primary: #6366f1; --primary-hover: #818cf8; --primary-glow: rgba(99,102,241,0.25);
  --bg-card: #111827; --text-sec: #94a3b8; --text-muted: #64748b;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --glass-bg: rgba(17,24,39,0.6); --glass-border: rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 300; line-height: 1.6;
  backdrop-filter: blur(16px) saturate(1.8); -webkit-backdrop-filter: blur(16px) saturate(1.8);
  background: var(--glass-bg); border-bottom: 1px solid var(--glass-border);
}
:root[data-theme="light"] .nav {
  --bg-card: #ffffff; --text-sec: #475569; --text-muted: #94a3b8; --primary-glow: rgba(99,102,241,0.12);
  --glass-bg: rgba(255,255,255,0.7); --glass-border: rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 16px 24px; }
.nav-brand { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 32px; height: 32px; border-radius: 6px; }
.nav-brand span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--text); transition: transform 200ms, opacity 200ms; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-link { white-space: nowrap; color: var(--text-sec); font-size: 0.875rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: all 200ms; text-decoration: none; }
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-cta { white-space: nowrap; padding: 9px 22px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; background: var(--gradient-primary); color: #fff;
  transition: all 250ms; box-shadow: 0 2px 12px var(--primary-glow); text-decoration: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); color: #fff; }
.nav-cta--ghost { background: none; border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.nav-cta--ghost:hover { color: var(--text); box-shadow: none; }
.nav-controls { display: flex; align-items: center; gap: 6px; }
.pill-toggle { display: flex; gap: 2px; background: var(--bg-card); border-radius: 8px; padding: 3px; border: 1px solid var(--border); }
.pill-btn { padding: 4px 12px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.75rem; font-weight: 600;
  background: transparent; color: var(--text-muted); transition: all 200ms; }
.pill-btn.active { background: var(--primary); color: #fff; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 200ms; padding: 0; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 16px; height: 16px; }
.nav .pill-btn:focus-visible, .nav .icon-btn:focus-visible, .nav-link:focus-visible, .nav-cta:focus-visible, .nav-burger:focus-visible, .nav-brand:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 1000px) {
  .nav-burger { display: flex; }
  .nav-inner { padding: 12px 16px; gap: 8px; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--glass-border); box-shadow: 0 12px 28px rgba(0,0,0,0.28); }
  .nav-links[data-open="true"] { display: flex; }
  .nav-link { display: block; padding: 13px 6px; font-size: 1rem; border-bottom: 1px solid var(--glass-border); }
  .nav-links .nav-controls { justify-content: space-between; padding: 10px 2px; }
  .nav-links .nav-cta { text-align: center; padding: 13px 22px; }
  .nav-brand { font-size: 1.15rem; }
  .nav-actions .nav-cta { padding: 10px 14px; font-size: 0.8125rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .nav *, .nav-cta { transition: none !important; } }

/* "Part of Memberhub for organizations →" line under the nav on /vs/* and /ja-us */
p.orgs-up { margin: 0; padding: 8px 16px; text-align: center; font-size: 0.8125rem; color: var(--text-muted, #64748b); }
p.orgs-up a.orgs-up { color: inherit; text-decoration: none; }
p.orgs-up a.orgs-up:hover { color: var(--primary, #6366f1); text-decoration: underline; }
