/* The Guided Conversation Article Styles */

:root {
  --ink: hsl(240, 28%, 14%);
  --ink-light: hsl(240, 20%, 22%);
  --ink-muted: hsl(240, 9%, 46%);
  --surface: hsl(40, 23%, 97%);
  --surface-warm: hsl(163, 30%, 95%);
  --surface-card: hsl(0, 0%, 100%);
  --accent: hsl(142, 71%, 45%);
  --accent-dark: hsl(142, 76%, 36%);
  --accent-glow: hsl(142, 71%, 45%, 0.07);
  --accent-warm: hsl(142, 69%, 58%);
  --red: hsl(355, 78%, 56%);
  --red-glow: hsl(355, 78%, 56%, 0.07);
  --gold: hsl(31, 53%, 64%);
  --gold-light: hsl(30, 57%, 86%);
  --teal: hsl(173, 58%, 39%);
  --purple: hsl(255, 92%, 76%);
  --purple-glow: hsl(255, 92%, 76%, 0.08);
  --blue: hsl(213, 94%, 68%);
  --blue-glow: hsl(213, 94%, 68%, 0.08);
  --amber: hsl(43, 96%, 56%);
  --amber-glow: hsl(43, 96%, 56%, 0.08);
  --border: hsl(33, 16%, 89%);
  --border-light: hsl(33, 23%, 92%);
  --shadow-sm: 0 1px 3px hsl(240, 28%, 14%, 0.06);
  --shadow-md: 0 4px 16px hsl(240, 28%, 14%, 0.08);
  --shadow-lg: 0 8px 32px hsl(240, 28%, 14%, 0.10);
  --radius: 8px;
  --radius-lg: 16px;
  --max-w: 780px;
  --max-w-wide: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: 88px !important; /* Space for fixed navigation */
}

/* Material Symbols - Filled, 400 weight, Rounded */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Icon sizing for different contexts */
.hero-meta .material-symbols-rounded {
  font-size: 0.9rem;
}

.deep-dive-icon .material-symbols-rounded {
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.engine-icon .material-symbols-rounded {
  font-size: 1.4rem;
  color: var(--ink);
}

.engine-icon.green .material-symbols-rounded {
  color: var(--accent-dark);
}

.engine-icon.amber .material-symbols-rounded {
  color: hsl(32, 95%, 44%);
}

.engine-icon.purple .material-symbols-rounded {
  color: hsl(262, 83%, 58%);
}

.engine-icon.blue .material-symbols-rounded {
  color: hsl(221, 83%, 53%);
}

.share-btn .material-symbols-rounded {
  font-size: 1rem;
}

.article-header,
.hero {
  margin-top: 0 !important; /* Prevent double spacing */
}

/* Progress bar styles moved to components/blog-progress-bar.css */

/* Top bar styles moved to components/blog-top-bar.css */

/* ── Hero ── */
.hero {
  background: linear-gradient(165deg, hsl(136, 27%, 8%) 0%, var(--ink) 40%, hsl(224, 48%, 16%) 100%);
  color: hsl(0, 0%, 100%);
  padding: 80px 24px 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, hsl(142, 71%, 45%, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, hsl(142, 69%, 58%, 0.08) 0%, transparent 50%);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: hsl(0, 0%, 100%, 0.08);
  border: 1px solid hsl(0, 0%, 100%, 0.12);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-warm); margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero h1 {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: hsl(0, 0%, 100%, 0.7);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 0.78rem;
  color: hsl(0, 0%, 100%, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Article Body ── */
.article-wrap {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 24px 80px;
  align-items: start;
}
@media (max-width: 860px) {
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
}

/* ── Sidebar TOC ── */
.toc { position: sticky; top: 80px; padding: 24px 0; }
@media (max-width: 860px) {
  .toc {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px; margin-bottom: 32px;
  }
}
.toc-label {
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-muted);
  font-weight: 700; margin-bottom: 16px;
}
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid var(--border);
  transition: all 0.2s; line-height: 1.4;
}
.toc a:hover, .toc a.active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

/* ── Article Content ── */
.article { max-width: var(--max-w); }
.article h2 {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.55rem; font-weight: 900;
  margin: 56px 0 20px; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--ink);
  scroll-margin-top: 80px;
}
.article h2:first-of-type { margin-top: 0; }
.article h3 {
  font-size: 1.11rem; font-weight: 700;
  margin: 40px 0 14px; color: var(--ink-light);
}
.article p {
  margin-bottom: 20px; color: var(--ink-light);
  font-size: 0.89rem; line-height: 1.8;
}
.article strong { color: var(--ink); font-weight: 700; }

