/* ================================================================
   dailyfinancecalculator.com
   Light theme — industry-standard fintech UI
   Inspired by Groww / ClearTax / NerdWallet
   ================================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --card: #ffffff;
  --card-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --card-shadow-hover: 0 10px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.05);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-lighter: #eff6ff;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-light: #d1fae5;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --container-max: 1200px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }
img, svg { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { color: var(--text-muted); }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 2px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-right: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
}
.logo-fin { color: var(--primary); margin-left: 6px; }

.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.hamburger {
  display: none; background: none; border: none; font-size: 1.5rem;
  color: var(--text); padding: 4px 8px;
}
.hamburger:hover { color: var(--primary); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--bg) 100%);
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid { display: none; }
.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 720px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.6;
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  margin: 32px 0; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.75rem; font-weight: 800; color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 32px; background: var(--border);
}

.hero-cards { display: none; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }

.btn-tutor-cta {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
}
.btn-tutor-cta:hover { background: var(--accent-dark); color: #fff; }

/* ============ SECTIONS ============ */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-subtle); font-size: 1rem; }

/* ============ TOOL GRID (homepage) ============ */
.tool-nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px 40px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
  color: var(--text);
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  color: var(--text);
}
.tool-card.active {
  border-color: var(--primary);
  background: var(--primary-lighter);
}
.tool-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.tool-name {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.tool-desc {
  font-size: 0.85rem; color: var(--text-subtle); line-height: 1.5;
}

/* ============ CALC PAGE HEADER ============ */
.calc-page-header {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px 24px;
}
.breadcrumb {
  font-size: 0.85rem; color: var(--text-subtle);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-subtle); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-strong); }
.calc-page-header h1 { margin-bottom: 12px; }
.calc-page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 760px; }

/* ============ CALC LAYOUT ============ */
.calc-layout-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.calc-main-col { min-width: 0; }
.calc-sidebar-col { position: sticky; top: 90px; align-self: start; }

@media (max-width: 960px) {
  .calc-layout-container { grid-template-columns: 1fr; }
  .calc-sidebar-col { position: static; }
}

/* ============ CALC PANEL ============ */
.calc-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-panel { padding: 20px; }
}
.calc-inputs h3 { margin-bottom: 8px; }
.calc-title { font-size: 1.15rem; margin-bottom: 8px; }
.calc-desc { color: var(--text-subtle); font-size: 0.9rem; margin-bottom: 24px; }

/* ============ FORM INPUTS ============ */
.input-group { margin-bottom: 20px; }
.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.input-group input[type="number"],
.input-group input[type="text"],
.select-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-group input[type="number"]:focus,
.input-group input[type="text"]:focus,
.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.input-note {
  font-size: 0.8rem; color: var(--text-subtle); margin-top: 6px;
}

/* ============ SLIDER ============ */
.slider {
  width: 100%;
  margin-top: 10px;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(37,99,235,0.3);
  transition: transform 0.1s;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(37,99,235,0.3);
}
.range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-subtle); margin-top: 6px;
}

/* ============ RADIO / SEGMENTED ============ */
.radio-group {
  display: flex; gap: 8px; margin-bottom: 20px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius);
}
.radio-group input[type="radio"] { display: none; }
.radio-label {
  flex: 1;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: all 0.15s;
}
.radio-label:hover { color: var(--text); }
.radio-label:has(input:checked) {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--card-shadow);
}

