/* SXN API global shell: header, navigation, and footer only. */
:root {
  --shell-header-height: 88px;
}

/* Accessibility helper shared by every page.
   Kept here so pages with their own CSS (pricing/error/legal) do not leak the label. */
.sr-only,
.theme-toggle-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.site-header {
  min-height: var(--shell-header-height);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
}

.header-container {
  min-height: var(--shell-header-height);
  gap: 20px;
}

.brand-logo {
  min-width: 0;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.08;
}

.brand-text {
  display: block;
}

.header-page-label {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav {
  margin-left: auto;
}

.nav-list {
  gap: 4px;
}

.nav-link {
  position: relative;
  min-height: 44px;
  padding-inline: 11px;
  border: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}

.nav-link:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

.nav-link--active {
  border-color: var(--line);
  background: var(--yellow);
  color: #111;
  box-shadow: 3px 3px 0 var(--line);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: 2px;
}

.connection-pill {
  white-space: nowrap;
}

.mobile-nav-identity {
  display: grid;
  line-height: 1.15;
}

.mobile-nav-kicker,
.mobile-nav-title,
.footer-nav-title {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-nav-title {
  margin: 0 0 12px;
}

.mobile-nav-link--highlight {
  box-shadow: 4px 4px 0 var(--line);
}

/* Keep the page head from feeling glued to the sticky header. */
.hero-section,
.legal-hero,
.monitoring-hero,
.pricing-hero {
  scroll-margin-top: calc(var(--shell-header-height) + 16px);
}

.site-footer {
  border-top: 4px solid #f7f5f0;
  background: #111;
  color: #f7f5f0;
  padding-block: 48px;
}

html.dark .site-footer {
  border-top-color: var(--line);
  background: #090909;
}

.footer-container--global {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  align-items: start;
  gap: 54px;
}

.footer-meta {
  display: grid;
  gap: 12px;
}

.footer-brand {
  color: #fff;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.footer-description,
.copyright-text {
  max-width: 620px;
  margin: 0;
  color: #bebebe;
}

.footer-description {
  font-size: .92rem;
}

.copyright-text {
  font-size: .82rem;
}

.footer-nav {
  display: grid;
  gap: 14px;
}

.footer-nav-title {
  color: #8f8f8f;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-link,
.footer-links a {
  display: inline-flex;
  width: fit-content;
  color: #f7f5f0;
  font-size: .88rem;
  font-weight: 750;
}

.footer-link:hover,
.footer-links a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .desktop-nav,
  .connection-pill {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --shell-header-height: 86px;
  }

  .header-container,
  .footer-container {
    width: min(100% - 32px, var(--max-width));
  }

  .header-container {
    gap: 12px;
  }

  .brand-logo {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: .98rem;
  }

  .header-page-label {
    max-width: 120px;
    font-size: .58rem;
  }

  .theme-toggle,
  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
  }

  .footer-container--global {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .header-container,
  .footer-container {
    width: min(100% - 24px, var(--max-width));
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: .9rem;
  }

  .header-page-label {
    max-width: 86px;
    font-size: .54rem;
  }

  .header-actions {
    gap: 7px;
  }

  .theme-toggle,
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
  }

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