*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #050709;
  --surface:     #0e1219;
  --surface-2:   #161c26;
  --surface-3:   #1f2733;
  --border:      #242d3b;
  --border-hi:   #334052;
  --text:        #eaeff5;
  --text-dim:    #94a3b8;
  --text-muted:  #556275;
  --red:         #ff4444;
  --red-soft:    #ff6b6b;
  --red-dim:     rgba(255,68,68,0.10);
  --red-glow:    rgba(255,68,68,0.20);
  --orange:      #f59e0b;
  --orange-dim:  rgba(245,158,11,0.10);
  --green:       #34d399;
  --green-dim:   rgba(52,211,153,0.08);
  --blue:        #60a5fa;
  --radius:      12px;
  --radius-sm:   8px;
  --font:        'DM Sans', -apple-system, sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }

/* NAV */
.mcc-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 780px; margin: 0 auto; padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.mcc-logo { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.mcc-logo span { color: var(--red); }
.mcc-nav-cta {
  font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none;
  background: var(--red-dim); border: 1px solid rgba(255,68,68,0.25);
  padding: 6px 14px; border-radius: 20px; transition: all 0.2s;
}
.mcc-nav-cta:hover { background: rgba(255,68,68,0.18); }

/* HERO */
.mcc-hero {
  max-width: 780px; margin: 0 auto; padding: 52px 20px 40px;
}
.mcc-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--orange); background: var(--orange-dim); border: 1px solid rgba(245,158,11,0.2);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.mcc-hero h1 {
  font-size: clamp(30px, 5.5vw, 52px); font-weight: 700; line-height: 1.1;
  letter-spacing: -1.5px; color: #fff; margin-bottom: 18px; 
}
.mcc-hero h1 em { color: var(--red); font-style: normal; }
.mcc-lede {
  font-size: 17px; color: var(--text-dim);  line-height: 1.65; margin-bottom: 32px;
}
.mcc-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-bottom: 40px;
}
.mcc-meta span { display: flex; align-items: center; gap: 5px; }
.mcc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-hi); }

/* ANSWER BLOCK - top of page quick answer for LLMs / featured snippets */
.mcc-answer-block {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--red); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 48px;
}
.mcc-answer-block .ab-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--red); margin-bottom: 10px;
}
.mcc-answer-block p { font-size: 15px; color: var(--text-dim); line-height: 1.7; }
.mcc-answer-block strong { color: var(--text); }

/* STAT STRIP */
.mcc-stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 52px;
}
.mcc-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px; text-align: center;
}
.mcc-stat .stat-val {
  font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--red-soft);
  line-height: 1; margin-bottom: 6px;
}
.mcc-stat .stat-label { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* CTA EMBED */
.mcc-cta-embed {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 28px 24px;
  text-align: center; margin: 40px 0;
  position: relative; overflow: hidden;
}
.mcc-cta-embed::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,68,68,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.mcc-cta-embed .cta-tag {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 10px;
}
.mcc-cta-embed h3 {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.3px;
}
.mcc-cta-embed p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
.mcc-cta-embed .cta-btn {
  display: inline-block; background: var(--red); color: #fff;
  font-weight: 700; font-size: 15px; padding: 13px 32px;
  border-radius: var(--radius-sm); text-decoration: none; transition: all 0.2s;
}
.mcc-cta-embed .cta-btn:hover { background: var(--red-soft); transform: translateY(-1px); box-shadow: 0 6px 24px var(--red-glow); }
.mcc-cta-sub { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* BODY CONTENT */
.mcc-body {
  max-width: 780px; margin: 0 auto; padding: 0 20px;
}
.mcc-body h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.3px;
  color: #fff; margin: 48px 0 14px;
  padding-top: 48px; border-top: 1px solid var(--border);
}
.mcc-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.mcc-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
.mcc-body p { font-size: 15px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.75; }
.mcc-body strong { color: var(--text); }
.mcc-body a { color: var(--red); text-decoration: none; }
.mcc-body a:hover { text-decoration: underline; }

/* DATA TABLE */
.mcc-table-wrap { overflow-x: auto; margin: 24px 0 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.mcc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mcc-table thead { background: var(--surface-2); }
.mcc-table th {
  text-align: left; padding: 12px 16px; font-family: var(--mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted);
  font-weight: 700; border-bottom: 1px solid var(--border);
}
.mcc-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.mcc-table tbody tr:last-child td { border-bottom: none; }
.mcc-table tbody tr:hover { background: var(--surface-2); }
.mcc-table td.mono { font-family: var(--mono); color: var(--text); }
.mcc-table td.red { color: var(--red-soft); font-family: var(--mono); font-weight: 700; }

/* FAQ */
.mcc-faq { margin: 40px 0; }
.mcc-faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.mcc-faq-q {
  padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--surface);
  user-select: none;
}
.mcc-faq-q:hover { background: var(--surface-2); }
.mcc-faq-q .icon { font-family: var(--mono); font-size: 18px; color: var(--red); flex-shrink: 0; transition: transform 0.2s; }
.mcc-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px; color: var(--text-dim); background: var(--surface);
  line-height: 1.7; padding: 0 20px;
}
.mcc-faq-item.open .mcc-faq-a { max-height: 300px; padding: 0 20px 18px; }
.mcc-faq-item.open .icon { transform: rotate(45deg); }

