/* Separis — the app's own tokens, lifted straight from lib/theme/tokens.dart
   so the site and the product cannot drift apart. Dark-first, because the
   app is: a marketing page that flips to white would read as someone else's. */

:root {
  --gray-950: #0a0d12;
  --gray-900: #181d27;
  --gray-800: #252b37;
  --brand-500: #4c3dff;
  --brand-400: #7064ff;
  --brand-300: #948bff;
  --brand-200: #b7b1ff;
  --success-500: #17b26a;
  --white: #fff;

  --ink: rgba(255, 255, 255, 0.92);
  --ink-dim: rgba(255, 255, 255, 0.55);
  --ink-faint: rgba(255, 255, 255, 0.35);
  --surface: rgba(255, 255, 255, 0.05);
  --edge: rgba(255, 255, 255, 0.08);

  /* SeparisRadius */
  --r-card: 16px;
  --r-row: 18px;
  --r-full: 9999px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gray-950);
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* The one brand surface per page, same rule the app follows: only the hero
   gets the indigo, so the eye always lands in one place. */
header.hero {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(76, 61, 255, 0.35), transparent 70%),
    var(--gray-950);
  border-bottom: 1px solid var(--edge);
  padding: 72px 0 56px;
  margin-bottom: 56px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-decoration: none;
  color: var(--ink);
}

.mark .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-500);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px -12px rgba(76, 61, 255, 0.6);
}

.mark .glyph svg { width: 24px; height: 24px; }
.mark strong { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }

h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 0 0 20px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 48px 0 12px;
}

h3 { font-size: 17px; font-weight: 600; margin: 32px 0 8px; }

p { margin: 0 0 16px; color: var(--ink-dim); }
.lead { font-size: 19px; color: var(--ink); max-width: 56ch; }

a { color: var(--brand-200); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 28px;
  border-radius: var(--r-full);
  background: var(--brand-500);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 28px -12px rgba(76, 61, 255, 0.52);
}

.cards { display: grid; gap: 12px; margin: 28px 0 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  padding: 20px;
}

.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; }

/* Legal pages: one statement per row, the way the in-app doc screens read. */
.rows { border-top: 1px solid var(--edge); margin-top: 24px; }
.row { border-bottom: 1px solid var(--edge); padding: 20px 0; }
.row h3 { margin: 0 0 6px; }
.row p { margin: 0; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(23, 178, 106, 0.16);
  color: var(--success-500);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

nav.links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }

footer {
  border-top: 1px solid var(--edge);
  margin-top: 72px;
  padding-top: 24px;
  color: var(--ink-faint);
  font-size: 14px;
}

footer a { color: var(--ink-dim); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* The viewer's own theme is respected everywhere except the brand surfaces,
   which stay indigo in both — same rule as the app's light mode. */
@media (prefers-color-scheme: light) {
  :root {
    --gray-950: #fdfdfd;
    --gray-900: #f5f5f6;
    --ink: #181d27;
    --ink-dim: #535862;
    --ink-faint: #717680;
    --surface: rgba(10, 13, 18, 0.03);
    --edge: rgba(10, 13, 18, 0.08);
  }
  a { color: var(--brand-500); }
  header.hero {
    background:
      radial-gradient(900px 420px at 15% -10%, rgba(76, 61, 255, 0.12), transparent 70%),
      var(--gray-950);
  }
}
