:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-900: #312e81;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f1a;
    --surface: #121826;
    --border: #232b3d;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --brand-50: #1e1b4b;
    --brand-100: #26235e;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

header.top {
  border-bottom: 1px solid var(--border);
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.top-nav a:hover { color: var(--brand-600); }
.top-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.top-link:hover { color: var(--brand-600); border-color: var(--brand-600); }

main { flex: 1; }

.hero {
  text-align: center;
  padding: 5rem 0 3.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding-bottom: 5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.35);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 0.75rem;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.card h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; flex: 1; }
.card .cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-600);
  display: flex; align-items: center; gap: 0.3rem;
}
.card .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}
.trust div {
  text-align: center;
}
.trust h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.trust p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.faq {
  padding-bottom: 5rem;
}
.faq h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Simple content pages (Privacy, Terms, Contact, About) ---- */
.page-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 5rem;
}
.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.prose ul { padding-left: 1.25rem; }
.prose a { color: var(--brand-600); text-decoration: underline; }
.prose strong { color: var(--text); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.contact-card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; }
.contact-card p { margin: 0 0 0.6rem; font-size: 0.85rem; }
.contact-card a { color: var(--brand-600); font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---- Guides / articles ---- */
.guide-article .prose { max-width: 760px; }
.guide-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.guide-cta {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.guide-cta a {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 1.5rem 0 0;
  text-align: center;
}
.breadcrumb a { color: var(--brand-600); text-decoration: none; }

footer.bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.bottom-row a { color: var(--text-muted); text-decoration: none; }
.bottom-row a:hover { color: var(--brand-600); }
.bottom-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
