/* Eupresa Theme - Solo Entrepreneur + AI Agents */
:root {
  --primary: #4f46e5;      /* Indigo-600 — WCAG AA compliant (6.3:1 on white) */
  --secondary: #8b5cf6;    /* Purple */
  --accent: #10b981;       /* Emerald */
  --dark: #1e1b4b;         /* Deep indigo */
  --light: #f5f3ff;        /* Light purple */
  --text: #334155;
  --muted: #64748b;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fafafa;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo span { color: var(--secondary); }

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 32px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #312e81 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Hero Eyebrow */
.hero-eyebrow {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* How It Works Steps */
.how-it-works {
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step {
  padding: 32px 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--dark);
}

section .subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 48px;
}

/* Agent Cards */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.agent-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.agent-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.agent-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.agent-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  background: var(--light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Testimonial */
.testimonial {
  background: white;
  border-radius: 16px;
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 24px;
}

.testimonial cite {
  font-style: normal;
  color: var(--muted);
}

/* CTA Section */
.cta-section {
  background: var(--dark);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

/* Content */
main.content {
  padding: 48px 0;
  min-height: 60vh;
  background: white;
}

main.content h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--dark);
}

main.content h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
  color: var(--dark);
}

main.content h3 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--dark);
}

main.content p {
  margin-bottom: 16px;
}

main.content ul, main.content ol {
  margin: 16px 0 16px 24px;
}

main.content li {
  margin-bottom: 8px;
}

main.content a {
  color: var(--primary);
}

/* ── Specificity overrides: article-hero inside main.content ── */
main.content .article-hero h1 {
  color: #ffffff;
}

main.content .article-hero .hero-description {
  color: rgba(255, 255, 255, 0.9);
}

main.content .article-hero .hero-icon {
  color: #ffffff;
}

/* ── Specificity overrides: buttons inside main.content ── */
main.content a.btn,
main.content a.btn-primary,
main.content a.btn-secondary,
main.content .cta-box a.btn {
  color: white;
}

main.content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

/* ── Professional Table Styling ── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: white;
  position: relative;
}

.table-wrapper.is-scrollable::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9));
  pointer-events: none;
  border-radius: 0 12px 12px 0;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s;
}

.table-wrapper.scrolled-end::after {
  opacity: 0;
}

.table-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 0 0;
  letter-spacing: 0.02em;
}

main.content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  margin: 0;
}

main.content th, main.content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

main.content td {
  white-space: normal;
  min-width: 120px;
}

main.content th {
  background: var(--dark);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  z-index: 1;
}

main.content th:first-child {
  border-radius: 12px 0 0 0;
}

main.content th:last-child {
  border-radius: 0 12px 0 0;
}

main.content tbody tr:nth-child(even) {
  background: #f8fafc;
}

main.content tbody tr:hover {
  background: #eef2ff;
  transition: background 0.15s;
}

main.content tbody td:first-child {
  font-weight: 600;
  color: var(--dark);
  border-left: 3px solid var(--primary);
}

main.content tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

main.content tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}

main.content tbody tr:last-child td {
  border-bottom: none;
}

/* Highlight rows containing "Total", "Resultado", "Recomend" */
main.content tbody tr.row-highlight {
  background: linear-gradient(90deg, #eef2ff 0%, #e8f5e9 100%);
  font-weight: 600;
}

main.content tbody tr.row-highlight td {
  border-bottom-color: var(--primary);
}

/* Price values emphasis */
main.content td strong,
main.content td b {
  color: var(--dark);
  font-size: 1em;
}

/* Article Hero Banner */
.article-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #312e81 100%);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.article-hero .hero-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.article-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  color: white;
}

.article-hero .hero-description {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Inline CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--light) 0%, #ede9fe 100%);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 0 0 12px 0;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
}

.cta-box .btn {
  font-size: 1rem;
}

/* Newsletter Form */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 64px 0;
  text-align: center;
  color: white;
}

.newsletter-section h2 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.newsletter-section .subtitle {
  color: rgba(255,255,255,0.95);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
}

.newsletter-form button {
  padding: 14px 28px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.newsletter-privacy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
}

