/* ============================================================================
   Zenara Jaya — shared site navigation (site-nav.css)
   ----------------------------------------------------------------------------
   ONE navbar for every public page. Self-contained: all colours, fonts and
   z-indexes are hardcoded and every selector is namespaced `zj-` so it renders
   identically regardless of the host page's own :root / .topbar / .brand /
   .menu-overlay / .acct-* styles. Injected + wired by site-nav.js.

   Shape (2026-08 redesign):
     • a FLOATING glass island, detached from the top edge — not a full-width
       slab. Brand left, inline link rail centre (≥1080px), CTA + account +
       burger right.
     • a FULL-SCREEN cinematic overlay — opaque ink, drifting colour blobs,
       oversized type, and a live image preview that follows the hovered row.
       The old half-height drop panel let the page bleed through its blur and
       looked like a broken accordion; nothing behind it shows now.

   Uses position:fixed (NOT sticky) + a JS-sized spacer, because several pages
   set `body{ overflow-x:hidden }` which traps position:sticky.
   ========================================================================== */

:where(.zj-nav, .zj-menu-overlay, .zj-acct-modal) {
  --zj-ink: #0B0918;
  --zj-deep: #08061A;
  --zj-purple: #5B21B6;
  --zj-purple-mid: #7C3AED;
  --zj-purple-light: #A78BFA;
  --zj-lilac: #C4B5FD;
  --zj-ghost: #F4F3FF;
  --zj-dim: #6B6783;
  --zj-hairline: rgba(11, 9, 24, 0.10);
  --zj-easing: cubic-bezier(.2, .8, .2, 1);
  --zj-spring: cubic-bezier(.22, 1, .36, 1);
  --zj-font: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
}

/* ───────── Top bar — floating glass island ───────── */
.zj-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px clamp(12px, 3vw, 26px) 0;
  pointer-events: none;              /* the gutter must not eat page clicks */
  transition: transform .5s var(--zj-easing);
  will-change: transform;
}
.zj-nav.zj-hidden { transform: translateY(-135%); }

.zj-nav-inner {
  pointer-events: auto;
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
          backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 20px 44px -26px rgba(11, 9, 24, 0.55),
    0 2px 10px -6px rgba(91, 33, 182, 0.28);
  transition: max-width .55s var(--zj-spring), background .4s ease, box-shadow .4s ease;
}
/* Condense once the page has moved — the bar tightens instead of just sitting. */
.zj-nav.zj-scrolled .zj-nav-inner {
  max-width: 70rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 50px -28px rgba(11, 9, 24, 0.6),
    0 2px 12px -6px rgba(91, 33, 182, 0.34);
}

/* Reserves the space the fixed bar would have taken in flow (height set by JS). */
.zj-nav-spacer { width: 100%; }

/* ───────── Brand (left) ───────── */
.zj-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.zj-brand img {
  width: 28px; height: 28px;
  object-fit: contain;
  display: block;
  transition: transform .5s var(--zj-spring);
}
.zj-brand:hover img { transform: rotate(-12deg) scale(1.06); }
.zj-brand-text {
  font-family: var(--zj-font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #14113A;
  line-height: 1;
}
.zj-brand-text b { font-weight: 700; color: var(--zj-purple-mid); }

/* ───────── Inline link rail (centre, desktop only) ───────── */
.zj-rail {
  display: none;
  justify-self: center;
  position: relative;
  align-items: center;
  gap: 2px;
}
.zj-rail-ind {
  position: absolute;
  top: 50%; left: 0;
  height: 34px; width: 0;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.11);
  transform: translate(0, -50%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--zj-spring), width .45s var(--zj-spring), opacity .28s ease;
}
.zj-rail-link {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  font-family: var(--zj-font);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  color: #3B3660;
  text-decoration: none;
  transition: color .25s ease;
}
.zj-rail-link:hover { color: var(--zj-purple); }
.zj-rail-link.zj-active { color: var(--zj-purple); }
.zj-rail-link.zj-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 1px;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--zj-purple-mid);
  transform: translateX(-50%);
}
@media (min-width: 1080px) { .zj-rail { display: inline-flex; } }

