/* ═══════════════════════════════════════════════════════
   LifeEventCosts.com — Design System v2
   Data Intelligence Platform Aesthetic
   Reference: NerdWallet · Visual Capitalist · Numbeo
═══════════════════════════════════════════════════════ */

:root {
  /* Core palette */
  --navy:      #0a1628;
  --navy-800:  #0f2040;
  --navy-600:  #1a3a5c;
  --navy-400:  #2d5a8e;
  --navy-lt:   #e8eef7;
  --navy-xlt:  #f0f4fa;

  /* Accent */
  --teal:      #0891b2;
  --teal-dk:   #0e7490;
  --teal-lt:   #ecfeff;
  --teal-glow: rgba(8,145,178,0.15);

  /* Data colors */
  --green:     #059669;
  --green-lt:  #ecfdf5;
  --amber:     #d97706;
  --amber-lt:  #fffbeb;
  --red:       #dc2626;
  --red-lt:    #fef2f2;
  --purple:    #7c3aed;
  --purple-lt: #f5f3ff;
  --orange:    #ea580c;
  --orange-lt: #fff7ed;

  /* Neutrals */
  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-500:  #6b7280;
  --gray-300:  #d1d5db;
  --gray-100:  #f3f4f6;
  --gray-50:   #f9fafb;
  --white:     #ffffff;

  /* Semantic */
  --text:      var(--gray-900);
  --text-md:   var(--gray-700);
  --text-sm:   var(--gray-500);
  --border:    var(--gray-300);
  --bg:        var(--gray-50);

  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'DM Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(10,22,40,0.08), 0 1px 4px rgba(10,22,40,0.04);
  --shadow-lg:  0 12px 32px rgba(10,22,40,0.12), 0 4px 8px rgba(10,22,40,0.06);
  --shadow-xl:  0 24px 48px rgba(10,22,40,0.16);
}
/* ── TOGGLE BUTTONS ─────────────────── */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.toggle-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-md);
  background: var(--white);
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: all 0.15s;
  user-select: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toggle-btn:last-child { border-right: none; }
.toggle-btn.active { background: var(--navy); color: white; }
.toggle-btn:hover:not(.active) { background: var(--navy-lt); }

/* Smaller toggle text on mobile */
@media (max-width: 860px) {
  .toggle-btn {
    font-size: 12px;
    padding: 10px 4px;
  }
}


/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── UTILITY ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text-sm); }
.font-mono   { font-family: var(--font-mono); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.badge-teal   { background: var(--teal-lt); color: var(--teal-dk); border: 1px solid rgba(8,145,178,0.2); }
.badge-navy   { background: var(--navy-lt); color: var(--navy-600); border: 1px solid rgba(26,58,92,0.2); }
.badge-green  { background: var(--green-lt); color: var(--green); border: 1px solid rgba(5,150,105,0.2); }
.badge-amber  { background: var(--amber-lt); color: var(--amber); border: 1px solid rgba(217,119,6,0.2); }

/* ── AD SLOTS ── */
.ad-slot {
  background: var(--gray-100); border: 1px dashed var(--gray-300);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: var(--gray-500);
  font-family: var(--font-mono); letter-spacing: 1px;
}

/* ── TOPBAR ── */
.topbar { background: var(--navy); height: 3px; }

/* ── NAV ── */
nav {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 62px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 17px;
  box-shadow: 0 2px 8px rgba(10,22,40,0.25);
}
.logo-name {
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  color: var(--navy); letter-spacing: -0.3px;
}
.logo-name em { font-style: normal; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-md);
  text-decoration: none; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--navy-lt); color: var(--navy); text-decoration: none; }
.nav-links a.active { background: var(--navy-lt); color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--teal) !important; color: white !important;
  padding: 7px 16px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-dk) !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 13px; color: var(--text-sm);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb-sep { color: var(--gray-300); margin: 0 2px; }

