/* Jarvis Paystub Forwarder pages, plain-HTML copy of the React pages in
   frontend/src/pages/jarvis/ for hosting on Cloudflare Pages before the
   store's servers exist. Colours and layout copied from index.css,
   oracle/Oracle.css and Legal.css; keep the wording in step with the React
   versions. */

:root {
  --bg-page: #f8f9fa;
  --bg-surface: #ffffff;
  --border: #e0e0e0;
  --text-h: #111111;
  --text-body: #222222;
  --text-muted: #6b7280;
  --link: #d92f2f;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0f1115;
    --bg-surface: #1a1d23;
    --border: #2e333d;
    --text-h: #f3f4f6;
    --text-body: #d1d5db;
    --text-muted: #9ca3af;
    --link: #ff7a7a;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; }

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 14px 16px;
  background: #14112b;
}

.name { font-size: 20px; font-weight: 700; color: #e9e5ff; }

.nav { display: flex; gap: 18px; }
.nav a { color: #c4b5fd; font-weight: 600; }
.nav a.active { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

main { flex: 1; }

.footer {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.hero { padding: 2.5rem 16px 1rem; text-align: center; }
.hero h1 { font-size: 32px; font-weight: 700; color: var(--text-h); margin-bottom: 0.5rem; }
.hero p { max-width: 620px; margin: 0 auto; font-size: 17px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 0 16px;
  list-style: none;
}

.features li {
  padding: 1rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  line-height: 1.5;
}

.features h2 { font-size: 17px; font-weight: 600; color: var(--text-h); margin-bottom: 0.35rem; }

.links { max-width: 960px; margin: 1.5rem auto 2.5rem; padding: 0 16px; text-align: center; }

.links a, .legal a, .hero a { color: var(--link); font-weight: 600; }

.legal { max-width: 760px; margin: 0 auto; padding: 2rem 16px 3rem; line-height: 1.6; }
.legal h1 { font-size: 28px; font-weight: 700; color: var(--text-h); margin-bottom: 0.25rem; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 19px; font-weight: 600; color: var(--text-h); margin: 1.75rem 0 0.5rem; }
.legal p, .legal ul { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.3rem; }
