/* KeepSafe Ledger — public site. Palette matches the desktop app
   (src/styles/variables.css) so the site and product feel like one thing. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #1a1a2e;
  --ink2:    #4a4a6a;
  --ink3:    #8888aa;
  --paper:   #fafaf8;
  --paper2:  #f0f0ec;
  --paper3:  #e8e8e2;
  --accent:  #2d6a4f;
  --accent2: #40916c;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:     #e8e8f0;
    --ink2:    #a8a8c0;
    --ink3:    #666688;
    --paper:   #0f0f1a;
    --paper2:  #1a1a2a;
    --paper3:  #222232;
    --accent:  #52b788;
    --accent2: #74c69d;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent2); }

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--paper3);
  max-width: 860px;
  margin: 0 auto;
}
.site-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.site-nav-links a {
  font-size: 14px;
  color: var(--ink2);
  text-decoration: none;
}
.site-nav-links a:hover { color: var(--ink); }

/* HERO (coming-soon page) */
.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p {
  font-size: 1.05rem;
  color: var(--ink2);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-note {
  font-size: 13px;
  color: var(--ink3);
}
.hero-note a { color: var(--ink3); text-decoration: underline; }
.hero-note a:hover { color: var(--accent); }

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  max-width: 560px;
}
.trust-chip {
  font-size: 12.5px;
  color: var(--ink2);
  background: var(--paper2);
  border: 1px solid var(--paper3);
  padding: 6px 12px;
  border-radius: 100px;
}

/* DOC PAGES (privacy/terms/support) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}
.doc h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.doc .doc-meta {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 2rem;
}
.doc .doc-entity {
  font-size: 14px;
  color: var(--ink2);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--paper3);
}
.doc h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 2.25rem 0 0.85rem;
}
.doc p { margin-bottom: 1rem; color: var(--ink2); }
.doc ul, .doc ol { margin: 0 0 1rem 1.25rem; color: var(--ink2); }
.doc li { margin-bottom: 0.4rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--paper2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.92rem;
}
.doc th, .doc td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--paper3);
  color: var(--ink2);
}
.doc th { color: var(--ink); font-weight: 600; }

/* FOOTER */
.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--paper3);
  font-size: 13px;
  color: var(--ink3);
}
.site-footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.site-footer-links a {
  color: var(--ink3);
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--accent); }
