/* MnemioAI site shell v2: brand tokens, pill buttons, line icons, the nav and the footer.
   Loaded on every page, old and new, so every class here is namespaced (gn-, gf-, gbtn, gico) and
   can't collide with site.css, article.css or scenes.css. Page components live in v2.css. */

:root {
  --c-paper: #FAFAF7; --c-paper-2: #F3F2EC; --c-card: #FFFFFF; --c-ink: #141414; --c-ink-2: #2A2A27;
  --c-muted: #5C5C56; --c-rule: #E6E5DF; --c-rule-2: #D9D8D1;
  --c-blue: #58BAEB; --c-blue-ink: #1F6F99; --c-blue-wash: #E7F3FA; --c-blue-deep: #0F4C6E;
  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px;
  --sh-1: 0 1px 2px rgba(20, 20, 20, .06);
  --sh-2: 0 1px 2px rgba(20, 20, 20, .05), 0 18px 44px -18px rgba(20, 20, 20, .22);
  --sh-3: 0 2px 4px rgba(20, 20, 20, .05), 0 40px 90px -30px rgba(15, 76, 110, .35);
  --gutter: clamp(16px, 4.5vw, 56px);
  --gn-h: 68px; --gn-edge: clamp(10px, 2vw, 24px);
}

/* ── line icons and pill buttons ────────────────────────────────── */
.gico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; box-sizing: border-box;
  font: 600 16px/1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s; }
.gbtn .gico { width: 18px; height: 18px; }
.gbtn-primary { background: var(--c-ink); color: #fff !important; }
.gbtn-primary:hover { background: #000; box-shadow: 0 0 0 4px rgba(88, 186, 235, .35); }
.gbtn-secondary { background: var(--c-card); color: var(--c-ink) !important; border-color: var(--c-rule-2); }
.gbtn-secondary:hover { border-color: var(--c-ink); }
.gbtn-light { background: #fff; color: var(--c-ink) !important; }
.gbtn-light:hover { box-shadow: 0 0 0 4px rgba(88, 186, 235, .45); }
.gbtn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.gbtn-ghost:hover { border-color: #fff; }
.gbtn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.gbtn:focus-visible, .gn a:focus-visible, .gn button:focus-visible, .gn-sheet a:focus-visible, .gf a:focus-visible {
  outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 10px; }

/* ── nav: a glass bar floating over the page. Product and Use cases open a menu on hover and on keyboard focus, and are still plain links. ── */
.gn { position: sticky; top: 0; z-index: 60; height: var(--gn-h); box-sizing: border-box; padding: 8px var(--gn-edge) 0; pointer-events: none; font-family: var(--f-body); color: var(--c-ink); }
.gn-bar { pointer-events: auto; position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; box-sizing: border-box; height: 56px; max-width: 1320px; margin-inline: auto; padding: 0 7px 0 22px;
  border: 1px solid rgba(20, 20, 20, .09); border-radius: 999px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.7) blur(18px); backdrop-filter: saturate(1.7) blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 34px -22px rgba(8, 22, 32, .5); transition: background .25s, border-color .25s, box-shadow .25s; }
.gn-logo { display: block; justify-self: start; line-height: 0; }
.gn-logo img { height: 25px; width: auto; display: block; }
.gn-logo .w { display: none; }
.gn-links { display: flex; align-items: center; gap: 2px; }
.gn-item { display: flex; }
.gn-links > a, .gn-item > a { display: inline-flex; align-items: center; height: 38px; padding: 0 13px; border-radius: 999px; box-sizing: border-box; color: inherit; font: 500 15px var(--f-body); text-decoration: none; white-space: nowrap; transition: background .15s; }
.gn-item > a { gap: 3px; padding-right: 8px; }
.gn-item > a .gico { width: 15px; height: 15px; opacity: .55; transition: rotate .2s; }
.gn-links > a:hover, .gn-links > a[aria-current="page"], .gn-item > a[aria-current="page"], .gn-item:hover > a { background: rgba(20, 20, 20, .07); }
.gn-cta { display: flex; align-items: center; justify-self: end; gap: 6px; }
.gn-cta .gbtn { height: 42px; padding: 0 6px 0 17px; gap: 11px; font-size: 15px; }
.gn-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-blue); color: var(--c-ink); }
.gn-go .gico { width: 16px; height: 16px; stroke-width: 2.1; transition: translate .2s; }
.gn-book:hover .gn-go .gico { translate: 2px 0; }
.gn-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--c-rule-2); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--c-ink); padding: 0; }
.gn-toggle .gico { width: 20px; height: 20px; }
.gn-toggle .gico + .gico, .gn.menu-open .gn-toggle .gico:first-child { display: none; }
.gn.menu-open .gn-toggle .gico + .gico { display: block; }

