/* FounderScope Guides  static pages stylesheet.
   Mirrors the SPA public layout (PublicLayout.tsx + theme/default/tokens.css). */

:root {
  --background: #ffffff;
  --muted: #f8fafc;
  --foreground: #0f172a;
  --body-text: #334155;
  --muted-text: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --brand: #2aabb3;
  --navy: #131f3e;
  --navy-soft: #1e2d4a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--muted);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 1.0625rem;
}

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

.container { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; gap: 1rem;
}
.site-header .logo img { height: 2.5rem; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; flex-wrap: wrap; }
.site-nav a { color: #cbd5e1; }
.site-nav a:hover { color: #ffffff; text-decoration: none; }
.site-nav a.active { color: #ffffff; font-weight: 500; }
.site-nav .cta {
  background: var(--primary); color: #ffffff; padding: 0.5rem 1rem;
  border-radius: 0.5rem; font-weight: 500;
}
.site-nav .cta:hover { background: var(--primary-hover); }
.lang-switch {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem; overflow: hidden; font-size: 0.75rem;
}
.lang-switch a, .lang-switch span { padding: 0.375rem 0.75rem; color: #cbd5e1; }
.lang-switch .current { background: #ffffff; color: var(--foreground); font-weight: 600; }
.lang-switch a:hover { text-decoration: none; color: #ffffff; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.8125rem; color: var(--muted-text); margin: 1.5rem 0 0; }
.breadcrumb a { color: var(--muted-text); }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .sep { margin: 0 0.375rem; }

/* ── Article card ── */
.page-card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  padding: 2rem 1.5rem; margin: 1rem 0 2rem;
}
@media (min-width: 768px) { .page-card { padding: 3rem; } }

.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 0.75rem;
}

article h1 {
  margin: 0 0 0.75rem; font-size: 2rem; line-height: 1.15;
  font-weight: 800; color: var(--foreground); letter-spacing: -0.02em;
}
@media (min-width: 768px) { article h1 { font-size: 2.5rem; } }

.article-meta {
  font-size: 0.8125rem; color: var(--muted-text);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}

article h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--foreground);
  margin: 2.25rem 0 0.75rem; line-height: 1.3; letter-spacing: -0.01em;
}
article h3 { font-size: 1.1875rem; font-weight: 600; color: var(--foreground); margin: 1.75rem 0 0.5rem; }
article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1rem; padding-left: 1.5rem; }
article li { margin-bottom: 0.375rem; }
article strong { color: var(--foreground); }
article blockquote {
  margin: 1.25rem 0; padding: 0.75rem 1.25rem; border-left: 3px solid var(--brand);
  background: var(--muted); border-radius: 0 0.5rem 0.5rem 0; color: var(--foreground);
}
article blockquote p { margin: 0; }
article table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9375rem; }
article th, article td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
article th { background: var(--muted); color: var(--foreground); font-weight: 600; }
article code {
  background: var(--muted); border: 1px solid var(--border); border-radius: 0.25rem;
  padding: 0.125rem 0.375rem; font-size: 0.875em; color: var(--foreground);
}
article img { max-width: 100%; height: auto; border-radius: 0.5rem; }

/* ── FAQ ── */
.faq h2 { margin-top: 2.5rem; }
.faq h3 { margin-top: 1.5rem; }

/* ── CTA box ── */
.cta-box {
  background: var(--navy); border-radius: 0.75rem; padding: 2rem;
  margin: 2.5rem 0 0.5rem; color: #cbd5e1; text-align: center;
}
.cta-box h2 { color: #ffffff; margin: 0 0 0.5rem; font-size: 1.375rem; }
.cta-box p { margin: 0 auto 1.25rem; max-width: 34rem; font-size: 0.9375rem; }
.cta-box .cta-note { font-size: 0.8125rem; color: #94a3b8; margin-top: 0.75rem; margin-bottom: 0; }
.cta-button {
  display: inline-block; background: var(--primary); color: #ffffff;
  padding: 0.75rem 1.75rem; border-radius: 0.5rem; font-weight: 600;
}
.cta-button:hover { background: var(--primary-hover); text-decoration: none; }

/* ── Related guides ── */
.related { margin: 2.5rem 0 1rem; }
.related h2 { font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin: 0 0 1rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card {
  display: block; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.875rem 1rem; background: var(--background); color: var(--foreground);
}
.related-card:hover { border-color: var(--primary); text-decoration: none; }
.related-card .rc-title { font-weight: 600; font-size: 0.9375rem; display: block; }
.related-card .rc-desc {
  font-size: 0.8125rem; color: var(--muted-text); margin-top: 0.25rem; display: block;
}

/* ── Hub page ── */
.hub-hero { padding: 3rem 0 1rem; text-align: center; }
.hub-hero h1 {
  margin: 0 0 0.75rem; font-size: 2.25rem; font-weight: 800; color: var(--foreground);
  letter-spacing: -0.02em; line-height: 1.15;
}
@media (min-width: 768px) { .hub-hero h1 { font-size: 2.75rem; } }
.hub-hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hub-hero p { max-width: 40rem; margin: 0 auto; color: var(--muted-text); }
.hub-section { margin: 2.5rem 0; }
.hub-section h2 {
  font-size: 1.375rem; font-weight: 700; color: var(--foreground);
  margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
@media (min-width: 640px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hub-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 2rem;
  padding: 2rem 0; font-size: 0.875rem; color: var(--muted-text);
}
.site-footer .links {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.site-footer a { color: var(--muted-text); }
.site-footer a:hover { color: var(--foreground); text-decoration: none; }
