/* Brave CRM — bravecrm.io
   Shared styles: tokens, base, nav, footer, buttons, glass, legal docs.
   Design language mirrors the app's "Frosted Aurora" system:
   light theme, aurora gradient washes, glass surfaces, one blue accent,
   Plus Jakarta Sans. Radius rule: buttons/pills 14px, cards 20px. */

/* ---------- font ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/jakarta-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #0b1020;
  --ink-2: #545e73;
  --ink-3: #9098ab;
  --accent: #2f5bff;
  --accent-ink: #1e40d8;
  --bg: #f7f9fe;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(11, 16, 32, 0.08);
  --border-2: rgba(11, 16, 32, 0.14);
  --shadow: 0 20px 50px -24px rgba(31, 51, 128, 0.28);
  --shadow-soft: 0 10px 30px -18px rgba(31, 51, 128, 0.22);
  --r-btn: 14px;
  --r-card: 20px;
  --max: 1180px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Aurora wash — fixed, sits behind everything like the app background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 12% -4%, rgba(47, 91, 255, 0.14), transparent 62%),
    radial-gradient(38rem 28rem at 88% 8%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(46rem 34rem at 55% 108%, rgba(0, 190, 200, 0.10), transparent 65%),
    var(--bg);
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 249, 254, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -10px rgba(47, 91, 255, 0.55);
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0) scale(0.98); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(47, 91, 255, 0.55);
}
.btn-primary:hover { background: #2650ef; color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }

/* ---------- glass card ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-solid); }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 44px 0 56px;
  background: rgba(255, 255, 255, 0.5);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.footer-brand img { width: 30px; height: 30px; border-radius: 9px; }
.footer-note { color: var(--ink-3); font-size: 13px; margin-top: 10px; max-width: 340px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }

/* ---------- legal / document pages ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
.doc .doc-updated { color: var(--ink-3); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 40px 0 12px; font-weight: 800; }
.doc h3 { font-size: 1.05rem; margin: 28px 0 10px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .doc-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px 22px;
  margin: 24px 0;
}
.doc .doc-callout p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
