/* =============================================
   HOW IT WORKS — Page-specific styles
   Extracted from inline <style> block.
   ============================================= */

/* ─── Workflow Timeline ────────────────────── */
.workflow-timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
}
.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border-subtle), var(--teal-500), var(--border-subtle));
}
.wf-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 2.5rem;
}
.wf-step:last-child { margin-bottom: 0; }
.wf-step .wf-marker {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1;
}
.wf-step.standard .wf-marker {
  background: var(--navy-800);
  border: 2px solid var(--gray-600);
  color: var(--gray-400);
}
.wf-step.highlight .wf-marker {
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-accent));
  border: none;
  color: var(--text-on-teal);
  box-shadow: 0 0 20px rgba(46, 196, 182, 0.4);
}
/* Light mode: force the ★ (U+2605) to render as TEXT, not emoji.
   Emoji rendering ignores CSS color — this selector ensures it
   falls back to a text glyph and picks up the white color. */
[data-theme="light"] .wf-step.highlight .wf-marker {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  font-family: 'Inter', Arial, sans-serif;
  text-shadow: 0 0 0 #FFFFFF;
}
.wf-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.wf-step.standard h3 { color: var(--gray-300); }
.wf-step.highlight h3 { color: var(--teal-400); }
.wf-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.wf-step.highlight {
  background: rgba(46, 196, 182, 0.04);
  border: 1px solid rgba(46, 196, 182, 0.15);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.5rem 80px;
  margin-left: -12px;
  margin-right: -12px;
}

/* ─── Gap Callout ──────────────────────────── */
.gap-callout {
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.06), rgba(255, 82, 82, 0.02));
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
}
.gap-callout::before {
  content: '⚠';
  position: absolute;
  top: -14px;
  left: 24px;
  font-size: 1.4rem;
  background: var(--bg-primary);
  padding: 0 0.5rem;
}
.gap-callout h3 {
  color: var(--color-warning);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

/* ─── Comparison Table ─────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 768px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  background: var(--navy-800);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}
.compare-col.before {
  border-color: rgba(255, 82, 82, 0.2);
}
.compare-col.after {
  border-color: rgba(46, 196, 182, 0.3);
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.05), transparent);
}
.compare-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.compare-col.before h3 { color: var(--color-warning); }
.compare-col.after h3 { color: var(--teal-400); }
.compare-col ul {
  list-style: none;
  padding: 0;
}
.compare-col ul li {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}
.compare-col ul li:last-child { border-bottom: none; }

/* ─── Detailed Steps ──────────────────────── */
.detail-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.detail-step {
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.detail-step:hover {
  border-color: rgba(46, 196, 182, 0.3);
  transform: translateY(-4px);
}
.detail-step .ds-num {
  position: absolute;
  top: -14px;
  left: 20px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-accent));
  color: var(--text-on-teal);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.detail-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.5rem 0 0.6rem;
}
.detail-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.detail-step .ds-meta {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.detail-step .ds-tag {
  font-size: 0.75rem;
  color: var(--teal-400);
  background: rgba(46, 196, 182, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(46, 196, 182, 0.15);
}

/* ─── Compatibility Cards ──────────────────── */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.compat-card {
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.compat-card:hover {
  border-color: rgba(46, 196, 182, 0.3);
  transform: translateY(-3px);
}
.compat-card .cc-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.compat-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.compat-card p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ─── Pipeline Diagram ─────────────────────── */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem auto;
  max-width: 850px;
}
.pipe-node {
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  min-width: 120px;
}
.pipe-node.active {
  border-color: rgba(46, 196, 182, 0.4);
  background: rgba(46, 196, 182, 0.06);
}
.pipe-node h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.pipe-node.active h3 { color: var(--teal-400); }
.pipe-node p {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin: 0;
}
.pipe-arrow {
  color: var(--gray-500);
  font-size: 1.2rem;
  font-weight: 700;
}
@media (max-width: 600px) {
  .pipeline { flex-direction: column; }
  .pipe-arrow { transform: rotate(90deg); }
}

/* ─── Safety Layers ────────────────────────── */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.safety-card {
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.safety-card:hover {
  border-color: rgba(46, 196, 182, 0.3);
  transform: translateY(-4px);
}
.safety-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-accent));
  opacity: 0.6;
}
.safety-card .safety-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}
.safety-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.safety-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.safety-card .safety-detail {
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: rgba(46, 196, 182, 0.04);
  border: 1px solid rgba(46, 196, 182, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--teal-400);
  font-family: 'Inter', monospace;
}

/* ─── Algorithm Depth Cards ────────────────── */
.algo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.algo-feature {
  background: var(--navy-800);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.8rem;
  transition: border-color 0.3s, transform 0.3s;
}
.algo-feature:hover {
  border-color: rgba(46, 196, 182, 0.3);
  transform: translateY(-3px);
}
.algo-feature .af-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.algo-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.algo-feature p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* NFM featured card variant */
.algo-feature--featured {
  border-color: var(--border-teal-strong);
  background: linear-gradient(135deg, var(--bg-teal-subtle), transparent);
}


/* ─── Better Outcomes (dual columns) ──────── */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 768px) { .outcomes-grid { grid-template-columns: 1fr; } }
.outcome-col {
  background: var(--navy-800);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.outcome-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.outcome-col.nhs::before {
  background: linear-gradient(90deg, var(--color-nhs-start), var(--color-nhs-end));
}
.outcome-col.private::before {
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-accent));
}
.outcome-col .oc-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.outcome-col .oc-icon {
  font-size: 2rem;
}
.outcome-col .oc-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.outcome-col .oc-header p {
  font-size: 0.85rem;
  color: var(--gray-400);
}
.outcome-col ul {
  list-style: none;
  padding: 0;
}
.outcome-col ul li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.outcome-col ul li:last-child { border-bottom: none; }
.outcome-col ul li .check-mark {
  color: var(--teal-400);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}



/* ─── Equipment Grid ───────────────────────── */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* ─── CTA Buttons Wrapper ──────────────────── */
.hiw-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
