/* ═══════════════════════════════════════════════════════════════
   Lymegrove nav — the lg.css header bar for pages that keep their
   own stylesheet. Self-contained: tokens live on .nav and rules are
   scoped to it, so it can't touch the page. Load after the page CSS.
   ═══════════════════════════════════════════════════════════════ */

.nav {
  --ink: #f4f5f7;
  --ink-2: #b4b8c2;
  --line-2: rgba(255, 255, 255, 0.14);
  --lime: #c6f36b;
  --accent: var(--lime);
  --accent-ink: #0a0d06;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: fixed; top: 14px; left: 50%; z-index: 90;
  width: min(calc(100% - 24px), 1180px);
  transform: translateX(-50%);
  transition: top 0.4s var(--ease);
  /* Reset page-level .nav rules */
  background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--ink);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.nav *, .nav *::before, .nav *::after { box-sizing: border-box; }
.nav a { color: inherit; text-decoration: none; }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nav img { display: block; max-width: 100%; height: auto; }
.nav nav { display: block; margin: 0; }

.nav .nav__bar {
  display: flex; align-items: center; gap: 16px;
  height: 58px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 40px -12px rgba(0,0,0,0.6);
  transition: background 0.4s;
}
.nav.is-scrolled .nav__bar { background: rgba(10, 11, 14, 0.78); }
.nav .nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; flex: none; }
.nav .nav__mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: conic-gradient(from 210deg, var(--lime), #6be3c4, #7b8cff, var(--lime));
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--lime) 70%, transparent);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px); mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 4.5px);
}
.nav .nav__crumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav .nav__crumb::before { content: ""; width: 1px; height: 18px; background: var(--line-2); transform: rotate(18deg); }
.nav .nav__crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .app-icon {
  --s: 24px;
  width: var(--s); height: var(--s); flex: none;
  border-radius: calc(var(--s) * 0.2237);
  overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.nav .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav .nav__links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav .nav__links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); transition: color 0.2s, background 0.2s;
}
.nav .nav__links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

/* Same as .btn.btn--sm.btn--primary, without the class names pages already use */
.nav .nav__cta {
  position: relative; display: inline-flex; align-items: center; flex: none;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 10px 40px -10px var(--accent);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav .nav__cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 14px 50px -8px var(--accent); }
.nav .nav__cta:active { transform: translateY(0) scale(0.98); }

@media (max-width: 860px) {
  .nav .nav__links { display: none; }
  .nav .nav__cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav .nav__bar { padding-left: 14px; gap: 10px; }
  .nav .nav__brand .nav__word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav * { transition: none !important; }
}

/* Fixed bar: keep anchor targets clear of it */
html { scroll-padding-top: 96px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: #f4f5f7; color: #060709; font: 600 14px/1.6 "Geist", ui-sans-serif, system-ui, sans-serif; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus { transform: none; }

/* Product accents */
[data-product="night-drive"] .nav { --accent: #3df5d0; --accent-ink: #07060d; }
[data-product="drone-delivery"] .nav { --accent: #ff2e88; --accent-ink: #05061a; }
[data-product="flo"] .nav { --accent: #a99bff; --accent-ink: #0b0820; }
