/* ============================================================
   mySIPCalc.com — Design System
   Premium Fiscal Logic · Inter · Deep Navy + Emerald
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary:           #b7004f;
  --color-primary-container: #e40a65;
  --color-secondary:         #006970;
  --color-secondary-container: #00eefc;
  --color-growth:            #006970;
  --color-growth-dark:       #004f54;
  --color-error:             #ba1a1a;
  --color-surface:           #f8f9fa;
  --color-surface-white:     #ffffff;
  --color-surface-low:       #f3f4f5;
  --color-surface-mid:       #edeeef;
  --color-on-surface:        #191c1d;
  --color-on-surface-muted:  #5b3f44;
  --color-outline:           #8f6f74;
  --color-outline-variant:   #e4bdc3;

  /* Typography */
  --font-family:   'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-tabular:  'Sora', sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  12px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --container: 1280px;
  --gutter:    24px;

  /* Radii */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1.0rem;
  --radius-xxl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:       0 20px 40px -12px rgba(183, 0, 79, 0.08);
  --shadow-card-hover: 0 24px 48px -10px rgba(183, 0, 79, 0.15);
  --shadow-nav:        0 4px 30px rgba(0, 0, 0, 0.03);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary); }
button { cursor: pointer; font-family: var(--font-family); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nav-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-on-surface);
  letter-spacing: -0.02em;
}

.nav-brand-text span { color: var(--color-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--color-on-surface-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-primary); background: rgba(183, 0, 79, 0.08); }

.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-md) !important;
}

.nav-cta:hover { background: var(--color-primary-container) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-on-surface);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero / Page Header ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-low) 100%);
  padding: var(--space-xl) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--color-on-surface);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
}

.page-hero p {
  font-size: 18px;
  color: var(--color-on-surface-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ── Calculator Card ───────────────────────────────────────── */
.calc-section {
  padding: var(--space-lg) 0;
}

.calc-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-inputs {
  padding: 32px;
  border-right: 1px solid var(--color-outline-variant);
}

@media (max-width: 768px) {
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--color-outline-variant); }
}

.calc-results {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9ff 100%);
}

/* ── Slider Input Group ────────────────────────────────────── */
.slider-group {
  margin-bottom: 28px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slider-value-input {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  background: var(--color-surface-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  width: 130px;
  text-align: right;
  outline: none;
  transition: border-color 0.2s;
}

.slider-value-input:focus {
  border-color: var(--color-secondary);
  background: #fff;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-outline-variant);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
}

/* ── Result Display ────────────────────────────────────────── */
.result-chart-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.result-stats {
  display: grid;
  gap: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-outline-variant);
}

.result-row:last-child { border-bottom: none; padding-bottom: 0; }

.result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-on-surface);
  font-variant-numeric: tabular-nums;
}

.result-value.invested  { color: var(--color-secondary); }
.result-value.returns   { color: var(--color-growth); }
.result-value.total     { color: var(--color-primary); font-size: 28px; }

.cagr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(93,154,124,0.12);
  color: var(--color-growth);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

/* ── Donut Chart ───────────────────────────────────────────── */
.donut-chart { position: relative; width: 160px; height: 160px; }
.donut-chart svg { transform: rotate(-90deg); }
.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.donut-center-label { font-size: 11px; font-weight: 600; color: var(--color-on-surface-muted); }
.donut-center-value { font-size: 14px; font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-container);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,17,37,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: #fff;
}

.btn-growth {
  background: var(--color-growth);
  color: #fff;
}

.btn-growth:hover { background: var(--color-growth-dark); color: #fff; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: all 0.25s;
}

.card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* ── Section ────────────────────────────────────────────────── */
.section { padding: var(--space-lg) 0; }
.section-alt { background: var(--color-surface-low); }

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-on-surface-muted);
  margin-bottom: var(--space-md);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--color-outline-variant);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  gap: 12px;
}

.faq-question:hover { color: var(--color-secondary); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-surface-low);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  transition: transform 0.25s, background 0.25s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-secondary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 15px;
  color: var(--color-on-surface-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 16px;
}

/* ── Quick Answer Box (AEO) ─────────────────────────────────── */
.quick-answer {
  border-left: 4px solid var(--color-secondary);
  background: var(--color-surface-low);
  padding: 16px 20px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-md) 0;
}

.quick-answer-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.quick-answer p { font-size: 16px; color: var(--color-on-surface); font-weight: 500; }

