/* Same palette as the mobile app (bulle-mobile/src/theme/palette.ts). */
:root {
  --canvas: #f6f5f1;
  --surface: #ffffff;
  --foreground: #151515;
  --foreground-secondary: #6e6b64;
  --foreground-tertiary: #a6a29a;
  --border: #eae8e2;
  --accent: #2e55d4;
  --accent-soft: #eef2fc;
  --danger: #c2452d;
  --radius: 18px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav a { color: var(--foreground-secondary); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-header nav a:hover { color: var(--foreground); }

/* Document pages */
.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 32px;
}
.doc h1 { font-size: 34px; line-height: 1.15; letter-spacing: -1.2px; margin: 0 0 8px; font-weight: 800; }
.doc .updated { color: var(--foreground-secondary); font-size: 14px; margin: 0 0 28px; }
.doc .lead { font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.doc h2 { font-size: 21px; letter-spacing: -0.4px; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--foreground-secondary); font-weight: 600; }

.callout {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child, .callout ol:last-child { margin-bottom: 0; }

/* Home */
.hero { padding: 48px 0 32px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1); }
.hero h1 { font-size: 46px; line-height: 1.05; letter-spacing: -2px; margin: 24px 0 12px; font-weight: 800; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -1px; }
.hero p { font-size: 18px; color: var(--foreground-secondary); max-width: 520px; margin: 0 auto; }
.hero .tagline { font-size: 26px; color: var(--foreground); font-weight: 700; letter-spacing: -0.6px; margin: 0 auto 16px; }
.hero .tagline em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.badge { display: inline-block; margin-top: 24px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--foreground-secondary); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0 48px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.3px; }
.feature p { margin: 0; color: var(--foreground-secondary); font-size: 15px; }

.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0 0 48px; }
.legal h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.3px; }
.legal p { margin: 0 0 8px; color: var(--foreground-secondary); font-size: 15px; }
.legal p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { padding: 8px 0 40px; color: var(--foreground-tertiary); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-footer nav a { color: var(--foreground-secondary); text-decoration: none; }
.site-footer nav a:hover { color: var(--foreground); text-decoration: underline; }

@media (max-width: 560px) {
  .doc { padding: 28px 20px; }
  .doc h1 { font-size: 28px; }
  .hero h1 { font-size: 36px; }
}
