/* Shared styles for the static landing pages (public/*.html).
 * No JS, no framework — plain HTML + this stylesheet, served as-is.
 * Palette mirrors the app (indigo/slate) with automatic dark mode. */

:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #334155;
  --heading: #1e293b;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --border: #e2e8f0;
  --code-bg: #0f172a;
  --code-text: #cbd5e1;
  --code-accent: #818cf8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #94a3b8;
    --heading: #e2e8f0;
    --accent: #818cf8;
    --accent-soft: rgba(129, 140, 248, 0.12);
    --border: #334155;
    --code-bg: #020617;
  }
}

* { margin: 0; box-sizing: border-box; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
header.site .wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.1rem; color: var(--accent); text-decoration: none;
}
nav.main { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
nav.main a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
nav.main a:hover { color: var(--accent); }
nav.main a.active { color: var(--accent); font-weight: 600; }

.hero { padding: 3.5rem 0 2.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  color: var(--heading); letter-spacing: -0.5px; line-height: 1.15;
  max-width: 46rem; margin: 0 auto 1rem;
}
.hero p.lead { font-size: 1.12rem; max-width: 40rem; margin: 0 auto 1.75rem; }
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.7rem 1.5rem; border-radius: 0.6rem;
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--border); color: var(--heading); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

section { padding: 2rem 0; }
section h2 { font-size: 1.45rem; color: var(--heading); margin-bottom: 0.75rem; letter-spacing: -0.3px; }
section h3 { font-size: 1.05rem; color: var(--heading); margin: 1.1rem 0 0.3rem; }
section p, section li { font-size: 0.98rem; }
section ul { padding-left: 1.25rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.8rem; padding: 1.1rem 1.25rem;
}
.card h3 { margin-top: 0; }

pre.mmd {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 0.8rem; padding: 1.1rem 1.3rem; overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88rem; line-height: 1.6; margin: 1rem 0;
}
pre.mmd b { color: var(--code-accent); font-weight: 600; }

.faq details {
  border: 1px solid var(--border); border-radius: 0.7rem;
  padding: 0.8rem 1.1rem; margin-bottom: 0.6rem; background: var(--bg-card);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.faq details p { margin-top: 0.5rem; }

footer.site {
  border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.75rem 0 2.5rem;
  font-size: 0.88rem;
}
footer.site .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
footer.site a { color: var(--text); text-decoration: none; display: block; margin-top: 0.35rem; }
footer.site a:hover { color: var(--accent); }
footer.site strong { color: var(--heading); }
