/* Reeva — shared web styles
 * Dark-first, tokens lifted from the in-app design system (ds-tokens.css)
 * so the marketing site visually matches the app.
 */

:root {
  --accent-violet: #8B5CF6;
  --accent-pink:   #EC4899;
  --accent-cyan:   #22D3EE;
  --accent-amber:  #F59E0B;
  --accent-grad:   linear-gradient(135deg, #8B5CF6 0%, #EC4899 55%, #22D3EE 110%);
  --accent-glow:   0 10px 40px -10px rgba(139,92,246,0.55), 0 4px 18px -6px rgba(34,211,238,0.35);

  --bg-canvas:      #07070C;
  --bg-elevated-1:  #0F1018;
  --bg-elevated-2:  #161722;
  --bg-card:        #1A1B26;
  --bg-card-hover:  #21222F;

  --border-subtle:  rgba(255,255,255,0.06);
  --border-strong:  rgba(255,255,255,0.12);

  --text-primary:   #F4F4F8;
  --text-secondary: #A1A2B6;
  --text-tertiary:  #5D5E73;
  --text-onAccent:  #0A0A12;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient gradient backdrop on the landing page */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139,92,246,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(236,72,153,0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(34,211,238,0.10), transparent 60%);
}

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

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
}

.container-wide {
  max-width: 1100px;
}

/* ──────────── Navigation ──────────── */

.site-nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7,7,12,0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  box-shadow: var(--accent-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

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

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero .grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease;
}

.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 50px -10px rgba(139,92,246,0.7), 0 4px 18px -6px rgba(34,211,238,0.45);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
}

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

/* ──────────── Features ──────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 40px 0 80px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet);
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ──────────── Document pages (privacy / terms / support) ──────────── */

.doc {
  padding: 60px 0 80px;
}

.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc .meta {
  color: var(--text-tertiary);
  font-size: 13.5px;
  margin: 0 0 36px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 10px;
}

.doc p, .doc li {
  color: #D8D9E5;
  font-size: 15.5px;
}

.doc ul, .doc ol {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--text-primary);
}

.doc a {
  color: var(--accent-violet);
  text-decoration: none;
  border-bottom: 1px dashed rgba(139,92,246,0.4);
}

.doc a:hover {
  color: #B8A3FF;
  border-bottom-color: rgba(139,92,246,0.8);
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 13.5px;
  background: var(--bg-elevated-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: #C4B5FD;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

.doc th, .doc td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.doc th {
  background: var(--bg-elevated-1);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc td {
  color: #D8D9E5;
}

.callout {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 18px 0;
  color: #D8D9E5;
  font-size: 14.5px;
}

.callout strong {
  color: var(--accent-violet);
}

/* Support FAQ */

.faq {
  margin-top: 16px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 0;
  margin-bottom: 10px;
  transition: border-color .15s;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-tertiary);
  margin-left: 12px;
  transition: transform .15s;
}

.faq details[open] summary::after {
  content: "−";
  color: var(--accent-violet);
}

.faq details > div {
  padding: 0 18px 18px;
  color: #D8D9E5;
  font-size: 15px;
}

.faq details > div p:first-child {
  margin-top: 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet);
  font-size: 22px;
  flex-shrink: 0;
}

.contact-card .body {
  flex: 1;
  min-width: 200px;
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.contact-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ──────────── Responsive ──────────── */

@media (max-width: 640px) {
  .site-nav { padding: 16px 0; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 50px 0 40px; }
  .doc { padding: 40px 0 60px; }
  .doc h2 { font-size: 19px; }
  .doc table { font-size: 13px; }
  .doc th, .doc td { padding: 10px; }
  .site-footer-inner { flex-direction: column; text-align: center; }
}
