/* ================================================
   Spendwiser Pro — Landing Page Styles
   Clean & Minimal | Inter font | Blue accent
   ================================================ */

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

:root {
  --blue:       #2563eb;
  --blue-light: #eff6ff;
  --blue-dark:  #1d4ed8;
  --text-1:     #0f172a;
  --text-2:     #475569;
  --text-3:     #94a3b8;
  --border:     #e2e8f0;
  --bg:         #ffffff;
  --bg-subtle:  #f8fafc;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --max-w:      1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Inter Tight', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
p  { color: var(--text-2); }
a  { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--blue); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .18s ease; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-outline  { background: transparent; color: var(--text-1); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost    { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text-1); background: var(--bg-subtle); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--radius-md); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all .25s ease;
}
.nav-scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 17px; color: var(--text-1); flex-shrink: 0;
}
.nav-logo strong { color: var(--blue); }
.logo-mark {
  width: 34px; height: 34px; background: var(--blue); color: #fff;
  border-radius: 8px; display: grid; place-items: center;
  font-weight: 900; font-size: 13px; letter-spacing: 0.02em;
}
.nav-links {
  display: flex; list-style: none; gap: 4px; margin-left: auto;
}
.nav-links a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: all .15s;
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-subtle); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 0; font-weight: 500; color: var(--text-2);
  border-bottom: 1px solid var(--border); font-size: 16px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative; padding: 140px 0 60px; overflow: hidden;
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 55%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero-headline {
  font-size: clamp(40px, 6vw, 68px); font-weight: 900;
  margin-bottom: 20px; color: var(--text-1);
}
.hero-subtext {
  font-size: 18px; line-height: 1.7; color: var(--text-2); max-width: 480px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-disclaimer { font-size: 13px; color: var(--text-3); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 0; pointer-events: none;
}
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; }

/* Phone Mockup */
.phone-mockup {
  position: relative; z-index: 1; width: 280px;
  background: #0f172a; border-radius: 40px;
  padding: 16px 14px 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08) inset;
  border: 8px solid #1e293b;
}
.phone-screen { background: #0f172a; border-radius: 28px; overflow: hidden; }
.mock-header { background: linear-gradient(135deg, #1d4ed8, #2563eb); padding: 20px 16px 16px; }
.mock-greeting { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.mock-balance { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.mock-label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }
.mock-kpis { display: flex; gap: 8px; padding: 10px 16px; background: #131b2e; }
.mock-kpi { flex: 1; background: #1e293b; border-radius: 8px; padding: 8px 10px; }
.kpi-label { font-size: 10px; color: #64748b; display: block; }
.kpi-value { font-size: 13px; font-weight: 700; color: #f8fafc; }
.mock-kpi.income .kpi-value { color: #34d399; }
.mock-kpi.expense .kpi-value { color: #fb7185; }
.mock-txns { padding: 8px 16px 12px; background: #0f172a; display: flex; flex-direction: column; gap: 10px; }
.mock-txn { display: flex; align-items: center; gap: 10px; }
.txn-icon { width: 32px; height: 32px; border-radius: 8px; background: #1e293b; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.txn-info { flex: 1; min-width: 0; }
.txn-name { font-size: 12px; font-weight: 600; color: #f8fafc; }
.txn-cat  { font-size: 10px; color: #64748b; }
.txn-amt  { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.txn-amt.income  { color: #34d399; }
.txn-amt.expense { color: #fb7185; }
.txn-amt.invest  { color: #c084fc; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-visual  { order: 2; }
  .hero-subtext, .hero-disclaimer { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge   { margin: 0 auto 20px; }
}

/* ── STATS BAR ── */
.stats-bar { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.stats-inner { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat { text-align: center; padding: 12px 40px; }
.stat-num   { display: block; font-size: 28px; font-weight: 900; color: var(--text-1); letter-spacing: -0.03em; }
.stat-label { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }
@media (max-width: 640px) {
  .stat-divider { display: none; }
  .stat { padding: 12px 20px; }
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 18px; max-width: 540px; margin: 0 auto; }

/* ── FEATURES ── */
.features { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-large { grid-column: span 2; }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ftag {
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; font-size: 12px;
  font-weight: 500; color: var(--text-2);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large { grid-column: span 2; }
}
@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
}

/* ── HOW IT WORKS ── */
.how-it-works { background: var(--bg-subtle); }
.steps {
  display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: start; gap: 0; max-width: 960px; margin: 0 auto;
}
.step { padding: 0 16px 0 0; }
.step-num {
  font-size: 48px; font-weight: 900; color: var(--blue);
  opacity: .15; line-height: 1; margin-bottom: 12px; letter-spacing: -0.04em;
}
.step-content h3 { font-size: 17px; margin-bottom: 8px; }
.step-content p   { font-size: 14px; line-height: 1.65; }
.step-connector {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 28px;
}
.step-connector::before {
  content: ''; display: block; width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .step { padding: 0 0 32px; border-left: 3px solid var(--blue-light); padding-left: 24px; }
}

/* ── TESTIMONIALS ── */
.testimonials { background: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-3); }

@media (max-width: 800px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── PRICING ── */
.pricing { background: var(--bg-subtle); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; display: flex; flex-direction: column; gap: 20px;
}
.pricing-card-featured {
  border-color: var(--blue); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name   { font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.plan-price  { display: flex; align-items: baseline; gap: 6px; }
.price-amount{ font-size: 42px; font-weight: 900; color: var(--text-1); letter-spacing: -0.04em; }
.price-period{ font-size: 15px; color: var(--text-3); }
.plan-tagline{ font-size: 14px; color: var(--text-2); margin-top: -12px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check { font-size: 16px; flex-shrink: 0; color: #16a34a; }
.check.muted { color: var(--text-3); }
.muted { color: var(--text-3); }
.plan-btn { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ── FAQ ── */
.faq { background: #fff; }
.faq-container { max-width: 740px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 20px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--text-3);
  transition: transform .2s; flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 20px 18px; font-size: 15px; line-height: 1.7; color: var(--text-2);
}
.faq-item p a { color: var(--blue); text-decoration: underline; }

/* ── DOWNLOAD CTA ── */
.download-cta {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff; text-align: center; padding: 96px 0;
}
.download-inner { max-width: 600px; }
.download-cta h2 { color: #fff; margin-bottom: 16px; }
.download-cta p  { color: rgba(255,255,255,.8); font-size: 18px; margin-bottom: 36px; }
.download-actions { display: flex; justify-content: center; margin-bottom: 20px; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: #000; color: #fff; padding: 14px 26px;
  border-radius: var(--radius-md); transition: all .18s; border: 2px solid rgba(255,255,255,.15);
}
.app-store-btn:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.store-label { font-size: 11px; opacity: .8; }
.store-name  { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.download-sub { font-size: 14px; color: rgba(255,255,255,.7); }
.download-sub a { color: #fff; text-decoration: underline; }

/* ── FOOTER ── */
.footer { background: var(--text-1); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.7; }
.footer-logo .logo-mark { background: rgba(255,255,255,.15); }
.footer-logo .logo-text, .footer-logo strong { color: #fff; }
.footer-links { display: flex; gap: 48px; }
.footer-col  { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