/* METHODOLOGY */
.mcc-methodology {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin: 40px 0;
}
.mcc-methodology .meth-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px;
}
.mcc-methodology p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.mcc-methodology p:last-child { margin-bottom: 0; }

/* RELATED PAGES */
.mcc-related { margin: 52px 0 0; padding-top: 40px; border-top: 1px solid var(--border); }
.mcc-related h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.mcc-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mcc-related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; text-decoration: none;
  transition: all 0.2s; display: block;
}
.mcc-related-card:hover { border-color: var(--red); transform: translateY(-2px); }
.mcc-related-card .rc-label { font-family: var(--mono); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; }
.mcc-related-card .rc-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.mcc-related-card .rc-arrow { font-size: 12px; color: var(--red); margin-top: 8px; }

/* FOOTER */
.mcc-seo-footer {
  border-top: 1px solid var(--border); margin-top: 80px; padding: 40px 20px;
}
.mcc-footer-inner { max-width: 780px; margin: 0 auto; }
.mcc-footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px;
}
.mcc-footer-grid h4 {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px;
}
.mcc-footer-grid a { display: block; font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 3px 0; }
.mcc-footer-grid a:hover { color: var(--text); }
.mcc-footer-copy { font-size: 11px; color: var(--text-muted); text-align: center; padding-top: 20px; border-top: 1px solid var(--border); }
.mcc-footer-copy a { color: var(--text-dim); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .mcc-stat-strip { grid-template-columns: 1fr 1fr; }
  .mcc-stat-strip .mcc-stat:last-child { grid-column: span 2; }
  .mcc-related-grid { grid-template-columns: 1fr; }
  .mcc-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .mcc-hero h1 { letter-spacing: -0.5px; }
}

/* Timeline (page 2) */
.mcc-timeline { margin: 28px 0 36px; border-left: 2px solid var(--border); padding-left: 24px; }
.mcc-timeline-item { position: relative; margin-bottom: 28px; }
.mcc-timeline-item::before { content: ''; position: absolute; left: -31px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.mcc-timeline-item .tl-date { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.mcc-timeline-item .tl-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.mcc-timeline-item .tl-body { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
/* Inline calculator (page 3) */
.mcc-inline-calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 32px 0; }
.mcc-inline-calc .ic-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mcc-inline-calc .ic-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.ic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ic-field label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 5px; }
.ic-field input, .ic-field select { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-family: var(--font); font-size: 14px; color: var(--text); outline: none; }
.ic-btn { width: 100%; padding: 13px; background: var(--orange); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.ic-result { display: none; margin-top: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.ic-result.show { display: block; }
.ic-result .r-amount { font-family: var(--mono); font-size: 36px; font-weight: 700; color: var(--red-soft); }
.ic-result .r-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ic-result .r-monthly { font-family: var(--mono); font-size: 16px; color: var(--text-dim); margin-top: 6px; }
.ic-result .r-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
/* Channel grid (page 4) */
.mcc-channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 36px; }
.mcc-channel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.mcc-channel .ch-icon { font-size: 24px; margin-bottom: 10px; }
.mcc-channel .ch-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mcc-channel .ch-body { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.mcc-channel .ch-impact { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-top: 8px; }
@media (max-width: 600px) { .ic-row { grid-template-columns: 1fr; } .mcc-channel-grid { grid-template-columns: 1fr; } }

/* ============ FOOTER FIX (self-contained) ============ */
.mcc-site-footer {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--border);
  font-family: var(--font);
}
.mcc-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.mcc-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--mono);
}
.mcc-footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 3px 0;
}
.mcc-footer-col a:hover { color: var(--text); }
.mcc-footer-bottom {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}
.mcc-footer-bottom a { color: var(--text-dim); text-decoration: none; }
@media (max-width: 500px) {
  .mcc-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ EMAIL CAPTURE (SEO pages) ============ */
.mcc-email-capture {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.mcc-email-capture h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.mcc-email-capture p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.mcc-email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mcc-email-row input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.mcc-email-row input[type="email"]:focus { border-color: var(--orange); }
.mcc-email-row button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.mcc-email-row button:hover { opacity: 0.9; }
.mcc-email-success {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 0;
}
