/* ============================================================
   IncomeTaxAct.com — Design System
   Independent guide to the Income Tax Act, 2025 (India)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #0E1E33;
  --navy-800: #14304D;
  --navy-700: #1C4066;
  --navy-600: #2A5683;
  --navy-100: #E7EDF4;

  --gold-700: #9A7416;
  --gold-600: #BE8F1A;
  --gold-500: #D9A828;
  --gold-100: #FBF1D6;

  --teal-700: #16554A;
  --teal-600: #1F7A6B;
  --teal-500: #2C9A87;
  --teal-100: #E1F2EE;

  --cream-50:  #FBF9F4;
  --cream-100: #F4EFE4;
  --cream-200: #ECE5D6;

  --ink-900: #20242C;
  --ink-700: #444B59;
  --ink-500: #6E7585;
  --ink-300: #AEB4C0;

  --border: #E3DDD0;
  --border-strong: #D2C9B8;
  --white: #FFFFFF;

  --success: #1F7A5C;
  --success-bg: #E4F4ED;
  --danger: #B3402F;
  --danger-bg: #FBEAE6;
  --warning: #B5781A;
  --warning-bg: #FBF1D6;
  --info: #1C4066;
  --info-bg: #E7EDF4;

  /* Typography */
  --font-heading: 'Lora', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --max-width: 1240px;
  --content-width: 760px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 30, 51, 0.06);
  --shadow-md: 0 6px 20px rgba(14, 30, 51, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 30, 51, 0.12);

  /* Header height (used for scroll-margin) */
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.6em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 1.8em 0 0.7em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 1.5em 0 0.6em; }
h4 { font-size: 1.1rem; margin: 1.3em 0 0.5em; }

h2 .pilcrow, h3 .pilcrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75em;
  color: var(--gold-600);
  margin-left: 8px;
  opacity: 0;
  text-decoration: none;
  transition: opacity .15s ease;
}
h2:hover .pilcrow, h3:hover .pilcrow { opacity: 1; }

p { margin-bottom: 1.2em; color: var(--ink-700); }
strong { color: var(--ink-900); font-weight: 600; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-700);
  font-family: var(--font-heading);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.eyebrow.gold { color: var(--gold-700); background: var(--gold-100); }
.eyebrow.navy { color: var(--navy-700); background: var(--navy-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-600); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--navy-900); }
.btn-secondary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-secondary:hover { background: var(--navy-700); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-700); background: var(--navy-100); color: var(--navy-900); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--navy-900); }
.brand img { height: 36px; width: 36px; }
.brand .dotcom { color: var(--gold-600); font-weight: 600; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--navy-900);
  text-decoration: none;
  border-bottom-color: var(--gold-500);
}
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy-900);
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--ink-300);
  margin-top: 80px;
}
.footer-top {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { color: var(--white); }
.footer-brand .brand .dotcom { color: var(--gold-500); }
.footer-brand p {
  color: var(--ink-300);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-300);
  font-size: 0.93rem;
}
.footer-col a:hover { color: var(--gold-500); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-300);
}
.footer-bottom a { color: var(--ink-300); }
.footer-bottom a:hover { color: var(--gold-500); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Layout helpers ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-tight { padding: 32px 0; }
.text-center { text-align: center; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-cream-100 { background: var(--cream-100); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--ink-300); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { margin-bottom: 1.6em; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--navy-900); }
.hero-stat span { font-size: 0.82rem; color: var(--ink-500); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--cream-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { align-self: flex-start; margin-bottom: 10px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card-body h3 a { color: var(--navy-900); text-decoration: none; }
.card-body h3 a:hover { color: var(--teal-700); }
.card-body p { font-size: 0.93rem; color: var(--ink-500); margin-bottom: 14px; flex: 1; }
.card-meta {
  font-size: 0.8rem;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature list ---------- */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { font-size: 0.92rem; color: var(--ink-500); margin: 0; }

/* ---------- Article / Prose ---------- */
.article-shell {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
  padding: 28px 0 72px;
}
.article-header { max-width: var(--content-width); }
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--teal-700); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink-500);
  margin: 18px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-meta .author {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink-900);
}
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
}
.dot-sep::before { content: "·"; margin-right: 14px; color: var(--border-strong); }

.cover-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 8px 0 36px;
  box-shadow: var(--shadow-md);
}

.prose { max-width: var(--content-width); }
.prose > h2:first-child { margin-top: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.93rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.prose th, .prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.prose tbody tr:nth-child(even) { background: var(--cream-100); }
.prose tbody tr:last-child td { border-bottom: none; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius-md); border: 1px solid var(--border); }
.prose figcaption {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 10px;
  text-align: center;
}
.prose blockquote {
  border-left: 3px solid var(--gold-500);
  padding: 4px 0 4px 20px;
  margin: 1.6em 0;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ink-700);
  font-size: 1.05rem;
}
.prose code {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--teal-700);
}

