/* The Collector Project: public landing page. No web fonts and no third-party
   requests (the privacy policy promises it; scripts/tests/test_landing_site.py
   pins it). */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #17191c;
  --muted: #5b6168;
  --line: #dcd9cf;
  --accent: #b4321f;
  --accent-ink: #ffffff;
  --up: #1f7a4d;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --surface: #171a1d;
    --surface-2: #1e2226;
    --text: #e9e7e1;
    --muted: #9aa1a8;
    --line: #2b3035;
    --accent: #e0523a;
    --accent-ink: #0f1113;
    --up: #46b57d;
  }
}

* { box-sizing: border-box; }

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

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark .mark {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 7px;
  border-radius: 4px;
}
.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: var(--muted);
}
.site-header nav a { text-decoration: none; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.badge .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  margin-right: 8px;
  vertical-align: 1px;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
}
.button:hover { color: var(--accent-ink); filter: brightness(1.08); }
.hero .aside {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Terminal card */
.terminal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 14px;
  overflow: hidden;
}
.terminal-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.terminal table {
  width: 100%;
  border-collapse: collapse;
}
.terminal td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.terminal tr:last-child td { border-bottom: 0; }
.terminal td.code {
  width: 7.5em;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.terminal td.desc {
  font-family: var(--sans);
  color: var(--muted);
}

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section-lede { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.later {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.split p { color: var(--muted); margin: 0 0 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 12px; max-width: 60em; }
.site-footer .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Privacy policy */
.doc {
  max-width: 720px;
  padding: 56px 16px 32px;
  margin: 0 auto;
}
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 32px; }
  .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 0; }
  section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .site-header nav { gap: 14px; font-size: 14px; }
  .wordmark .full { display: none; }
  .lede { font-size: 17px; }
  .terminal td { padding: 8px 12px; }
  .terminal td.code { width: 6.5em; }
}
