/* Jarvis Content Operations — shared site stylesheet.
   One file, referenced by every page, so header/nav/footer/typography
   stay identical across the whole public site. Plain CSS, no build step. */

:root {
  --bg: #0b0c10;
  --panel: #14161c;
  --panel-2: #191c24;
  --border: #23262f;
  --text: #e8e9ec;
  --muted: #9aa0ab;
  --accent: #6ea8ff;
  --accent-soft: rgba(110, 168, 255, .12);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; }

/* ---------- top bar / nav (identical on every page) ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* The site/app icon, generated from assets/icon-source.png by
   website/scripts/generate_icons.py (see website/README.md). The panel
   background is only a fallback while the image loads. */
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--panel-2) url("icon-64.png") center / cover no-repeat;
  border: 1px solid var(--border);
  flex: none;
}

.brand em { color: var(--accent); font-style: normal; }

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* ---------- page intro / hero ---------- */

.page-intro {
  padding: 48px 24px 8px;
  max-width: 880px;
  margin: 0 auto;
}

.page-intro .eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-intro h1 { font-size: 30px; margin: 0 0 14px; }
.page-intro p.lede { color: var(--muted); max-width: 680px; font-size: 16px; }

.hero {
  padding: 56px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow {
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.hero h1 { font-size: 34px; margin: 0 0 14px; }
.hero p.lede { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }

.hero .hero-links {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.primary { background: var(--accent); color: #06101f; border-color: var(--accent); }
.btn.primary:hover { opacity: .92; }
.btn:not(.primary):hover { border-color: var(--accent); color: var(--accent); }

/* ---------- main content ---------- */

main { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
main.narrow { max-width: 720px; }

section { margin-bottom: 52px; }
section:last-child { margin-bottom: 0; }

h2 { font-size: 21px; margin: 0 0 14px; }
h3 { font-size: 15px; margin: 0 0 8px; }

p { color: var(--text); }
p.lede { color: var(--muted); }
ul { padding-left: 20px; color: var(--text); }
li { margin-bottom: 8px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}

.callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* numbered workflow steps (How It Works) */
.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0;
}

.steps .n {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.steps .step-body h3 { margin: 0 0 4px; }
.steps .step-body p { margin: 0; color: var(--muted); font-size: 14px; }

.step-divider {
  text-align: center;
  color: var(--border);
  font-size: 13px;
  letter-spacing: .1em;
  margin: 4px 0;
}

/* tables (privacy policy) */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------- footer (identical on every page) ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-brand .brand-mark { width: 20px; height: 20px; border-radius: 6px; }

.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--text); }

.footer-meta { color: var(--muted); font-size: 13px; margin: 0; }
.footer-meta a { color: var(--accent); text-decoration: none; }

/* ---------- misc typography ---------- */

.updated { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.muted { color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .topbar { justify-content: center; text-align: center; }
  .hero h1 { font-size: 27px; }
  .page-intro h1 { font-size: 24px; }
  main { padding: 32px 18px 64px; }
  .steps li { flex-direction: column; gap: 8px; }
}
