:root {
  --primary:#2563EB;
  --success:#16A34A;
  --bg:#FFFFFF;
  --gray:#F1F5F9;
  --border:#E5E7EB;
  --text:#0F172A;
  --muted:#64748B;
  --radius:12px;
}

* { box-sizing:border-box; font-family:'Inter',sans-serif; }

body { margin:0; background:var(--gray); color:var(--text); }

.container { max-width:1000px; margin:auto; padding:24px; }

.site-header { background:#fff; border-bottom:1px solid var(--border); }

.nav { display:flex; justify-content:space-between; align-items:center; }

.logo { font-weight:700; font-size:20px; }

nav a { margin-left:16px; text-decoration:none; color:var(--text); }

.page-header h1 { font-size:32px; }

.hero {
  padding: 90px 20px 70px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
}

.hero p {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 17px;
  color: var(--muted);
}

/* Section spacing */
.section {
  margin-top: 64px;
}

.highlight {
  border: 2px solid var(--primary);
}

.upcoming {
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.chart-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.upcoming:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.calculator-card {
  margin-top:24px;
  display:grid;
  grid-template-columns:1.4fr 0.6fr;
  gap:32px;
  background:#fff;
  padding:32px;
  border-radius:var(--radius);
  box-shadow:0 30px 60px rgba(0,0,0,.08);
}

/* Controls */
.control { margin-bottom:28px; }

.control-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.control-header input {
  width:140px;
  padding:8px 10px;
  font-size:16px;
  border-radius:8px;
  border:1px solid var(--border);
}

input[type=range] {
  width:100%;
  height:6px;
  border-radius:6px;
  accent-color:var(--primary);
}

.control-meta {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}

/* Actions */
.actions { margin-top:16px; }

.btn-secondary {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(#ffffff, #f8fafc);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Results */
.results { display:flex; flex-direction:column; gap:16px; min-width: 260px; }

.result {
  background: var(--gray);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result.primary {
  background: linear-gradient(135deg,#2563EB,#1D4ED8);
  color: #fff;
}
.result span {
  font-size: 14px;
  color: var(--muted);
}

.result strong {
  white-space: nowrap;
  display: inline-block;
  line-height: 1.1;
}
.result.primary span {
  color: #E0E7FF;
}

.result.primary strong {
  font-size: 34px;
}

.chart-section {
  margin:32px auto;
  max-width:420px;
  background:#fff;
  padding:20px;
  border-radius:var(--radius);
  box-shadow:0 20px 40px rgba(0,0,0,.06);
}

.footer, .disclaimer {
  text-align:center;
  margin-top:32px;
  color:var(--muted);
}

/* Mobile */
@media(max-width:768px){
  .calculator-card{grid-template-columns:1fr;}
}

.section h2 {
  font-size: 26px;
  margin-bottom: 24px;
}

/* Cards polish */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Highlight primary card (EMI) */
.card a {
  text-decoration: none;
  font-weight: 500;
  color: var(--primary);
}

/* Muted upcoming cards */
.card.muted {
  background: linear-gradient(#ffffff, #f8fafc);
  border: 1px dashed var(--border);
}

.section .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Category card styling */
.section .card {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover interaction */
.section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.08);
}

/* Card headings */
.section .card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Card description */
.section .card p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* Explore link */
.section .card a {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

/* Coming soon text */
.section .card .muted {
  font-size: 14px;
  color: var(--muted);
}

/* Responsive fallback */
@media (max-width: 900px) {
  .section .grid {
    grid-template-columns: 1fr;
  }
}

.card-links a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
}

/* Finance tool toggle */
.toggle-btn {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.toggle-btn:hover {
  text-decoration: underline;
}

.tool-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-list a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.tool-list a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* SIP / Lumpsum toggle */
.mode-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.mode-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .result strong {
    font-size: 28px;
  }

  .result.primary strong {
    font-size: 30px;
  }
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* BMI Scale */
.bmi-scale {
  margin-top: 20px;
}

.scale-bar {
  position: relative;
  display: flex;
  height: 36px;
  border-radius: 20px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
}

.scale-bar span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.scale-bar .underweight {
  background: #60A5FA;
}

.scale-bar .normal {
  background: #22C55E;
}

.scale-bar .overweight {
  background: #F59E0B;
}

.scale-bar .obese {
  background: #EF4444;
}

/* Indicator */
.bmi-indicator {
  position: absolute;
  top: -6px;
  width: 14px;
  height: 14px;
  background: #111827;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}

.result .guidance,
#goalText {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}
.cloud-card {
  border-top: 4px solid #0EA5E9; /* subtle cloud blue */
}

.health-card {
  border-top: 4px solid #0EA5E9; /* subtle health green */
}

.finance-card {
  border-top: 4px solid #0EA5E9; /* subtle finance green */
}

.popular-section {
  margin-top: 60px;
}

.popular-section h2 {
  margin-bottom: 20px;
}

/* Calculator hero */
.calculator-hero {
  display: grid;
  justify-items: center;
  margin-bottom: 64px;
}

/* Make calculator visually dominant */
.calculator-card {
  max-width: 960px;
  width: 100%;
}

/* SEO content should be readable, not wide */
.seo-content,
.faq {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.seo-content h2 {
  margin-top: 28px;
  font-size: 22px;
}

.seo-content ul,
.seo-content ol {
  margin-left: 22px;
}


.faq h2 {
  margin-bottom: 16px;
}

.faq h3 {
  margin-top: 20px;
  font-size: 18px;
}

.seo-content {
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.faq {
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.category-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.category-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.category-card:focus,
.category-card:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
