/* Tier-1 marketing styles (Wave 14 wi:849). LIGHT is the default for the whole
 * public surface — landing, pricing, docs, download, legal — which are all
 * unauthenticated (the authenticated console stays dark via its own tokens).
 * Light palette mirrors the web-ui light token set (src/styles/tokens.css). */
:root {
  --bg: #fbfbfa;
  --bg-raised: #ffffff;
  --fg: #1a1b1e;
  --fg-muted: #5a5d63;
  --fg-dim: #82858b;
  --border: #e8e8e5;
  --ok: #16a34a;
  --run: #2563eb;
  --warn: #d97706;
  --fail: #dc2626;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--fg);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 600; letter-spacing: -0.01em; font-size: 1.1rem; }
nav { display: flex; gap: 1.25rem; align-items: center; }
nav a { font-size: 0.9rem; color: var(--fg-muted); }
nav a:hover { text-decoration: underline; }
.cta {
  background: var(--fg);
  color: var(--bg) !important;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.ghost {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
  padding: 5rem 1.5rem;
}
.hero h1 { max-width: 46rem; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; margin: 0; }
.hero p { max-width: 36rem; color: var(--fg-muted); font-size: 1.1rem; margin: 1.25rem 0 0; }
.actions { display: flex; gap: 1rem; margin-top: 2rem; }
.actions a { padding: 0.75rem 1.5rem; }

/* Terminal demo (wi:1009 mirror of TerminalDemo.tsx) */
.terminal {
  width: 100%;
  max-width: 42rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-raised);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; display: inline-block; }
.dot.red { background: var(--fail); }
.dot.amber { background: var(--warn); }
.dot.green { background: var(--ok); }
.terminal-title { margin-left: 0.5rem; font-size: 0.75rem; color: var(--fg-dim); }
.terminal pre {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--fg);
  overflow-x: auto;
}
.terminal .p { color: var(--fg-dim); }
.terminal .ok { color: var(--ok); }
.terminal .run { color: var(--run); }
.terminal .muted { color: var(--fg-dim); }

/* Feature cards */
.props {
  display: grid;
  gap: 1.5rem;
  padding: 0 1.5rem 6rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .props { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--border); background: var(--bg-raised); border-radius: 0.5rem; padding: 1.5rem; }
.props h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.props p { font-size: 0.9rem; line-height: 1.6; color: var(--fg-muted); margin: 0; }
code { font-family: var(--font-mono); }

/* Pricing plan cards reuse .props/.card */
.plans { max-width: 64rem; }

/* 4-column footer (wi:1009 mirror of Footer.tsx) */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem; color: var(--fg-dim); }
.footer-cols { display: grid; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { font-size: 1rem; font-weight: 600; color: var(--fg); }
.footer-tag { font-size: 0.75rem; line-height: 1.6; margin: 0.5rem 0 0; }
.footer-head { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-muted); margin-bottom: 0.5rem; }
.footer-cols a { display: block; font-size: 0.85rem; padding: 0.15rem 0; color: var(--fg-dim); }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols select {
  background: var(--bg-raised);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}
.footer-copy { max-width: 64rem; margin: 2.5rem auto 0; font-size: 0.75rem; }

/* legacy .foot fallback (pricing.html still uses .bar.foot until refreshed) */
.foot { border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--fg-dim); }

/* Docs / download / legal pages (wi:1011-1014) */
.doc { flex: 1; max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; width: 100%; }
.doc h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.doc h2 { font-size: 1.05rem; margin: 2rem 0 0.5rem; color: var(--fg); }
.doc p, .doc li { color: var(--fg-muted); line-height: 1.65; }
.doc .lede { font-size: 1.05rem; color: var(--fg-muted); margin-bottom: 1.5rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.3rem 0; }
.doc .muted { color: var(--fg-dim); font-size: 0.85rem; }
.doc .back { margin-top: 2.5rem; font-size: 0.9rem; }
.doc code { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.25rem; padding: 0.05rem 0.35rem; font-size: 0.85em; }
.cmd {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--fg);
  overflow-x: auto;
}
.dl-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0.5rem 0; }
.dl-table th, .dl-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.dl-table th { color: var(--fg-muted); font-weight: 600; }
.dl-table td.muted { color: var(--fg-dim); }
.dl-table .mono { font-family: var(--font-mono); color: var(--fg-muted); }
