@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a472a;
  --primary-light: #2d6a4f;
  --accent: #f4a261;
  --accent-dark: #e07b35;
  --bg: #f8f9f4;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(26,71,42,0.10);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER */
header {
  background: var(--primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 24px;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '₹';
  position: absolute;
  font-size: 320px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  right: -20px;
  top: -60px;
  line-height: 1;
  pointer-events: none;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* AD SLOTS */
.ad-slot {
  background: #fff;
  border: 1px dashed var(--border);
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}
.ad-slot-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

/* SECTION */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* CALC GRID */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.calc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,71,42,0.15);
}
.calc-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.calc-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.calc-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.calc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* CALC PAGE LAYOUT */
.calc-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.calc-page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}
.calc-page-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 680px) {
  .calc-layout { grid-template-columns: 1fr; }
  nav { display: none; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* INPUT BOX */
.input-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.input-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group label .val-badge {
  font-weight: 700;
  color: var(--primary);
  background: rgba(26,71,42,0.08);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
}
input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  margin-bottom: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(26,71,42,0.3);
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  margin-top: 8px;
}
input[type="number"]:focus { border-color: var(--primary); }

/* RESULT BOX */
.result-box {
  background: linear-gradient(155deg, var(--primary) 0%, #1e5c36 100%);
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.result-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0.85;
}
.result-main-label {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.result-main-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.result-item {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px;
}
.r-label { font-size: 0.72rem; opacity: 0.7; margin-bottom: 4px; }
.r-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  margin-top: 10px;
  opacity: 0.85;
}
.legend-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

/* INFO SECTION */
.info-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.info-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.info-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--primary);
}
.info-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.faq-a { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* FOOTER */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px;
  margin-top: 48px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; opacity: 0.7; margin-top: 12px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 8px;
}