/* ── Key Takeaway Box ── */
.key-takeaway {
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.key-takeaway.red {
  background: var(--red-glow);
  border-left-color: var(--red);
}
.key-takeaway-label {
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent-dark);
  font-weight: 700; margin-bottom: 8px;
}
.key-takeaway.red .key-takeaway-label { color: var(--red); }
.key-takeaway p {
  color: var(--ink); font-weight: 600;
  margin-bottom: 0; font-size: 1rem; line-height: 1.65;
}

/* ── Stat Card ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 32px 0;
}
.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .num {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.4rem; font-weight: 900;
  color: var(--accent-dark); line-height: 1; margin-bottom: 6px;
}
.stat-card .num.red { color: var(--red); }
.stat-card .label {
  font-size: 0.78rem; color: var(--ink-muted); font-weight: 500;
}

/* ── Comparison Table ── */
.comparison {
  margin: 36px 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.comparison-header {
  display: grid; grid-template-columns: 1fr 1fr;
}
.comparison-header div {
  padding: 14px 20px; font-weight: 700;
  font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.04em; text-align: center;
}
.comparison-header .bad-header {
  background: hsl(0, 86%, 97%); color: var(--red);
  border-bottom: 2px solid var(--red);
}
.comparison-header .good-header {
  background: hsl(138, 76%, 97%); color: var(--accent-dark);
  border-bottom: 2px solid var(--accent);
}
.comparison-body {
  display: grid; grid-template-columns: 1fr 1fr;
}
.comparison-body div {
  padding: 14px 20px; font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-light); line-height: 1.5;
}
.comparison-body div:nth-child(odd) {
  border-right: 1px solid var(--border-light);
  background: hsl(0, 100%, 99%);
}
.comparison-body div:nth-child(even) { background: hsl(120, 50%, 98%); }

/* ── Funnel Visual ── */
.funnel-visual {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px; margin: 36px 0;
  box-shadow: var(--shadow-md);
}
.funnel-visual h4 {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 24px; text-align: center; color: var(--ink);
}
.funnel-step {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 6px;
}
.funnel-bar-wrap {
  flex: 1; position: relative;
}
.funnel-bar {
  height: 40px; border-radius: 8px;
  display: flex; align-items: center;
  padding: 0 16px;
  font-size: 0.78rem; font-weight: 700;
  color: hsl(0, 0%, 100%); transition: width 0.3s;
}
.funnel-bar.full { background: var(--ink-muted); }
.funnel-bar.green { background: var(--accent); }
.funnel-bar.red { background: var(--red); opacity: 0.8; }
.funnel-label {
  flex-shrink: 0; width: 60px; text-align: right;
  font-size: 0.72rem; color: var(--ink-muted); font-weight: 600;
}
.funnel-divider {
  text-align: center; font-size: 0.68rem; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  margin: 16px 0 12px; padding: 8px 0;
  border-top: 1px dashed var(--border);
}

/* ── Quiz Step Visual ── */
.quiz-steps {
  counter-reset: qstep;
  margin: 28px 0;
}
.quiz-step {
  counter-increment: qstep;
  display: flex; align-items: flex-start;
  gap: 16px; margin-bottom: 4px;
  position: relative;
}
.quiz-step-num {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 12px; background: var(--accent-glow);
  border: 1px solid hsl(142, 71%, 45%, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: var(--accent-dark);
  z-index: 2;
}
.quiz-step-connector {
  width: 2px; height: 16px;
  background: hsl(142, 71%, 45%, 0.15); margin-left: 19px;
}
.quiz-step-content h5 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--ink); margin-bottom: 2px;
}
.quiz-step-content .q-question {
  font-size: 0.88rem; font-style: italic;
  color: var(--accent-dark); margin-bottom: 4px;
}
.quiz-step-content p {
  font-size: 0.82rem; color: var(--ink-muted);
  margin-bottom: 0; line-height: 1.5;
}

