/* Creago, version 5 (17 Nov 2026, second pass): the top bar, the phone menu and the footer, the same on every page.
   Loaded last on every page (after css/creago.css on the home, accounts and library pages, after css/rebrand.css on
   the smaller pages), so the older stylesheets of the smaller pages cannot change it. It brings its own values and
   never leans on a page's variables. js/nav.js adds the behaviour: the glass pill once the page moves, the menu, the
   dim layer behind it. */

.nav, .scrim, .foot {
  --c-line: rgba(255, 255, 255, .08);
  --c-t1: rgba(245, 244, 248, .82);
  --c-t2: rgba(245, 244, 248, .62);
  --c-t3: rgba(245, 244, 248, .58);
  --c-btn-top: #4b3ea6;
  --c-btn-bottom: #2f2775;
  --c-ease: cubic-bezier(.16, 1, .3, 1);
  --c-gut: 20px;
  --c-col: 1120px;
  --c-h: 60px;
  font-family: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (max-width: 720px) { .nav, .scrim, .foot { --c-gut: 16px; } }

/* ---------- the top bar: wide and clear at the top, a floating glass pill once you scroll ---------- */
.nav [hidden], .scrim[hidden] { display: none !important; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 14px var(--c-gut) 0; pointer-events: none; }
/* once the page moves, a short fade above the pill, so text passing behind the bar never peeks over it */
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 88px; background: linear-gradient(180deg, #050507 0, #050507 80px, rgba(5, 5, 7, 0) 88px); opacity: 0; transition: opacity .3s; }
.nav.scrolled::before, .nav.solid::before { opacity: 1; pointer-events: auto; }   /* the band is solid: a tap on it never reaches what is under it */
.nav-in { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 10px; width: 100%; max-width: var(--c-col); height: var(--c-h); padding: 0 8px 0 18px; border-radius: 999px;
  transition: max-width .55s var(--c-ease), background-color .4s, box-shadow .4s; }
.nav.scrolled .nav-in, .nav.solid .nav-in, .nav.open .nav-in { max-width: 920px; background: rgba(6, 6, 9, .9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--c-line), inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -20px rgba(0, 0, 0, .9); }
.nav .logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-right: auto; padding: 0 4px 0 0; font-weight: 800; font-size: 21px; letter-spacing: -0.05em; color: #fff; text-decoration: none; }
/* the "Cue" logo (17 Nov 2026): C with a play inside + lowercase "creago", one outlined SVG (assets/creago-lockup.svg) */
.nav .logo .lockup { display: block; width: auto; height: 28px; }
@media (max-width: 420px) { .nav .logo .lockup { height: 25px; } }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--c-t2); text-decoration: none; transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-sign { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--c-t1); text-decoration: none; }
.nav-sign:hover { color: #fff; }
.nav-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; overflow: hidden;
  font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--c-btn-top), var(--c-btn-bottom));
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .3s var(--c-ease); }
.nav-cta:hover { transform: translateY(-1px); background: linear-gradient(180deg, #5547b4, #362d84); }
/* a buyer who already has a plan (account page): no "Get Creago" in the bar */
.nav-cta[hidden], .sheet-cta[hidden] { display: none !important; }
.nav-menu { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--c-line); }
.nav-menu svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.nav-menu .x { display: none; }
.nav.open .nav-menu .x { display: block; }
.nav.open .nav-menu .bars { display: none; }

/* the phone menu: a solid sheet under the bar, the page dimmed behind it */
.sheet { pointer-events: auto; position: absolute; top: calc(var(--c-h) + 24px); left: var(--c-gut); right: var(--c-gut); max-height: calc(100vh - var(--c-h) - 40px); overflow-y: auto;
  padding: 8px; border-radius: 24px; background: #0e0e12; box-shadow: inset 0 0 0 1px var(--c-line), 0 30px 60px -20px #000;
  opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden; transition: opacity .25s var(--c-ease), transform .35s var(--c-ease), visibility 0s .25s; }
.nav.open .sheet { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--c-ease), transform .35s var(--c-ease); }
.sheet a, .sheet button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 16px; background: none;
  font: inherit; font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; text-align: left; cursor: pointer; }
.sheet a:hover, .sheet a:focus-visible, .sheet button:hover { background: rgba(255, 255, 255, .06); }
.sheet a:not(.sheet-cta)::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--c-t3); border-top: 1.6px solid var(--c-t3); transform: rotate(45deg); }
.sheet a[aria-current="page"] { background: rgba(255, 255, 255, .05); }
.sheet hr { border: 0; height: 1px; background: var(--c-line); margin: 6px 10px; }
.sheet .sheet-cta { justify-content: center; gap: 10px; margin-top: 8px; color: #fff; background: linear-gradient(180deg, var(--c-btn-top), var(--c-btn-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .2); }
.sheet .sheet-cta span { padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .24); font-size: 14px; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
html.menu-open, html.menu-open body { overflow: hidden; }

@media (max-width: 860px) {
  .nav-links, .nav-sign { display: none; }
  .nav-menu { display: grid; }
  .nav-in { padding: 0 6px 0 16px; gap: 8px; height: 56px; }
  .sheet { top: 70px; }
}
@media (min-width: 861px) { .sheet, .scrim { display: none !important; } }

/* ---------- the footer: short, with a big faded wordmark that always fits ---------- */
footer.foot { position: relative; margin: 0; padding: 56px 0 calc(64px + env(safe-area-inset-bottom)); text-align: center; overflow: hidden; border: 0; background: none; }
footer.foot::before { content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 86vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.foot .foot-wrap { width: 100%; max-width: calc(var(--c-col) + var(--c-gut) * 2); margin: 0 auto; padding: 0 var(--c-gut); }
.foot .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; margin: 0; padding: 0; border: 0; }
.foot .foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; color: var(--c-t2); text-decoration: none; }
.foot .foot-links a:hover, .foot .foot-links a[aria-current="page"] { color: #fff; }
.foot .wordmark { display: block; height: auto; margin: 22px auto 0; overflow: visible; font-family: inherit; font-weight: 800; font-size: clamp(76px, 20vw, 270px); letter-spacing: -0.07em; line-height: .8;
  padding: 0 .06em .04em 0; user-select: none; color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .015) 85%); -webkit-background-clip: text; background-clip: text; }
.foot .foot-fine { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-t3); }

@media (prefers-reduced-motion: reduce) {
  .nav-in, .sheet, .scrim, .nav-cta { transition: none !important; }
}
