/* Blog post styles — business-automation-cost */

/* Article-specific styles */
.article-content h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0A0A0B;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px dashed rgba(10,10,11,0.12);
}
.article-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0A0A0B;
  margin-top: 36px;
  margin-bottom: 12px;
}
.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(10,10,11,0.65);
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(10,10,11,0.65);
  margin-bottom: 8px;
}
.article-content strong { color: #0A0A0B; font-weight: 600; }
.article-content a {
  color: #7C3AED;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(124,58,237,0.3);
  transition: text-decoration-color 0.2s;
}
.article-content a:hover { text-decoration-color: #7C3AED; }
.article-content blockquote {
  border-left: 3px solid #7C3AED;
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(124,58,237,0.03);
  border-radius: 0 12px 12px 0;
}
.article-content blockquote p { margin-bottom: 0; font-style: italic; }

/* Definition box */
.definition-box {
  background: rgba(124,58,237,0.04);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 32px;
  border-left: 4px solid #7C3AED;
}
.definition-box p { margin-bottom: 0; font-size: 1.1rem; line-height: 1.7; }

/* Comparison table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(10,10,11,0.08);
}
.cost-table thead { background: #0A0A0B; }
.cost-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #F7F6F2;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.cost-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(10,10,11,0.06);
  color: rgba(10,10,11,0.65);
  line-height: 1.5;
}
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr:hover { background: rgba(124,58,237,0.02); }
.cost-table .row-label { font-weight: 600; color: #0A0A0B; }

/* Step cards */
.step-cards { margin: 24px 0 32px; }
.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(10,10,11,0.02);
  border: 1px dashed rgba(10,10,11,0.12);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.step-card:hover { border-color: #7C3AED; background: rgba(124,58,237,0.02); }
.step-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #7C3AED;
  line-height: 1;
  flex-shrink: 0;
}
.step-card h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0A0A0B;
  margin-bottom: 6px;
}
.step-card p { font-size: 0.95rem; line-height: 1.6; color: rgba(10,10,11,0.6); margin-bottom: 0; }

/* Stat callout */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px dashed rgba(10,10,11,0.12);
  border-radius: 12px;
  transition: all 0.25s ease;
}
.stat-item:hover { border-color: #7C3AED; transform: translateY(-2px); }
.stat-val {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.4rem;
  color: #7C3AED;
  line-height: 1;
}
.stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(10,10,11,0.45);
  margin-top: 8px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(10,10,11,0.08); padding: 24px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0A0A0B;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: #7C3AED; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(10,10,11,0.6);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }

/* TOC sidebar */
.toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.toc-sidebar a {
  display: block;
  font-size: 0.82rem;
  color: rgba(10,10,11,0.4);
  text-decoration: none;
  padding: 5px 0 5px 12px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.toc-sidebar a:hover, .toc-sidebar a.active {
  color: #7C3AED;
  border-left-color: #7C3AED;
}

/* Hidden cost card */
.hidden-cost-card {
  padding: 20px;
  background: rgba(10,10,11,0.02);
  border: 1px dashed rgba(10,10,11,0.12);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.hidden-cost-card:hover { border-color: #7C3AED; }
.hidden-cost-card h4 {
  font-weight: 700;
  color: #0A0A0B;
  margin-bottom: 6px;
  font-size: 1rem;
}
.hidden-cost-card p { font-size: 0.95rem; line-height: 1.6; color: rgba(10,10,11,0.6); margin-bottom: 0; }
.hidden-cost-card .cost-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #7C3AED;
  margin-top: 8px;
  display: block;
}

@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; }
  .step-card { flex-direction: column; gap: 12px; }
  .cost-table { font-size: 0.8rem; }
  .cost-table th, .cost-table td { padding: 10px 8px; }
}