/* Analyst's Grid Paper, web-native tokens (PRD §6.11) - derived from the same palette
   as the Android app's ui/theme/Color.kt, not copy-pasted: the app is dark-only
   (mid-workout, low-glare use case, see the app's own DESIGN.md), the marketing site
   is light-first with a dark variant (a public page, browsed anytime) - the app's own
   reserved-but-unused light tokens (Paper/Ink/MutedInk/SignalOnLight) are exactly this
   site's primary palette, not an afterthought. */

:root {
  --bg: #f6f4ee;
  --bg-line: #dedacc;
  --surface: #ffffff;
  --text: #23262b;
  --text-muted: #6b6f76;
  --accent: #0e7c93;
  --accent-ink: #f6f4ee;
  --border: #dedacc;
  --font-sans: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23262b;
    --bg-line: #2b2f36;
    --surface: #2b2f36;
    --text: #e4e7ec;
    --text-muted: #8b93a1;
    --accent: #4fc1d9;
    --accent-ink: #23262b;
    --border: #363b44;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(var(--bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-line) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
}

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

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}
.site-header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
}
.site-header nav a:hover { color: var(--accent); }

main { padding: 48px 0 64px; }

.hero { max-width: 900px; margin: 0 auto; padding: 0 20px 48px; text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 12px;
}
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 20px; }
.hero .lede { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

.features {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.feature h2 { font-size: 18px; margin: 0 0 8px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 15px; }

.cta {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0 20px;
  text-align: center;
}
.cta h2 { font-size: 22px; }

.guide { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.guide h1 { font-size: 32px; margin-bottom: 8px; }
.guide .lede { color: var(--text-muted); font-size: 17px; }

.guide-steps { list-style: none; margin: 32px 0 0; padding: 0; }
.guide-steps li {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.guide-steps li:first-child { border-top: none; }
.guide-steps h2 { font-size: 19px; margin: 0 0 8px; }
.guide-steps p { margin: 0; }

.screenshot-placeholder {
  margin-top: 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.screenshot-placeholder::after {
  content: attr(data-caption);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.screenshot {
  margin: 16px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  text-align: center;
}
.screenshot img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}
.screenshot figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.reset-form {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reset-form label { font-size: 14px; color: var(--text-muted); }
.reset-form input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
.reset-form button {
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.form-error { color: #c0392b; font-size: 14px; margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.site-footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
