/* RESET & VARIABLES */
:root {
  --paper: #f6f4ef;
  --surface: #fff;
  --surface2: #f1eee7;
  --surface3: #e5e1d7;
  --ink: #111827;
  --ink-muted: #5f6775;
  --ink-faint: #8b93a1;
  --green: #1a6b4a;
  --green-mid: #cfe8dc;
  --green-lt: #e8f5ef;
  --blue: #2563eb;
  --blue-lt: #dbeafe;
  --gold: #c9860a;
  --gold-lt: #fff4d6;
  --border: rgba(0,0,0,.08);
  --shadow: 0 6px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.08);
  --r: 18px;
  --r-sm: 12px;
  --max: 1280px;
  --pad: clamp(1rem,4vw,2rem);
  --nav-h: 64px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* TOP FINANCE BAR */
.finance-bar {
  position: sticky; top: 65px; z-index: 99;
  backdrop-filter: blur(14px); background: rgba(17,17,17,.86);
  border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 35px;
}
.finance-inner { display: flex; align-items: center; gap: 16px; padding: 2px 5px; }
.finance-label span {
  background: linear-gradient(45deg,#4ade80,#22c55e); color: #fff;
  font-size: 12px; padding: 2px 6px; border-radius: 100px; font-weight: 600;
}
.finance-ticker { flex: 1; overflow: hidden; }
.tv-ticker-item-tape, .tv-ticker-item-tape__short-name { color: #000 !important; }

/* HERO */
.hero {
  padding: clamp(2rem,1vw,1rem) var(--pad); border-bottom: 1px solid var(--border);
  background: var(--surface); position: relative; overflow: hidden; border-radius: 35px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle,var(--border) 1px,transparent 1px);
  background-size: 26px 26px; opacity: .6;
}
.hero::after {
  content: ''; position: absolute; top: -120px; right: -100px;
  width: 520px; height: 520px; border-radius: 50%;
  background: var(--green-lt); opacity: .7;
}
.hero-inner {
  max-width: var(--max); margin: auto; display: grid;
  grid-template-columns: 1fr 440px; gap: clamp(2rem,5vw,5rem);
  align-items: center; position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-lt);
  color: var(--green); padding: 3px 8px; border-radius: 999px; font-size: .72rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.3rem;
}
.hero h1 { font-family: 'Playfair Display',serif; font-size: clamp(2.5rem,5vw,4rem); line-height: 1.08; margin-bottom: 1rem; }
.hero h1 em { color: var(--green); font-style: italic; }
.hero-sub { color: var(--ink-muted); font-size: 1.05rem; line-height: 1.8; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: .6rem .6rem; border-radius: 12px; font-weight: 600; transition: .2s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { border: 1px solid var(--border); background: #fff; }
.btn-secondary:hover { background: var(--surface2); }

/* SIP CARD */
.sip-card { background: #fff; border-radius: 24px; padding: 0.8rem; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.sip-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.sip-card-title { font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
.sip-result-pill { background: var(--green-lt); color: var(--green); padding: 2px 6px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.sip-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 1.4rem; }
.sip-metric { background: var(--surface2); border-radius: 12px; padding: .8rem; text-align: center; }
.sip-metric-lbl { font-size: .65rem; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 4px; }
.sip-metric-val { font-weight: 700; }
.green { color: var(--green); }
.sip-field { margin-bottom: 1rem; }
.sip-field-hdr { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.sip-field-lbl { font-size: .8rem; color: var(--ink-muted); }
.sip-field-val { background: var(--surface2); padding: 2px 8px; border-radius: 6px; font-size: .8rem; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--green); }
.sip-donut-row { display: flex; gap: 1rem; align-items: center; padding-top: .7rem; border-top: 1px solid var(--border); }
.sip-leg { flex: 1; }
.sip-leg-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.sip-leg-dot { width: 8px; height: 8px; border-radius: 2px; }
.sip-leg-lbl { flex: 1; font-size: .78rem; color: var(--ink-muted); }
.sip-leg-val { font-size: .8rem; font-weight: 700; }

/* TRUST BAR */
.trust-bar { background: var(--green); padding: 0.8rem var(--pad); border-radius: 35px; }
.trust-bar-inner { max-width: var(--max); margin: auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.trust-stat { text-align: center; }
.trust-stat-num { font-family: 'Playfair Display',serif; color: #fff; font-size: 2rem; }
.trust-stat-lbl { color: rgba(255,255,255,.8); font-size: .75rem; }

/* COMMON SECTION */
.section { padding: clamp(1rem,7vw,2rem) var(--pad); }
.section-inner { max-width: var(--max); margin: auto; }
.section-hdr { margin-bottom: 2.5rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 7px; background: var(--green-lt);
  color: var(--green); padding: 5px 12px; border-radius: 999px; font-size: .7rem;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 1rem;
}
.section-title { font-family: 'Playfair Display',serif; font-size: clamp(2rem,4vw,3rem); margin-bottom: .8rem; }
.section-sub { max-width: auto; color: var(--ink-muted); line-height: 1.8; }

/* CALCULATORS */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.calc-card {
  background: #fff; border-radius: 18px; border: 1px solid var(--border); padding: 1.3rem;
  display: flex; gap: 1rem; transition: .25s; cursor: pointer; position: relative; overflow: hidden;
}
.calc-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--green); border-radius: 3px 0 0 3px;
  transform: scaleY(0); transform-origin: center; transition: transform .25s;
}
.calc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-mid); }
.calc-card:hover::before { transform: scaleY(1); }
.calc-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-lt);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; transition: background .25s;
}
.calc-card:hover .calc-icon { background: var(--green-mid); }
.calc-info { flex: 1; min-width: 0; }
.calc-name { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.calc-desc { font-size: .78rem; color: var(--ink-muted); line-height: 1.55; }
.calc-arrow { font-size: 12px; color: var(--ink-faint); transition: color .2s, transform .2s; margin-top: 2px; }
.calc-card:hover .calc-arrow { color: var(--green); transform: translate(2px,-2px); }
.badge-new {
  font-size: .55rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: var(--green); color: #fff; padding: 1px 6px; border-radius: 4px;
}

/* RESOURCES */
.hub-section { background: #fff; border-top: 1px solid var(--border); border-radius: 35px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 1.3rem; }
.hub-card { background: var(--surface2); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); transition: .25s; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hub-img-wrap { height: 220px; overflow: hidden; background: #fff; }
.hub-img { width: 100%; height: 100%; object-fit: contain; }
.hub-body { padding: 1.2rem; }
.hub-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .65rem;
  text-transform: uppercase; font-weight: 700; margin-bottom: .8rem;
}
.hub-tag.blog { background: var(--green-lt); color: var(--green); }
.hub-tag.news { background: var(--gold-lt); color: var(--gold); }
.hub-tag.case { background: var(--blue-lt); color: var(--blue); }
.hub-title { font-size: 1rem; line-height: 1.5; margin-bottom: .7rem; }
.hub-excerpt { font-size: .82rem; line-height: 1.7; color: var(--ink-muted); }
.hub-filters { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hub-filter {
  border: none; background: var(--surface2); color: var(--ink-muted);
  padding: .65rem 1rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .82rem; transition: .2s;
}
.hub-filter:hover { background: var(--green-lt); color: var(--green); }
.hub-filter.active { background: var(--green); color: #fff; }

/* FAQ */
.faq-box { max-width: 900px; margin: auto; }
details { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1rem; overflow: hidden; }
summary { padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 700; }
.faq-content { padding: 0 1.4rem 1.3rem; color: var(--ink-muted); line-height: 1.7; }

/* CTA */
.cta-banner { background: linear-gradient(135deg,var(--green),#1f8a5d); border-radius: 30px; padding: 1rem 1rem; text-align: center; color: #fff; }
.cta-banner h2 { font-family: 'Playfair Display',serif; font-size: clamp(2rem,4vw,3rem); margin-bottom: 1rem; }
.cta-banner p { max-width: 650px; margin: auto; margin-bottom: 2rem; opacity: .9; }
.btn-white { background: #fff; color: var(--green); padding: .9rem 1.5rem; border-radius: 12px; display: inline-flex; font-weight: 700; }

/* WHY USE SECTION */
.why-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 35px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.25rem; }
.why-card { background: var(--surface2); border-radius: var(--r); padding: 1.5rem; transition: transform .2s; }
.why-card:hover { transform: translateY(-3px); }
.why-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-lt);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--green); margin-bottom: 1rem;
}
.why-title { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.why-desc { font-size: .8rem; color: var(--ink-muted); line-height: 1.6; }

/* HOW IT HELPS */
.how-section { background: var(--paper); }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.how-grid::before {
  content: ''; position: absolute; top: 28px; left: calc(33.3% - 8px); right: calc(33.3% - 8px);
  height: 1px; background: var(--border); pointer-events: none;
}
.how-step { text-align: center; padding: 1rem; }
.how-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: 'Playfair Display',serif; font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 8px var(--green-lt);
}
.how-title { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.how-desc { font-size: .82rem; color: var(--ink-muted); line-height: 1.65; }

/* RESPONSIVE */
@media(max-width: 900px){
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
}
@media(max-width: 600px){
  .sip-metrics { grid-template-columns: 1fr 1fr; }
  .sip-metric:last-child { grid-column: 1/-1; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid::before { display: none; }
}