/* SEO pages styling (small + easy to maintain) */
:root{
  /* Change these 2 colors to your brand orange */
  --brand: #f97316;      /* orange */
  --brand2:#fb923c;      /* lighter orange */
  --text:#0f172a;
  --muted:#475569;
  --bg:#ffffff;
  --card:#f8fafc;
  --border:#e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(2,6,23,.08);
}

/* Page layout */
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
}

.app-container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

/* Header */
.branding-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.brand-text{
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

/* Make your icon orange (SVG gradient) */
#grad1 stop:first-child{ stop-color: var(--brand); }
#grad1 stop:last-child{  stop-color: var(--brand2); }

/* Content */
.content h1{
  font-size: 40px;
  line-height: 1.1;
  margin: 18px 0 12px;
}

.content h2{
  font-size: 22px;
  margin: 28px 0 10px;
}

.content p{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Make the AI content look structured */
.ai-content{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  margin: 18px 0 24px;
}


/* Links */
a{ color: var(--brand); }
a:hover{ text-decoration: underline; }

/* CTA gradient -> orange */
.bg-gradient-primary{
  background: linear-gradient(45deg, var(--brand), var(--brand2)) !important;
}

/* Override baked-in inline styles from old static HTML builds */
.site-nav-inner { max-width: 1120px !important; }
.ai-content .seo-article { max-width: 100% !important; }
.ai-content table td,
.ai-content table th { white-space: normal !important; }

/* Prevent horizontal overflow on body */
html, body { overflow-x: hidden; }

/* ── Ad slot placeholders (visible even when no ad fills) ── */
.cms-ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
/* Remove placeholder styling once an ad loads */
.cms-ad-slot:has(ins[data-adsbygoogle-status="done"]) {
  background: transparent;
  border: none;
  min-height: auto;
}

/* ═══════════════════════════════════════════════════════════
   Deep-content component classes (generated by seo-content-generator)
   ═══════════════════════════════════════════════════════════ */

/* ── Section isolation: prevent broken nesting from leaking ── */
.ai-content section,
.ai-content .components-section,
.ai-content .process-section,
.ai-content .financial-section,
.ai-content .mistakes-section,
.ai-content .social-proof-section {
  display: block;
  overflow: hidden;
  clear: both;
}

/* ── Fix tables: restore proper table display ── */
.ai-content table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.ai-content table thead { background: var(--card); }
.ai-content table th {
  text-align: left;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  white-space: normal !important;
}
.ai-content table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
  white-space: normal !important;
}
.ai-content table tr:last-child td { border-bottom: none; }

/* Responsive table wrapper */
.ai-content .table-wrapper,
.ai-content .financial-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2rem 0;
}
/* When financial-table IS a <table> (not a wrapper div) */
table.financial-table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse;
}

/* ── Components grid (2-col plan overview) ── */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.component-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.component-item strong,
.component-item h3 {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* ── Steps / process layout ── */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

/* BLOCK layout — children stack vertically regardless of wrapper */
.step-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}

/* Step number badge */
.step-number {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Step content wrapper (if present) */
.step-content { display: block; }
.step-content h3,
.step-item > h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  color: var(--text);
}
.step-item > p {
  margin: 0.2rem 0 0.4rem;
}

/* ── Time indicators ── */
.time-indicator {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  margin-top: 0.4rem;
}
.total-time-box {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem 0 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ── Mistakes list ── */
.mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
}
.mistake-item {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 1rem 1.3rem;
}
.mistake-item strong,
.mistake-item h3 {
  color: #b91c1c;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  display: block;
}
.mistake-item p { color: #7f1d1d; }

/* ── Outcomes / social proof grid ── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.outcome-card {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  text-align: center;
}
.outcome-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.4rem;
}
.outcome-card p { color: #166534; }

/* ── CTA bridge & proof intro ── */
.cta-bridge {
  display: block;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  color: var(--text);
}
.proof-intro {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

/* ── Responsive: stack grids on small screens ── */
@media (max-width: 600px) {
  .components-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  .ai-content table { font-size: 0.85rem; }
  .ai-content table th,
  .ai-content table td { padding: 0.5rem 0.6rem; }
}
