/* TigerVault navbar and footer, shared so every page shows the same ones.
   Home lays the navbar over the hero (home.css sets position: absolute); other pages show the navbar
   and the footer on dark bands. The navbar's store-button switch is in /nav.js. */

.nav {
  --nav-mist: #EEF1F6;
  --nav-sapphire: #80A8E8;
  --nav-line: rgba(196, 210, 235, 0.22);
  --nav-gutter: clamp(18px, 2.8vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 var(--nav-gutter); padding: 18px 10px 16px;
  border-bottom: 1px solid var(--nav-line);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.nav .brand { display: inline-flex; align-items: center; gap: 18px; color: var(--nav-mist); text-decoration: none; }
.nav .brand img { display: block; width: clamp(34px, 3.4vw, 50px); height: auto; }
.nav .brand span { font: 500 clamp(0.95rem, 1.6vw, 1.45rem)/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: 0.42em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: clamp(18px, 3.4vw, 52px); }
.nav nav a { color: var(--nav-mist); text-decoration: none; font-size: clamp(0.92rem, 1.25vw, 1.15rem); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--nav-sapphire); }
.nav .nav-get {
  display: inline-flex; align-items: center; gap: 0.55em; margin-left: clamp(0px, 0.6vw, 10px);
  padding: 0.5em 1.05em 0.5em 0.85em; border: 1.5px solid rgba(255, 255, 255, 0.78); border-radius: 999px;
  background: #000; color: #fff; font-weight: 500; white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav .nav-get:hover { color: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(128, 168, 232, 0.25); }
.nav-get svg { display: block; width: 1.15em; height: 1.15em; flex: none; }
.nav-get svg[hidden] { display: none; }
.nav-get .ng-apple { fill: #fff; margin-top: -0.12em; }
.nav :focus-visible { outline: 2px solid var(--nav-sapphire); outline-offset: 3px; border-radius: 6px; }

/* Footer */
.foot {
  --nav-mist: #EEF1F6;
  --nav-sapphire: #80A8E8;
  --nav-line: rgba(196, 210, 235, 0.22);
  --nav-gutter: clamp(18px, 2.8vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 0 var(--nav-gutter); padding: 26px 10px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--nav-line);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.foot .brand { display: inline-flex; align-items: center; gap: 18px; color: var(--nav-mist); text-decoration: none; }
.foot .brand img { display: block; width: clamp(34px, 3.4vw, 50px); height: auto; }
.foot .brand span { font: 500 clamp(0.85rem, 1.3vw, 1.15rem)/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: 0.42em; text-transform: uppercase; }
.foot nav { display: flex; gap: 0; }
.foot nav a { color: var(--nav-mist); text-decoration: none; font-size: 0.95rem; padding: 0 clamp(14px, 2vw, 26px); }
.foot nav a + a { border-left: 1px solid var(--nav-line); }
.foot nav a:last-child { padding-right: 0; }
.foot nav a:hover { color: var(--nav-sapphire); }
.foot :focus-visible { outline: 2px solid var(--nav-sapphire); outline-offset: 3px; border-radius: 6px; }

/* Pages other than home: the same navbar and footer on dark bands */
.nav-band, .foot-band { background: #050609; color-scheme: dark; }

@media (max-width: 760px) {
  .nav nav a:not(.nav-get, .nav-blog) { display: none; }
  .nav { gap: 12px; }
  .nav nav { gap: 16px; }
  .nav .brand { gap: 12px; }
  .nav .brand span { font-size: 0.8rem; letter-spacing: 0.26em; }
  .nav .nav-get { font-size: 0.8rem; }
  .nav nav .nav-blog { font-size: 0.9rem; }
  .foot .brand { gap: 12px; }
  .foot nav a:first-child { padding-left: 0; }
}
/* The tiger mark alone on the narrowest phones, so Blog and the download button fit */
@media (max-width: 379px) {
  .nav .brand span { display: none; }
}
