/* ─────────────────────────────────────────────
   site.css — shared styles for all static pages
   (nav, footer, page heroes, section primitives)
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --nav-h: 60px;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --subtle: #f9fafb;
  --brand: #111827;
  --brand-fg: #ffffff;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Nav ─────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  gap: 2rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}

.site-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav-link:hover { color: var(--text); }

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────── */

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
  border: none;
}

.site-btn-ghost {
  color: var(--muted);
  background: transparent;
}
.site-btn-ghost:hover { color: var(--text); opacity: 1; }

.site-btn-solid {
  background: var(--brand);
  color: var(--brand-fg);
}
.site-btn-solid:hover { opacity: 0.85; }

.site-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.site-btn-outline:hover { background: var(--subtle); }

.site-btn-lg {
  padding: 0.7rem 1.75rem;
  font-size: 0.95rem;
  border-radius: 9px;
}

/* ── Footer ──────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
}

.site-footer-inner { max-width: var(--max-w); margin: 0 auto; }

.site-footer-top {
  display: grid;
  grid-template-columns: 1.75fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.625rem;
  max-width: 28ch;
  line-height: 1.65;
}

.site-footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-links a:hover { color: var(--text); }

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-legal { display: flex; gap: 1.25rem; }
.site-footer-legal a { color: var(--muted); text-decoration: none; }
.site-footer-legal a:hover { color: var(--text); }

/* ── Section primitives ──────────────────────── */

.site-section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.site-section-inner { max-width: var(--max-w); margin: 0 auto; }

.site-section-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.site-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.site-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.site-section-head p { font-size: 1rem; color: var(--muted); }

/* ── Card grid ───────────────────────────────── */

.site-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.site-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  background: #fff;
}

.site-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.site-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.site-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Hero (landing page) ─────────────────────── */

.site-hero {
  padding: 7rem 1.5rem 6rem;
  text-align: center;
}

.site-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.site-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.site-hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.site-hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CTA band ────────────────────────────────── */

.site-cta {
  padding: 6rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--subtle);
}

.site-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.site-cta p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.site-cta-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ─────────────────── */

.site-page-hero {
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.site-page-hero-inner { max-width: var(--max-w); margin: 0 auto; }

.site-page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.site-page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 54ch;
}

/* ── Prose (legal pages) ─────────────────────── */

.site-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.site-prose h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.site-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.site-prose p, .site-prose li {
  font-size: 0.9375rem;
  color: #374151;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.site-prose ul, .site-prose ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.site-prose strong { color: var(--text); font-weight: 600; }
.site-prose a { color: var(--text); text-decoration: underline; }

/* ── Pricing grid ────────────────────────────── */

.site-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.site-pricing-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.site-pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.site-pricing-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.site-pricing-price {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 0.5rem;
  line-height: 1;
}

.site-pricing-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.site-pricing-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }

.site-pricing-cta {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: background 0.15s;
  margin-bottom: 1.5rem;
}
.site-pricing-card.featured .site-pricing-cta {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: transparent;
}
.site-pricing-cta:hover { opacity: 0.85; }

.site-pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.site-pricing-features li { font-size: 0.875rem; color: var(--muted); padding-left: 1.25rem; position: relative; }
.site-pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--text); font-weight: 600; }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 768px) {
  .site-nav-links { display: none; }

  .site-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .site-footer-brand { grid-column: 1 / -1; }

  .site-hero { padding: 5rem 1.5rem 4rem; }

  .site-page-hero { padding: 4rem 1.5rem 3rem; }
}

@media (max-width: 480px) {
  .site-footer-top { grid-template-columns: 1fr; }
  .site-footer-brand { grid-column: auto; }
}
