/* ============================================================
   SparkFi Website — Main Stylesheet
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1A1A2E;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Design tokens ────────────────────────────────────────── */
:root {
  --gold:      #C8860A;
  --gold-dark: #7A5008;
  --gold-lt:   #F0B429;
  --dark:      #1B2233;
  --text:      #1A1A2E;
  --muted:     #718096;
  --border:    #E8E0D0;
  --bg-off:    #FDFAF5;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --max-w:     1100px;
}

/* ── Helpers ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 48px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: opacity .15s, transform .1s, background .15s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-outline  { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: cover; display: block;
}
.nav-logo-text { font-weight: 700; font-size: 17px; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-off); color: var(--text); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .nav-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #FDF7EE 0%, #fff 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FDF3E0; color: var(--gold);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #27AE60; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.signup-form { max-width: 480px; margin: 0 auto; }
.form-row { display: flex; gap: 10px; }
.email-input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; background: #fff;
  transition: border-color .15s;
}
.email-input:focus { outline: none; border-color: var(--gold); }
.form-feedback { margin-top: 10px; font-size: 14px; min-height: 20px; }
.form-feedback.success { color: #27AE60; }
.form-feedback.error   { color: #E74C3C; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.social-mini {
  display: inline-flex; align-items: center; gap: 10px;
  background: #FDFAF5; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 16px; font-size: 13px;
  margin-top: 20px;
}
.social-avatars { display: flex; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  font-weight: 700; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff; margin-left: -6px;
}
.avatar:first-child { margin-left: 0; }

/* ── Screenshot / mockup ──────────────────────────────────── */
.screenshot-section { padding: 0 24px 64px; overflow: hidden; }
.screenshot-wrap { max-width: var(--max-w); margin: 0 auto; }
.screenshot-placeholder {
  background: var(--dark); border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
}
.win-chrome {
  background: #2D2D44; height: 36px; display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28CA41; }
.win-title { font-size: 12px; color: #aaa; margin-left: 8px; flex: 1; text-align: center; }
.win-body { display: flex; height: 380px; }
.mock-sidebar { width: 180px; background: #1E1E35; padding: 16px 12px; flex-shrink: 0; overflow: hidden; }
.mock-section-label { font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 6px; padding: 0 8px; }
.mock-section-label:first-child { margin-top: 0; }
.mock-item { font-size: 13px; color: #aaa; padding: 7px 10px; border-radius: 6px; cursor: default; }
.mock-item.active { background: rgba(200,134,10,.25); color: var(--gold-lt); }
.mock-main { flex: 1; padding: 20px; overflow: hidden; }
.mock-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-title { font-size: 18px; font-weight: 700; color: #fff; }
.mock-badge { font-size: 11px; background: rgba(200,134,10,.2); color: var(--gold-lt); padding: 3px 10px; border-radius: 100px; }
.mock-stats { display: flex; gap: 16px; margin-bottom: 20px; }
.mock-stat { background: rgba(255,255,255,.05); border-radius: 8px; padding: 12px; flex: 1; }
.stat-l { font-size: 11px; color: #777; margin-bottom: 4px; }
.stat-v { font-size: 18px; font-weight: 700; color: #fff; }
.stat-v.pos { color: #27AE60; }
.stat-v.neg { color: #E74C3C; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-bottom: 20px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bar { width: 20px; border-radius: 3px 3px 0 0; }
.bar-i { background: var(--gold); }
.bar-e { background: rgba(231,76,60,.6); }
.bar-lbl { font-size: 10px; color: #555; }
.mock-txs { display: flex; flex-direction: column; gap: 8px; }
.mock-tx { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.04); border-radius: 8px; padding: 10px 12px; }
.tx-l { display: flex; align-items: center; gap: 10px; }
.tx-ic { font-size: 18px; }
.tx-nm { font-size: 13px; color: #ddd; font-weight: 500; }
.tx-dt { font-size: 11px; color: #666; }
.tx-am { font-size: 14px; font-weight: 600; color: #fff; }
.tx-am.pos { color: #27AE60; }
.tx-am.neg { color: #E74C3C; }

/* ── Features ─────────────────────────────────────────────── */
.features { padding: 80px 24px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-teaser { padding: 80px 24px; background: var(--bg-off); }
.pricing-full   { padding: 60px 24px 80px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; max-width: 860px; margin: 0 auto 32px;
}
.pricing-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 1060px; }
@media (max-width: 900px) { .pricing-grid.three { grid-template-columns: 1fr; max-width: 420px; } }
.pricing-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
  transition: box-shadow .2s;
}
.pricing-card.featured { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,134,10,.12); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px;
  white-space: nowrap;
}
.plan-name  { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.plan-price { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.plan-price span  { font-size: 18px; font-weight: 400; color: var(--muted); }
.plan-price small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.plan-tagline { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.plan-features { margin-bottom: 28px; }
.plan-features li { font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.pricing-note { text-align: center; font-size: 14px; color: var(--muted); }
.pricing-note a { color: var(--gold); text-decoration: underline; }
.pricing-toggle { display: flex; gap: 0; margin-bottom: 40px; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.toggle-btn { padding: 8px 20px; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
.toggle-btn.active { background: var(--gold); color: #fff; }
.save-badge { background: #FDF3E0; color: var(--gold); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 680px; margin: 60px auto 0; }
.faq h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Support page ─────────────────────────────────────────── */
.support-toc { max-width: 680px; margin: 0 auto 8px; }
.support-toc-list { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; }
.support-toc-list a {
  display: inline-block; padding: 6px 14px; border: 1.5px solid var(--border);
  border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--text);
}
.support-toc-list a:hover { border-color: var(--gold); color: var(--gold-dark); }
.guide-section { padding: 24px 24px 8px; }
.guide-card {
  max-width: 680px; margin: 0 auto 40px; scroll-margin-top: 90px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.guide-card:last-child { border-bottom: none; }
.guide-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-title h2 { font-size: 22px; font-weight: 800; margin: 0; }
.tier-badge {
  background: #FDF3E0; color: var(--gold-dark); font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .03em;
}
.tier-badge.free { background: #EEF3EC; color: #3B6B4A; }
.guide-intro { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.guide-card h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.guide-card ul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.guide-card li { font-size: 14px; line-height: 1.65; color: var(--text); }
.guide-card li strong { color: var(--dark); }
.advantage-box {
  background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--text);
}
.advantage-box strong { color: var(--gold-dark); }
.support-contact { text-align: center; padding: 48px 24px 80px; }
.support-contact p { color: var(--muted); margin-bottom: 16px; }

/* ── CTA section ──────────────────────────────────────────── */
.cta-section { padding: 80px 24px; }
.cta-card {
  max-width: 600px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, #4A3000 100%);
  border-radius: 20px; padding: 56px 40px;
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-card p  { font-size: 16px; opacity: .85; margin-bottom: 32px; }
.cta-card .email-input { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-card .email-input::placeholder { color: rgba(255,255,255,.6); }
.cta-card .form-note { color: rgba(255,255,255,.6); }

/* ── Thank you ────────────────────────────────────────────── */
.thank-you-hero { padding: 80px 24px; min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.ty-card { max-width: 540px; text-align: center; }
.ty-check {
  width: 64px; height: 64px; border-radius: 50%; background: #27AE60; color: #fff;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.ty-card h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.ty-pos { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.ty-card p { color: var(--muted); margin-bottom: 20px; }
.ty-referral { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 24px; text-align: left; }
.ty-referral h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ref-box { display: flex; gap: 10px; margin: 16px 0; }
.ref-box input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; }
.share-buttons { display: flex; gap: 10px; }
.btn-share.tw { background: #000; color: #fff; }

/* ── Page hero (interior pages) ──────────────────────────── */
.page-hero { padding: 64px 24px 40px; background: linear-gradient(180deg, #FDF7EE 0%, #fff 100%); }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.page-hero p  { font-size: 18px; color: var(--muted); }
.prose-header { max-width: 680px; }
.prose-section { padding: 48px 24px 80px; }
.prose { max-width: 680px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: #2D3748; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p  { margin-bottom: 16px; }
.prose a  { color: var(--gold); text-decoration: underline; }

/* ── Changelog ────────────────────────────────────────────── */
.changelog-section { padding: 40px 24px 80px; }
.changelog { max-width: 680px; margin: 0 auto; }
.cl-entry { border-left: 2px solid var(--border); padding: 0 0 40px 24px; position: relative; }
.cl-entry::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.cl-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cl-version { font-size: 20px; font-weight: 800; }
.cl-date    { font-size: 14px; color: var(--muted); }
.cl-label   { background: #FDF3E0; color: var(--gold); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.cl-items { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.cl-items li { font-size: 15px; color: #2D3748; }
.cl-cta { margin-top: 32px; font-size: 15px; color: var(--muted); }
.cl-cta a { color: var(--gold); text-decoration: underline; }

/* ── Simple pages (unsubscribe, messages) ─────────────────── */
.simple-page { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 24px; }
.simple-card { max-width: 460px; text-align: center; }
.simple-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.simple-card p  { color: var(--muted); margin-bottom: 20px; }
.simple-card a  { color: var(--gold); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--bg-off); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
}
.footer-tagline { font-size: 13px; color: var(--muted); margin-top: 10px; }
.footer-links-grid { display: flex; gap: 48px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a  { font-size: 14px; color: #4A5568; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 24px; max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: center; font-size: 12px; color: var(--muted);
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links-grid { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { flex-direction: column; }
}
