/* Crohamhurst — shared site stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d1117;
  --surface:  #161b22;
  --surface2: #1c2128;
  --border:   #30363d;
  --text:     #e6edf3;
  --muted:    #8b949e;
  --gold:     #d4a843;
  --gold-dim: rgba(212,168,67,0.15);
  --accent:   #58a6ff;
  --accent-dim: rgba(88,166,255,0.12);
  --success:  #3fb950;
  --danger:   #f85149;
  --radius:   8px;
  --max:      1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Site nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
}
.site-nav .inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  height: 56px;
}
.site-nav .logo {
  color: var(--gold); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.3px; white-space: nowrap; text-decoration: none;
}
.site-nav .logo:hover { text-decoration: none; }
.nav-links {
  display: flex; align-items: center; gap: 1.5rem; list-style: none;
}
.nav-links a {
  color: var(--muted); font-size: 0.88rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.5rem 1.1rem;
  border-radius: var(--radius); font-size: 0.875rem;
  font-weight: 500; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: all 0.15s;
}
.btn-primary {
  background: var(--gold); color: #0d1117;
  border-color: var(--gold);
}
.btn-primary:hover { background: #c89c30; border-color: #c89c30; text-decoration: none; color: #0d1117; }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--muted); border-color: transparent;
}
.btn-ghost:hover { color: var(--text); text-decoration: none; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.95rem; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }

.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.page-header .subtitle { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card-gold { border-color: rgba(212,168,67,0.3); }
.card-blue { border-color: rgba(88,166,255,0.2); }

/* ── Labels ───────────────────────────────────────────────────────────────── */
.label {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 0.15rem 0.55rem; border-radius: 3px;
}
.label-gold { background: var(--gold-dim); color: var(--gold); }
.label-blue { background: var(--accent-dim); color: var(--accent); }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.78rem; }
.text-center { text-align: center; }

/* ── Grid helpers ─────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .hide-mobile { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.06) 0%, transparent 70%);
  text-align: center;
}
.hero .eyebrow {
  font-size: 0.78rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; font-weight: 600;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead {
  font-size: 1.1rem; color: var(--muted); max-width: 640px;
  margin: 0 auto 2rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.feature-icon {
  font-size: 1.5rem; margin-bottom: 0.75rem; display: block;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }

.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: rgba(212,168,67,0.4);
  background: linear-gradient(160deg, rgba(212,168,67,0.05) 0%, var(--surface) 100%);
}
.pricing-tier { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.pricing-price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-desc { font-size: 0.83rem; color: var(--muted); margin-bottom: 1.25rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.pricing-features li { font-size: 0.83rem; color: var(--muted); padding: 0.3rem 0; padding-left: 1.25rem; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 600; }
.pricing-features li.dim::before { color: var(--border); }
.pricing-features li.dim { opacity: 0.5; }

/* ── Section labels ───────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--muted); font-weight: 600; margin-bottom: 0.75rem;
}
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 3rem; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { padding: 0.6rem 0.75rem; text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.15rem; margin-top: 2.25rem; margin-bottom: 0.6rem; }
.legal-body h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.4rem; color: var(--text); }
.legal-body ul, .legal-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body li { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.9rem; }
.legal-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.legal-body strong { color: var(--text); }
.legal-body .effective { font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }
.warning-box {
  background: rgba(248,81,73,0.08); border: 1px solid rgba(248,81,73,0.2);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: 0.875rem; color: #f85149;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-weight: 600; color: var(--text); margin-bottom: 0.4rem; font-size: 0.92rem; }
.faq-a { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* ── Credibility strip ────────────────────────────────────────────────────── */
.cred-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.25rem 0; background: var(--surface);
}
.cred-strip .inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.cred-item { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.cred-item strong { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { color: var(--gold); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; display: block; }
.footer-tagline { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--muted); font-size: 0.83rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.75rem; color: var(--muted);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.55rem 0.75rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 5px; color: var(--text); font-size: 0.875rem;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Alert ────────────────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: 5px; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.25); color: var(--success); }
.alert-error   { background: rgba(248,81,73,0.1);  border: 1px solid rgba(248,81,73,0.25);  color: var(--danger); }