/* ───────── Actions (right) ───────── */
.zj-actions { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.zj-guest { display: inline-flex; align-items: center; gap: 8px; }

.zj-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-family: var(--zj-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--zj-easing), background .25s, border-color .25s, opacity .25s;
}
.zj-btn:hover { transform: translateY(-1px); }
.zj-btn-ghost { background: transparent; color: #2A2650; border-color: rgba(11, 9, 24, 0.16); }
.zj-btn-ghost:hover { border-color: var(--zj-purple-mid); color: var(--zj-purple); }
.zj-btn-signup { background: var(--zj-purple-mid); color: #fff; }
.zj-btn-signup:hover { background: var(--zj-purple); }

/* Primary CTA — dark pill with a rotating arrow dot */
.zj-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--zj-ink);
  color: #fff;
  font-family: var(--zj-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s ease, transform .3s var(--zj-easing);
}
.zj-cta:hover { background: var(--zj-purple); transform: translateY(-1px); }
.zj-cta .zj-cta-dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--zj-purple-mid);
  display: grid; place-items: center;
  transition: transform .4s var(--zj-spring), background .3s ease;
}
.zj-cta:hover .zj-cta-dot { transform: rotate(-45deg); background: var(--zj-purple-light); }
.zj-cta .zj-cta-dot svg { width: 14px; height: 14px; display: block; }

/* Burger — gradient puck, always present, opens the full-screen overlay */
.zj-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2A2650;
  font-family: var(--zj-font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 999px;
}
.zj-burger {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--zj-purple-mid), var(--zj-purple));
  box-shadow: 0 10px 22px -10px rgba(124, 58, 237, 0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  transition: transform .4s var(--zj-spring), box-shadow .3s ease;
}
.zj-burger i {
  display: block;
  width: 15px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .4s var(--zj-spring), width .4s var(--zj-spring);
}
.zj-menu-btn:hover .zj-burger { transform: scale(1.06); }
.zj-menu-btn:hover .zj-burger i:first-child { width: 9px; transform: translateX(-3px); }
.zj-menu-btn:hover .zj-burger i:last-child  { width: 9px; transform: translateX(3px); }
/* The rail carries navigation on desktop, so the burger needs no label there.
   Between 600 and 1080px there is no rail and plenty of room — label it. */
.zj-menu-btn-label { display: none; padding-left: 6px; }
@media (min-width: 601px) and (max-width: 1079px) {
  .zj-menu-btn-label { display: inline; }
}

/* ───────── Account pill + dropdown (logged-in) ───────── */
.zj-acct-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--zj-hairline);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: border-color .15s ease;
}
.zj-acct-pill:hover { border-color: var(--zj-purple-mid); }
.zj-acct-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zj-purple-mid), var(--zj-purple));
  color: #fff;
  font-family: var(--zj-font); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.zj-acct-name {
  font-family: var(--zj-font); font-size: 14px; font-weight: 600; color: var(--zj-ink);
  max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zj-acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--zj-hairline);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(91, 33, 182, 0.22), 0 4px 12px -4px rgba(11, 9, 24, 0.06);
  padding: 8px;
  z-index: 60;
  display: none;
}
.zj-acct-menu.zj-open { display: block; animation: zj-pop .18s ease-out; }
@keyframes zj-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.zj-acct-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--zj-hairline); margin-bottom: 4px; }
.zj-acct-menu-head .zj-who { font-family: var(--zj-font); font-weight: 700; font-size: 14px; color: var(--zj-ink); }
.zj-acct-menu-head .zj-role { font-size: 11px; color: var(--zj-dim); margin-top: 2px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.zj-acct-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--zj-ink); text-decoration: none;
  background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit;
}
.zj-acct-item:hover { background: var(--zj-ghost); color: var(--zj-purple); }
.zj-acct-item.zj-danger { color: var(--zj-dim); }
.zj-acct-item.zj-danger:hover { background: #fee2e2; color: #991b1b; }

.zj-hidden-el { display: none !important; }

/* ───────── Responsive top bar ───────── */
@media (max-width: 860px) {
  .zj-cta { display: none; }   /* "Let's talk" moves into the overlay footer */
}
@media (max-width: 600px) {
  .zj-nav { padding: 10px 12px 0; }
  .zj-nav-inner { padding: 7px 7px 7px 14px; gap: 10px; }
  .zj-brand img { width: 26px; height: 26px; }
  .zj-brand-text { font-size: 12.5px; letter-spacing: 0.12em; }
  .zj-btn { padding: 9px 13px; font-size: 13px; }
  .zj-acct-name { display: none; }
  .zj-burger { width: 38px; height: 38px; }
  /* The blur repaints every scroll frame on a phone — one of the heaviest
     per-frame costs on the site. Desktop keeps the frosted glass; phones get a
     flatter, more opaque fill that reads the same but costs nothing to draw. */
  .zj-nav-inner {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: rgba(255, 255, 255, 0.94);
  }
  .zj-nav.zj-scrolled .zj-nav-inner { background: rgba(255, 255, 255, 0.97); }
}
/* The wordmark stays down to ~320px — hiding it left a lone logo mark floating
   against a wide empty bar, which is what made the old phone header look bare. */
@media (max-width: 340px) {
  .zj-brand-text { font-size: 11px; letter-spacing: 0.08em; }
  .zj-nav-inner { gap: 8px; }
}

/* ===================== Full-screen menu overlay ===================== */
.zj-menu-overlay {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  /* Above the floating widgets (WhatsApp float, chat launcher, dev link), which
     all park themselves near the top of the int32 z range. A full-screen menu
     with two chat bubbles punched through it looks broken. */
  z-index: 2147483644;
  background: var(--zj-deep);
  color: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vh, 30px);
  padding: 20px clamp(18px, 5vw, 68px) clamp(20px, 3vh, 34px);
  visibility: hidden;
  pointer-events: none;
  /* Iris wipe from the burger — origin set by JS via --zj-ox / --zj-oy. */
  clip-path: circle(0px at var(--zj-ox, 50%) var(--zj-oy, 0px));
  transition: clip-path .62s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .64s;
}
.zj-menu-overlay.zj-open {
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(155vmax at var(--zj-ox, 50%) var(--zj-oy, 0px));
  transition: clip-path .85s var(--zj-spring), visibility 0s;
}

