/* CalmBP landing-site shared styles. Single CSS file for every page. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  color-scheme: light dark;
  --fg: #111827;
  --fg-soft: #4b5563;
  --fg-muted: #6b7280;
  --bg: #fafafa;
  --bg-soft: #f4f4f5;
  --divider: rgba(0, 0, 0, 0.08);
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f5f5f5;
    --fg-soft: #d4d4d8;
    --fg-muted: #9a9a9a;
    --bg: #0a0a0a;
    --bg-soft: #18181b;
    --divider: rgba(255, 255, 255, 0.08);
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --accent-fg: #0a0a0a;
  }
}

body {
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Layout containers */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
@media (max-width: 600px) {
  .container { padding: 24px 18px 56px; }
}

/* Header / nav */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--divider);
}
.site-header .brand {
  font-weight: 700; font-size: 16px; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.site-header .brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-fg); font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
}
.site-header nav {
  display: flex; gap: 18px; font-size: 14px;
}
.site-header nav a {
  color: var(--fg-soft);
}
@media (max-width: 520px) {
  .site-header nav { display: none; }
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.8px;
  margin: 0 0 16px;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
}
.hero .lede {
  font-size: 18px; color: var(--fg-soft); line-height: 1.55; margin: 0 0 28px;
  max-width: 560px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: var(--accent-fg);
}
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost {
  color: var(--fg-soft);
  border: 1px solid var(--divider);
}
.btn-ghost:hover { text-decoration: none; background: var(--bg-soft); }

/* Feature list */
.features {
  display: grid; gap: 20px; margin: 32px 0 0;
}
.feature {
  padding: 18px 20px; border-radius: 14px;
  background: var(--bg-soft);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 16px; font-weight: 700;
}
.feature p {
  margin: 0; color: var(--fg-soft); font-size: 14px; line-height: 1.55;
}

/* Legal document pages */
.legal h1 {
  font-size: 32px; font-weight: 800; letter-spacing: -0.6px;
  margin: 0 0 8px;
}
.legal .meta {
  color: var(--fg-muted); font-size: 13px; margin: 0 0 28px;
}
.legal h2 {
  font-size: 21px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.3px;
}
.legal h3 {
  font-size: 17px; font-weight: 700; margin: 24px 0 8px;
}
.legal p {
  margin: 0 0 14px;
}
.legal ul, .legal ol {
  margin: 0 0 16px; padding-left: 22px;
}
.legal li { margin: 4px 0; }
.legal blockquote {
  margin: 12px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  font-size: 15px;
}
.legal table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
.legal th, .legal td {
  border: 1px solid var(--divider);
  padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal th {
  background: var(--bg-soft); font-weight: 700;
}
.legal strong { font-weight: 700; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
.legal hr {
  border: none; border-top: 1px solid var(--divider); margin: 32px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 28px 24px;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
}
.site-footer .row {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; align-items: center;
  margin-bottom: 10px;
}
.site-footer .row a { color: var(--fg-soft); }
.site-footer .disclaimer {
  max-width: 600px; margin: 8px auto 0; color: var(--fg-muted); line-height: 1.5;
}

/* Misc */
.divider-text {
  text-align: center; color: var(--fg-muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 32px 0 16px;
}
