/* Static pages: privacy, terms, contact, 404 and the guides. Same Vercel-style
   tokens as the app (src/styles.css), in their own file because the site CSP is
   style-src 'self' — inline <style> and style="" attributes are blocked. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --hairline: #ebebeb;
  --hairline-strong: #d4d4d4;
  --ink: #171717;
  --ink-hover: #383838;
  --on-ink: #ffffff;
  --body: #4d4d4d;
  --mute: #6b6b6b;
  --link: #0070f3;
  --link-soft: rgba(0, 112, 243, 0.08);
  --ok: #0a7a3d;
  --error: #c50000;
  --ring: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --hairline: #262626;
    --hairline-strong: #3d3d3d;
    --ink: #ededed;
    --ink-hover: #cccccc;
    --on-ink: #0a0a0a;
    --body: #a1a1a1;
    --mute: #8f8f8f;
    --link: #3291ff;
    --link-soft: rgba(50, 145, 255, 0.12);
    --ok: #3ecf8e;
    --error: #ff6166;
    --ring: 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  max-width: 760px; margin: 0 auto; padding: 0 24px 80px;
  -webkit-font-smoothing: antialiased;
}
.brand {
  font-size: 1.12rem; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center;
}
.brand img { display: block; margin-right: 8px; } /* the two wordmark spans sit flush */
.brand-kry { color: var(--ink); }
.brand-vault { color: var(--link); }
.back {
  color: var(--body); text-decoration: none; font-size: 0.875rem;
  padding: 8px 12px; border-radius: 9999px; transition: background 0.15s, color 0.15s;
}
.back:hover { color: var(--ink); background: var(--surface-2); }
header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 64px; margin-bottom: 40px; border-bottom: 1px solid var(--hairline);
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.045em; margin-bottom: 10px; text-wrap: balance;
}
.updated { color: var(--mute); font-size: 0.85rem; font-family: var(--mono); margin-bottom: 32px; }
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; margin: 24px 0 8px; }
p, li { color: var(--body); margin-bottom: 12px; }
ul, ol { padding-left: 22px; }
li::marker { color: var(--mute); }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.lead { color: var(--ink); font-size: 1.1rem; line-height: 1.65; margin-bottom: 20px; }
.note {
  background: var(--surface); box-shadow: var(--ring);
  border-radius: 8px; padding: 16px 20px; margin: 24px 0;
}
.note p { margin-bottom: 0; }
footer {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline);
  color: var(--mute); font-size: 0.85rem;
}
footer a { color: var(--body); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* --- contact form --- */
form { margin: 18px 0 8px; }
form label { display: block; color: var(--body); font-size: 0.875rem; font-weight: 500; margin: 16px 0 6px; }
form input, form textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: 6px; padding: 10px 12px; min-height: 44px; resize: vertical;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--link-soft); }
form button {
  font: inherit; font-weight: 500; color: var(--on-ink); margin-top: 18px;
  background: var(--ink); border: 0; border-radius: 100px; padding: 12px 28px; min-height: 48px; cursor: pointer;
}
form button:hover:not(:disabled) { background: var(--ink-hover); }
form button:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { margin-top: 12px; font-size: 0.92rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }
.hidden { display: none; }

/* --- guides --- */
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border-radius: 8px; box-shadow: var(--ring); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink); font-weight: 600; background: var(--surface-2); }
td { color: var(--body); line-height: 1.55; }
td:first-child { color: var(--ink); font-weight: 500; }
.cta-box { text-align: center; margin: 48px 0 8px; padding: 40px 20px; border-radius: 12px; background: #171717; }
.cta {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 500; color: #171717; text-decoration: none;
  background: #ffffff; border-radius: 100px; padding: 12px 28px;
}
.cta:hover { opacity: 0.9; }
.cta-hint { display: block; color: #a1a1a1; font-size: 0.85rem; margin-top: 12px; }
.guides { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.guides p { font-family: var(--mono); font-size: 0.75rem; color: var(--mute); margin-bottom: 10px; }
.guides a { display: inline-block; margin: 0 18px 10px 0; }

@media (max-width: 600px) {
  body { padding: 0 16px 64px; }
  header { margin-bottom: 28px; }
  .cta-box { padding: 32px 16px; }
  .cta { width: 100%; justify-content: center; }
}