/* ============ RESULT CARD ============ */
.calc-results { min-width: 0; }
.result-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
}
.result-main { margin-bottom: 20px; }
.result-label {
  display: block;
  font-size: 0.85rem; font-weight: 500;
  opacity: 0.9; margin-bottom: 6px;
}
.result-value {
  display: block;
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.result-breakdown {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.rb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rb-item:last-child { border-bottom: none; }
.rb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.rb-label { flex: 1; opacity: 0.9; }
.rb-val { font-weight: 700; }
.total-row { font-weight: 700; padding-top: 10px; }

.dot-principal { background: #fbbf24; }
.dot-interest { background: #10b981; }
.dot-total { background: #fff; }

/* Donut chart wrap */
.donut-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 16px;
}
.donut-wrap canvas { max-width: 180px; }
.donut-legend {
  display: flex; gap: 16px; margin-top: 12px;
  font-size: 0.85rem;
}
.leg-item { display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============ AD SLOTS ============ */
.ad-wrapper,
.ad-slot-above-fold,
.ad-slot-results-adjacent,
.ad-slot-sidebar {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
  text-align: center;
  min-height: 90px;
  display: flex; flex-direction: column; justify-content: center;
}
.ad-label,
.ad-tag-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ============ GUIDE / LONGFORM CONTENT ============ */
.calc-guide-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  color: var(--text-muted);
  line-height: 1.75;
}
.calc-guide-content h2 {
  color: var(--text); margin-bottom: 16px; margin-top: 32px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.calc-guide-content h2:first-child { margin-top: 0; }
.calc-guide-content h3 {
  color: var(--text); margin-top: 24px; margin-bottom: 12px;
  font-size: 1.15rem;
}
.calc-guide-content p { margin-bottom: 14px; }
.calc-guide-content ul, .calc-guide-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.calc-guide-content li { margin-bottom: 8px; }
.calc-guide-content strong { color: var(--text); font-weight: 600; }
.calc-guide-content blockquote {
  background: var(--primary-lighter);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  font-size: 1.05rem;
}
.calc-guide-content code {
  background: var(--bg-muted);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9em;
}
@media (max-width: 768px) {
  .calc-guide-content { padding: 20px; }
}

/* ============ FAQ ============ */
.faq-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 24px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}
.faq-item p a { color: var(--primary); font-weight: 500; }

/* ============ SIDEBAR WIDGETS ============ */
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-weight: 600;
}
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.1s;
}
.sidebar-links a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}
.sidebar-links a.active {
  background: var(--primary-lighter);
  color: var(--primary);
}
.sidebar-icon-span { font-size: 1.1rem; }

/* ============ RELATED TOOLS ============ */
.related-tools-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.related-tools-section h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.related-card-icon { font-size: 1.75rem; margin-bottom: 12px; display: block; }
.related-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.related-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.related-card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.related-card-link:hover { text-decoration: underline; }

/* ============ DISCLAIMER ============ */
.disclaimer {
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  padding: 32px 24px;
  margin: 48px 0 0;
}
.disclaimer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex; gap: 20px;
  align-items: flex-start;
}
.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.disclaimer-text h3 {
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 8px;
}
.disclaimer-text p {
  color: #78350f;
  font-size: 0.875rem;
  line-height: 1.6;
}
.disclaimer-text strong { color: #78350f; }

/* ============ TAX CALC SPECIFIC ============ */
.tax-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 640px) { .tax-comparison { grid-template-columns: 1fr; } }
.tax-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tax-header {
  padding: 16px;
  text-align: center;
  color: #fff;
  font-weight: 700;
}
.tax-header.old-regime { background: var(--text-muted); }
.tax-header.new-regime { background: var(--primary); }
.tax-body { padding: 16px; }
.tax-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.tax-row:last-child { border-bottom: none; }
.tax-final {
  font-weight: 700;
  color: var(--text);
  padding-top: 10px;
  border-top: 2px solid var(--border);
}
.tax-savings {
  margin-top: 16px; padding: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.tax-slab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 16px;
}
.tax-slab-table th, .tax-slab-table td {
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.tax-slab-table th {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 600;
}
.calc-grid-tax { display: block; }

/* ============ GST RESULT ============ */
.gst-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.gst-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.gst-row:last-child { border-bottom: none; }
.total-gst-row {
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 14px;
  border-top: 2px solid var(--border);
  color: var(--primary);
}

/* ============ FOREX ============ */
.forex-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.forex-result-box {
  background: var(--primary-lighter);
  padding: 20px;
  border-radius: var(--radius);
  margin: 16px 0;
}
.forex-from-label, .forex-equals, .forex-to-value {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
}
.forex-equals { color: var(--text-subtle); margin: 0 12px; }
.forex-rate-info {
  font-size: 0.85rem; color: var(--text-subtle); margin-top: 12px;
}
.forex-rate-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-subtle);
}
.forex-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-subtle);
}
.forex-status-dot.live { background: var(--accent); }
.forex-status-dot.error { background: var(--danger); }
.forex-swap-wrap { display: flex; align-items: center; justify-content: center; margin: 16px 0; }
.forex-swap-btn {
  background: var(--bg-muted); border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
  color: var(--primary); font-size: 1.1rem;
}
.forex-swap-btn:hover { background: var(--primary-lighter); border-color: var(--primary); }
.forex-disclaimer {
  font-size: 0.8rem; color: var(--text-subtle);
  text-align: center; margin-top: 16px;
}

/* PPF live rate display */
.ppf-rate-display {
  background: var(--primary-lighter);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--primary-dark);
  margin-top: 10px;
}
.live-val { font-weight: 700; color: var(--primary); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  color: var(--text-subtle);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-links-group h4 {
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links-group a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.1s;
}
.footer-links-group a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-subtle); }
.footer-bottom a:hover { color: var(--primary); }

/* ============ MOBILE NAV ============ */
@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    flex-direction: column;
    padding: 12px 24px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; font-size: 1rem; }
  .hero { padding: 48px 24px 40px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.4rem; }
  .stat-divider { display: none; }
  .tool-nav { padding: 40px 20px; }
  .faq-section { padding: 40px 20px; }
  .result-value { font-size: 1.75rem; }
}

/* ============ GUIDE TOP-LEVEL (legal pages inline-style content) ============ */
/* Already styled inline; no additions needed */

/* ============ MISC ============ */
.accent-row { color: var(--accent); font-weight: 600; }
.calculators-section { padding: 48px 24px; }
.info-page-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }

/* Hide any residual tutor-section if present */
.tutor-section, .tutor-card, .tutor-card-inner, .tutor-card-text { display: none; }
.nav-tutor-link { display: none; }
