/* ──────────────────────────────────────────────
   LingoCell — shared navbar + mobile sheet
   Loaded after styles.css on every page.
   ────────────────────────────────────────────── */

html { background: var(--paper); }
body { background: transparent; font-family: var(--f-sans); color: var(--ink); position: relative; min-height: 100vh; overflow-x: hidden; }

/* ── Background canvas (drawn by shared/bg.js) ─── */
#bg-canvas { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; display: block; background: var(--paper); }
/* Legacy .aurora overlay no longer used — canvas handles everything */
.aurora { display: none; }

/* ── Navbar ───────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 60%, transparent);
}
.nav {
  max-width: 1320px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-mark { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }
/* Explicit aspect-ratio reserves space before the image loads — no layout shift,
   identical width across Safari/Chrome/Firefox. Logo PNG is 1739×288. */
.brand-mark img { height: 36px; aspect-ratio: 1739 / 288; width: auto; display: block; }

.links {
  display: flex; align-items: center; gap: 36px;
  font-family: var(--f-sans); font-size: 16px; font-weight: 600;
}
.links a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
  letter-spacing: -0.005em;
  transition: opacity .15s, color .15s;
}
.links a:hover { opacity: 1; color: var(--signal-fg); }
.links a.active { opacity: 1; color: var(--signal-fg); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--f-sans); font-size: 14.5px; font-weight: 600;
  text-transform: none; letter-spacing: -0.005em;
  border: 0; cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, filter .15s, background .15s;
}
.pill.primary { background: var(--signal); color: #fff; }
.pill.primary:hover { transform: scale(1.04); filter: brightness(1.08); }
.pill.secondary { background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); }
.pill.secondary:hover { background: var(--paper-3); }
.pill.lab { background: var(--ink); color: #fff; }
.pill.lab:hover { background: #0F1B26; }
.pill .ar { font-family: var(--f-mono); font-weight: 500; }

.menu-btn {
  display: none;
  appearance: none; -webkit-appearance: none;
  background: var(--paper-2); border: 1px solid var(--rule);
  width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.menu-btn svg { width: 18px; height: 18px; display: block; }

/* ── Mobile sheet ─────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(25,40,55,0.35);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; right: 0; top: 0; z-index: 81;
  width: min(88vw, 360px); height: 100dvh;
  background: #CFC8C5;
  box-shadow: -12px 0 48px rgba(25,40,55,0.18);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  padding: 22px 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.sheet.open { transform: translateX(0); }
.sheet .top { display: flex; justify-content: space-between; align-items: center; }
.sheet .top img { height: 32px; }
.sheet .div { height: 1px; background: rgba(25,40,55,0.18); }
.sheet .list { display: flex; flex-direction: column; gap: 6px; }
.sheet .list a {
  font-family: var(--f-display); font-weight: 700;
  font-size: 28px;
  color: var(--ink); text-decoration: none;
  padding: 6px 0;
}
.sheet .list a:hover { color: var(--signal-fg); }
.sheet .ctas { margin-top: auto; display: grid; gap: 10px; }

/* ── Footer ───────────────────────────────────── */
.foot {
  border-top: 1px solid var(--rule);
  background: color-mix(in oklch, var(--paper) 65%, transparent);
  backdrop-filter: blur(12px);
}
.foot .row {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 24px; flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.foot a:hover { color: var(--ink); }

/* ── Display heading helper ───────────────────── */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Responsive ─────────────────────────────────
   ≤ 900px: hide inline links, surface hamburger, hide secondary CTA.
   ≤ 540px: shrink primary CTA so it fits next to logo. */
@media (max-width: 900px) {
  .nav { padding: 14px 18px; gap: 12px; }
  .brand-mark img { height: 30px; }
  .links { display: none; }
  .nav-cta .pill.lab { display: none; }
  .menu-btn { display: inline-flex; }
  .pill { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 540px) {
  .nav { padding: 12px 16px; }
  .brand-mark img { height: 26px; }
  .pill.primary { padding: 8px 14px; font-size: 12.5px; }
  .pill.primary .ar { display: none; }
  .sheet { padding: 18px 22px; }
  .sheet .list a { font-size: 24px; }
}
/* Tablet: keep links visible but tighten spacing */
@media (min-width: 901px) and (max-width: 1100px) {
  .links { gap: 24px; font-size: 15px; }
  .nav-cta { gap: 8px; }
  .pill { padding: 10px 16px; font-size: 13.5px; }
}
