/* The site navigation, for every page that is not index.html.
 *
 * Copied from index.html's own nav so the two match, and put in a file because it had already
 * become three separate definitions of the same lockup — `.brand` in index.html, `.dnav .brand` in
 * docs.css, and a third in 404.html — which is exactly why imprint.html and success.html ended up
 * with no header at all. There was nothing to hand them.
 *
 * Two differences from index.html's nav, both forced by the fact that these pages are not it:
 *
 *   - Every section link is absolute (`/#formats`, not `#formats`). On these pages the sections
 *     are somewhere else, and a bare fragment under /docs/ or on a wrong path resolves to nothing.
 *   - No scroll-spy and no `.is-current` underline. Those mark which section of *this* page you are
 *     looking at, and here the answer is none of them. The links are exits, not a table of contents.
 *
 * Tokens are read with fallbacks: each page declares its own set, and they do not all match.
 *
 * index.html and the docs pages link this too and keep only what is theirs — index.html the
 * scroll-spy underline and its site-wide button, docs.css the `.dnav` bar the lockup sits in.
 * Both load it before their own <style>, so a local rule still wins where one is wanted.
 */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,11,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline, rgba(255,255,255,0.09));
}
.nav-inner {
  width: 100%;
  max-width: var(--wrap, 1180px);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Component rules below set `display`, which outranks the user-agent rule for [hidden] — without
   this the gated "Your licences" link would be visible before its switch is on. */
.nav [hidden] { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink, #f5f5f8);
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
/* brand-mark.png, not klippster-icon.png: the same artwork, but 17 KB against 1.5 MB for a slot
   that is 30px wide. Regenerate with `sips -Z 120 klippster-icon.png --out brand-mark.png`. */
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2, #b7b7c2);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink, #f5f5f8); }
.nav-links a.nav-demo { display: inline-flex; align-items: center; gap: 7px; color: var(--ink, #f5f5f8); }
.nav-links a.nav-demo::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #ff5e8a; box-shadow: 0 0 9px #ff5e8a;
  animation: livedot 1.8s ease-in-out infinite;
}
@keyframes livedot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .2s, border-color .2s;
}
.nav .btn-primary {
  color: #06131a;
  background: var(--grad-k, linear-gradient(135deg, #5a72ff 0%, #23d3ee 100%));
  box-shadow: 0 10px 30px -10px rgba(35,211,238,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px rgba(35,211,238,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}
.nav .btn small {
  font-family: var(--font-mono, "SFMono-Regular", ui-monospace, monospace);
  font-weight: 400; font-size: 11px; opacity: 0.75;
}

/* Same breakpoint as index.html: below it the links go and the lockup plus the download button
   carry the bar. Nothing here becomes a hamburger, because index.html's nav does not either. */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a.nav-demo::before { animation: none; }
  .nav .btn { transition: none; }
  .nav .btn:hover { transform: none; }
}
