/* Tepexa Autopilot — shared tokens and components.
   Light is the default for marketing pages; the cabinet opts into dark via <html data-theme="dark">. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --fg: #0b1220;
  --fg-2: #4a5568;
  --fg-3: #8a94a6;
  --line: #e3e8f0;
  --blue: #1657d0;
  --blue-2: #3d7cf0;
  --teal: #12b0b6;
  --violet: #7b61ff;
  --green: #16a766;
  --amber: #c27c0e;
  --red: #d93b30;
  --yt: #ff3b30; --tt: #19d3da; --fb: #1877f2; --th: #9aa3b2; --ig: #e1306c; --li: #0a66c2; --pin: #e60023; --gbp: #34a853;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 12px 32px -12px rgba(11,18,32,.14);
  --r: 18px; --r-s: 12px;
  --display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-2: #0e131d;
  --surface: #131a26;
  --surface-2: #1a2231;
  --fg: #eef2f8;
  --fg-2: #a9b4c6;
  --fg-3: #6e7a8f;
  --line: #222c3d;
  --blue: #4b8bff;
  --blue-2: #77a7ff;
  --teal: #22d3d9;
  --violet: #9b87ff;
  --green: #2fd07f;
  --amber: #f5b14a;
  --red: #ff6b5e;
  --th: #c3cad6;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.num, td.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

/* brand mark */
.mark { display: inline-flex; align-items: center; gap: 10px; font: 650 18px var(--display); color: var(--fg); letter-spacing: -.02em; }
.mark:hover { text-decoration: none; }
.mark svg { width: 30px; height: 30px; flex: none; }
.mark small { font: 500 12px var(--text); color: var(--fg-3); letter-spacing: 0; margin-left: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--blue); color: #fff; font: 600 15px var(--text); white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; background: var(--blue-2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--text); padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip.ok { color: var(--green); } .chip.warn { color: var(--amber); } .chip.bad { color: var(--red); } .chip.blue { color: var(--blue); } .chip.violet { color: var(--violet); }

/* language + theme toggles */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; font: 600 12.5px var(--text); color: var(--fg-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* network dot */
.nd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
