/* One stylesheet for the sales site and the server pages (intake, report). System fonts, no JS. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eceef2;
  --text: #15171c;
  --muted: #5a6170;
  --border: #dfe2e8;
  --accent: #1f55d0;
  --accent-hover: #1844ab;
  --accent-ink: #ffffff;
  --ok: #17733a;
  --ok-bg: #e7f5ec;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --info: #1f55d0;
  --info-bg: #e9effc;
  --radius: 10px;
  --max: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --surface: #171a21;
    --surface-2: #1e222b;
    --text: #e7e9ee;
    --muted: #a2a9b6;
    --border: #2b303b;
    --accent: #7ea6ff;
    --accent-hover: #a3c0ff;
    --accent-ink: #0b1122;
    --ok: #5fd08a;
    --ok-bg: #12291c;
    --warn: #e6b950;
    --warn-bg: #2c2410;
    --bad: #ff8a80;
    --bad-bg: #2f1715;
    --info: #7ea6ff;
    --info-bg: #151f36;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.12rem; margin: 1.4em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin: 0.25em 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 4em; padding: 2em 0 3em; font-size: 0.9rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 0.8em; }
.site-footer a { color: var(--muted); }

/* hero */
.hero { padding: 3.5em 0 2em; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 1.5em; }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 0.7em 1.2em; border-radius: var(--radius); font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--info-bg); color: var(--accent); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
form.buy { display: inline; margin: 0; }

/* grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card.featured { border-color: var(--accent); }
.price { font-size: 2.2rem; font-weight: 750; margin: 0.2em 0; }
.price small { font-size: 1rem; font-weight: 500; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 1.6em; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin: 0.6em 0; }

/* callouts */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--info); background: var(--info-bg); padding: 14px 16px; border-radius: 8px; margin: 1.2em 0; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.callout.bad { border-left-color: var(--bad); background: var(--bad-bg); }
.callout p:last-child { margin-bottom: 0; }
.sample-label { display: inline-block; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.url { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }

/* status pills */
.pill { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.live, .pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.submitted, .pill.needs_human, .pill.queued, .pill.pending { background: var(--info-bg); color: var(--info); }
.pill.founder_action { background: var(--warn-bg); color: var(--warn); }
.pill.not_live, .pill.rejected, .pill.failed, .pill.bad { background: var(--bad-bg); color: var(--bad); }

/* stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 1em 0 1.5em; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* faq */
details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; margin: 10px 0; background: var(--surface); }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
details > *:not(summary) { margin-top: 0; }

/* forms */
.field { margin: 0 0 1.2em; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .help { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
input[type="text"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
textarea { min-height: 7em; resize: vertical; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 0.9rem; font-weight: 600; margin-top: 4px; display: block; }

/* legal pages */
.legal h1 { margin-top: 1em; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal table { margin: 1em 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 2.2em; }
  th, td { padding: 8px 10px; }
}

/* pre-launch notice (shown until LEGAL_APPROVED=1) */
.notice { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--border); font-size: 0.9rem; text-align: center; padding: 8px 16px; }
.section { padding: 1em 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0 0.4em; }

/* Directory list (/directories/) */
.kicker a { color: inherit; }
.dir-cats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 1em 0; font-size: 0.95rem; }
.dir-cats a[aria-current="page"] { font-weight: 700; color: var(--text); text-decoration: none; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 0.5em 0 1em; font-size: 0.95rem; }
.dir-filters select { margin-left: 6px; }
.dir-table td small { font-size: 0.8rem; }
pre.code { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.45; white-space: pre; }