/* over a dark part of a page, and with the phone menu open */
.gn.on-dark, .gn.menu-open { color: #fff; }
.gn.on-dark .gn-bar, .gn.menu-open .gn-bar { border-color: rgba(255, 255, 255, .15); background: rgba(24, 26, 29, .62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 16px 36px -22px rgba(0, 0, 0, .8); }
.gn.on-dark .gn-logo .k, .gn.menu-open .gn-logo .k { display: none; }
.gn.on-dark .gn-logo .w, .gn.menu-open .gn-logo .w { display: block; }
.gn.on-dark .gn-links > a:hover, .gn.on-dark .gn-links > a[aria-current="page"], .gn.on-dark .gn-item > a[aria-current="page"], .gn.on-dark .gn-item:hover > a { background: rgba(255, 255, 255, .14); }
.gn.on-dark .gbtn-primary, .gn.menu-open .gbtn-primary { background: #fff; color: var(--c-ink) !important; }
.gn.on-dark .gn-toggle, .gn.menu-open .gn-toggle { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }

/* the menus: dark, like the tours' menus on the product page, whatever is behind them */
.gn-panel { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 6px; display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 12px; box-sizing: border-box; width: min(860px, 100vw - 2 * var(--gn-edge)); padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 26px; background: radial-gradient(70% 90% at 12% 0%, rgba(88, 186, 235, .15), rgba(88, 186, 235, 0)), #15171A; color: #fff;
  box-shadow: 0 40px 80px -30px rgba(3, 14, 24, .75); opacity: 0; visibility: hidden; transition: opacity .16s, translate .16s, visibility 0s linear .16s; }
.gn-panel::before { content: ""; position: absolute; inset: -14px 0 100%; }
.gn-item:has(:focus-visible) .gn-panel { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
@media (hover: hover) {
  .gn-item:hover .gn-panel { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
  .gn-item:hover > a .gico { rotate: 180deg; }
}
.gn-item.shut .gn-panel { opacity: 0; visibility: hidden; }
.gn-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 2px; }
.gn-rows > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.gn-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; color: #fff; text-decoration: none; transition: background .15s; }
.gn-entry:hover { background: rgba(255, 255, 255, .08); }
.gn-entry b { display: block; font: 600 15px/1.25 var(--f-body); }
.gn-entry small { display: block; margin-top: 2px; font: 400 13.5px/1.35 var(--f-body); color: #A8B0B5; }
.gn-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(88, 186, 235, .14); color: var(--c-blue); transition: background .15s, color .15s; }
.gn-ic .gico { width: 20px; height: 20px; }
.gn-entry:hover .gn-ic { background: var(--c-blue); color: var(--c-ink); }
.gn-tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 212px; border-radius: 16px; background: #05070A; color: #fff; text-decoration: none; }
.gn-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .5s; }
.gn-tile:hover img { scale: 1.05; }
.gn-tile span { position: relative; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 34px 14px 13px; font: 600 14.5px/1.25 var(--f-body); background: linear-gradient(0deg, rgba(5, 7, 10, .92) 30%, rgba(5, 7, 10, 0)); }
.gn-tile .gico { width: 18px; height: 18px; }

/* the phone menu: a dark card under the bar, with the page dimmed behind it */
.gn-sheet { display: none; }
@media (max-width: 1020px) {
  .gn-bar { display: flex; justify-content: space-between; padding-left: 18px; }
  .gn-links { display: none; }
  .gn-toggle { display: inline-flex; }
  .gn-sheet { position: fixed; inset: 0; z-index: 59; box-sizing: border-box; padding: calc(var(--gn-h) + 4px) var(--gn-edge) var(--gn-edge); overflow-y: auto; overscroll-behavior: contain; background: rgba(8, 10, 12, .5); font-family: var(--f-body); }
  .gn-sheet.open { display: block; }
  .gn-sheet-card { max-width: 720px; margin-inline: auto; box-sizing: border-box; padding: clamp(18px, 4vw, 26px); border: 1px solid rgba(255, 255, 255, .13); border-radius: 26px; background: radial-gradient(90% 60% at 10% 0%, rgba(88, 186, 235, .16), rgba(88, 186, 235, 0)), #15171A; color: #fff; box-shadow: 0 40px 80px -30px rgba(3, 14, 24, .75); }
  .gn-sheet-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .gn-sheet-cols a { display: flex; align-items: center; min-height: 40px; padding-block: 5px; box-sizing: border-box; color: #C4CACD; font: 500 15px/1.3 var(--f-body); text-decoration: none; }
  .gn-sheet-cols a.h { justify-content: space-between; gap: 6px; margin-bottom: 4px; color: #fff; font: 600 16.5px/1.2 var(--f-display); border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .gn-sheet-cols a.h .gico { width: 16px; height: 16px; color: var(--c-blue); }
  .gn-sheet-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .gn-sheet-more a { display: grid; place-items: center; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font: 500 15px var(--f-body); text-decoration: none; }
  .gn-sheet-card > .gbtn { display: flex; width: 100%; margin-top: 10px; }
  body.gn-lock { overflow: hidden; }
}

/* small phones: everything has to fit beside the logo */
@media (max-width: 420px) {
  .gn-bar { padding: 0 6px 0 14px; gap: 8px; }
  .gn-logo img { height: 20px; }
  .gn-cta .gbtn { height: 38px; padding: 0 13px; font-size: 14px; }
  .gn-go { display: none; }
  .gn-toggle { width: 38px; height: 38px; }
}
@media (max-width: 360px) { .gn-cta .gbtn { display: none; } }
@media (prefers-reduced-motion: reduce) { .gn-panel, .gn-tile img, .gn-item > a .gico { transition: none; } .gn-panel { translate: -50% 0; } }

/* ── footer ─────────────────────────────────────────────────────── */
.gf { display: block; background: var(--c-ink); color: #C9C9C2; font-family: var(--f-body); font-size: 15px; padding: 72px var(--gutter) 28px; border: 0; }
.gf a { color: #C9C9C2; text-decoration: none; }
.gf a:hover { color: #fff; }
.gf-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.gf-brand img { height: 26px; width: auto; display: block; }
.gf-brand p { margin: 18px 0 0; font-size: 15px; line-height: 1.6; max-width: 32ch; color: #A9A9A2; }
.gf-social { display: flex; gap: 8px; margin-top: 22px; align-items: center; }
.gf-social a.gf-soc { width: 38px; height: 38px; border-radius: 999px; border: 1px solid #3A3A36; display: grid; place-items: center; color: #C9C9C2; }
.gf-social a.gf-soc:hover { border-color: #fff; color: #fff; }
.gf-social svg { width: 18px; height: 18px; }
.gf-star { margin-left: 8px; line-height: 0; }
.gf-star img { width: 42px; height: 42px; display: block; }
.gf-col h2 { margin: 0 0 14px; font: 600 12.5px var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: #fff; }
.gf-col a { display: block; font-size: 15px; line-height: 1.4; padding: 6px 0; }
.gf-col a.gf-small { font-size: 13.5px; color: #8E8E87; padding: 3px 0; }
.gf-col a.gf-small:hover { color: #fff; }
.gf-bottom { max-width: 1200px; margin: 52px auto 0; padding-top: 22px; border-top: 1px solid #2E2E2B; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #8E8E87; }
@media (max-width: 960px) { .gf-top { grid-template-columns: 1fr 1fr; } .gf-brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .gf-top { grid-template-columns: 1fr; } }
