/* Shared shell CSS: nav, footer, common structural patterns used across
   every marketing page. Component-specific styling stays with each page's
   own stylesheet section to keep this file from becoming a second
   inline-style dumping ground. */

.page-shell { width: 100%; overflow-x: hidden; }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.site-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
}
.site-logo-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.navlink {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.navlink.is-active {
  font-weight: 600;
  color: var(--accent-ink);
}
.theme-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle.labeled {
  width: auto;
  gap: 8px;
  padding: 8px 15px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
}
.btn-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-fg);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  display: inline-block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--sink);
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 22px 40px;
}
.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}
.site-footer-brand { max-width: 36ch; }
.site-footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-2);
  margin: 0;
}
.site-footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer-col-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-footer-col a {
  text-decoration: none;
  color: var(--ink-2);
}
.site-footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0;
  max-width: 80ch;
}
.site-footer-simple {
  padding: 40px 22px;
}
.site-footer-simple-links {
  margin-top: 16px;
  font-size: 0.875rem;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer-simple-links a { color: var(--ink-2); text-decoration: none; }

/* ===== SHARED PAGE PATTERNS ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: var(--pill);
  padding: 7px 14px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.badge-text {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.btn-pill-outline {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 13px 24px;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  cursor: pointer;
}
.btn-pill-accent {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  padding: 14px 26px;
  border-radius: var(--pill);
  box-shadow: var(--glow);
  display: inline-block;
  border: none;
  cursor: pointer;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
