/* Site shell (nav + footer) — one stylesheet for the React landing and the static SEO pages.
 * Reads the shared tokens (--ink, --bg, --rule, --surface, --muted, --font) that both
 * tokens.css and site.css define. Desktop: every destination visible, "Compare" opens on
 * hover/focus (no click). ≤1120px: one "Menu" tap lists everything flat (native <details>). */

.np-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font);
}

.np-nav a { color: var(--ink); text-decoration: none; }
.np-nav :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.np-brand { display: inline-flex; align-items: center; gap: 0.55rem; flex: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.03em; white-space: nowrap; }
.np-brand svg { width: 28px; height: 28px; }

.np-links { display: flex; align-items: center; gap: 0.15rem; }
.np-links > a,
.np-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 36px;
  padding-inline: 0.7rem;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-soft, var(--ink));
  font: 550 0.93rem/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
}
.np-links > a:hover,
.np-drop-btn:hover,
.np-drop:focus-within .np-drop-btn { background: var(--surface); color: var(--ink); }
.np-links > a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }

/* Compare: hover or keyboard focus opens it, so nothing hides behind a click */
.np-drop { position: relative; }
.np-drop-btn svg { transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.np-drop:hover .np-drop-btn svg,
.np-drop:focus-within .np-drop-btn svg { transform: rotate(180deg); }
.np-drop-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -0.5rem;
  display: grid;
  width: 21rem;
  padding: 0.4rem;
  border: 1px solid var(--rule-strong, var(--rule));
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 18px 40px -20px oklch(0 0 0 / 0.28), 0 2px 6px -2px oklch(0 0 0 / 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease-out, transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 180ms;
}
.np-drop-panel::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; } /* hover bridge */
.np-drop:hover .np-drop-panel,
.np-drop:focus-within .np-drop-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.np-drop-panel a { display: grid; gap: 0.1rem; padding: 0.6rem 0.75rem; border-radius: 8px; }
.np-drop-panel a:hover { background: var(--surface); }
.np-drop-panel strong { font-size: 0.93rem; font-weight: 650; letter-spacing: -0.01em; }
.np-drop-panel span { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

.np-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.np-lang,
.np-signin { padding: 0.5rem 0.6rem; color: var(--ink-soft, var(--ink)) !important; font-size: 0.9rem; font-weight: 550; white-space: nowrap; }
.np-lang { font-family: var(--font-mono, var(--font)); font-size: 0.8rem; letter-spacing: 0.04em; }
.np-lang:hover,
.np-signin:hover { color: var(--ink) !important; }

.np-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 0.95rem;
  border: 1px solid var(--rule-strong, var(--rule));
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 140ms ease-out, border-color 140ms ease-out;
}
.np-btn:hover { background: var(--surface); border-color: var(--muted); }
.np-nav .np-btn-primary,
.np-foot .np-btn-primary { border-color: var(--ink); background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14); }
.np-long { margin-left: 0.28em; } /* flex drops the edge space */
.np-nav .np-btn-primary:hover,
.np-foot .np-btn-primary:hover { background: oklch(0.28 0 0); border-color: oklch(0.28 0 0); }

/* Mobile menu */
.np-menu { display: none; }
.np-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding-inline: 0.75rem;
  border: 1px solid var(--rule-strong, var(--rule));
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.np-menu > summary::-webkit-details-marker { display: none; }
.np-menu .np-x { display: none; }
.np-menu[open] .np-x { display: block; }
.np-menu[open] .np-burger { display: none; }
.np-menu-panel {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: 0 24px 40px -28px oklch(0 0 0 / 0.35);
}
.np-menu-panel p { margin: 1rem 0 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.np-menu-panel > a:not(.np-btn) { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.np-menu-panel > a:not(.np-btn) { white-space: nowrap; }
.np-menu-panel > a span { color: var(--muted); font-size: 0.85rem; font-weight: 450; text-align: right; white-space: normal; }
.np-menu-panel > p:last-child { margin-top: 1.1rem; color: var(--ink-soft, var(--ink)); font-size: 0.95rem; font-weight: 550; }
.np-menu-panel .np-btn { justify-content: center; width: 100%; height: 46px; margin-top: 1.1rem; }

@media (max-width: 1120px) {
  .np-links,
  .np-actions > :not(.np-btn-primary) { display: none; }
  .np-menu { display: block; }
  .np-nav { gap: 0.6rem; }
}

@media (max-width: 400px) {
  .np-long { display: none; }
  .np-nav .np-btn-primary { padding-inline: 0.8rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.np-foot { border-top: 1px solid var(--rule); background: var(--surface); font-family: var(--font); color: var(--ink); }
.np-foot a { color: inherit; text-decoration: none; }
.np-foot-inner {
  display: grid;
  grid-template-columns: minmax(15rem, 1.1fr) 3fr;
  gap: 3rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) 2.5rem;
}
.np-foot-brand p { max-width: 22rem; margin: 0.9rem 0 1.3rem; color: var(--ink-soft, var(--ink)); font-size: 0.95rem; line-height: 1.55; }
.np-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.np-foot-h { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; }
.np-foot-cols ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.np-foot-cols a { color: var(--ink-soft, var(--ink)); font-size: 0.93rem; font-weight: 500; }
.np-foot-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.np-foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: 1.3rem clamp(1rem, 4vw, 2.5rem) 2.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.np-foot-base p { margin: 0; }
.np-foot-base p:first-child { color: var(--ink-soft, var(--ink)); font-weight: 550; }

@media (max-width: 900px) {
  .np-foot-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .np-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}
