/* FSD Radar - shared design system (tokens, base, header, footer, buttons).
   Page-specific layers: home.css (landing), plan.css (business plan). */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0a101a;
  --surface: #0f1724;
  --surface-2: #142033;
  --surface-3: #1a2940;
  --line: #1e2b3f;
  --line-2: #2a3b55;
  --text: #e9eff7;
  --text-2: #a9b6c8;
  --muted: #74849b;
  --radar: #3ee6a8;          /* brand: radar mint */
  --radar-2: #1fbf88;
  --radar-dim: rgba(62, 230, 168, .12);
  --sky: #5ab8ff;
  --amber: #f5b94a;
  --rose: #ff7a8a;
  --series-1: #3987e5;       /* charts: validated dark categorical slots 1-3 */
  --series-2: #d95926;
  --series-3: #199e70;
  --good: #3ee6a8;
  --warn: #f5b94a;
  --bad: #ff7a8a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -24px rgba(0,0,0,.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--radar); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--radar); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(62, 230, 168, .28); color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--radar); color: #04130d; padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 100; }
.skip:focus { top: 12px; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 18, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(30, 43, 63, .7);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 650; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--radar); font-weight: 650; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font); padding: 13px 20px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--radar); color: #03140d; box-shadow: 0 8px 30px -10px rgba(62, 230, 168, .6); }
.btn-primary:hover { background: #5cf0ba; }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.06); }
.btn-sm { padding: 9px 14px; font-size: .88rem; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; }

/* pills + eyebrows */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--radar); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--radar); box-shadow: 0 0 0 4px var(--radar-dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface); }
.pill.good { color: var(--good); border-color: rgba(62,230,168,.35); background: rgba(62,230,168,.08); }
.pill.warn { color: var(--warn); border-color: rgba(245,185,74,.35); background: rgba(245,185,74,.08); }
.pill.bad { color: var(--bad); border-color: rgba(255,122,138,.35); background: rgba(255,122,138,.08); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 48px; color: var(--muted); font-size: .86rem; }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--text-2); }
.disclaimer { max-width: 820px; line-height: 1.55; }

@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
  .site-head .wrap { height: 58px; }
  .brand { font-size: 1.02rem; }
}
