:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #6b655c;
  --line: #e6e1d8;
  --accent: #3b5bdb;
  --accent-soft: #e8edff;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #1f1e1b;
    --text: #ece8e1;
    --muted: #a39c90;
    --line: #34312c;
    --accent: #8ea6ff;
    --accent-soft: #232a45;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

a { color: var(--accent); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 19px var(--serif);
  color: var(--text);
  text-decoration: none;
}
.brand img { display: block; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  max-width: 14em;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 32px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
}
@media (prefers-color-scheme: dark) {
  .button { color: #111; }
}
.button:hover { opacity: 0.9; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px 0 72px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Sections */
.section {
  border-top: 1px solid var(--line);
  padding: 64px 0;
}
.section h2 { font-size: 30px; }
.section p { max-width: 40em; }

.platforms {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.platforms li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--surface);
}
.status { color: var(--muted); font-size: 14px; }
.status.live { color: var(--accent); font-weight: 600; }

/* Legal pages */
.doc {
  max-width: 720px;
  padding: 56px 0 80px;
}
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--muted); margin-left: 16px; }
.site-footer a:first-child { margin-left: 0; }

@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .site-header nav a { margin-left: 14px; }
}