/* ── SECTION ── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }
.section-teal { background: linear-gradient(135deg, var(--teal-dk), var(--teal)); }
.section-alt { background: var(--navy-xlt); }
.section-bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 10px;
}
.section-sub {
  font-size: 16px; color: var(--text-sm); max-width: 600px; line-height: 1.7;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% -10%, rgba(8,145,178,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at -10% 110%, rgba(26,58,92,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--teal);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700; color: white; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 mark {
  background: none; color: #5eead4;
  border-bottom: 2px solid rgba(94,234,212,0.4);
}
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.6);
  line-height: 1.75; margin-bottom: 32px; max-width: 520px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: white;
  padding: 13px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(8,145,178,0.35);
}
.btn-hero-primary:hover { background: var(--teal-dk); transform: translateY(-1px); text-decoration: none; }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75);
  padding: 13px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.4); color: white; text-decoration: none; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-proof-item { font-size: 13px; color: rgba(255,255,255,0.45); }
.hero-proof-item strong { color: white; display: block; font-size: 20px; font-family: var(--font-serif); }

/* Hero right panel */
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl); padding: 24px;
  backdrop-filter: blur(8px);
}
.hero-panel-title {
  font-size: 12px; font-family: var(--font-mono); letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.stat-card:last-child { margin-bottom: 0; }
.stat-card:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.stat-card-left { display: flex; align-items: center; gap: 12px; }
.stat-card-icon { font-size: 20px; flex-shrink: 0; }
.stat-card-label { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.stat-card-sub { font-size: 11px; color: rgba(255,255,255,0.35); }
.stat-card-value { font-family: var(--font-mono); font-size: 15px; color: #5eead4; font-weight: 500; }
.stat-card-arrow { color: rgba(255,255,255,0.25); font-size: 14px; margin-left: 8px; }

/* ── CATEGORY CARDS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: all 0.2s; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card-top {
  height: 6px;
  background: var(--cat-color, var(--navy));
}
.cat-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.cat-card-icon { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.cat-card-eyebrow {
  font-size: 10px; font-family: var(--font-mono); letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-sm); margin-bottom: 6px;
}
.cat-card h3 {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px; line-height: 1.3;
}
.cat-card p { font-size: 14px; color: var(--text-md); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.cat-card-avg {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px;
}
.cat-card-avg-num {
  font-family: var(--font-serif); font-size: 26px; font-weight: 700;
  color: var(--cat-color, var(--navy));
}
.cat-card-avg-label { font-size: 12px; color: var(--text-sm); }
.cat-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--gray-100);
  font-size: 13px; font-weight: 600; color: var(--cat-color, var(--navy));
}
.cat-card-footer span { display: flex; align-items: center; gap: 5px; }
.cat-card-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.pill {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: var(--gray-100); color: var(--text-sm);
  font-family: var(--font-mono);
}

/* Wide card variant */
.cat-card.wide { grid-column: span 2; flex-direction: row; }
.cat-card.wide .cat-card-top { width: 6px; height: auto; flex-shrink: 0; }
.cat-card.wide .cat-card-body { padding: 28px; }

/* ── DATA TABLE ── */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.data-table thead tr { background: var(--navy); }
.data-table th {
  padding: 13px 16px; text-align: left; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7); letter-spacing: 0.5px;
  font-family: var(--font-mono); white-space: nowrap;
}
.data-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.data-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  color: var(--text-md); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--gray-50); }
.data-table tr:hover td { background: var(--teal-lt); }
.data-num { font-family: var(--font-mono); color: var(--navy); font-weight: 500; }
.data-num.green { color: var(--green); }
.data-num.amber { color: var(--amber); }
.data-num.red   { color: var(--red); }
.data-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; }

/* ── STAT BOXES ── */
.stat-grid { display: grid; gap: 16px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.stat-box-num {
  font-family: var(--font-serif); font-size: 32px; font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: 6px;
}
.stat-box-label { font-size: 13px; color: var(--text-sm); line-height: 1.4; }
.stat-box-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-family: var(--font-mono);
  margin-top: 8px; padding: 2px 8px; border-radius: 10px;
}
.trend-up   { background: var(--red-lt); color: var(--red); }
.trend-down { background: var(--green-lt); color: var(--green); }

/* ── INFO BOXES ── */
.info-box {
  display: flex; gap: 14px; padding: 16px 20px;
  border-radius: var(--radius); margin: 20px 0;
}
.info-box-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-box-body { font-size: 14px; color: var(--text-md); line-height: 1.7; }
.info-box-body strong { color: var(--text); }
.info-box-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }

.info-box.insight { background: var(--teal-lt); border-left: 4px solid var(--teal); }
.info-box.warning { background: var(--amber-lt); border-left: 4px solid var(--amber); }
.info-box.success { background: var(--green-lt); border-left: 4px solid var(--green); }
.info-box.data    { background: var(--navy-lt);  border-left: 4px solid var(--navy-600); }

/* ── COMPARISON TABLE ── */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0; }
.compare-col {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.compare-col.featured { border-color: var(--teal); border-width: 2px; }
.compare-col-header { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.compare-col-icon { font-size: 28px; margin-bottom: 8px; }
.compare-col h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--navy); }
.compare-avg {
  font-family: var(--font-serif); font-size: 30px; font-weight: 700;
  margin: 10px 0 4px; color: var(--navy);
}
.compare-avg.green { color: var(--green); }
.compare-range { font-size: 12px; color: var(--text-sm); margin-bottom: 14px; }
.compare-col ul { list-style: none; }
.compare-col ul li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--text-md); padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}
.compare-col ul li:last-child { border-bottom: none; }
.check { color: var(--green); flex-shrink: 0; font-weight: 700; }
.cross { color: var(--red); flex-shrink: 0; }

