/* Easy FSC — shared site styles (light + dark). */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #dde4ee;
  --text: #0f172a;
  --muted: #526077;
  --accent: #15803d;
  --accent-strong: #166534;
  --accent-soft: #e8f6ee;
  --on-accent: #ffffff;
  --link: #0f5bd8;
  --code-bg: #eef2f7;
  --ok: #16a34a;
  --warn: #ca8a04;
  --bad: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #0f172a;
    --border: #23314d;
    --text: #e6ebf4;
    --muted: #9aa8c0;
    --accent: #22c55e;
    --accent-strong: #4ade80;
    --accent-soft: #10291c;
    --on-accent: #052e14;
    --link: #7cb2ff;
    --code-bg: #1b2740;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111a2e; --surface-2: #0f172a; --border: #23314d;
  --text: #e6ebf4; --muted: #9aa8c0; --accent: #22c55e; --accent-strong: #4ade80;
  --accent-soft: #10291c; --on-accent: #052e14; --link: #7cb2ff; --code-bg: #1b2740;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--link); }
code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 5px;
  font: 0.9em/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
img, svg { max-width: 100%; }

.wrap { width: min(980px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .site-head { position: static; }
  .site-head .wrap { gap: 6px 12px; padding: 8px 0; }
  .site-nav { margin-left: 0; }
  .site-nav a { padding: 6px 9px; font-size: 14.5px; }
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 17px;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 7px 11px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.site-nav a.nav-cta { background: var(--accent); color: var(--on-accent); }
.site-nav a.nav-cta:hover { background: var(--accent-strong); color: var(--on-accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px;
  text-decoration: none; padding: 13px 22px; border-radius: 11px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--surface-2); }

/* Generic blocks */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.section { padding: 28px 0; }
.section > h2 { font-size: 24px; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.feature .ico { font-size: 22px; }
.feature strong { display: block; margin: 6px 0 2px; }
.feature span { color: var(--muted); font-size: 14.5px; }

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.pill[data-state="on"] .dot { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
.pill[data-state="off"] .dot { background: var(--bad); }
.pill[data-state="unknown"] .dot { background: var(--warn); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none !important; } .btn { transition: none; } }

/* Steps */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.step strong { display: block; }
.step span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 2px; color: var(--muted); }

/* Doc pages (guide, App IDs, terms, privacy) */
.doc { padding: 28px 0 10px; }
.doc h1 { font-size: 30px; margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 26px 0 10px; }
.doc .card + .card { margin-top: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); }
th, td { border-bottom: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); color: var(--muted); font-weight: 700; }
.note { color: var(--muted); font-size: 14.5px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.doc td:first-child { white-space: nowrap; font-weight: 700; }
.callout { background: var(--accent-soft); border: 1px solid var(--border); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.module { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.module h3 { margin: 0 0 6px; font-size: 17px; }
.module ul { margin: 4px 0; padding-left: 20px; }

/* Footer */
.site-foot { border-top: 1px solid var(--border); margin-top: 36px; padding: 22px 0 34px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--muted); }
