/* AI Revenue Lab - shared stylesheet (site/style.css)
   Single source of truth for all pages under site/. Continues the tone of the
   original index.html (dark experiment-log look). Numbers are the subject:
   monospace, tabular figures, thin rules, generous whitespace, no decoration.
   AI-assisted content. */

:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --muted: #888;
  --accent: #4a9eff;
  --border: #222;
  --panel: #111;
  --panel-2: #1a1a1a;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  padding: 40px 24px 60px;
  max-width: 860px;
  margin: 0 auto;
}

/* ---- shared nav (Home / Cost / Failures / The $0 Arc / Product) ---- */
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.site-nav a:hover { color: var(--accent); border-color: var(--accent); }
nav.site-nav a.active { color: var(--fg); }
nav.site-nav span.pending {
  color: #555;
  cursor: default;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--accent);
}
.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
p { margin-bottom: 14px; }
ul { margin: 14px 0 14px 22px; }
li { margin-bottom: 8px; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
a:hover { border-color: var(--accent); }

.badge {
  display: inline-block;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 6px;
  border: 1px solid var(--border);
}

code {
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: #ccc;
  font-family: var(--mono);
}

/* ---- summary stat row (dashboard figures) ---- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 8px;
}
.stat {
  flex: 1 1 160px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px 18px;
}
.stat .k {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.stat .v {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

/* ---- data table: numbers are the subject ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.86rem;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--panel);
}
tbody tr:last-child td { border-bottom: none; }
td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
td.mono { font-family: var(--mono); color: var(--muted); }
tr.failed td { color: var(--muted); }
tr.failed td.flag { color: #d98a8a; }
tfoot td {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-weight: 600;
}
tfoot td.label {
  text-align: left;
  font-family: -apple-system, sans-serif;
  color: var(--muted);
  font-weight: 600;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}
.note-list { list-style: none; margin-left: 0; }
.note-list li { margin-bottom: 12px; }
.note-list .when {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---- Door 2: quiet product line at the foot of each article ---- */
.door2 {
  margin-top: 48px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.95rem;
}
.door2 .pending { color: #666; }

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}
footer p { margin-bottom: 8px; }
