/* 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 .menu a.signup-btn {
  /* Minimal: white pill, dark text. Selector specificity bumped above
   * `nav.topnav .menu a` (which sets all menu links to white) so the
   * text color sticks instead of inheriting white. */
  display: inline-block;
  background: #ffffff;
  color: #0a1830;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
nav.topnav .menu a.signup-btn:hover {
  /* Subtle blue tint on hover — matches the rest of the site palette.
   * Original was AA red, but with the all-blue theme red felt jarring. */
  background: #e3f2fd;
  color: #0a4f97;
  border-color: #1565c0;
  text-decoration: none;
}

@media (max-width: 600px) {
  /* 2026-05-24 — Original behavior hid all `hide-mobile` nav items on
     mobile, leaving only Sign-in. That tanks the mobile funnel since
     visitors can't navigate. New behavior: keep ALL nav items visible,
     let them wrap to a second row. Nav grows from 56px → ~88px on
     mobile, content below pushes down naturally (sticky positioning). */
  nav.topnav {
    height: auto;
    min-height: 56px;
    padding: 8px 0;
  }
  nav.topnav .nav-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    row-gap: 6px;
  }
  nav.topnav .menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 12px;
    margin-left: auto;
  }
  nav.topnav .menu a.hide-mobile { display: inline-block; }
  nav.topnav .menu a { font-size: 12px; padding: 2px 0; }
  nav.topnav .menu a.signup-btn { padding: 5px 12px; font-size: 11px; }
  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; }
}
