/* site-base.css
 * Shared styles for sub-pages: nav, footer, typography, layout primitives.
 * Section-specific styles (math, pricing, status match, etc.) live inline
 * on the page that uses them — keeps each page small and self-contained.
 */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --blue: #1565c0;
  --blue-light: #e3f2fd;
  --navy: #0a1830;
  --gold: #c9a227;
  --gold-deep: #b8920e;
  --champagne: #fbf6e6;
  --slate: #475569;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Top nav ─────────────────────────────────────────── */

nav.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #0a1830 0%, #1565c0 100%);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 56px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
nav.topnav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}
nav.topnav .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: #ffffff;
  text-decoration: none;
}
nav.topnav .brand:hover { text-decoration: none; opacity: 0.85; }
nav.topnav .brand svg { display: block; color: #ffffff; flex: 0 0 auto; }
nav.topnav .brand .word { display: inline-flex; align-items: baseline; gap: 0; }
nav.topnav .brand .word .lite { color: rgba(255,255,255,0.65); font-weight: 600; }

nav.topnav .menu {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav.topnav .menu a {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.1px;
  transition: color 0.15s;
}
nav.topnav .menu a:hover { color: #ffffff; text-decoration: none; }
nav.topnav .menu a.active { color: #ffffff; }
nav.topnav .signup-btn {
  display: inline-block;
  background: linear-gradient(180deg, #c9a227 0%, #b8920e 100%);
  color: #0a1830;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
nav.topnav .signup-btn:hover {
  background: linear-gradient(180deg, #d4af2f 0%, #c9a227 100%);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
  nav.topnav .menu a.hide-mobile { display: none; }
  nav.topnav .brand .word .lite { display: none; }
}

/* ─── Page hero (used by sub-pages, not the home page) ─── */

.page-hero {
  max-width: 1100px;
  margin: 24px auto 32px;
  padding: 36px 24px 28px;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--navy);
  line-height: 1.15;
}
.page-hero p {
  margin: 0 auto;
  max-width: 680px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 760px) {
  .page-hero { padding: 24px 16px 16px; margin: 16px auto 20px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 16px 14px 12px; margin: 12px auto 16px; }
  .page-hero h1 { font-size: 22px; }
  .page-hero p { font-size: 14px; }
  nav.topnav .menu { gap: 10px; }
  nav.topnav .signup-btn { padding: 7px 14px; font-size: 12px; }
}

/* ─── Footer (light variant, sub-pages) ───────────────── */

footer.site-foot {
  max-width: 1100px;
  margin: 56px auto 32px;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
footer.site-foot a { color: var(--text-muted); text-decoration: none; }
footer.site-foot a:hover { color: var(--blue); text-decoration: underline; }
footer.site-foot .foot-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }

/* ─── Helpers ─────────────────────────────────────────── */

.section-block {
  max-width: 1100px;
  margin: 24px auto;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .section-block { padding: 24px 16px; border-radius: 12px; }
}
