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

:root {
  --bg: #f8f9fa; --surface: #fff; --border: #e0e0e0;
  --text: #1a1a1a; --muted: #5f6672; --accent: #2563eb;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1117; --surface: #1a1d27; --border: #2d3148;
          --text: #e8eaf0; --muted: #9aa0b5; --accent: #7aa2ff; }
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text);
       font-size: 16px; line-height: 1.6; min-height: 100vh;
       display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; }

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

/* Header */
header { border-bottom: 1px solid var(--border); background: var(--surface); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.01em;
         display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
        color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .mark { color: #0f1117; } }
header nav { display: flex; gap: 20px; font-size: 14px; }
header nav a { color: var(--muted); }
header nav a:hover, header nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.12; letter-spacing: -.025em;
           font-weight: 700; max-width: 16ch; }
.hero p { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 56ch; }
.cta { display: inline-block; margin-top: 28px; padding: 10px 18px; border-radius: 8px;
       background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
@media (prefers-color-scheme: dark) { .cta { color: #0f1117; } }
.cta:hover { text-decoration: none; opacity: .92; }

/* Sections */
section { padding: 48px 0; border-top: 1px solid var(--border); }
section h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
             color: var(--muted); margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 20px; }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.lead { font-size: 17px; max-width: 62ch; }
.lead + .lead { margin-top: 12px; }

/* Prose pages (privacy, terms) */
.prose { padding: 56px 0 72px; max-width: 70ch; }
.prose h1 { font-size: 32px; letter-spacing: -.02em; line-height: 1.2; }
.prose .meta { color: var(--muted); font-size: 14px; margin: 8px 0 32px; }
.prose h2 { font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose .note { background: var(--surface); border: 1px solid var(--border);
               border-left: 3px solid var(--accent); border-radius: 6px; padding: 14px 16px; margin: 16px 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  header nav { gap: 14px; }
  .hero { padding: 56px 0 44px; }
}