/* Drifting colour field — the only motion behind the type. */
.zj-menu-overlay-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.zj-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  transition: opacity 1.1s ease .12s;
}
.zj-menu-overlay.zj-open .zj-blob { opacity: .6; }
.zj-blob-a {
  width: 58vw; height: 58vw; min-width: 380px; min-height: 380px;
  left: -14vw; top: -18vw;
  background: radial-gradient(circle, #7C3AED 0%, rgba(124, 58, 237, 0) 68%);
  animation: zj-drift-a 20s ease-in-out infinite alternate;
}
.zj-blob-b {
  width: 50vw; height: 50vw; min-width: 320px; min-height: 320px;
  right: -12vw; bottom: -16vw;
  background: radial-gradient(circle, #2563EB 0%, rgba(37, 99, 235, 0) 68%);
  animation: zj-drift-b 26s ease-in-out infinite alternate;
}
.zj-blob-c {
  width: 30vw; height: 30vw; min-width: 220px; min-height: 220px;
  right: 18vw; top: -10vw;
  background: radial-gradient(circle, #DB2777 0%, rgba(219, 39, 119, 0) 70%);
  opacity: 0;
  animation: zj-drift-c 23s ease-in-out infinite alternate;
}
.zj-menu-overlay.zj-open .zj-blob-c { opacity: .32; }
@keyframes zj-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vw, 7vh, 0) scale(1.12); } }
@keyframes zj-drift-b { from { transform: translate3d(0, 0, 0) scale(1.06); } to { transform: translate3d(-8vw, -8vh, 0) scale(1); } }
@keyframes zj-drift-c { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vw, 10vh, 0); } }

/* Hairline grid — reads as "engineered", fades out toward the bottom. */
.zj-menu-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 78%);
}

/* ───────── Overlay: top row ───────── */
.zj-menu-top {
  position: relative; z-index: 2;
  width: 100%; max-width: 90rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.zj-menu-eyebrow {
  font-family: var(--zj-font); font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex; align-items: center; gap: 10px;
}
.zj-menu-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 999px;
  background: #4ADE80; box-shadow: 0 0 12px #4ADE80;
}
.zj-menu-close {
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  /* site-nav.js writes --zj-close-x so the button lands on the burger it
     replaces (see syncCloseButtonX). Routed through a custom property, not
     element.style.transform directly, so that assignment can't outrank the
     :hover rule below — an inline `transform` always wins the cascade over a
     stylesheet one, hover included, which silently dropped the spin. */
  transform: translateX(var(--zj-close-x, 0px));
  transition: background .35s var(--zj-easing), transform .5s var(--zj-spring), border-color .35s;
}
.zj-menu-close:hover {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(var(--zj-close-x, 0px)) rotate(90deg);
}
.zj-menu-close svg { width: 18px; height: 18px; }