/* ── Formula Box ────────────────────────────────────────────── */
.formula-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  font-family: 'Courier New', monospace;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.02em;
}

.formula-box .formula { font-size: 18px; font-weight: 700; color: var(--color-growth); margin: 8px 0; }

/* ── Related Calculators Grid ───────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-decoration: none;
  transition: all 0.25s;
}

.related-item:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  color: inherit;
}

.related-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.related-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: 2px;
}

.related-desc { font-size: 12px; color: var(--color-on-surface-muted); }

/* ── Yearly Table ───────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--color-primary);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-outline-variant);
  font-variant-numeric: tabular-nums;
  color: var(--color-on-surface);
}

.data-table tr:nth-child(even) td { background: var(--color-surface-low); }
.data-table tr:hover td { background: var(--color-secondary-container); }

.data-table .growth { color: var(--color-growth); font-weight: 600; }
.data-table .total  { color: var(--color-primary); font-weight: 700; }

/* ── Steps (How to use) ─────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.step-item {
  text-align: center;
  padding: var(--space-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step-title { font-size: 15px; font-weight: 600; color: var(--color-primary); margin-bottom: 6px; }
.step-desc  { font-size: 13px; color: var(--color-on-surface-muted); }

/* ── Blog / Article Cards ───────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.blog-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.blog-card-body { padding: 20px; }

.blog-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-growth);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-excerpt { font-size: 13px; color: var(--color-on-surface-muted); line-height: 1.6; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-outline-variant);
  font-size: 12px;
  color: var(--color-on-surface-muted);
}

/* ── Article / Content ──────────────────────────────────────── */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-on-surface);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 24px 0 8px;
}

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-content li { margin-bottom: 6px; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-content th {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-outline-variant);
}

.article-content tr:nth-child(even) td { background: var(--color-surface-low); }

.article-content strong { font-weight: 600; color: var(--color-primary); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand h2 span { color: var(--color-growth); }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }

.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--color-growth); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; }
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  max-width: 600px;
  line-height: 1.5;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { font-size: 10px; }

/* ── Comparison Table ────────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
}

.compare-table th.feature-col { text-align: left; }

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-outline-variant);
  text-align: center;
}

.compare-table td.feature-col { text-align: left; font-weight: 600; color: var(--color-primary); }
.compare-table tr:nth-child(even) td { background: var(--color-surface-low); }

.check { color: var(--color-growth); font-weight: 700; }
.cross { color: var(--color-error); font-weight: 700; }

/* ── Ad Placeholder ──────────────────────────────────────────── */
.ad-slot {
  background: var(--color-surface-low);
  border: 1px dashed var(--color-outline-variant);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-on-surface-muted);
  font-size: 12px;
  margin: var(--space-md) 0;
}

.ad-slot-728 { height: 90px; }
.ad-slot-300 { width: 300px; height: 250px; }
.ad-slot-320 { width: 320px; height: 100px; margin: var(--space-md) auto; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-on-surface-muted); }
.text-growth  { color: var(--color-growth); }
.text-primary { color: var(--color-primary); }
.text-tabular { font-variant-numeric: tabular-nums; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-growth  { background: rgba(93,154,124,0.15); color: var(--color-growth); }
.badge-primary { background: rgba(5,17,37,0.08); color: var(--color-primary); }
.badge-blue    { background: var(--color-secondary-container); color: var(--color-primary); }

/* ── Alert / Notice ──────────────────────────────────────────── */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.5;
  margin: var(--space-md) 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice-info { background: var(--color-secondary-container); color: var(--color-primary-container); }
.notice-success { background: rgba(93,154,124,0.12); color: #2d6b4e; }

/* ── Form ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-on-surface);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--color-secondary); }

textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.pagination .active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px var(--gutter);
    z-index: 99;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 4px;
  }

  .nav-links.open li {
    width: 100%;
    list-style: none;
  }

  .nav-links.open a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
  }
}

.mini-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

@media (max-width: 600px) {
  .page-hero { padding: var(--space-lg) var(--gutter); }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15px; }
  .calc-inputs, .calc-results { padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  
  /* Make all tables scrollable on mobile screens */
  table, .data-table, .compare-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .mini-calc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mini-calc-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.result-stats .result-row {
  animation: fadeInUp 0.4s ease forwards;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface-low); }
::-webkit-scrollbar-thumb { background: var(--color-outline); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }
