/* Shared FocusCorp header and footer. Keep this file as the single visual
   source of truth for the Vite funnel and the static legal/support pages. */
/* Floating pill header. site-chrome.js hides it while scrolling down and
   brings it back on the first scroll up. */
.topbar {
  align-items: center;
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(246, 245, 240, 0.78);
  border: 1px solid var(--site-border, rgba(22, 35, 63, 0.09));
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(22, 35, 63, 0.12);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 50%;
  min-height: var(--topbar-h, 63px);
  padding: 8px 12px 8px 22px;
  position: fixed;
  top: 14px;
  transform: translateX(-50%);
  transition: transform 320ms ease, opacity 320ms ease;
  width: min(1080px, calc(100% - 28px));
  z-index: 200;
}

.topbar.nav-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -160%);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 34px;
  image-rendering: pixelated;
  width: 34px;
}

.brand span {
  color: var(--site-ink, var(--text, #16233f));
  font-family: var(--pixel-bold, var(--pixel, monospace));
  font-size: 17px;
  letter-spacing: 1px;
}

.nav-links {
  align-items: center;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent;
  border: 0;
  display: flex;
  gap: 18px;
  padding: 0;
  position: static;
}

.nav-links a:not(.pixel-btn) {
  color: var(--site-muted, var(--muted, #5a6880));
  font-family: var(--body, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:not(.pixel-btn):hover {
  color: var(--site-ink, var(--text, #16233f));
}

.topbar .pixel-btn {
  --pb-shell: #651424;
  --pb-shell-bottom: #4d1120;
  --pb-face: #ee7a2f;
  --pb-face-top: #f7a33c;
  --pb-face-bottom: #b94629;
  --pb-face-left: #e26b2d;
  --pb-face-right: #c95029;
  --pb-label: #651424;
  --pb-glow: #ffe3a6;
  align-items: center;
  background: var(--pb-shell);
  border: 1px solid var(--pb-shell-bottom);
  border-radius: 10px;
  box-shadow: 0 3px 5px rgba(5, 7, 13, 0.4);
  color: var(--pb-label);
  display: inline-flex;
  font-family: var(--pixel-bold, var(--pixel, monospace));
  font-size: 15px;
  justify-content: center;
  letter-spacing: 0.6px;
  line-height: 1;
  min-height: 46px;
  min-width: 96px;
  padding: 4px;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 120ms ease, transform 120ms ease;
}

.topbar .pixel-btn:hover {
  filter: brightness(1.05);
}

.topbar .pixel-btn:active {
  transform: translateY(1px) scale(0.985);
}

.topbar .pixel-btn::before {
  background:
    linear-gradient(180deg, var(--pb-face-top) 0 6px, transparent 6px),
    linear-gradient(0deg, var(--pb-face-bottom) 0 6px, transparent 6px),
    linear-gradient(90deg, var(--pb-face-left) 0 3px, transparent 3px),
    linear-gradient(270deg, var(--pb-face-right) 0 3px, transparent 3px),
    var(--pb-face);
  border-radius: 7px;
  content: '';
  inset: 4px;
  position: absolute;
}

.topbar .pixel-btn::after {
  background: var(--pb-glow);
  border-radius: 2px;
  box-shadow: 13px 0 0 var(--pb-glow);
  content: '';
  height: 2px;
  left: 10px;
  position: absolute;
  top: 6px;
  width: 10px;
}

.topbar .pixel-btn > span {
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* The static pages still contain page-local legacy nav rules. This more
   specific selector ensures the shared CTA remains the exact funnel button. */
.topbar .nav-links .pixel-btn {
  color: var(--pb-label);
  display: inline-flex;
  font-family: var(--pixel-bold, var(--pixel, monospace));
}

.footer {
  border-top: 1px solid var(--site-border, rgba(22, 35, 63, 0.09));
  color: var(--site-muted, var(--muted, #5a6880));
  margin: 0;
  max-width: none;
  padding: 44px clamp(20px, 5vw, 72px) 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 0.8fr));
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--site-muted, var(--muted, #5a6880));
  font-family: var(--body, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 340px;
}

.footer-col {
  align-content: start;
  display: grid;
  gap: 10px;
}

.footer-col strong {
  color: var(--site-ink, var(--text, #16233f));
  font-family: var(--pixel-bold, var(--pixel, monospace));
  font-size: 16px;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.footer a {
  color: var(--site-muted, var(--muted, #5a6880));
  font-family: var(--body, sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  color: var(--site-ink, var(--text, #16233f));
}

.footer-base {
  border-top: 1px solid var(--site-border, rgba(22, 35, 63, 0.09));
  color: var(--site-muted, var(--muted, #5a6880));
  font-family: var(--body, sans-serif);
  font-size: 14px;
  padding-top: 20px;
}

.topbar a:focus-visible,
.topbar button:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 12px;
  }

  .nav-links a:not(.pixel-btn) {
    display: none;
  }

  .topbar .nav-links .pixel-btn {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