/* ───────── Overlay: body (links + preview) ───────── */
.zj-menu-body {
  position: relative; z-index: 2;
  width: 100%; max-width: 90rem; margin: 0 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
}
@media (min-width: 1024px) {
  .zj-menu-body { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.zj-menu-nav {
  display: flex; flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.zj-menu-nav::-webkit-scrollbar { display: none; }

.zj-menu-link {
  position: relative;
  display: flex; align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  padding: clamp(7px, 1.1vh, 15px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--zj-font);
  font-size: clamp(1.55rem, 4.1vw, 3.15rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.06;
  color: #fff; text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .5s var(--zj-easing), transform .62s var(--zj-spring),
    color .3s ease, border-color .3s ease;
}
.zj-menu-overlay.zj-open .zj-menu-link {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--zj-i, 0) * 52ms + 130ms);
}
/* Sweeping accent underline on hover */
.zj-menu-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--zj-lilac), rgba(196, 181, 253, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--zj-spring);
}
.zj-menu-link:hover::after, .zj-menu-link:focus-visible::after { transform: scaleX(1); }

.zj-menu-link .zj-num {
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 0.22em; font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  width: clamp(26px, 2.6vw, 42px); flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: color .35s var(--zj-easing), transform .35s var(--zj-easing);
}
.zj-menu-link .zj-label {
  flex: 1;
  display: inline-block;
  transition: transform .45s var(--zj-spring);
}
.zj-menu-link .zj-arrow {
  width: clamp(20px, 2vw, 28px); height: clamp(20px, 2vw, 28px);
  color: var(--zj-lilac);
  opacity: 0; transform: translateX(-14px); flex-shrink: 0;
  transition: opacity .35s var(--zj-easing), transform .45s var(--zj-spring);
}
.zj-menu-link:hover, .zj-menu-link:focus-visible { color: var(--zj-lilac); }
.zj-menu-link:hover .zj-label, .zj-menu-link:focus-visible .zj-label { transform: translateX(10px); }
.zj-menu-link:hover .zj-num, .zj-menu-link:focus-visible .zj-num { color: var(--zj-lilac); transform: translateX(3px); }
.zj-menu-link:hover .zj-arrow, .zj-menu-link:focus-visible .zj-arrow { opacity: 1; transform: translateX(0); }
.zj-menu-link.zj-active { color: var(--zj-lilac); }
.zj-menu-link.zj-active .zj-num { color: var(--zj-lilac); }

/* Preview card — desktop only; crossfades to whichever row is hovered. */
.zj-menu-preview { display: none; }
@media (min-width: 1024px) {
  .zj-menu-preview {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3.05;
    max-height: min(56vh, 460px);
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 50px 90px -46px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(26px) scale(.97);
    transition: opacity .6s ease .28s, transform .8s var(--zj-spring) .28s;
  }
  .zj-menu-overlay.zj-open .zj-menu-preview { opacity: 1; transform: none; }
}
.zj-preview-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity .55s ease, transform 1.4s var(--zj-easing);
}
.zj-preview-img.zj-on { opacity: 1; transform: scale(1); }
.zj-preview-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 26, 0.94) 0%, rgba(8, 6, 26, 0.74) 22%, rgba(8, 6, 26, 0.10) 56%, rgba(8, 6, 26, 0.32) 100%);
  pointer-events: none;
}
.zj-preview-cap {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
  font-family: var(--zj-font);
  display: flex; flex-direction: column; gap: 5px;
}
.zj-preview-kicker {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--zj-lilac); font-weight: 700;
}
.zj-preview-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }

/* ───────── Overlay: footer meta ───────── */
.zj-menu-meta {
  position: relative; z-index: 2;
  width: 100%; max-width: 90rem; margin: 0 auto;
  padding-top: clamp(12px, 2vh, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 3vw, 40px);
  font-family: var(--zj-font);
  font-size: 12.5px; color: rgba(255, 255, 255, 0.55);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease .5s, transform .6s var(--zj-spring) .5s;
}
.zj-menu-overlay.zj-open .zj-menu-meta { opacity: 1; transform: none; }
.zj-menu-meta a { color: rgba(255, 255, 255, 0.86); text-decoration: none; transition: color .3s; }
.zj-menu-meta a:hover { color: var(--zj-lilac); }
.zj-menu-meta .zj-meta-spacer { flex: 1 1 auto; }
.zj-menu-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff; color: var(--zj-ink) !important;
  font-weight: 700; font-size: 13.5px;
  transition: background .3s ease, transform .3s var(--zj-easing);
}
.zj-menu-cta:hover { background: var(--zj-lilac); color: var(--zj-ink) !important; transform: translateY(-1px); }
.zj-menu-cta svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
  /* No preview card here, so the type carries the whole screen — let it grow
     with the viewport instead of sitting at the small end of the desktop clamp. */
  .zj-menu-link { font-size: clamp(1.9rem, 8vw, 2.7rem); padding: 11px 0; }
  .zj-menu-link .zj-num { width: 30px; }
  .zj-menu-meta { font-size: 12px; gap: 8px 18px; }
  .zj-menu-meta .zj-meta-spacer { display: none; }
  .zj-menu-cta { width: 100%; justify-content: center; padding: 13px 20px; font-size: 14px; }
}

