/* ════════════════════════════════════════════════════
   Bold GEO – Shared Site Theme
   Mirrors the design tokens of the Next.js home page.
   Apply to every static page so the whole site reads
   as one product.
════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,30..100&family=Geist:wght@300..900&family=Geist+Mono:wght@300..700&display=swap');

:root{
  /* ─── Ink ─── */
  --ink:        #0A1628;
  --ink-2:      #4A4A47;
  --ink-3:      #8B857A;

  /* ─── Neutral surfaces (greys; variable names kept for backwards compat) ─── */
  /* All background shades collapsed to #EAEAEA. Borders (cream-4) and wordmark (cream-5) preserved. */
  --cream-1:    #EAEAEA;
  --cream-2:    #EAEAEA;
  --cream-3:    #EAEAEA;
  --cream-4:    #CACACA;
  --cream-5:    #BDBDBD;

  /* ─── Accent ─── */
  --accent:     #1B2BFF;
  --accent-ink: #0F1FCC;
  --accent-08:  rgba(27, 43, 255, 0.08);
  --accent-14:  rgba(27, 43, 255, 0.14);

  /* ─── Status ─── */
  --ok:         #059669;
  --warn:       #D97706;
  --err:        #DC2626;

  /* ─── Typography ─── */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* ─── Geometry ─── */
  --r-sm:       6px;
  --r-md:       8px;
  --r-lg:       12px;
  --r-xl:       16px;
  --container:  1180px;
  --gutter:     28px;
  --transition: 0.2s cubic-bezier(.4, 0, .2, 1);
}

/* ─────────── Reset / Base ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream-1);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--cream-4); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::selection { background: var(--accent-14); color: var(--ink); }

/* ─────────── Typography ─────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(40px, 5.6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }

p { margin: 0 0 1em; color: var(--ink-2); line-height: 1.75; }
p.lead { font-size: 18px; color: var(--ink); line-height: 1.6; }
small, .small { font-size: 13px; color: var(--ink-3); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-ink); }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; color: var(--ink-2); }
ul li, ol li { margin: 0.35em 0; line-height: 1.7; }
ul.bare { list-style: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--cream-4); margin: 32px 0; }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--cream-3); color: var(--ink); padding: 2px 6px; border-radius: var(--r-sm); }
pre { background: var(--cream-2); border: 1px solid var(--cream-4); border-radius: var(--r-md); padding: 16px; overflow-x: auto; }
pre code { background: transparent; padding: 0; }

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--cream-2);
  margin: 24px 0;
  padding: 12px 20px;
  color: var(--ink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ─────────── Layout ─────────── */
.bg-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.bg-section { padding: 80px 0; }
.bg-section-sm { padding: 48px 0; }

/* ─────────── Buttons ─────────── */
.bg-btn,
button.bg-btn,
a.bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.bg-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.bg-btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.bg-btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--cream-4); }
.bg-btn-ghost:hover { background: var(--cream-2); color: var(--ink); }
.bg-btn-soft { background: var(--accent-14); color: var(--accent); border-color: transparent; }
.bg-btn-soft:hover { background: var(--accent-08); color: var(--accent-ink); }
.bg-btn-lg { padding: 14px 28px; font-size: 15px; }

/* ─────────── Forms ─────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--cream-4);
  border-radius: var(--r-md);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-08);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.bg-field { margin-bottom: 16px; }

/* ─────────── Cards ─────────── */
.bg-card {
  background: #fff;
  border: 1px solid var(--cream-4);
  border-radius: var(--r-lg);
  padding: 28px;
}
.bg-card-cream {
  background: var(--cream-2);
  border: 1px solid var(--cream-4);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* ─────────── Badge / Pill ─────────── */
.bg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-14);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════
   Header / Nav - UNIFIED with the home page
   (matches the v3 React-bundled home header exactly:
   76px height, 1320px max-width, 6-link nav,
   brand-logo with Fraunces variable-weight hover,
   nav-link with bracket-reveal + bold-on-hover)
═══════════════════════════════════════════════ */
.bg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: var(--cream-1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.bg-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  gap: 24px;
}