/* ── QUOTE / CALLOUT ── */
.callout {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 28px 32px;
  color: white; margin: 28px 0;
}
.callout-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 10px; text-transform: uppercase; }
.callout-num { font-family: var(--font-serif); font-size: 44px; font-weight: 700; color: #5eead4; line-height: 1; margin-bottom: 8px; }
.callout-text { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ── CTA BOXES ── */
.cta-box {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 28px 32px; color: white; margin: 28px 0; text-align: center;
}
.cta-box h3 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 8px; }
.cta-box p { font-size: 14px; opacity: 0.6; margin-bottom: 18px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal); color: white; padding: 11px 22px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
}
.btn-primary:hover { background: var(--teal-dk); text-decoration: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); color: var(--text-md);
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; gap: 16px;
  font-weight: 600; font-size: 15px; color: var(--navy); list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
details[open] .faq-q { color: var(--teal); }
.faq-icon { color: var(--gray-300); font-size: 20px; flex-shrink: 0; transition: transform 0.2s; }
details[open] .faq-icon { transform: rotate(45deg); color: var(--teal); }
.faq-a {
  padding: 0 0 18px; font-size: 15px; color: var(--text-md); line-height: 1.75;
}
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── METHODOLOGY ── */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 20px;
  text-align: center;
}
.method-icon { font-size: 28px; margin-bottom: 12px; }
.method-card h4 { font-size: 14px; font-weight: 600; color: white; margin-bottom: 6px; }
.method-card p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sm); }
.trust-icon { font-size: 16px; }

/* ── TRENDING ── */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: all 0.15s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { color: var(--teal); text-decoration: none; }
.trending-rank {
  font-family: var(--font-mono); font-size: 13px; color: var(--gray-300);
  width: 24px; flex-shrink: 0; text-align: center;
}
.trending-icon { font-size: 18px; flex-shrink: 0; }
.trending-title { font-size: 14px; font-weight: 500; flex: 1; }
.trending-value { font-family: var(--font-mono); font-size: 13px; color: var(--teal); flex-shrink: 0; }

.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* ── NEWSLETTER ── */
.newsletter-box {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-xl); padding: 40px;
  display: flex; gap: 40px; align-items: center;
}
.newsletter-text { flex: 1; }
.newsletter-text h3 { font-family: var(--font-serif); font-size: 22px; color: white; margin-bottom: 8px; }
.newsletter-text p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-input {
  padding: 11px 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: white; font-size: 14px;
  width: 240px; font-family: var(--font-sans);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { outline: none; border-color: var(--teal); }
.newsletter-btn {
  padding: 11px 20px; background: var(--teal); color: white;
  border: none; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: var(--font-sans);
  transition: background 0.15s; white-space: nowrap;
}
.newsletter-btn:hover { background: var(--teal-dk); }

/* ── SIDEBAR ── */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.tool-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--gray-50); transition: all 0.15s; margin-bottom: 10px; }
.tool-link:last-child { margin-bottom: 0; }
.tool-link:hover { border-color: var(--teal); background: var(--teal-lt); text-decoration: none; }
.tool-link-icon { font-size: 22px; }
.tool-link-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.tool-link-sub { font-size: 12px; color: var(--text-sm); }
.tool-link-arrow { margin-left: auto; color: var(--gray-300); font-size: 16px; }
.related-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--teal); text-decoration: none; line-height: 1.4; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--teal-dk); }

/* ── ARTICLE HERO ── */
.article-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 40px 0 36px; }
.article-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; margin-bottom: 14px; }
.article-hero h1 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 38px); font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-sm); }
.article-meta strong { color: var(--text-md); }

/* ── ARTICLE BODY ── */
.article-body h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--navy); margin: 36px 0 14px; padding-top: 4px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--navy); margin: 24px 0 10px; }
.article-body p { font-size: 15px; color: var(--text-md); margin-bottom: 16px; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { font-size: 15px; color: var(--text-md); margin-bottom: 8px; line-height: 1.65; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--teal); }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.25); font-family: var(--font-mono); }
.footer-logo-text { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: white; text-decoration: none; }
.footer-logo-text em { font-style: normal; color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.wide { grid-column: span 2; }
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { position: relative; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card.wide { grid-column: span 1; flex-direction: column; }
  .cat-card.wide .cat-card-top { width: 100%; height: 6px; }
  .compare-grid { grid-template-columns: 1fr; }
  .stat-grid-3 { grid-template-columns: 1fr 1fr; }
  .newsletter-box { flex-direction: column; gap: 24px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .guides-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .ad-slot { max-width: 100%; }
}
@media (max-width: 480px) {
  .stat-grid-3, .stat-grid-4 { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
