/* Jarvis SEO Engine public pages. No external fonts, scripts or images. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #121820;
  --muted: #4f5967;
  --border: #dde2e9;
  --accent: #0b63ce;
  --accent-text: #ffffff;
  --accent-soft: #e4effc;
  --mark-bg: #0b2545;
  --mark-line: #36c5b4;
  --radius: 12px;
  --max: 1040px;
  --read: 760px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1117;
    --surface: #131a22;
    --surface-2: #19222d;
    --text: #e7ebf0;
    --muted: #9ba6b4;
    --border: #253041;
    --accent: #5aa2ff;
    --accent-text: #08111c;
    --accent-soft: #15253a;
    --mark-bg: #12345f;
    --mark-line: #46d8c6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c1117;
  --surface: #131a22;
  --surface-2: #19222d;
  --text: #e7ebf0;
  --muted: #9ba6b4;
  --border: #253041;
  --accent: #5aa2ff;
  --accent-text: #08111c;
  --accent-soft: #15253a;
  --mark-bg: #12345f;
  --mark-line: #46d8c6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { left: 16px; top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Header */

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .mark-bg { fill: var(--mark-bg); }
.brand .mark-line { stroke: var(--mark-line); }
.brand .mark-dot { fill: var(--mark-line); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Home */

.hero { padding: 56px 0 40px; }
@media (min-width: 720px) { .hero { padding: 80px 0 56px; } }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { margin: 0; max-width: 680px; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--accent); }

.section { padding: 40px 0; border-top: 1px solid var(--border); }
@media (min-width: 720px) { .section { padding: 56px 0; } }
.section h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; }
.section .intro { margin: 0 0 28px; max-width: 680px; color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

.note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0 0;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* Tables (scroll inside their own box on small screens) */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; overflow-wrap: break-word; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { th:first-child, td:first-child { width: 30%; min-width: 11em; } }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: 14px; font-weight: 600; }
td code, li code, p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
@media (max-width: 639px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--border); padding: 6px 0; }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { display: block; border: 0; padding: 6px 14px; }
  .table-stack td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

/* Legal pages */

.doc { padding: 48px 0 56px; }
.doc .wrap > * { max-width: var(--read); }
.doc h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.doc .meta { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 10px; font-size: 21px; line-height: 1.3; scroll-margin-top: 16px; }
.doc h3 { margin: 24px 0 6px; font-size: 17px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .table-wrap { max-width: var(--read); margin: 8px 0 18px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; font-size: 18px; }
.summary p:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 0; }
.toc h2 { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; margin: 0 0 4px; }
address { font-style: normal; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 14px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media print {
  .site-header, .site-footer, .skip, .actions { display: none; }
  body { background: #fff; color: #000; }
}