/* Footer Newsletter (compact) */
.footer-newsletter {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-newsletter h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-newsletter .newsletter-form input[type="email"] {
  min-width: 200px;
}

/* Ferramentas Grid */
.tool-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.tool-card .tool-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tool-card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.tool-card .tool-tag {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 6px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

/* Blog Post Cards (for list pages) */
.post-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.post-card h2 {
  margin: 0 0 8px 0;
}

.post-card h2 a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h2 a:hover {
  color: var(--primary);
}

/* Related Posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.related-posts h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--dark);
}

.related-grid {
  display: grid;
  gap: 16px;
}

.related-card {
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s;
}

.related-card:hover {
  background: var(--light);
}

.related-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--primary);
}

.related-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Article Meta */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
  text-align: center;
}

footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

footer .links {
  margin-bottom: 24px;
}

footer .links a {
  margin: 0 16px;
}

/* Nav CTA Button */
nav a.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

nav a.nav-cta:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding: 8px 0;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text);
}

/* Table of Contents */
.toc {
  background: var(--light);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  margin-bottom: 12px;
}

.toc nav#TableOfContents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc nav#TableOfContents > ul > li {
  margin-bottom: 6px;
}

.toc nav#TableOfContents a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

.toc nav#TableOfContents a:hover {
  text-decoration: underline;
}

.toc nav#TableOfContents ul ul {
  padding-left: 16px;
}

.toc nav#TableOfContents ul ul a {
  color: #475569;  /* slate-600: 5.7:1 on --light (#f5f3ff), passes WCAG AA */
  font-size: 0.85rem;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}

.share-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--text);
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.share-whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-twitter:hover { border-color: #1DA1F2; color: #000; }
.share-linkedin:hover { border-color: #0077B5; color: #0077B5; }
.share-copy:hover { border-color: var(--primary); color: var(--primary); }

/* Post Card Improvements */
.post-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.post-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-tag {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

a.post-tag:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.post-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ── Article section dividers ── */
main.content h2 {
  padding-top: 48px;
  margin-top: 0;
  border-top: 2px solid #eef2f7;
}

main.content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* ── Summary/conclusion table prominence ── */
main.content h2:last-of-type + .table-wrapper,
main.content h2:last-of-type + p + .table-wrapper {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  border: 2px solid var(--primary);
}

/* ──── Responsive / Mobile ──── */

/* Tables on tablets */
@media (max-width: 1024px) {
  main.content th, main.content td {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 24px; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 48px 0; }

  /* Responsive tables on mobile */
  .table-wrapper {
    margin: 24px -16px;
    border-radius: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  }

  .table-wrapper.is-scrollable::after {
    border-radius: 0;
  }

  .table-scroll-hint {
    display: block;
  }

  main.content table {
    font-size: 0.85rem;
  }

  main.content th, main.content td {
    padding: 10px 12px;
  }

  main.content th:first-child,
  main.content th:last-child {
    border-radius: 0;
  }

  main.content tbody tr:last-child td:first-child,
  main.content tbody tr:last-child td:last-child {
    border-radius: 0;
  }

  main.content td {
    min-width: 100px;
  }

  /* Relax section dividers on mobile */
  main.content h2 {
    padding-top: 32px;
  }

  /* Mobile hamburger */
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 150;
  }

  nav.open {
    display: flex;
  }

  nav a {
    margin: 0;
    padding: 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid #e2e8f0;
    width: 80%;
    text-align: center;
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a:hover {
    color: var(--primary);
    background: var(--light);
  }

  /* Article hero on mobile */
  .article-hero {
    padding: 32px 24px;
    border-radius: 0;
    margin: -48px -24px 32px;
  }

  main.content .article-hero h1 {
    font-size: 1.5rem;
    color: #ffffff;
  }

  /* CTA box on mobile */
  .cta-box {
    padding: 24px;
    margin: 24px 0;
  }

  /* Newsletter on mobile */
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input[type="email"] {
    min-width: unset;
  }

  /* Testimonial on mobile */
  .testimonial {
    padding: 32px 24px;
  }

  /* Content on mobile */
  main.content h1 {
    font-size: 1.75rem;
  }

  /* Footer links wrap */
  footer .links a {
    margin: 0 8px;
    display: inline-block;
    margin-bottom: 8px;
  }

  /* Tools grid on mobile */
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  /* Share buttons on mobile */
  .share-buttons {
    gap: 8px;
  }
  .share-label {
    width: 100%;
    margin-bottom: 4px;
  }

  /* Post card header on mobile */
  .post-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Nav CTA on mobile */
  nav a.nav-cta {
    background: var(--accent);
    color: white !important;
    border-radius: 6px;
    padding: 12px 0;
  }

  /* TOC on mobile */
  .toc {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .container { padding: 0 16px; }
  .stat-number { font-size: 2rem; }
}
