/* ==========================================================================
   MOBILE MENU — a frosted glass sheet over the midnight page (menu.js).
   Theme: deep glass + backdrop blur, hairline dividers, circular frost icon
   tiles, display-font labels, pill buttons, gold only for the buy action
   and prices. Desktop keeps its inline navigation.
   ========================================================================== */
html.menu-open { overflow: hidden; }

.mnav {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: rgba(5, 6, 15, .9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  opacity: 0; transition: opacity .28s var(--ease-out);
}
.mnav[hidden] { display: none; }
.mnav.is-open { opacity: 1; }
.mnav__in {
  display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom));
  transform: translateY(-10px); transition: transform .32s var(--ease-out);
}
.mnav.is-open .mnav__in { transform: none; }

.mnav__head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 68px; box-shadow: inset 0 -1px 0 var(--edge-soft); }
.mnav__x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--glass-2); box-shadow: var(--sh-hair), inset 0 1px 1px rgba(216, 236, 248, .14); -webkit-tap-highlight-color: transparent; }
.mnav__x svg { width: 16px; height: 16px; }
.mnav__x:active { background: var(--glass-3); color: var(--text-hi); }

/* sections: icon tile, name, a short hint of what is there */
.mnav__links { display: grid; margin-top: 6px; }
.mnav__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 2px; box-shadow: inset 0 -1px 0 var(--edge-soft); -webkit-tap-highlight-color: transparent; transition: background-color .15s; }
.mnav__item:active { background: var(--glass); }
.mnav__item .tile { width: 40px; height: 40px; }
.mnav__item b { font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.15; color: var(--text-hi); }
.mnav__item small { font-size: 12.5px; color: var(--text-4); text-align: right; }

/* the three offers, best value first, one tap from their pricing card */
.mnav__products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.mnav__prod { display: grid; justify-items: center; gap: 5px; padding: 12px 6px 10px; border-radius: 14px; text-align: center; background: var(--glass); box-shadow: var(--sh-hair), inset 0 1px 1px rgba(216, 236, 248, .06); -webkit-tap-highlight-color: transparent; }
.mnav__prod--olympus { background: linear-gradient(180deg, rgba(242, 199, 92, .08), transparent 70%), var(--glass); box-shadow: inset 0 0 0 1px var(--gold-edge); }
.mnav__prod:active { background: var(--glass-2); }
.mnav__prod .emblem { width: 40px; height: 40px; }
.mnav__prod .emblem--apollo { width: 46px; height: 40px; }
.mnav__prod .emblem::before { inset: -6%; }
.mnav__prod .emblem > img { animation: none; }
.mnav__prod b { font-family: var(--font-dot); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--text-hi); }
.mnav__prod span { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold-hi); }

.mnav__ctas { display: grid; gap: 10px; margin-top: auto; padding-top: 22px; }
.mnav__oath { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.mnav__oath svg { width: 14px; height: 14px; color: var(--gold); }

/* the rows arrive one after another as the sheet opens */
.mnav.is-open .mnav__item { animation: mnavIn .45s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
.mnav.is-open .mnav__products { animation: mnavIn .45s var(--ease-out) .27s backwards; }
.mnav.is-open .mnav__ctas { animation: mnavIn .45s var(--ease-out) .33s backwards; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(8px); } }

/* phones and tablets use the sheet; desktop keeps the inline links */
@media (max-width: 860px) { .nav__links { display: none !important; } }
@media (min-width: 861px) { .mnav { display: none !important; } }
@media (max-height: 640px) { .mnav__item { padding: 9px 2px; } .mnav__item b { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav__in { transition: none; }
  .mnav.is-open .mnav__item, .mnav.is-open .mnav__products, .mnav.is-open .mnav__ctas { animation: none; }
}
