/* ──────────────────────────────────────────────────────────────────────────
   Shared chrome for every marketing/legal page except landing.html.

   landing.html keeps its own <style> block because it carries a lot of
   page-specific layout (hero, pricing grid, feature cards) that nothing else
   uses. The tokens below are copied from it verbatim — if you change a colour
   or radius there, change it here too, or the site drifts back into the
   two-theme split this file was written to fix.

   Pages using this: faq, privacy, terms, invest, help, getting-started,
   partners. They supply only their own page-specific rules on top.
   ────────────────────────────────────────────────────────────────────────── */

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

:root {
  --purple:   #7c3aed;
  --purple-d: #5b21b6;
  --purple-l: #ede9fe;
  --purple-xl:#f5f3ff;
  --gold:     #f59e0b;
  --gold-l:   #fef3c7;
  --text:     #1e293b;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --white:    #ffffff;
  --bg:       #fafaf9;
  --radius:   12px;
  --radius-l: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Keyboard focus must stay visible — several of these pages are pure text and
   a mouse-only focus style would leave keyboard users with no position cue. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { font-size: 20px; font-weight: 900; color: var(--purple); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.btn) {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--purple-xl); text-decoration: none; }
/* Marks the page you are already on, so the nav orients rather than just links. */
.nav-links a[aria-current="page"] { color: var(--purple); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; border-radius: var(--radius);
  padding: 11px 22px; cursor: pointer; border: none;
  transition: transform .12s, box-shadow .12s, background .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-d); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  nav { padding: 0 16px; }
}

/* ── Page body ─────────────────────────────────────────────────────────── */
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; }

.page-head { margin-bottom: 40px; }
.page-head h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
.page-head .sub { font-size: 16px; color: var(--muted); margin-top: 10px; }

h2 {
  font-size: 20px; font-weight: 800; margin: 40px 0 12px;
  padding-top: 28px; border-top: 1px solid var(--border); text-wrap: balance;
}
h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
p  { margin-bottom: 14px; }
ul, ol { margin: 10px 0 16px 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }
hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

blockquote {
  border-left: 3px solid var(--gold);
  background: var(--gold-l);
  padding: 12px 16px; margin: 16px 0;
  border-radius: 0 8px 8px 0; color: #78350f;
}
code {
  background: var(--purple-xl); color: var(--purple-d);
  padding: 2px 7px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
}

/* Wide tables must scroll inside their own box — never the page. */
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
th { background: var(--purple-xl); font-weight: 700; }

.chip {
  display: inline-block; background: var(--purple-xl); color: var(--purple-d);
  border: 1px solid var(--purple-l); border-radius: 20px;
  padding: 3px 12px; font-size: 13px; font-weight: 600; margin: 0 4px 6px 0;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 40px 24px; text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-logo { font-size: 20px; font-weight: 900; color: var(--white); margin-bottom: 16px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; }
