/* AutoEdge shared site stylesheet.
 *
 * Brand tokens mirror the apps (src/theme.js LIGHT/DARK palettes and
 * desktop/renderer/styles.css). Light is the default; dark follows the
 * visitor's OS preference. The green accent must clear WCAG AA in both
 * schemes: deep teal #0c7a5f on white, mint #68d0b4 on near-black.
 */

:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface2: #eceef1;
  --border: #d8dde2;
  --divider: #e6e9ec;
  --text: #0f1417;
  --text-muted: #3f474d;
  --text-dim: #5c656c;
  --brand: #0c7a5f;
  --brand-dim: rgba(12, 122, 95, 0.12);
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(15, 20, 23, 0.06);
  /* Secondary accent family. Green stays the primary; these add variety to
   * icon tiles, badges, and decorative graphics. Light values are deep
   * enough to clear AA on white; dark values are pastels on near-black. */
  --acc-blue: #2563eb;
  --acc-blue-dim: rgba(37, 99, 235, 0.11);
  --acc-sky: #0369a1;
  --acc-sky-dim: rgba(3, 105, 161, 0.11);
  --acc-amber: #b45309;
  --acc-amber-dim: rgba(180, 83, 9, 0.12);
  --acc-violet: #7c3aed;
  --acc-violet-dim: rgba(124, 58, 237, 0.10);
  --acc-cyan: #0e7490;
  --acc-cyan-dim: rgba(14, 116, 144, 0.11);
  --acc-rose: #be123c;
  --acc-rose-dim: rgba(190, 18, 60, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0c;
    --surface: #141414;
    --surface2: #1c1c1c;
    --border: #252525;
    --divider: #1a1a1a;
    --text: #ffffff;
    --text-muted: #c7c7c7;
    --text-dim: #9a9a9a;
    --brand: #68d0b4;
    --brand-dim: rgba(104, 208, 180, 0.12);
    --on-brand: #04231b;
    --shadow: none;
    --acc-blue: #8ab4ff;
    --acc-blue-dim: rgba(138, 180, 255, 0.13);
    --acc-sky: #7ad1ff;
    --acc-sky-dim: rgba(122, 209, 255, 0.12);
    --acc-amber: #fbbf24;
    --acc-amber-dim: rgba(251, 191, 36, 0.12);
    --acc-violet: #b7a3f7;
    --acc-violet-dim: rgba(183, 163, 247, 0.13);
    --acc-cyan: #67e8f9;
    --acc-cyan-dim: rgba(103, 232, 249, 0.11);
    --acc-rose: #fda4af;
    --acc-rose-dim: rgba(253, 164, 175, 0.12);
  }
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, system-ui, sans-serif;
  margin: 0 auto;
  max-width: 760px;
  padding: 40px 22px 80px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); }

h1, h2, h3 { color: var(--text); line-height: 1.3; }

/* ---- Wordmark: "Auto" in text color + "Edge" in brand green ---- */
.wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .edge { color: var(--brand); }

/* ---- Legal-page chrome ---- */
header.page { border-bottom: 1px solid var(--divider); padding-bottom: 20px; margin-bottom: 28px; }
header.page .brand-line { font-size: 15px; }
header.page h1 { margin: 8px 0 0; font-size: 30px; }
header.page .meta { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

h2 { font-size: 20px; margin-top: 36px; }
h2 .num {
  color: var(--brand);
  font-weight: 700;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
h3 { font-size: 16px; margin-top: 22px; }
p, li { font-size: 15px; }
ul, ol { padding-left: 22px; }
ol li { margin-bottom: 6px; }

code {
  background: var(--surface2);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border: 1px solid var(--border); vertical-align: top; }
th { background: var(--brand-dim); font-weight: 600; }

.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-dim);
  padding: 12px 16px;
  margin: 18px 0;
  border-radius: 4px;
}
.callout strong { color: var(--brand); }

.legal-caps { text-transform: uppercase; font-size: 14px; line-height: 1.55; }

footer.page {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-dim);
}
footer.page a { margin-right: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-align: center;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-dim); }
