/* SDS Viper — shared styles for the public site (home, privacy, terms) */

:root {
  color-scheme: light;
  --page:       #f4f4f9;
  --surface:    #ffffff;
  --ink:        #14121d;
  --ink-2:      #43415a;
  --muted:      #757396;
  --hairline:   #e4e3ec;
  --border:     rgba(20, 18, 29, 0.10);
  --accent:     #4a3aa7;
  --accent-ink: #ffffff;
  --code-bg:    #f0eff9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page:       #0d0c11;
    --surface:    #17151f;
    --ink:        #f6f5fa;
    --ink-2:      #c7c5d6;
    --muted:      #928fa8;
    --hairline:   #2c2a38;
    --border:     rgba(255, 255, 255, 0.10);
    --accent:     #9085e9;
    --accent-ink: #14121d;
    --code-bg:    #1f1d2b;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page:       #0d0c11;
  --surface:    #17151f;
  --ink:        #f6f5fa;
  --ink-2:      #c7c5d6;
  --muted:      #928fa8;
  --hairline:   #2c2a38;
  --border:     rgba(255, 255, 255, 0.10);
  --accent:     #9085e9;
  --accent-ink: #14121d;
  --code-bg:    #1f1d2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
header.site {
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}
.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}
.brand span { color: var(--accent); }
nav.site a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 22px;
}
nav.site a:hover { color: var(--accent); }
nav.site a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---- main content ---- */
main { padding: 56px 0 72px; }

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.kicker {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.lede {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 8px;
  max-width: 62ch;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 40px;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
  scroll-margin-top: 24px;
}
h1 + h2, .lede + h2, .meta + h2 { margin-top: 0; }

p, li { color: var(--ink-2); font-size: 15.5px; max-width: 68ch; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 14px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.card p:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 36px;
}
.toc p {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 0; padding-left: 18px; columns: 2; }
.toc ol li { font-size: 14px; margin-bottom: 4px; }
@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.callout p { margin: 0; font-size: 14.5px; }

/* ---- login gate (homepage, decorative only — not a real form) ---- */
.login-gate {
  display: flex;
  justify-content: center;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}
.login-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 16px 32px -20px var(--border);
}
.login-card .login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.login-card .login-brand span { color: var(--accent); }
.login-card .login-tag {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 22px;
}
.login-field { margin-bottom: 14px; }
.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 9px 12px;
}
.login-field input::placeholder { color: var(--muted); }
.login-submit {
  width: 100%;
  margin-top: 4px;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: not-allowed;
}
.login-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
footer.site p { margin: 0; font-size: 13px; color: var(--muted); }
footer.site .links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-left: 16px;
}
footer.site .links a:hover { color: var(--accent); }