/* ── Engine Card ── */
.engine-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; margin: 28px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.engine-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.engine-card.green::before { background: var(--accent); }
.engine-card.amber::before { background: var(--amber); }
.engine-card.purple::before { background: var(--purple); }
.engine-card.blue::before { background: var(--blue); }
.engine-card.red::before { background: var(--red); }
.engine-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.engine-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.engine-icon.green { background: var(--accent-glow); }
.engine-icon.amber { background: var(--amber-glow); }
.engine-icon.purple { background: var(--purple-glow); }
.engine-icon.blue { background: var(--blue-glow); }
.engine-icon.red { background: var(--red-glow); }
.engine-name {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.engine-tagline {
  font-size: 0.78rem; color: var(--ink-muted);
}
.engine-card p {
  font-size: 0.92rem; color: var(--ink-light);
  line-height: 1.7; margin-bottom: 0;
}

/* ── Inline CTA ── */
.inline-cta {
  background: linear-gradient(135deg, hsl(136, 27%, 8%) 0%, var(--ink) 60%, hsl(224, 48%, 16%) 100%);
  color: hsl(0, 0%, 100%); border-radius: var(--radius-lg);
  padding: 40px 36px; margin: 48px 0;
  position: relative; overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, hsl(142, 71%, 45%, 0.15), transparent 70%);
  border-radius: 50%;
}
.inline-cta h3 {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 10px; color: hsl(0, 0%, 100%); position: relative;
}
.inline-cta p {
  color: hsl(0, 0%, 100%, 0.7); margin-bottom: 24px;
  font-size: 0.95rem; max-width: 500px; position: relative;
}
.inline-cta .cta-btn {
  display: inline-block; background: var(--accent); color: hsl(0, 0%, 100%);
  padding: 14px 32px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.88rem; transition: all 0.2s;
  position: relative;
}
.inline-cta .cta-btn:hover {
  background: var(--accent-warm); transform: translateY(-1px);
  box-shadow: 0 6px 20px hsl(142, 71%, 45%, 0.3);
}

/* ── Blockquote ── */
.article blockquote {
  border: none; background: var(--surface-warm);
  border-radius: var(--radius-lg); padding: 28px 32px;
  margin: 32px 0;
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.15rem; font-style: italic;
  line-height: 1.6; color: var(--ink); position: relative;
}
.article blockquote::before {
  content: '\201C'; font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 4rem; position: absolute;
  top: -8px; left: 20px; color: var(--accent);
  opacity: 0.3; line-height: 1;
}

/* ── Deep Dive Link ── */
.deep-dive {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.2s;
  text-decoration: none;
}
.deep-dive:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.deep-dive-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.deep-dive-text { flex: 1; }
.deep-dive-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-dark); margin-bottom: 2px;
}
.deep-dive-title {
  font-size: 0.88rem; font-weight: 700;
  color: var(--ink); line-height: 1.35;
}
.deep-dive-arrow {
  font-size: 1.1rem; color: var(--ink-muted);
  transition: transform 0.2s;
}
.deep-dive:hover .deep-dive-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── Share Bar ── */
.share-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.share-label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 700;
}
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  font-size: 0.8rem; color: var(--ink-muted);
}
.share-btn:hover {
  border-color: var(--accent); color: var(--accent-dark);
  background: var(--accent-glow);
}

/* Author Box styles moved to components/blog-author-box.css */

