/* dispatchmy.ai shared chrome — header (nav) + footer styles
 *
 * Single source of truth for the page chrome that wraps every public-
 * facing page (marketing landing, docs, privacy, terms). Imported by
 * each page after tokens.css; the matching HTML lives in
 * web/source/_partials/{header,footer}.html and is inlined at build
 * time by web/build.js.
 *
 * Page-specific extras (hero, demo frame, docs sidebar, etc.) stay in
 * each page's own <style> block. This file only owns the shared shell.
 */

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Header / nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.025em;
  color: var(--fg-strong); text-decoration: none;
}
.brand img { height: 44px; width: 44px; display: block; }
.brand .my { color: var(--gold); }
.brand .tld { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted-strong); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg-strong); }
.nav-links .btn-sm { background: var(--gold); color: #0a0a0b; padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.nav-links .btn-sm:hover { filter: brightness(0.95); color: #0a0a0b; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--fg-strong); background: var(--panel); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Footer */
footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 15px; }
.footer-brand img { height: 32px; width: 32px; }
.footer-brand .my { color: var(--gold); }
.footer-brand .tld { color: var(--muted); font-weight: 400; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg-strong); }

/* Mobile — collapse non-CTA nav links and ease the inner padding. */
@media (max-width: 820px) {
  .nav-inner { padding: 12px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn-sm):not(.keep-mobile) { display: none; }
}