/* Callout boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 1.8em 0;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
}
.callout svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong.callout-title { display: block; margin-bottom: 4px; color: var(--ink-900); }
.callout-info { background: var(--info-bg); border-color: #CBD9EA; color: var(--navy-800); }
.callout-info svg { color: var(--info); }
.callout-tip { background: var(--success-bg); border-color: #C7E5D9; color: var(--teal-700); }
.callout-tip svg { color: var(--success); }
.callout-warning { background: var(--warning-bg); border-color: #EFD9A8; color: #6B4D0F; }
.callout-warning svg { color: var(--warning); }
.callout-danger { background: var(--danger-bg); border-color: #F0C9C0; color: #7A2C1E; }
.callout-danger svg { color: var(--danger); }
.callout p, .callout li { color: inherit; }

/* TOC sidebar */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 0.88rem;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 12px;
}
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; counter-reset: toc; }
.toc ol li { counter-increment: toc; margin: 0; }
.toc ol li a {
  color: var(--ink-700);
  display: flex;
  gap: 10px;
  line-height: 1.4;
}
.toc ol li a::before {
  content: counter(toc);
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.toc ol li a:hover { color: var(--teal-700); text-decoration: none; }
.toc ol li a:hover::before { background: var(--teal-100); color: var(--teal-700); }
.toc-cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.toc-cta a { font-size: 0.85rem; }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  transition: transform .2s ease;
  color: var(--ink-500);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer-inner { padding: 0 22px 18px; color: var(--ink-700); font-size: 0.95rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-item.open .faq-answer { max-height: 600px; }

/* Related articles */
.related-grid { margin-top: 16px; }

/* Amazon product card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 1.6em 0;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.product-card .product-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
}
.product-card .product-icon svg { width: 28px; height: 28px; }
.product-card h4 { margin: 0 0 6px; font-size: 0.98rem; }
.product-card p { font-size: 0.84rem; color: var(--ink-500); margin-bottom: 14px; flex: 1; }
.product-card .btn { width: 100%; }
.amazon-block {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin: 2em 0;
}
.amazon-block > .eyebrow { margin-bottom: 14px; }
.amazon-block > p:first-of-type { margin-top: 4px; }
.amazon-disclosure-note {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 14px;
  margin-bottom: 0;
}

/* Author / EEAT box */
.author-box {
  display: flex;
  gap: 18px;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 2.4em 0;
  align-items: flex-start;
}
.author-box .author-avatar { width: 56px; height: 56px; font-size: 1.3rem; flex-shrink: 0; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { font-size: 0.9rem; margin-bottom: 0; color: var(--ink-500); }

/* Update badge */
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.update-badge svg { width: 14px; height: 14px; }

/* ---------- Calculator ---------- */
.calc-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.calc-inputs { padding: 32px; border-right: 1px solid var(--border); }
.calc-results { padding: 32px; background: var(--cream-100); }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.field .hint { font-size: 0.78rem; color: var(--ink-500); margin-top: 6px; }
.input-wrap { position: relative; }
.input-wrap .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-500); font-weight: 600; pointer-events: none;
}
input[type="number"], input[type="text"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink-900);
  transition: border-color .15s ease;
}
.input-wrap input[type="number"] { padding-left: 30px; }
input[type="number"]:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--teal-500);
}
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  transition: all .15s ease;
}
.radio-pill input { display: none; }
.radio-pill.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-strong);
}
.result-row:last-child { border-bottom: none; }
.result-row .label { font-size: 0.92rem; color: var(--ink-700); }
.result-row .value { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--navy-900); }
.result-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.result-card.winner { border: 2px solid var(--teal-500); }
.result-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.savings-banner {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-align: center;
  margin-top: 8px;
}
.savings-banner .amount { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--gold-500); }
.savings-banner .label { font-size: 0.85rem; color: var(--ink-300); margin-top: 4px; }

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 1.6em 0; }
.tag {
  font-size: 0.8rem;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  color: var(--ink-700);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2em 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-row span { font-size: 0.85rem; font-weight: 600; color: var(--ink-500); }
.share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700);
  background: var(--white);
}
.share-btn:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.share-btn svg { width: 17px; height: 17px; }

/* Back to top */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 400;
}
.to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--teal-700); }
.to-top svg { width: 22px; height: 22px; }

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gold-500);
  width: 0%;
  z-index: 600;
  transition: width .1s ease-out;
}

/* Page hero (non-home pages) */
.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero .lede { max-width: 680px; margin-bottom: 0; }

/* Legal pages */
.legal-prose h2 { font-size: 1.35rem; }
.legal-prose h3 { font-size: 1.1rem; }
.legal-prose p, .legal-prose li { font-size: 0.95rem; color: var(--ink-700); }
.legal-toc {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 40px;
}
.legal-toc h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 10px; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 24px; }
.legal-toc li { margin-bottom: 6px; font-size: 0.9rem; }

/* Disclaimer banner (sitewide on articles) */
.disclaimer-banner {
  background: var(--gold-100);
  border: 1px solid #EFD9A8;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #6B4D0F;
  margin: 28px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.disclaimer-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.disclaimer-banner a { color: #6B4D0F; font-weight: 600; text-decoration: underline; }

/* 404 */
.error-page { text-align: center; padding: 100px 0; }
.error-page .error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--navy-100);
  line-height: 1;
}

/* ---------- Mobile Nav ---------- */
.mobile-nav-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--cream-50);
  z-index: 450;
  overflow-y: auto;
  padding: 24px;
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel a {
  display: block;
  padding: 16px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-panel .nav-cta-mobile { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .article-shell { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col:nth-child(4) { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding: 0 18px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .hero { padding: 32px 0 40px; }
  .section { padding: 44px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 24px; text-align: left; }
  .footer-col:nth-child(4) { display: block; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
  .amazon-block { padding: 20px; }
  .author-box { flex-direction: column; }
  .legal-toc ul { columns: 1; }
  h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; }
  .radio-group { flex-direction: column; }
  .radio-pill { text-align: center; }
}

/* Print */
@media print {
  .site-header, .site-footer, .to-top, .toc, .reading-progress, .share-row, .amazon-block, .nav-cta { display: none !important; }
  .article-shell { grid-template-columns: 1fr; }
}
