/* ═══════════════════════════════════════════════════════
   BBC Article Visual Components — bbc-article-visuals.css
   Used by all 25 SEO content pages
   ═══════════════════════════════════════════════════════ */

/* ── Step Flow (numbered process steps) ── */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.step-flow--horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card, #FDFAF6);
  border: 1px solid rgba(85,60,35,0.09);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}
.step-flow--horizontal .step {
  flex: 1;
  min-width: 180px;
  flex-direction: column;
  text-align: center;
  align-items: center;
  position: relative;
}
.step-flow--horizontal .step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold, #B8923E);
  font-size: 1.2rem;
  z-index: 1;
}
@media (max-width: 640px) {
  .step-flow--horizontal { flex-direction: column; }
  .step-flow--horizontal .step::after { display: none; }
}
.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--deep-blue, #1F3557);
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-flow--horizontal .step__num {
  margin: 0 auto 0.75rem;
}
.step__content {}
.step__title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deep-blue, #1F3557);
  margin-bottom: 0.3rem;
}
.step__desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body, #4E5666);
  margin: 0;
}

/* ── Stat Callout (big number + label) ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-dark, #1C2E47);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.stat-card--light {
  background: var(--bg-section, #EDE8DF);
}
.stat-card__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold, #B8923E);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card--light .stat-card__value {
  color: var(--deep-blue, #1F3557);
}
.stat-card__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(245,241,234,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-card--light .stat-card__label {
  color: var(--text-muted, #888FA0);
}

/* ── Before / After comparison ── */
.before-after-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 580px) { .before-after-compare { grid-template-columns: 1fr; } }
.compare-col {
  border-radius: 16px;
  padding: 1.5rem;
}
.compare-col--before {
  background: rgba(136,143,160,0.08);
  border: 1px solid rgba(136,143,160,0.2);
}
.compare-col--after {
  background: rgba(78,158,116,0.08);
  border: 1px solid rgba(78,158,116,0.25);
}
.compare-col__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.compare-col--before .compare-col__label { color: var(--text-muted, #888FA0); }
.compare-col--after .compare-col__label { color: #4E9E74; }
.compare-col__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.compare-col--before .compare-col__dot { background: var(--text-muted, #888FA0); }
.compare-col--after .compare-col__dot { background: #4E9E74; }
.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare-col li {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body, #4E5666);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(85,60,35,0.06);
  margin: 0;
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li::before {
  content: '✗ ';
  color: var(--text-muted, #888FA0);
  font-size: 0.75rem;
}
.compare-col--after li::before {
  content: '✓ ';
  color: #4E9E74;
}

/* ── Before/After generic child support (.before / .after shorthand) ── */
.before-after-compare .before,
.before-after-compare .after {
  border-radius: 16px;
  padding: 1.5rem;
}
.before-after-compare .before {
  background: rgba(136,143,160,0.08);
  border: 1px solid rgba(136,143,160,0.2);
}
.before-after-compare .after {
  background: rgba(78,158,116,0.08);
  border: 1px solid rgba(78,158,116,0.25);
}
.before-after-compare .before h4,
.before-after-compare .after h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 0;
}
.before-after-compare .before h4 { color: var(--text-muted, #888FA0); }
.before-after-compare .after h4 { color: #4E9E74; }
.before-after-compare .before ul li::before { content: '✗ '; color: var(--text-muted, #888FA0); font-size: 0.75rem; }
.before-after-compare .after ul li::before { content: '✓ '; color: #4E9E74; }
.before-after-compare .before li,
.before-after-compare .after li {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body, #4E5666);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(85,60,35,0.06);
  margin: 0;
}
.before-after-compare .before li:last-child,
.before-after-compare .after li:last-child { border-bottom: none; }

/* ── Cost table inside a wrapper div ── */
.cost-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
}
.cost-table table th {
  background: var(--deep-blue, #1F3557);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cost-table table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(85,60,35,0.08);
  color: var(--text-body, #4E5666);
  vertical-align: top;
}
.cost-table table tr:last-child td { border-bottom: none; }
.cost-table table tr:nth-child(even) td { background: rgba(85,60,35,0.025); }

/* ── Tool Stack badges ── */
.tool-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  align-items: center;
}
.tool-stack__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #888FA0);
  margin-right: 0.25rem;
}
.tool-badge {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  background: rgba(31,53,87,0.08);
  border: 1px solid rgba(31,53,87,0.14);
  color: var(--deep-blue, #1F3557);
}
.tool-badge--gold {
  background: rgba(184,146,62,0.1);
  border-color: rgba(184,146,62,0.2);
  color: var(--gold, #B8923E);
}

/* ── Process Roadmap (visual timeline) ── */
.roadmap {
  margin: 2rem 0;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold, #B8923E), rgba(184,146,62,0.1));
}
.roadmap-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
}
.roadmap-item__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary, #F5F1EA);
  border: 2px solid var(--gold, #B8923E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold, #B8923E);
  z-index: 1;
}
.roadmap-item__body {
  padding-top: 0.4rem;
  flex: 1;
}
.roadmap-item__title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-blue, #1F3557);
  margin-bottom: 0.3rem;
}
.roadmap-item__desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-body, #4E5666);
  margin: 0;
}

/* ── Tip / Warning / Note boxes ── */
.tip-box {
  display: block;
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body, #4E5666);
}
.tip-box strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text-ink, #2A3040);
}
/* Structured tip-box with icon+text children */
.tip-box:has(.tip-box__icon) {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.tip-box--tip {
  background: rgba(78,158,116,0.07);
  border: 1px solid rgba(78,158,116,0.2);
}
.tip-box--warning {
  background: rgba(212,168,75,0.08);
  border: 1px solid rgba(212,168,75,0.25);
}
.tip-box--note {
  background: rgba(75,111,165,0.07);
  border: 1px solid rgba(75,111,165,0.2);
}
.tip-box__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.tip-box__text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body, #4E5666);
  margin: 0;
}
.tip-box__text strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text-ink, #2A3040);
}

/* ── Cost comparison table ── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
}
.cost-table th {
  background: var(--deep-blue, #1F3557);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cost-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(85,60,35,0.08);
  color: var(--text-body, #4E5666);
  vertical-align: top;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: rgba(85,60,35,0.025); }
.cost-table .cost--high { color: #c0392b; font-weight: 600; }
.cost-table .cost--low { color: #4E9E74; font-weight: 600; }
.cost-table .cost--zero { color: var(--gold, #B8923E); font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   DATA VISUALS — charts & graphs (added 2026-06-07)
   Pure CSS, no JS library. Set values with inline style.
   ═══════════════════════════════════════════════════════ */

/* ── Horizontal bar chart ──
   <div class="bar-chart">
     <div class="bar-chart__row">
       <span class="bar-chart__label">Label</span>
       <div class="bar-chart__track">
         <div class="bar-chart__fill" style="width:70%"><span class="bar-chart__val">$70/mo</span></div>
       </div>
     </div>
   </div>                                                         */
.bar-chart { margin: 2rem 0; display: flex; flex-direction: column; gap: 0.85rem; }
.bar-chart__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.9rem;
  align-items: center;
}
@media (max-width: 520px) {
  .bar-chart__row { grid-template-columns: 1fr; gap: 0.3rem; }
}
.bar-chart__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep-blue, #1F3557);
  line-height: 1.3;
}
.bar-chart__track {
  background: rgba(85,60,35,0.07);
  border-radius: 100px;
  height: 30px;
  position: relative;
  overflow: hidden;
}
.bar-chart__fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--warm-blue, #6D8FC7), var(--deep-blue, #1F3557));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.8rem;
  min-width: 2.5rem;
  transition: width 0.8s ease;
}
.bar-chart__fill--gold { background: linear-gradient(90deg, var(--gold-warm, #D4A84B), var(--gold, #B8923E)); }
.bar-chart__fill--sage { background: linear-gradient(90deg, #6fcf97, #4E9E74); }
.bar-chart__fill--muted { background: linear-gradient(90deg, #b0b6c2, #888FA0); }
.bar-chart__val {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* ── Donut / percentage rings ──
   <div class="donut-row">
     <div class="donut">
       <div class="donut__ring" style="--pct:75">
         <div class="donut__hole">75%</div>
       </div>
       <div class="donut__label">Time saved</div>
     </div>
   </div>                                                         */
.donut-row { display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center; margin: 2.25rem 0; }
.donut { width: 130px; text-align: center; }
.donut__ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--gold, #B8923E) calc(var(--pct, 50) * 1%), rgba(85,60,35,0.09) 0);
}
.donut__ring--blue { background: conic-gradient(var(--deep-blue, #1F3557) calc(var(--pct, 50) * 1%), rgba(85,60,35,0.09) 0); }
.donut__ring--sage { background: conic-gradient(#4E9E74 calc(var(--pct, 50) * 1%), rgba(85,60,35,0.09) 0); }
.donut__hole {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--bg-primary, #F5F1EA);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.5rem;
  color: var(--deep-blue, #1F3557);
}
.donut__label {
  margin-top: 0.65rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted, #888FA0);
  letter-spacing: 0.03em;
}

/* ── Vertical column graph ──
   <div class="col-graph">
     <div class="col-graph__bar"><span class="col-graph__fill" style="height:80%"></span><span class="col-graph__cap">8</span><span class="col-graph__foot">Mon</span></div>
   </div>                                                         */
.col-graph {
  display: flex; align-items: flex-end; justify-content: space-around;
  gap: 0.5rem; height: 200px; margin: 2rem 0;
  padding: 1rem 0.5rem 0;
  border-bottom: 2px solid rgba(85,60,35,0.12);
}
.col-graph__bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.col-graph__fill {
  width: 60%; max-width: 46px;
  background: linear-gradient(180deg, var(--gold-warm, #D4A84B), var(--gold, #B8923E));
  border-radius: 8px 8px 0 0;
  transition: height 0.8s ease;
}
.col-graph__bar--blue .col-graph__fill { background: linear-gradient(180deg, var(--warm-blue, #6D8FC7), var(--deep-blue, #1F3557)); }
.col-graph__cap {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.74rem; font-weight: 700; color: var(--deep-blue, #1F3557);
  margin-bottom: 0.35rem; order: -1;
}
.col-graph__foot {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.68rem; color: var(--text-muted, #888FA0);
  margin-top: 0.5rem; position: absolute; bottom: -1.7rem;
}
.col-graph + .col-graph__legend { margin-top: 2rem; }

/* checklist (added 2026-06-20 for "what to track" lists) */
.checklist{list-style:none;padding:0;margin:1rem 0;}
.checklist li{position:relative;padding:.45rem 0 .45rem 1.9rem;line-height:1.5;}
.checklist li::before{content:"\2713";position:absolute;left:0;top:.45rem;color:#B8923E;font-weight:700;}
