/*
Theme Name: Expense Tracker
Author: Jayant Choraria
Version: 1.0
Description: Landing page theme for Expense Tracker product.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
  --ink:#0f172a;
  --muted:#5b6476;
  --brand:#6c5ce7;
  --brand-dark:#4c3ed4;
  --accent:#22c55e;
  --accent-2:#ef4444;
  --bg:#f4f5fb;
  --card:#ffffff;
  --shadow:0 20px 60px rgba(15,23,42,.12);
  --shadow-soft:0 12px 30px rgba(15,23,42,.08);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:30px;}
body{
  margin:0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
}
body.es-dark{
  background:#0b1220;
  color:#e5e7eb;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.site-loader{
  position:fixed;
  inset:0;
  background:radial-gradient(circle at top, #0f172a, #020617);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  z-index:2000;
  color:#e2e8f0;
  opacity:1;
  transition:opacity .35s ease, visibility .35s ease;
}
.site-loader.hidden{
  opacity:0;
  visibility:hidden;
}
.loader-orb{
  width:110px;
  height:110px;
  border-radius:50%;
  display:grid;
  place-items:center;
  animation:float 3s ease-in-out infinite;
}
.loader-orb img{
  width:110px;
  height:110px;
}
.loader-text{
  font-weight:600;
  letter-spacing:.3px;
  font-size:14px;
}

.site-header{
  position:sticky;
  top:0;
  background:#fff;
  z-index:50;
  border-bottom:1px solid #eef2f7;
}
.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  font-size:20px;
}
.brand-badge{
  width:36px;
  height:36px;
  border-radius:10px;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  overflow:hidden;
}
.brand-badge img{width:36px;height:36px;display:block;}
.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav a{color:var(--muted);font-weight:600;}
.nav .cta{
  padding:10px 16px;
  background:var(--brand);
  color:#fff;
  border-radius:999px;
}
.lang-toggle{
  display:flex;
  align-items:center;
  gap:0;
  padding:4px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#f8fafc;
  color:#1f2937;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  position:relative;
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.lang-toggle .lang-option{
  z-index:1;
  width:38px;
  text-align:center;
  padding:6px 6px;
  transition:color .25s ease;
}
.lang-toggle[data-lang="en"] .lang-option[data-lang="en"],
.lang-toggle[data-lang="hi"] .lang-option[data-lang="hi"]{
  color:#fff;
}
.lang-toggle .lang-knob{
  position:absolute;
  left:4px;
  top:4px;
  width:50%;
  height:calc(100% - 8px);
  border-radius:999px;
  background:var(--brand);
  transition:left .3s ease, transform .3s ease;
  will-change:left, transform;
}
.lang-toggle[data-lang="hi"] .lang-knob{
  left:calc(50% - 4px);
}
.lang-toggle[data-lang="hi"]{
  background:#eef2ff;
  border-color:#c7d2fe;
}
.menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.menu-toggle span{
  width:20px;
  height:2px;
  background:#111827;
  border-radius:999px;
  display:block;
}
.mobile-menu{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(10px);
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
  z-index:1200;
}
.mobile-menu.open{
  opacity:1;
  visibility:visible;
}
.mobile-panel{
  position:absolute;
  right:0;
  top:0;
  height:100%;
  width:280px;
  background:#fff;
  border-radius:0;
  padding:20px;
  box-shadow:var(--shadow);
  transform:translateX(100%);
  transition:transform .3s ease;
}
.mobile-menu.open .mobile-panel{
  transform:translateX(0);
}
.mobile-header{
  position:sticky;
  top:0;
  background:#fff;
  padding-bottom:8px;
  z-index:2;
}
.no-scroll{
  overflow:hidden;
}
.mobile-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.mobile-title{
  font-weight:700;
  font-size:16px;
}
.menu-close{
  width:32px;
  height:32px;
  border-radius:10px;
  border:none;
  background:#f1f5f9;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.mobile-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-links a{
  font-weight:600;
  color:#111827;
}
.mobile-links .cta{
  padding:10px 14px;
  background:var(--brand);
  color:#fff;
  border-radius:10px;
  text-align:center;
}

.hero{
  max-width:1200px;
  margin:0 auto;
  padding:64px 24px 40px;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:40px;
  align-items:center;
  position:relative;
}
.site-header{scroll-margin-top:30px;}
section{scroll-margin-top:30px;}
.floating{animation:float 6s ease-in-out infinite;}
.float-slow{animation:float 9s ease-in-out infinite;}
.float-fast{animation:float 4s ease-in-out infinite;}
.hero h1{
  font-family:'Space Grotesk', sans-serif;
  font-size:48px;
  line-height:1.1;
  margin:0 0 16px;
}
.hero p{color:var(--muted);font-size:18px;margin:0 0 24px;}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;}
.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:#ede9fe;
  color:#4c3ed4;
  font-weight:700;
  font-size:12px;
  letter-spacing:.3px;
  margin-bottom:14px;
}
.hero-tag .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#4c3ed4;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  font-weight:600;
  font-size:12px;
  color:#1f2937;
}
.badge-icon{
  width:24px;
  height:24px;
  border-radius:10px;
  background:#eef2ff;
  color:#4c3ed4;
  display:grid;
  place-items:center;
}
.badge-icon svg{width:14px;height:14px;}
.btn{
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn.primary{background:var(--brand);color:#fff;}
.btn.ghost{border-color:#e2e8f0;color:var(--ink);background:#fff;}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(108,92,231,.18);}

.hero-card{
  background:var(--card);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.metric{padding:14px;border-radius:14px;background:#f8fafc;display:flex;flex-direction:column;gap:6px;animation:float 6s ease-in-out infinite;}
.metric h3{margin:0;font-size:20px;}
.metric span{color:var(--muted);font-size:12px;}
.metric-icon{
  width:30px;
  height:30px;
  border-radius:10px;
  background:#eef2ff;
  color:#4c3ed4;
  display:grid;
  place-items:center;
}
.metric-icon svg{width:16px;height:16px;}
.metric-icon.accent{background:#dcfce7;color:#16a34a;}
.metric-icon.warm{background:#fee2e2;color:#ef4444;}
.hero-glow{
  position:absolute;
  width:200px;
  height:200px;
  right:-80px;
  bottom:-80px;
  background:radial-gradient(circle, rgba(108,92,231,.35), transparent 70%);
}

.section{
  max-width:1200px;
  margin:0 auto;
  padding:36px 24px;
}
.section h2{font-size:32px;margin:0 0 12px;}
.section p{color:var(--muted);margin:0 0 24px;}
.section-head{margin-bottom:24px;}

.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.feature-card{
  background:var(--card);
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow-soft);
  transition:transform .2s ease, box-shadow .2s ease;
}
.feature-card h3{margin:0 0 8px;}
.feature-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);}
.feature-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  background:#eef2ff;
  color:#4c3ed4;
  display:grid;
  place-items:center;
  margin-bottom:10px;
}
.feature-icon svg{width:18px;height:18px;}
.feature-icon.accent{background:#dcfce7;color:#16a34a;}
.feature-icon.warm{background:#fee2e2;color:#ef4444;}

.insights{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
}

.pies{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.pie{
  width:140px;
  height:140px;
  border-radius:50%;
  background:conic-gradient(var(--brand) 0 45%, var(--accent) 45% 75%, var(--accent-2) 75% 100%);
  margin:0 auto 10px;
  box-shadow:inset 0 0 0 12px #fff, var(--shadow-soft);
}
.pie.modern{background:conic-gradient(#22c55e 0 45%, #6c5ce7 45% 75%, #ef4444 75% 100%);}
.pie.modern.alt{background:conic-gradient(#f59e0b 0 45%, #6c5ce7 45% 70%, #ef4444 70% 100%);}
.pie-label{text-align:center;font-size:14px;color:var(--muted);}
.legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
  font-weight:600;
  color:#1f2937;
}
.legend .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  margin-right:6px;
}
.legend .income{background:#22c55e;}
.legend .expense{background:#ef4444;}
.legend .pending{background:#f59e0b;}

.pricing{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.price-card{
  background:var(--card);
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.price-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);}
.price-card .price{
  font-size:28px;
  font-weight:800;
}
.price-card .period{color:var(--muted);}
.price-card .choose{
  margin-top:auto;
  padding:10px 14px;
  border-radius:10px;
  background:var(--brand);
  color:#fff;
  text-align:center;
  font-weight:700;
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:center;
}
.image-block{
  background:#fff;
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
}
.limit-bar{
  height:14px;
  border-radius:999px;
  background:#e5e7eb;
  overflow:hidden;
  margin:12px 0 6px;
}
.limit-bar .fill{
  height:100%;
  border-radius:999px;
  background:#22c55e;
}
.limit-bar .limit-animate{
  width:0%;
  background:linear-gradient(90deg,#22c55e 0%, #fbbf24 45%, #f59e0b 70%, #ef4444 100%);
  background-size:200% 100%;
  animation:limitGrow 8s ease-in-out infinite;
  transition:background-color .6s ease;
}
.limit-bar .fill.good{background:#22c55e;}
.limit-caption{color:var(--muted);font-size:12px;}
.alert-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:600;
  font-size:12px;
  border:1px solid #fed7aa;
}
.insight-visual{
  background:#fff;
  border-radius:20px;
  padding:20px;
  box-shadow:var(--shadow);
}

.workflow .steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.step-card{
  background:#fff;
  padding:20px;
  border-radius:18px;
  box-shadow:var(--shadow-soft);
}
.step-num{
  font-family:'Space Grotesk', sans-serif;
  font-size:20px;
  font-weight:700;
  color:#6c5ce7;
  margin-bottom:8px;
}

.cta-card{
  background:linear-gradient(135deg, #6c5ce7, #8b5cf6);
  color:#fff;
  padding:30px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow:var(--shadow);
}
.confirm-page{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
}
.confirm-card{
  background:#fff;
  border-radius:20px;
  padding:32px 28px;
  width:min(520px, 92vw);
  text-align:center;
  box-shadow:var(--shadow);
  position:relative;
  z-index:1;
}
.confirm-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  position:relative;
  z-index:2;
}
.confirm-card h1{
  margin:10px 0 8px 0;
  font-size:28px;
}
.confirm-card p{
  color:var(--muted);
  margin:0 0 18px 0;
}
.confirm-art{
  position:relative;
  width:140px;
  height:140px;
  margin:0 auto 8px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(108,92,231,.2), transparent 60%);
  pointer-events:none;
}
.confirm-art .pulse-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px dashed rgba(108,92,231,.35);
  animation:etpPulseRing 2.4s ease-in-out infinite;
}
.confirm-art .coin{
  position:absolute;
  width:36px;
  height:36px;
  border-radius:50%;
  background:linear-gradient(135deg,#6c5ce7,#9b8bff);
  box-shadow:0 8px 18px rgba(108,92,231,.25);
  animation:etpFloat 3s ease-in-out infinite;
}
.confirm-art .coin::after{
  content:'₹';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:700;
  font-size:14px;
}
.confirm-art .c1{top:10px;left:8px;}
.confirm-art .c2{right:6px;top:28px;animation-delay:.4s;}
.confirm-art .c3{left:40px;bottom:6px;animation-delay:.8s;}
@keyframes etpPulseRing{
  0%,100%{transform:scale(0.96);opacity:.4;}
  50%{transform:scale(1.05);opacity:.9;}
}
@keyframes etpFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}
.cta-card p{color:#eef2ff;margin:0;}

.reveal{opacity:1;transform:none;}
.reveal.hidden{opacity:0;transform:translateY(16px);}
.reveal.in-view{opacity:1;transform:translateY(0);transition:opacity .6s ease, transform .6s ease;}
.features .reveal:nth-child(2){transition-delay:.05s;}
.features .reveal:nth-child(3){transition-delay:.1s;}
.features .reveal:nth-child(4){transition-delay:.15s;}
.features .reveal:nth-child(5){transition-delay:.2s;}
.features .reveal:nth-child(6){transition-delay:.25s;}
.steps .reveal:nth-child(2){transition-delay:.1s;}
.steps .reveal:nth-child(3){transition-delay:.2s;}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(12px);}
  to{opacity:1;transform:translateY(0);}
}
@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
@keyframes spin{
  to{transform:rotate(360deg);}
}
@keyframes limitGrow{
  0%{width:0%;background-position:0% 50%;}
  60%{width:100%;background-position:100% 50%;}
  80%{width:100%;background-position:100% 50%;}
  100%{width:0%;background-position:0% 50%;}
}

.site-footer{
  padding:30px 24px;
  border-top:1px solid #eef2f7;
  color:var(--muted);
  text-align:center;
}

@media (max-width: 1024px){
  .hero{grid-template-columns:1fr;}
  .features{grid-template-columns:1fr 1fr;}
  .pricing{grid-template-columns:1fr 1fr;}
  .insights{grid-template-columns:1fr;}
  .split{grid-template-columns:1fr;}
  .workflow .steps{grid-template-columns:1fr;}
  .cta-card{flex-direction:column;align-items:flex-start;}
}
@media (max-width: 780px){
  .features{grid-template-columns:1fr;}
  .pricing{grid-template-columns:1fr;}
  .nav{display:none;}
  .menu-toggle{display:flex;}
  .lang-toggle{margin-left:auto;margin-right:12px;}
  .hero h1{font-size:34px;}
}
