/* ============================================================
   snowballFi — Shared Design System
   ============================================================ */

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

:root {
  --green:        #10b981;
  --green-dark:   #059669;
  --green-light:  #ecfdf5;
  --indigo:       #6366f1;
  --indigo-light: #eef2ff;
  --amber:        #f59e0b;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --bg:           #f8fafc;
  --white:        #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-logo span { font-size: 18px; font-weight: 800; color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--text-muted);
  text-decoration: none; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.btn-nav {
  background: var(--green); color: #fff !important;
  padding: 9px 20px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
  transition: background .2s, transform .15s;
}
.btn-nav:hover { background: var(--green-dark) !important; transform: translateY(-1px); }

/* ── PAGE HEADER (interior pages) ── */
.page-header {
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 55%, #064e3b 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,.25) 0%, transparent 70%);
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.page-header p { font-size: 16px; color: #94a3b8; max-width: 460px; margin: 0 auto; }

/* ── CONTENT WRAPPER ── */
.content {
  max-width: 740px;
  margin: 52px auto;
  padding: 0 24px 80px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* ── FAQ ACCORDION ── */
.faq-item {
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  transition: color .2s;
}
.faq-q:hover { color: var(--green); }
.faq-q .arrow { transition: transform .25s; font-size: 12px; color: #aaa; }
.faq-q.open .arrow { transform: rotate(180deg); color: var(--green); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  font-size: 14px; color: var(--text-muted); line-height: 1.75;
  padding: 0 22px;
}
.faq-a.open { max-height: 400px; padding: 0 22px 20px; }
.faq-a a { color: var(--green); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── CONTACT BUTTON ── */
.btn-contact {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 13px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(16,185,129,.3);
}
.btn-contact:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── TYPOGRAPHY (privacy / legal) ── */
.prose h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.prose .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; display: block; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.prose p { font-size: 14px; color: #3a3a3c; margin-bottom: 12px; line-height: 1.75; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { font-size: 14px; color: #3a3a3c; margin-bottom: 5px; line-height: 1.65; }
.prose a { color: var(--green); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 10px;
}

/* ── FOOTER ── */
footer {
  background: #0f172a; color: #64748b;
  padding: 40px 24px 28px;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid #1e293b;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--indigo));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.footer-logo span { font-size: 16px; font-weight: 800; color: #e2e8f0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #64748b; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #34d399; }
.footer-bottom { margin-top: 24px; text-align: center; font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  nav { padding: 14px 20px; }
  .nav-hide { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .card { padding: 24px 20px; }
}
