/* ============================================
   FinanceHub PRO — static rebuild
   Design tokens copied 1:1 from the source app's index.css
   ============================================ */
:root{
  --primary:#1E44AE;
  --primary-dark:#173583;
  --accent:#11A274;
  --accent-dark:#0C7D5A;
  --background:#F5F7FA;
  --foreground:#0C1322;
  --card:#FFFFFF;
  --secondary:#E7ECF3;
  --muted:#ECEFF4;
  --muted-foreground:#65758B;
  --border:#D8DFE9;
  --sidebar-bg:#0C1322;
  --warning:#F59F0A;
  --destructive:#EF4343;
  --radius:0.75rem;
  --shadow-sm:0 1px 3px rgba(15,25,60,.06), 0 1px 2px rgba(15,25,60,.04);
  --shadow-card:0 4px 16px rgba(15,25,60,.08), 0 2px 6px rgba(15,25,60,.05);
  --shadow-hover:0 12px 36px rgba(15,25,60,.14), 0 4px 12px rgba(15,25,60,.08);
  --max:1280px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--background);
  color:var(--foreground);
  font-family:'Inter', -apple-system, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-weight:800; line-height:1.15; margin:0 0 .5em; letter-spacing:-.01em;}
p{margin:0 0 1em;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{padding-left:1.2em;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; font-size:.875rem; padding:10px 20px; border-radius:8px;
  border:1px solid transparent; cursor:pointer; transition:.15s ease;
}
.btn-primary{background:var(--primary); color:#fff;}
.btn-primary:hover{background:var(--primary-dark);}
.btn-outline{background:transparent; border-color:var(--border); color:var(--foreground);}
.btn-outline:hover{background:var(--muted);}
.btn-white{background:#fff; color:var(--primary);}
.btn-white:hover{background:#f0f2f6;}
.btn-ghost-light{background:transparent; border-color:rgba(255,255,255,.4); color:#fff;}
.btn-ghost-light:hover{background:rgba(255,255,255,.1);}
.btn-lg{padding:13px 26px; font-size:.95rem;}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50; width:100%;
  background:rgba(255,255,255,.95); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.site-header .wrap{height:64px; display:flex; align-items:center; justify-content:space-between; gap:16px;}
.brand{display:flex; align-items:center; gap:8px; font-weight:800; font-size:1rem; color:var(--foreground);}
.brand .logo-box{width:32px; height:32px; border-radius:8px; background:var(--primary); display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px;}
.brand .brand-primary{color:var(--primary);}
.brand .pro-tag{font-size:9px; font-weight:600; color:var(--muted-foreground); margin-left:2px;}

nav.main-nav{display:flex; align-items:center; gap:4px;}
nav.main-nav a{font-size:.875rem; font-weight:500; padding:8px 12px; border-radius:6px; color:var(--foreground); display:inline-flex; align-items:center; gap:6px;}
nav.main-nav a:hover{background:var(--muted); color:var(--primary);}
nav.main-nav a.active{color:var(--primary);}

.header-actions{display:flex; align-items:center; gap:8px;}
.header-search{position:relative; display:flex; align-items:center;}
.header-search input{
  padding:7px 12px 7px 30px; font-size:.8rem; border:1px solid var(--border); border-radius:8px;
  width:160px; background:var(--card);
}
.header-search i{position:absolute; left:9px; font-size:14px; color:var(--muted-foreground);}
.icon-btn{width:34px; height:34px; border-radius:8px; border:1px solid var(--border); background:var(--card); display:flex; align-items:center; justify-content:center; cursor:pointer;}
.icon-btn:hover{background:var(--muted);}

/* ---------- hero ---------- */
.hero-bg{
  background:linear-gradient(135deg, #0C1322 0%, #142a55 50%, #0C1322 100%);
  padding:80px 0 60px; text-align:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.9); font-size:.78rem; font-weight:500;
  padding:6px 14px; border-radius:999px; margin-bottom:20px; backdrop-filter:blur(4px);
}
.hero-bg h1{font-size:clamp(2.2rem,5vw,3.6rem); color:#fff; max-width:800px; margin:0 auto 20px;}
.hero-bg h1 .accent-grad{background:linear-gradient(90deg,#93c5fd,#6ee7b7); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hero-bg p.lede{color:rgba(255,255,255,.7); font-size:1.1rem; max-width:640px; margin:0 auto 32px;}
.hero-search{max-width:560px; margin:0 auto 28px;}
.hero-search .box{display:flex; gap:8px; background:rgba(255,255,255,.1); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.2); border-radius:12px; padding:8px;}
.hero-search input{flex:1; background:transparent; border:none; color:#fff; padding:10px 10px 10px 34px; font-size:.9rem;}
.hero-search input::placeholder{color:rgba(255,255,255,.4);}
.hero-search .icon{position:relative;}
.hero-search .icon i{position:absolute; left:12px; top:50%; transform:translateY(-50%); color:rgba(255,255,255,.5);}
.hero-quicklinks{display:flex; flex-wrap:wrap; justify-content:center; gap:8px;}
.hero-quicklinks a{
  font-size:.78rem; color:rgba(255,255,255,.65); background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12); padding:6px 14px; border-radius:999px;
}
.hero-quicklinks a:hover{color:#fff; background:rgba(255,255,255,.2);}

.stats-bar{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:820px; margin:56px auto 0;}
.stat-box{text-align:center; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:18px 10px;}
.stat-box i{color:rgba(255,255,255,.6); font-size:20px; margin-bottom:6px;}
.stat-box .val{font-size:1.5rem; font-weight:800; color:#fff;}
.stat-box .lbl{font-size:.75rem; color:rgba(255,255,255,.5);}

/* ---------- sections ---------- */
.section{padding:56px 0;}
.section.bg-muted{background:rgba(236,239,244,.5);}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:32px; flex-wrap:wrap;}
.section-head.centered{flex-direction:column; align-items:center; text-align:center;}
.eyebrow{font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--primary); margin-bottom:8px; display:block;}
.section-head h2{font-size:1.9rem;}
.section-head p{color:var(--muted-foreground); font-size:.95rem; margin:0; max-width:520px;}
.view-all{font-size:.875rem; font-weight:600; color:var(--primary); display:inline-flex; align-items:center; gap:4px; white-space:nowrap;}
.view-all:hover{gap:8px;}

/* ---------- cards ---------- */
.card{background:var(--card); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-sm); transition:.2s ease;}
.card:hover{box-shadow:var(--shadow-hover); border-color:rgba(30,68,174,.25); transform:translateY(-2px);}

.tools-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.tool-card{padding:20px; display:flex; flex-direction:column; gap:10px;}
.tool-card .icon-tile{width:40px; height:40px; border-radius:10px; background:rgba(30,68,174,.1); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:18px;}
.tool-card h3{font-size:1rem; margin:0;}
.tool-card p{font-size:.82rem; color:var(--muted-foreground); margin:0; flex-grow:1;}
.tool-card .go{font-size:.8rem; font-weight:600; color:var(--primary); display:flex; align-items:center; gap:4px;}
.tool-card .badge-popular{position:absolute; top:12px; right:12px; font-size:.65rem; background:rgba(17,162,116,.12); color:var(--accent-dark); padding:2px 8px; border-radius:999px; font-weight:700;}
.tool-card{position:relative;}

.articles-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.article-card{overflow:hidden;}
.article-card .thumb{height:150px; background:linear-gradient(135deg, rgba(30,68,174,.15), rgba(17,162,116,.15)); display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:28px;}
.article-card .body{padding:18px;}
.article-card .cat{font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--accent-dark);}
.article-card h3{font-size:1.02rem; margin:8px 0;}
.article-card p{font-size:.85rem; color:var(--muted-foreground); margin:0 0 10px;}
.article-card .meta{font-size:.75rem; color:var(--muted-foreground); display:flex; gap:12px;}

.categories-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:12px;}
.cat-tile{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px 10px; text-align:center;}
.cat-tile .emoji{font-size:1.5rem; margin-bottom:8px;}
.cat-tile .name{font-size:.78rem; font-weight:700;}
.cat-tile .count{font-size:.68rem; color:var(--muted-foreground); margin-top:2px;}
.cat-tile:hover{border-color:rgba(30,68,174,.3);}

.tips-section{background:var(--primary); color:#fff;}
.tips-section .eyebrow{color:rgba(255,255,255,.7);}
.tips-section h2{color:#fff;}
.tips-section p{color:rgba(255,255,255,.65);}
.tips-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.tip-card{background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); border-radius:12px; padding:20px;}
.tip-card i{font-size:26px; color:rgba(255,255,255,.8); margin-bottom:10px; display:block;}
.tip-card h3{font-size:.92rem; color:#fff; margin-bottom:6px;}
.tip-card p{font-size:.8rem; color:rgba(255,255,255,.6); margin:0;}

.compare-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.compare-card{padding:20px;}
.compare-card .icon-tile{width:40px; height:40px; border-radius:10px; background:rgba(30,68,174,.1); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:12px;}
.compare-card h3{font-size:.95rem; margin-bottom:6px;}
.compare-card p{font-size:.8rem; color:var(--muted-foreground); margin-bottom:12px;}
.compare-card .foot{display:flex; justify-content:space-between; align-items:center; font-size:.78rem; color:var(--muted-foreground);}
.compare-card .foot span.link{color:var(--primary); font-weight:600;}

.newsletter-section{background:var(--foreground); text-align:center;}
.newsletter-section i.lead-icon{font-size:34px; color:var(--primary); margin-bottom:14px;}
.newsletter-section h2{color:#fff;}
.newsletter-section p{color:rgba(255,255,255,.6); max-width:520px; margin:0 auto 24px; font-size:.9rem;}
.newsletter-form{display:flex; gap:10px; max-width:420px; margin:0 auto;}
.newsletter-form input{flex:1; padding:11px 14px; border-radius:8px; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.1); color:#fff; font-size:.88rem;}
.newsletter-form input::placeholder{color:rgba(255,255,255,.4);}
.newsletter-section .fine{color:rgba(255,255,255,.3); font-size:.75rem; margin-top:12px;}

.testimonial-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.testimonial-card{padding:20px;}
.testimonial-card .stars{color:#F5B400; font-size:.8rem; margin-bottom:10px;}
.testimonial-card p{font-size:.85rem; color:var(--muted-foreground); margin-bottom:14px;}
.testimonial-card .name{font-weight:700; font-size:.85rem;}
.testimonial-card .loc{font-size:.75rem; color:var(--muted-foreground);}

.faq-wrap{max-width:760px; margin:0 auto;}
.faq-item{border:1px solid var(--border); border-radius:10px; margin-bottom:10px; overflow:hidden; background:var(--card);}
.faq-q{width:100%; text-align:left; background:none; border:none; padding:16px 18px; font-size:.9rem; font-weight:700; cursor:pointer; display:flex; justify-content:space-between; align-items:center; color:var(--foreground);}
.faq-a{padding:0 18px 16px; font-size:.85rem; color:var(--muted-foreground); display:none;}
.faq-item.open .faq-a{display:block;}
.faq-item.open .faq-q i{transform:rotate(180deg);}
.faq-q i{transition:.2s;}

.cta-section{background:linear-gradient(135deg, var(--primary), var(--accent)); text-align:center; color:#fff;}
.cta-section i.lead-icon{font-size:34px; color:rgba(255,255,255,.85); margin-bottom:14px;}
.cta-section h2{color:#fff;}
.cta-section p{color:rgba(255,255,255,.75); max-width:480px; margin:0 auto 24px; font-size:.9rem;}
.cta-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}

/* ---------- footer ---------- */
footer.site-footer{background:var(--foreground); color:rgba(255,255,255,.8); padding:56px 0 0;}
.footer-top{display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px;}
.footer-brand p{font-size:.78rem; color:rgba(255,255,255,.5); line-height:1.6;}
.footer-social{display:flex; gap:8px; margin-top:14px;}
.footer-social a{width:28px; height:28px; border-radius:6px; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color:#fff;}
.footer-social a:hover{background:rgba(255,255,255,.2);}
.footer-col h3{font-size:.72rem; text-transform:uppercase; letter-spacing:1px; color:rgba(255,255,255,.4); margin-bottom:12px;}
.footer-col ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px;}
.footer-col a{font-size:.8rem; color:rgba(255,255,255,.6);}
.footer-col a:hover{color:#fff;}
.footer-disclaimer{background:rgba(255,255,255,.05); border-radius:8px; padding:16px; font-size:.72rem; color:rgba(255,255,255,.4); line-height:1.6; margin-bottom:24px;}
.footer-disclaimer strong{color:rgba(255,255,255,.6);}
hr.fsep{border:none; border-top:1px solid rgba(255,255,255,.1); margin:0 0 24px;}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-bottom:24px; font-size:.75rem; color:rgba(255,255,255,.35);}
.footer-bottom .flinks{display:flex; gap:18px;}
.footer-bottom a:hover{color:rgba(255,255,255,.7);}

/* ---------- breadcrumb / page head ---------- */
.page-head{background:var(--card); border-bottom:1px solid var(--border); padding:36px 0;}
.breadcrumb{font-size:.78rem; color:var(--muted-foreground); margin-bottom:10px;}
.breadcrumb a{color:var(--muted-foreground);}
.breadcrumb a:hover{color:var(--primary);}
.page-head h1{font-size:2rem; margin-bottom:6px;}
.page-head p{color:var(--muted-foreground); margin:0; font-size:.95rem;}

/* ---------- calculator ---------- */
.calc-wrap{display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start;}
.calc-panel{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:26px; box-shadow:var(--shadow-sm);}
.calc-panel h2{font-size:1.1rem; margin-bottom:18px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:.82rem; font-weight:600; margin-bottom:6px;}
.field .hint{font-size:.72rem; color:var(--muted-foreground); font-weight:400;}
.field input[type=number], .field input[type=text]{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:8px; font-size:.9rem; font-family:inherit;
}
.field input[type=range]{width:100%;}
.result-hero{background:linear-gradient(135deg, var(--primary), var(--accent)); border-radius:12px; padding:24px; color:#fff; margin-bottom:16px;}
.result-hero .lbl{font-size:.78rem; color:rgba(255,255,255,.7); margin-bottom:4px;}
.result-hero .val{font-size:2rem; font-weight:800;}
.result-rows{display:flex; flex-direction:column; gap:1px; background:var(--border); border:1px solid var(--border); border-radius:10px; overflow:hidden;}
.result-row{background:var(--card); display:flex; justify-content:space-between; padding:12px 16px; font-size:.85rem;}
.result-row .k{color:var(--muted-foreground);}
.result-row .v{font-weight:700;}
.calc-note{font-size:.78rem; color:var(--muted-foreground); margin-top:16px; padding-top:16px; border-top:1px solid var(--border);}

/* ---------- tools listing page ---------- */
.tools-toolbar{display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap;}
.filter-chip{font-size:.8rem; padding:7px 16px; border-radius:999px; border:1px solid var(--border); background:var(--card); cursor:pointer;}
.filter-chip.active{background:var(--primary); color:#fff; border-color:var(--primary);}
.cat-block{margin-bottom:40px;}
.cat-block h2{font-size:1.2rem; margin-bottom:16px; display:flex; align-items:center; gap:8px;}
.cat-block h2 i{color:var(--primary);}

/* ---------- simple content page ---------- */
.content-body{max-width:760px; margin:0 auto; padding:44px 24px;}
.content-body h2{font-size:1.4rem; margin-top:1.4em;}
.content-body p{color:var(--foreground); font-size:.95rem; line-height:1.75;}

/* ---------- contact form ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
.contact-form .field label{font-size:.85rem;}
.contact-form textarea{width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:8px; font-family:inherit; font-size:.9rem; min-height:130px; resize:vertical;}
.info-card{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:22px; margin-bottom:16px;}
.info-card i{color:var(--primary); font-size:20px; margin-bottom:8px; display:block;}
.info-card h3{font-size:.9rem; margin-bottom:4px;}
.info-card p{font-size:.82rem; color:var(--muted-foreground); margin:0;}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .tools-grid{grid-template-columns:repeat(3,1fr);}
  .articles-grid{grid-template-columns:repeat(2,1fr);}
  .categories-grid{grid-template-columns:repeat(4,1fr);}
  .tips-grid, .compare-grid, .testimonial-grid{grid-template-columns:repeat(2,1fr);}
  .footer-top{grid-template-columns:1fr 1fr;}
  .calc-wrap, .contact-grid{grid-template-columns:1fr;}
}
@media (max-width:720px){
  nav.main-nav{display:none;}
  .header-search{display:none;}
  .tools-grid{grid-template-columns:repeat(2,1fr);}
  .articles-grid{grid-template-columns:1fr;}
  .categories-grid{grid-template-columns:repeat(3,1fr);}
  .tips-grid, .compare-grid, .testimonial-grid{grid-template-columns:1fr;}
  .stats-bar{grid-template-columns:repeat(2,1fr);}
}