/* ───────── Scroll progress bar ───────── */
.zj-scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--zj-purple-mid), var(--zj-purple-light));
  z-index: 9400;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
  will-change: width;
}

/* ===================== Account modal ===================== */
.zj-acct-modal {
  position: fixed; inset: 0; z-index: 2147483646;   /* above the overlay */
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.zj-acct-modal.zj-open { display: flex; animation: zj-fade .18s ease-out; }
@keyframes zj-fade { from { opacity: 0; } to { opacity: 1; } }
.zj-acct-shade { position: absolute; inset: 0; background: rgba(11, 9, 24, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.zj-acct-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 420px; width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 28px 60px -20px rgba(11, 9, 24, 0.40);
  animation: zj-pop .22s cubic-bezier(.21, 1.02, .4, 1.0);
  max-height: calc(100vh - 40px); overflow-y: auto;
  font-family: var(--zj-font);
}
.zj-acct-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: 0; font-size: 18px; cursor: pointer; color: var(--zj-dim);
  border-radius: 50%; line-height: 1;
}
.zj-acct-modal-close:hover { background: var(--zj-ghost); color: var(--zj-ink); }
.zj-acct-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  background: #fafaf8; border: 1px solid var(--zj-hairline); border-radius: 999px;
}
.zj-acct-tab {
  appearance: none; background: transparent; border: 0; font: inherit;
  font-size: 12.5px; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  color: var(--zj-dim); cursor: pointer; transition: color .15s ease, background .15s ease;
}
.zj-acct-tab.zj-active { background: var(--zj-ink); color: #fff; }
.zj-acct-tab:hover:not(.zj-active) { color: var(--zj-ink); }
.zj-acct-card h3 { font-family: var(--zj-font); font-size: 1.4rem; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--zj-ink); }
.zj-acct-card .zj-lede { color: var(--zj-dim); font-size: 13.5px; line-height: 1.5; margin: 0 0 18px; }
.zj-acct-card label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zj-dim); margin: 14px 0 5px; }
.zj-acct-card input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--zj-hairline); border-radius: 10px;
  font: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s ease;
}
.zj-acct-card input:focus { border-color: var(--zj-purple-mid); }
.zj-pw-wrap { position: relative; }
.zj-pw-wrap input { padding-right: 42px; }
.zj-pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--zj-dim); border-radius: 8px;
  padding: 0;
}
.zj-pw-toggle:hover { color: var(--zj-ink); background: var(--zj-ghost); }
.zj-pw-toggle svg { width: 18px; height: 18px; display: block; }
.zj-pw-toggle .zj-eye-off { display: none; }
.zj-pw-toggle[aria-pressed="true"] .zj-eye-on { display: none; }
.zj-pw-toggle[aria-pressed="true"] .zj-eye-off { display: block; }
.zj-acct-full-btn {
  width: 100%; margin-top: 18px; padding: 12px;
  background: var(--zj-ink); color: #fff; border: 0; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s ease;
}
.zj-acct-full-btn:hover { background: var(--zj-purple-mid); }
.zj-acct-full-btn:disabled { opacity: .6; cursor: wait; }
.zj-acct-panel { display: none; }
.zj-acct-panel.zj-active { display: block; }
.zj-acct-error { font-size: 12.5px; color: #dc2626; margin-top: 10px; min-height: 1em; line-height: 1.4; }
.zj-acct-sub { font-size: 12px; color: var(--zj-dim); text-align: center; margin-top: 14px; }
.zj-acct-sub a { color: var(--zj-purple-mid); font-weight: 600; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .zj-nav, .zj-nav-inner, .zj-menu-overlay, .zj-acct-modal *,
  .zj-menu-link, .zj-menu-preview, .zj-menu-meta, .zj-rail-ind, .zj-blob {
    transition: none !important;
    animation: none !important;
  }
  .zj-menu-overlay { clip-path: none !important; }
}
