/* ───────────────────────────────────────────────────────────────────────────
   Vault — shared website styles
   Matches the app's brand: black background, violet accent, Inter type.
   No build step, no JS framework. Edit and refresh.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #222;
  --border-subtle: #1d1d1d;
  --text: #ffffff;
  --text-secondary: #bbbbbb;
  --text-tertiary: #888888;
  --text-muted: #555555;
  --primary: #8B5CF6;
  --primary-glow: rgba(139, 92, 246, 0.18);

  /* Rank palette — mirrors the in-app cascade */
  --rank-clairvoyant: #A78BFA;
  --rank-lucid: #7DE6E2;
  --rank-seeker: #E4B87A;
  --rank-scroller: #9CA3AF;
  --rank-addicted: #F87171;

  --max-w: 760px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

/* ── Header (shared across pages) ──────────────────────────────────────────── */

.site-header {
  padding: 28px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  font-size: 22px;
  line-height: 1;
}

.brand-word {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 4px;
}

/* ── Hero (landing only) ───────────────────────────────────────────────────── */

.hero {
  padding: 56px 0 40px;
  position: relative;
}

.hero::before {
  /* Soft violet vignette behind the rank cascade — matches splash screen */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 40% at 50% 0%,
    var(--primary-glow),
    transparent 70%
  );
  pointer-events: none;
}

.hero-cascade {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 28px;
  position: relative;
}

.cascade-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cascade-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cascade-label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.6px;
}

.hero-headline {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 32px;
}

/* ── CTA buttons ───────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 120ms ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { text-decoration: none; opacity: 0.88; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-disabled {
  background: var(--surface);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.btn-disabled:hover { opacity: 1; }

/* ── Section blocks ────────────────────────────────────────────────────────── */

section + section { margin-top: 56px; }

.section-eyebrow {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}

/* ── Feature grid ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1;
}

.feature-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.feature-body {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Legal pages ───────────────────────────────────────────────────────────── */

.legal-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.legal-back {
  display: inline-block;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 16px;
}

.legal-title {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-tertiary);
  font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

.legal-body { padding-bottom: 64px; }

.legal-body h2 {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-body ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.legal-body li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-body li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.legal-body th,
.legal-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-body th {
  color: var(--text);
  font-weight: 600;
}

.legal-body td {
  color: var(--text-secondary);
}

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-body code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 48px;
  margin-top: 64px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.site-footer a { color: var(--text-secondary); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Mobile tweaks ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; line-height: 1.08; }
  .hero { padding: 36px 0 28px; }
  .section-title { font-size: 24px; }
  .legal-title { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
}