/* Brand logo - Fraunces wordmark, hover boldens via variable-weight axis */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 600;
  transition: font-variation-settings 0.28s ease, letter-spacing 0.28s ease;
  will-change: font-variation-settings;
}
.brand-logo .brand-bracket {
  color: var(--accent);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 500;
  transition: font-variation-settings 0.28s ease;
}
.brand-logo .brand-word { padding: 0 2px; }
.brand-logo:hover {
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 900;
  letter-spacing: -0.04em;
}
.brand-logo:hover .brand-bracket {
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 900;
}

/* Nav strip - centered, 6 links */
.bg-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Nav link - bracket reveal + bold on hover */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--r-md);
  transition: color 0.2s ease, font-weight 0.2s ease, background 0.2s ease;
}
.nav-link::before,
.nav-link::after {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  position: absolute;
  top: 50%;
  transform: translateY(-52%);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.nav-link::before { content: "["; left: 0.15rem; transform: translate(0.4rem, -52%); }
.nav-link::after  { content: "]"; right: 0.15rem; transform: translate(-0.4rem, -52%); }
.nav-link:hover {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-08);
}
.nav-link:hover::before { opacity: 1; transform: translate(0, -52%); }
.nav-link:hover::after  { opacity: 1; transform: translate(0, -52%); }

/* Right-side CTAs */
.bg-nav-ctas { display: flex; align-items: center; gap: 10px; }

/* Buttons matching the home page (.btn-ghost / .btn-primary) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { background: var(--cream-3); color: var(--ink); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  text-decoration: none;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-primary:active { transform: translateY(1px); }

/* Legacy .bg-brand / .bg-nav a / .bg-btn-* still present for any page that hasn't
   migrated yet. Style them to match the new defaults so they're not visually broken. */
.bg-brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.bg-nav a:not(.nav-link) {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--r-md);
  transition: color 0.2s, background 0.2s;
}
.bg-nav a:not(.nav-link):hover { color: var(--accent); background: var(--accent-08); }

@media (max-width: 880px) {
  .bg-nav, .bg-nav-ctas .btn-ghost { display: none; }
  .bg-header-inner { grid-template-columns: auto auto; }
}

/* ═══════════════════════════════════════════════
   Footer  (mirrors Next.js home footer)
═══════════════════════════════════════════════ */
.bg-footer {
  background: #fff;
  border-top: 1px solid var(--cream-4);
  overflow: hidden;
  margin-top: 80px;
}
.bg-footer-mark {
  text-align: center;
  padding: 48px var(--gutter) 0;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.bg-footer-mark span {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 150px);
  color: var(--cream-5);
  display: block;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.bg-footer-rule { border-top: 1px solid var(--cream-4); margin: 0 var(--gutter); }
.bg-footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.bg-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 12px; }
.bg-footer-links a {
  padding: 4px 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.bg-footer-links a:hover { color: var(--ink); }
.bg-footer-links .sep {
  width: 1px;
  height: 14px;
  background: var(--cream-4);
  display: inline-block;
  margin: 0 2px;
}
.bg-footer-copy { font-size: 12px; color: var(--ink-3); margin: 0 0 0 12px; }

/* ═══════════════════════════════════════════════
   Page hero (used on most static pages)
═══════════════════════════════════════════════ */
.bg-hero {
  padding: 80px 0 48px;
  background: var(--cream-1);
  border-bottom: 1px solid var(--cream-4);
}
.bg-hero h1 { margin-bottom: 16px; }
.bg-hero p.lead { max-width: 640px; }

/* ═══════════════════════════════════════════════
   Article / prose  (long-form copy)
═══════════════════════════════════════════════ */
.bg-prose { max-width: 720px; margin: 0 auto; }
.bg-prose h2 { margin-top: 48px; }
.bg-prose h3 { margin-top: 32px; }
.bg-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.bg-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.bg-prose th, .bg-prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cream-4);
}
.bg-prose th { font-weight: 600; color: var(--ink); background: var(--cream-2); }

/* ═══════════════════════════════════════════════
   Utility classes
═══════════════════════════════════════════════ */
.bg-text-mono { font-family: var(--font-mono); }
.bg-text-display { font-family: var(--font-display); }
.bg-text-accent { color: var(--accent); }
.bg-text-muted { color: var(--ink-3); }
.bg-center { text-align: center; }
.bg-hide-sm { }
@media (max-width: 640px) { .bg-hide-sm { display: none !important; } }
