/* ================= GLOBAL ================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #0f172a;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= CONTENT LINKS ================= */

.content-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}

.content-link:hover {
  color: #1d4ed8;
  text-decoration-thickness: 2px;
}

/* ================= HEADER ================= */

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo span {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}

.nav-links a {
  margin-right: 18px;
  color: #475569;
}

.nav-links a.active,
.nav-links a:hover {
  color: #2563eb;
}

.cta-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 18px;
  cursor: pointer;
}



/* ================= MAIN ================= */

main {
  padding: 40px 20px;
  flex: 1;
}

/* ================= CALCULATOR ================= */

.calc-wrapper {
  max-width: 950px;
  margin: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  gap: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.calc-left {
  flex: 2;
}

.calc-right {
  flex: 1;
  border-left: 1px solid #e5e7eb;
  padding-left: 20px;
}

.calc-desc {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  max-width: 520px;
}

/* Calculator Switch */
.calc-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-right li {
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.calc-right li.active {
  background: #2563eb;
  color: #ffffff;
}

/* Calculator Boxes */
.calc-box {
  display: none;
}

.calc-box.active {
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

/* Global Button */
button {
  background: #0aa06e;
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
}

/* ================= RESULT ================= */

.result-panel {
  margin-top: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}


.result-metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Make Total Value label bold (no dot) */
.result-metrics > div:last-child p {
  font-weight: 600;
}

.result-bar {
  display: flex;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
}

.invested-bar {
  background: #fb923c;
}

.returns-bar {
  background: #3b82f6;
}

/* ================= FAQ ================= */

.faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-section h1,
.faq-section h2 {
  text-align: center;
  font-size: 28px;
}

.faq-subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 30px;
}

.faq-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  background: none !important;
  color: #0f172a !important;
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: #475569;
  line-height: 1.6;
}

.faq-contact {
  margin-top: 40px;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

/* ================= ABOUT SIP ================= */

.about-sip-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h1 {
  font-size: 32px;
}

.about-subtitle {
  color: #64748b;
  margin-top: 8px;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
}

.benefits-title {
  margin: 50px 0 20px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.benefit-card {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-weight: 500;
}

/* ================= SIP / SWP / STP ================= */

.sip-advanced-section {
  margin-top: 70px;
}

.sip-advanced-section h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.section-intro {
  color: #475569;
  max-width: 760px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-block {
  margin-bottom: 30px;
}

.info-block h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.info-block p {
  color: #475569;
  line-height: 1.6;
}

/* Comparison Table */

.comparison-title {
  margin: 40px 0 20px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ================= FOOTER ================= */

.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  margin-top: 80px;
  font-size: 14px;
  color: #475569;
}

.footer-container {
  width: 100%;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: 2.5fr 1.5fr 1.5fr 1.5fr;
  column-gap: 80px;
}

.footer-col {
  text-align: left;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.footer-desc {
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #475569;
}

.footer-col ul li a:hover {
  color: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #64748b;
}

.home-seo {
  padding: 60px 20px;
  background: #ffffff;
}

.home-seo-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.home-seo-text h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.home-seo-text h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.home-seo-text p {
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
}

.home-seo-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.input-group {
  margin-bottom: 8px;
}

.input-group input[type="number"] {
  margin-bottom: 6px;
}

.input-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.input-group input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.input-group input[type="range"] {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
  accent-color: #2563eb;
}

/* ================= RESULT (FINAL FORMATTING) ================= */

.result-panel {
  margin-top: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Layout */
.result-metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* ALL labels: Invested / Returns / Total */
.result-metrics p {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;     /* muted fintech gray */
  margin: 0 0 6px 0;
  line-height: 1.2;
}

/* Legend alignment (dot + text inline) */
.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Legend dots */
.legend::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

/* Dot colors */
.legend.invested::before {
  background: #fb923c;
}

.legend.returns::before {
  background: #3b82f6;
}

/* ALL values */
.result-metrics h3 {
  font-size: 18px;
  font-weight: 500;
  padding-left: 18px;
  color: #0f172a;
  margin: 0;
}

/* Optional: slightly emphasize Total Value */
.result-metrics > div:last-child h3 {
  font-size: 19px;
}

/* ================= SIP CHART ================= */

/* Make chart taller */
.chart-panel {
  margin-top: 20px;
  padding: 10px;
  height: 300px;   /* 👈 increase overall height */
}

/* Ensure canvas fills container */
#sipChart,
#stepupChart {
  width: 100% !important;
  height: 100% !important;
}



/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .calc-wrapper {
    flex-direction: column;
  }

  .calc-right {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    row-gap: 30px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .home-seo-container {
    grid-template-columns: 1fr;
  }
}
