/* ============================================================
   ARTICLE CONTENT COMPONENTS
   Styles for custom HTML elements used in blog articles:
   - Callouts (info, tip, success, warning)
   - Stats grid
   - Interactive demos
   - Responsive preview
   - Tools grid
   - Checklist
   - Steps list
   - FAQ section
   - Details/summary (native HTML5)
   ============================================================ */

/* ===== CALLOUTS ===== */
.callout {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 4px solid var(--border);
  background: var(--bg-page);
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout strong { font-weight: 700; }
.callout p:last-child { margin-bottom: 0; }

.callout-info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}
.callout-info strong { color: #1d4ed8; }

.callout-tip {
  border-left-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.06);
}
.callout-tip strong { color: #6d28d9; }

.callout-success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}
.callout-success strong { color: #059669; }

.callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}
.callout-warning strong { color: #d97706; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(167,139,250,0.08));
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.stat-card .stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ===== INTERACTIVE DEMO ===== */
.interactive-demo {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-panel);
}
.interactive-demo h4 {
  margin: 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(167,139,250,0.06));
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

/* ===== DEMO GRID & CARDS ===== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 20px;
}
.demo-card {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== DEMO LAYOUT ===== */
.demo-layout {
  padding: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-layout > div {
  background: rgba(99,102,241,0.08);
  border: 1px dashed rgba(99,102,241,0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== RESPONSIVE PREVIEW ===== */
.responsive-preview {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
}
.responsive-preview-header {
  padding: 8px 14px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.responsive-preview-header .dots {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
}
.responsive-preview-header .dots::before,
.responsive-preview-header .dots::after,
.responsive-preview-header .dots span {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}
.responsive-preview-header .dots::before { background: #ff5f57; }
.responsive-preview-header .dots::after { background: #febc2e; }
.responsive-preview-header .dots span { background: #28c840; }
.responsive-preview-body {
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.tool-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}
.tool-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 4px 12px rgba(99,102,241,0.08);
}
.tool-card .tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.tool-card strong { display: block; font-size: 0.92rem; }
.tool-card p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ===== CHECKLIST ===== */
.checklist {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}

/* ===== STEPS LIST ===== */
.steps-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-list li {
  padding: 10px 0 10px 44px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  margin: 28px 0;
}
.faq-section details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-section details[open] {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}
.faq-section summary {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background 0.15s;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: '▸';
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-section details[open] summary::after {
  transform: rotate(90deg);
  color: var(--primary);
}
.faq-section summary:hover {
  background: rgba(99,102,241,0.04);
}
.faq-section details p {
  padding: 0 20px 14px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.faq-section details p strong { color: var(--text); }

/* ===== DETAILS / SUMMARY (generic, outside FAQ) ===== */
.article-content details {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.article-content summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-content summary::-webkit-details-marker { display: none; }
.article-content summary::before {
  content: '▸';
  color: var(--text-muted);
  transition: transform 0.2s;
}
.article-content details[open] summary::before {
  transform: rotate(90deg);
  color: var(--primary);
}
.article-content details[open] summary {
  border-bottom: 1px solid var(--border);
}

/* ===== FIGURE / FIGCAPTION ===== */
.article-content figure {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
}
.article-content figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
}
.article-content figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-page);
  font-style: italic;
  line-height: 1.5;
}

/* ===== TABLE STYLING (enhanced) ===== */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-content th,
.article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(167,139,250,0.08));
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}
.article-content tbody tr:nth-child(even) {
  background: var(--bg-page);
}
.article-content tbody tr:hover {
  background: rgba(99,102,241,0.04);
}
.article-content td code {
  background: var(--bg-page);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--primary);
}

/* ===== RTL adjustments for custom components ===== */
[dir="rtl"] .callout {
  border-left: none;
  border-right: 4px solid var(--border);
}
[dir="rtl"] .callout-info { border-right-color: #3b82f6; }
[dir="rtl"] .callout-tip { border-right-color: #8b5cf6; }
[dir="rtl"] .callout-success { border-right-color: #10b981; }
[dir="rtl"] .callout-warning { border-right-color: #f59e0b; }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .steps-list li { padding-left: 0; padding-right: 44px; }
[dir="rtl"] .steps-list li::before { left: auto; right: 0; }
[dir="rtl"] .faq-section summary::after { content: '◂'; }

/* ===== CASE FILE (symptom / cause / fix triples) ===== */
.case-file {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  display: grid;
  grid-template-columns: 1fr;
}
.case-file > div {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.case-file > div:last-child { border-bottom: none; }
.case-file strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.case-symptom {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.01));
}
.case-symptom strong { color: #b91c1c; }
.case-cause {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(245, 158, 11, 0.01));
}
.case-cause strong { color: #b45309; }
.case-fix {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.01));
}
.case-fix strong { color: #047857; }
.case-file p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.case-file code {
  background: rgba(99, 102, 241, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--primary);
}
@media (min-width: 768px) {
  .case-file {
    grid-template-columns: 1fr 1.2fr 1.2fr;
  }
  .case-file > div {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .case-file > div:last-child { border-right: none; }
}

/* ===== RTL adjustments for case-file ===== */
[dir="rtl"] .case-file > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[dir="rtl"] .case-file > div:last-child { border-right: none; }
@media (min-width: 768px) {
  [dir="rtl"] .case-file > div { border-bottom: none; }
}

/* ===== CATALOG B: STORY OPENER ===== */
.story-opener {
  background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(14,165,233,0.03));
  border-radius: 20px;
  padding: 32px;
  margin: 0 0 28px;
  border: 1px solid rgba(99,102,241,0.12);
  position: relative;
  overflow: hidden;
}
.story-opener::before {
  content: '"';
  position: absolute;
  top: -20px; left: 20px;
  font-size: 160px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: rgba(99,102,241,0.07);
  line-height: 1;
  pointer-events: none;
}
[dir="rtl"] .story-opener::before { left: auto; right: 20px; }
.story-opener p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
}
.story-opener .story-persona {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 16px;
}

/* ===== CATALOG B: SHOCKING TRUTH ===== */
.shocking-truth {
  position: relative;
  text-align: center;
  padding: 48px 24px;
  margin: 32px 0;
  overflow: hidden;
}
.shocking-truth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.shocking-truth .truth-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 12px;
}
.shocking-truth .truth-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.shocking-truth .truth-label {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  max-width: 400px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.shocking-truth .truth-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}
.shocking-truth .truth-meaning {
  margin-top: 20px;
  padding: 16px 24px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.shocking-truth .truth-meaning strong { color: #dc2626; }

/* ===== CATALOG B: MYTH HALL ===== */
.myth-hall { margin: 32px 0; }
.myth-hall h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.myth-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s;
}
.myth-item.revealed {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}
.myth-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  background: var(--bg-panel);
  transition: background 0.15s;
  gap: 12px;
}
.myth-question:hover { background: rgba(99,102,241,0.03); }
.myth-q-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.5;
}
.myth-q-text .myth-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 8px;
  background: rgba(245,158,11,0.1);
  color: #d97706;
}
[dir="rtl"] .myth-q-text .myth-tag { margin-right: 0; margin-left: 8px; }
.myth-reveal-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid rgba(99,102,241,0.25);
  background: transparent;
  color: #6366f1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.myth-reveal-btn:hover { background: rgba(99,102,241,0.08); }
.myth-answer {
  display: none;
  padding: 0 20px 18px;
  background: var(--bg-panel);
}
.myth-item.revealed .myth-answer { display: block; }
.myth-item.revealed .myth-reveal-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-color: transparent;
}
.myth-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.myth-verdict.false { background: rgba(239,68,68,0.08); color: #dc2626; }
.myth-verdict.true { background: rgba(16,185,129,0.08); color: #059669; }
.myth-verdict.partial { background: rgba(245,158,11,0.08); color: #d97706; }
.myth-explanation {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text);
}
.myth-explanation strong { color: var(--text); }

/* ===== CATALOG B: IMPACT CALCULATOR ===== */
.impact-calc {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(14,165,233,0.04));
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 20px;
  padding: 28px;
  margin: 32px 0;
  overflow: hidden;
  position: relative;
}
.impact-calc::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}
.calc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.calc-title i { color: #6366f1; }
.calc-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.calc-row { margin-bottom: 18px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.calc-value-badge {
  background: rgba(99,102,241,0.12);
  color: #6366f1;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  min-width: 70px;
  text-align: center;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(99,102,241,0.15);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.calc-results {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.calc-result-item { text-align: center; }
.calc-result-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.calc-result-number.good {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-result-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.4;
}
.calc-cta {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.calc-cta a {
  color: #6366f1;
  font-weight: 700;
  text-decoration: underline;
}

/* ===== CATALOG B: CASE STUDIES ===== */
.case-studies-section { margin: 36px 0; }
.case-studies-section > h2 {
  font-size: 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}
.case-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.25s;
}
.case-card:hover {
  box-shadow: 0 8px 24px rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
}
.case-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.case-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}
.case-meta { flex: 1; }
.case-who {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}
.case-context {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.case-outcome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  align-self: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.case-outcome.positive { background: rgba(16,185,129,0.1); color: #059669; }
.case-outcome.negative { background: rgba(239,68,68,0.1); color: #dc2626; }
.case-body {
  padding: 20px 24px;
  background: var(--bg-panel);
}
.case-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}
.case-body p:last-child { margin-bottom: 0; }
.case-lesson {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(99,102,241,0.06);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 14px;
  border-left: 3px solid #6366f1;
}
.case-lesson i { color: #6366f1; margin-top: 2px; flex-shrink: 0; }
.case-lesson strong { color: #6366f1; }
[dir="rtl"] .case-lesson {
  border-left: none;
  border-right: 3px solid #6366f1;
}

/* ===== CATALOG B: PULL QUOTE ===== */
.pull-quote {
  position: relative;
  margin: 32px -4px;
  padding: 28px 32px 28px 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  border: none;
  overflow: hidden;
}
.pull-quote::before {
  content: '"';
  position: absolute;
  left: 16px; top: 10px;
  font-size: 80px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: rgba(99,102,241,0.2);
  line-height: 1;
}
.pull-quote p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
  position: relative;
  z-index: 1;
}
[dir="rtl"] .pull-quote { padding: 28px 52px 28px 32px; }
[dir="rtl"] .pull-quote::before { left: auto; right: 16px; }

/* ===== CATALOG B: DECISION TREE ===== */
.decision-tree {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.decision-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.decision-title i { color: #6366f1; }
.decision-question {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding: 14px 16px;
  background: rgba(99,102,241,0.06);
  border-radius: 10px;
  border-left: 3px solid #6366f1;
}
[dir="rtl"] .decision-question {
  border-left: none;
  border-right: 3px solid #6366f1;
}
.decision-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.decision-btn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all 0.2s;
  line-height: 1.4;
}
.decision-btn:hover {
  border-color: #6366f1;
  background: rgba(99,102,241,0.06);
  color: #6366f1;
  transform: translateY(-1px);
}
.decision-btn.selected {
  border-color: #6366f1;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.08));
  color: #6366f1;
}
.decision-result {
  display: none;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(99,102,241,0.2);
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(14,165,233,0.04));
  animation: fadeSlide 0.3s ease;
}
.decision-result.show { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-headline {
  font-size: 0.9rem;
  font-weight: 800;
  color: #6366f1;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.result-body {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text);
}

/* ===== CATALOG B: BEFORE / AFTER ===== */
.before-after {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .before-after { grid-template-columns: 1fr; } }
.ba-panel {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid;
}
.ba-panel.before { border-color: rgba(239,68,68,0.25); }
.ba-panel.after { border-color: rgba(16,185,129,0.25); }
.ba-header {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.before .ba-header { background: rgba(239,68,68,0.08); color: #dc2626; }
.after .ba-header { background: rgba(16,185,129,0.08); color: #059669; }
.ba-body {
  padding: 18px;
  background: var(--bg-panel);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text);
}
.ba-body ul { margin: 8px 0 0; padding-left: 16px; }
[dir="rtl"] .ba-body ul { padding-left: 0; padding-right: 16px; }
.ba-body li { margin-bottom: 6px; }
.before .ba-body li::marker { color: #dc2626; }
.after .ba-body li::marker { color: #059669; }

/* ===== CATALOG B: VISUAL TIMELINE ===== */
.visual-timeline { margin: 32px 0; position: relative; padding-left: 32px; }
[dir="rtl"] .visual-timeline { padding-left: 0; padding-right: 32px; }
.visual-timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, #0ea5e9, #6366f1, #8b5cf6);
  border-radius: 1px;
}
[dir="rtl"] .visual-timeline::before { left: auto; right: 11px; }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-dot {
  position: absolute;
  left: -32px; top: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.6rem;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}
[dir="rtl"] .tl-dot { left: auto; right: -32px; }
.tl-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 4px;
}
.tl-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.tl-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.tl-body strong { color: var(--text); }

/* ===== AUDIT CHECKLIST ===== */
.audit-tracker {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.audit-tracker-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.audit-tracker-text span { color: #6366f1; font-family: 'Montserrat', sans-serif; }
.audit-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(99,102,241,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.audit-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #6366f1, #8b5cf6);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.audit-score {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  background: rgba(245,158,11,0.1);
  color: #d97706;
  transition: all 0.3s;
}
.audit-score.ready { background: rgba(16,185,129,0.12); color: #059669; }
.audit-score.almost { background: rgba(14,165,233,0.1); color: #0284c7; }
.audit-score.halfway { background: rgba(245,158,11,0.1); color: #d97706; }
.audit-score.warning { background: rgba(239,68,68,0.1); color: #dc2626; }

.audit-category {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.audit-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(14,165,233,0.04));
  border-bottom: 1px solid var(--border);
}
.audit-cat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.audit-cat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}
.audit-cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(99,102,241,0.08);
  padding: 4px 10px;
  border-radius: 50px;
}

.audit-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(var(--border-rgb, 226,232,240), 0.5);
  transition: background 0.15s;
}
.audit-check:last-child { border-bottom: none; }
.audit-check:hover { background: rgba(99,102,241,0.02); }
.audit-check input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: #6366f1;
  cursor: pointer;
  flex-shrink: 0;
}
.audit-check-body { flex: 1; min-width: 0; }
.audit-check-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2px;
}
.audit-check-why {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.audit-check-why strong { color: var(--text); font-weight: 600; }
.audit-check-how {
  font-size: 0.76rem;
  color: #6366f1;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.5;
}
.audit-check-how code {
  background: rgba(99,102,241,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}

.audit-scorecard {
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.audit-score-item {
  padding: 18px;
  border-radius: 14px;
  border: 1.5px solid;
  text-align: center;
}
.audit-score-item.s100 { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.04); }
.audit-score-item.s80 { border-color: rgba(14,165,233,0.25); background: rgba(14,165,233,0.04); }
.audit-score-item.s50 { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.04); }
.audit-score-item.s0 { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.04); }
.audit-score-range {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.s100 .audit-score-range { color: #059669; }
.s80 .audit-score-range { color: #0284c7; }
.s50 .audit-score-range { color: #d97706; }
.s0 .audit-score-range { color: #dc2626; }
.audit-score-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.audit-score-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

