/* FacePass's header and footer, the same on every facepass.dev page (29.11.2026): the landing page
   (facepass.html, with facepass.css), the checkout (order-facepass.html), the legal pages, 404, thanks, and the
   Worker's /account and /download pages. Link this first, then the page's own stylesheet.

   Header:  <header class="nav nav-static"> brand · .nav-links (hidden under 1000px) · .nav-cta (Download, Buy)
            The landing page uses class="nav" alone: fixed, and facepass.js hides it while scrolling down.
   Footer:  <footer class="foot"> .foot-word (the big gradient name) · .foot-row (nav + .foot-legal)
   The class names are shared with server-rendered pages: keep them stable. */

@font-face {
  font-family: "TikTok Sans";
  src: url(fonts/tiktok-sans-latin.woff2) format("woff2");
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
}

:root {
  --ink: #09070f;
  --ink-2: #13101c;
  --ink-3: #1d1928;
  --paper: #f6f3ff;
  --mute: rgba(246, 243, 255, 0.72);
  --faint: rgba(246, 243, 255, 0.14);
  --violet: #7b5cff;
  --pink: #ff4fa3;
  --coral: #ff7448;
  --lime: #d4ff4e;
  --sky: #4cc6ff;
  --green: #34c759;
  --dark-text: #14091a;
  --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "TikTok Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--lime); color: var(--dark-text); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.skip, .skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 99px; font-weight: 700; }
.skip:focus, .skip-link:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--out), background-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 40px -8px rgba(212, 255, 78, 0.55); }
.btn:active { transform: scale(0.96); transition-duration: 0.12s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* ---------- Header ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 99px;
  background: rgba(16, 13, 24, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--out), opacity 0.4s;
}
.nav.is-hidden { transform: translate(-50%, -140%); opacity: 0; }
.nav:focus-within { transform: translateX(-50%); opacity: 1; }
/* Every page but the landing page: in the flow, sticking to the top while scrolling. */
.nav.nav-static { position: sticky; left: auto; transform: none; margin: 14px auto 0; }
.nav.nav-static:focus-within { transform: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-weight: 800; font-size: 18px; font-stretch: 110%; letter-spacing: -0.02em; }
.brand-pill { display: grid; place-items: center; width: 38px; height: 22px; border-radius: 0 0 9px 9px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.brand-pill svg { display: block; width: 13px; height: 13px; }
.brand-pill rect { fill: var(--green); }
.brand-pill path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--mute); padding: 8px 14px; border-radius: 99px; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-sm { white-space: nowrap; gap: 0; }
.nav-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px; min-height: 44px; border-radius: 99px; color: var(--mute); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-tag svg { display: block; width: 15px; height: 15px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; }

/* ---------- Footer ---------- */
.foot { padding: 40px var(--gutter) 36px; overflow: hidden; }
.foot-word { margin: 0; font-size: clamp(48px, 14.2vw, 250px); font-weight: 900; font-stretch: 115%; letter-spacing: -0.06em; line-height: 0.8; text-align: center; white-space: nowrap;
  background: linear-gradient(100deg, var(--violet), var(--pink) 35%, var(--coral) 60%, var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-row { max-width: var(--max); margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; font-size: 15px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.foot-row nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-row a { color: var(--mute); text-decoration: none; }
.foot-row a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin: 0; color: var(--mute); }

/* ---------- Narrower ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav { top: 10px; padding: 6px 6px 6px 14px; gap: 10px; }
  .nav.nav-static { margin-top: 10px; }
  .nav-cta { gap: 6px; }
  .nav .btn-sm { padding: 0 14px; }
  .nav-long { display: none; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot { padding-bottom: 100px; } /* the last line clear of the accessibility button (a11y.js, bottom left) */
}
/* The narrowest phones (320–380 px): brand, Download and Buy still fit on one line. */
@media (max-width: 380px) {
  .nav { gap: 6px; padding-left: 10px; }
  .nav .btn-sm { padding: 0 11px; font-size: 14px; }
  .nav .brand { font-size: 16px; gap: 7px; }
  .brand-pill { width: 30px; }
  .nav-tag { padding: 0 6px; }
}