/* ── Cluster Hub Section ── */
.cluster-hub {
  background: var(--surface-warm);
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cluster-hub-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.cluster-hub-header {
  text-align: center;
  margin-bottom: 48px;
}
.cluster-hub-header h2 {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem; font-weight: 900;
  margin-bottom: 12px; color: var(--ink);
}
.cluster-hub-header p {
  font-size: 1rem; color: var(--ink-muted);
  max-width: 560px; margin: 0 auto; line-height: 1.65;
}
.cluster-rung { margin-bottom: 40px; }
.cluster-rung:last-child { margin-bottom: 0; }
.cluster-rung-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: 16px;
}
.cluster-rung-label .rung-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.rung-dot.r1 { background: var(--red); }
.rung-dot.r2 { background: var(--purple); }
.rung-dot.r3 { background: var(--amber); }
.rung-dot.r4 { background: var(--accent); }
.rung-dot.r5 { background: var(--blue); }
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cluster-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm);
}
.cluster-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cluster-card-num {
  font-size: 0.65rem; font-weight: 700;
  color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cluster-card-title {
  font-size: 0.92rem; font-weight: 700;
  color: var(--ink); line-height: 1.35;
}
.cluster-card-desc {
  font-size: 0.78rem; color: var(--ink-muted);
  line-height: 1.5;
}
.cluster-card-tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px;
  margin-top: auto; width: fit-content;
}
.tag-r1 { background: var(--red-glow); color: var(--red); }
.tag-r2 { background: var(--purple-glow); color: var(--purple); }
.tag-r3 { background: var(--amber-glow); color: hsl(43, 89%, 38%); }
.tag-r4 { background: var(--accent-glow); color: var(--accent-dark); }
.tag-r5 { background: var(--blue-glow); color: var(--blue); }

/* ── Final CTA Section ── */
.final-cta {
  background: linear-gradient(165deg, hsl(136, 27%, 8%) 0%, var(--ink) 40%, hsl(224, 48%, 16%) 100%);
  padding: 80px 24px; text-align: center;
  color: hsl(0, 0%, 100%); position: relative; overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, hsl(142, 71%, 45%, 0.1) 0%, transparent 60%);
}
.final-cta-inner {
  max-width: 600px; margin: 0 auto; position: relative;
}
.final-cta h2 {
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem; font-weight: 900; margin-bottom: 16px;
}
.final-cta p {
  color: hsl(0, 0%, 100%, 0.65); font-size: 1.05rem;
  line-height: 1.7; margin-bottom: 36px;
}
.cta-buttons {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: hsl(0, 0%, 100%);
  padding: 16px 36px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
  font-size: 0.95rem; transition: all 0.2s;
}
.cta-primary:hover {
  background: var(--accent-warm); transform: translateY(-1px);
  box-shadow: 0 8px 24px hsl(142, 71%, 45%, 0.3);
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: hsl(0, 0%, 100%);
  padding: 16px 36px; border-radius: 8px;
  border: 1px solid hsl(0, 0%, 100%, 0.2);
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem; transition: all 0.2s;
}
.cta-secondary:hover {
  background: hsl(0, 0%, 100%, 0.06);
  border-color: hsl(0, 0%, 100%, 0.35);
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: hsl(0, 0%, 100%, 0.4);
  padding: 40px 24px; text-align: center;
  font-size: 0.78rem; line-height: 1.7;
  border-top: 1px solid hsl(0, 0%, 100%, 0.06);
}
.footer strong { color: hsl(0, 0%, 100%, 0.7); }

/* ── Math Table ── */
.math-table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: 0.88rem;
}
.math-table thead th {
  padding: 14px 16px; text-align: left;
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700;
}
.math-table thead th:first-child { background: hsl(60, 12%, 97%); color: var(--ink-muted); }
.math-table thead th.col-bad { background: hsl(0, 86%, 97%); color: var(--red); }
.math-table thead th.col-good { background: hsl(138, 76%, 97%); color: var(--accent-dark); }
.math-table tbody td {
  padding: 12px 16px; border-top: 1px solid var(--border-light);
  color: var(--ink-light);
}
.math-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.math-table tbody tr:last-child td {
  font-weight: 700; border-top: 2px solid var(--border);
}
.math-table tbody tr:last-child td:nth-child(2) { color: var(--red); }
.math-table tbody tr:last-child td:nth-child(3) { color: var(--accent-dark); }

/* ── Responsive ── */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { padding: 48px 20px 56px; }
  .article-wrap { padding: 32px 20px 60px; }
  .stat-row { grid-template-columns: 1fr; }
  .comparison-header, .comparison-body { grid-template-columns: 1fr; }
  .comparison-header .bad-header { border-bottom: none; }
  .comparison-body div:nth-child(odd) { border-right: none; }
  .cta-buttons { flex-direction: column; }
  .cluster-grid { grid-template-columns: 1fr; }
  .math-table { font-size: 0.8rem; }
  .math-table thead th, .math-table tbody td { padding: 10px 12px; }
  .engine-card { padding: 22px; }
}
