/* ═══════════════════════════════════════════
   HOW IT WORKS PAGE — stubease.com
   Colors: #FE5000 (Pantone 021C) | #1a2744 (Navy)
═══════════════════════════════════════════ */

/* ── NEC COMPLIANCE BAND ── */
.nec-section {
  padding: 96px 0;
  background: var(--color-bg);
}
.nec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.nec-copy p {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.nec-copy strong { color: var(--color-text); }
.nec-code-block {
  background: var(--color-navy, #1a2744);
  border-radius: 10px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.nec-code-block::before {
  content: '300.15(F)';
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 6rem;
  color: rgba(254,80,0,0.08);
  line-height: 1;
}
.nec-code-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FE5000;
  margin-bottom: 16px;
  position: relative;
}
.nec-code-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  font-style: italic;
  position: relative;
  border-left: 3px solid #FE5000;
  padding-left: 20px;
}

/* ── WITHOUT IT SECTION ── */
.without-section {
  padding: 96px 0;
  background: var(--color-bg);
}
[data-theme="dark"] .without-section {
  background: #0d1627;
}
.without-section .section-label { color: #FE5000; }
.without-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.without-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(254,80,0,0.18);
  border-radius: 10px;
  padding: 32px;
}
[data-theme="dark"] .without-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.without-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #FE5000;
}
.without-card-icon svg { width: 100%; height: 100%; }
.without-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy, #1a2744);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
[data-theme="dark"] .without-card h3 { color: #fff; }
.without-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted, #4a4a4a);
  line-height: 1.7;
}
[data-theme="dark"] .without-card p { color: rgba(255,255,255,0.65); }

/* ── STEP DETAIL SECTION ── */
.step-detail-section {
  padding: 96px 0;
  background: var(--color-surface);
}
.step-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  counter-reset: none;
}
.step-detail {
  display: grid;
  grid-template-columns: 120px 1fr 260px;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid rgba(26,39,68,0.1);
}
.step-detail:first-child { padding-top: 0; }
.step-detail:last-child { border-bottom: none; }
.step-detail-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: rgba(26,39,68,0.12);
}
.step-detail-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.step-detail-body p {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.step-detail-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-detail-body ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.step-detail-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #FE5000;
  font-size: 0.8rem;
}
.step-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy, #1a2744);
  border-radius: 10px;
  padding: 24px;
  height: 200px;
}
.step-detail-visual svg { width: 100%; height: 100%; }

/* ── STEP 5 HIGHLIGHT — DOMINANT ── */
.step-detail-highlight {
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #FE5000 0%, #cc3f00 100%);
  border-radius: 14px;
  padding: 56px;
  margin: 40px 0 0;
  border-bottom: none;
  box-shadow: 0 16px 48px rgba(254,80,0,0.28);
}
.step-detail-highlight .step-detail-num { color: rgba(255,255,255,0.35); }
.step-detail-highlight .step-detail-body h3 { color: #fff; }
.step-detail-highlight .step-detail-body p { color: rgba(255,255,255,0.92); }
.step-detail-highlight .step-detail-body ul li { color: rgba(255,255,255,0.88); }
.step-detail-highlight .step-detail-body ul li::before { color: var(--color-text); }
.step-highlight-grid {
  display: grid;
  grid-template-columns: 140px 1fr 280px;
  gap: 40px;
  align-items: center;
}
.step-detail-highlight .step-detail-visual {
  background: rgba(13,22,39,0.35);
}
.aha-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy, #1a2744);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  margin-top: 20px;
}

/* ── VIDEO SECTION ── */
.video-section {
  padding: 96px 0;
  background: var(--color-bg);
  text-align: center;
}
.video-wrap {
  max-width: 860px;
  margin: 48px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,39,68,0.18);
  border: 1px solid rgba(26,39,68,0.08);
}
.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--color-bg);
}
[data-theme="dark"] .video-wrap video {
  background: #0d1627;
}

/* ── FAQ SECTION ── */
.faq-section {
  padding: 96px 0;
  background: var(--color-surface);
}
.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-bg);
  border: 1px solid rgba(26,39,68,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.faq-question-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(254,80,0,0.1);
  color: #FE5000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.25s;
}
.faq-item.open .faq-question-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 26px 24px;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 320px; }

/* ── CTA BAND (shared style w/ home) ── */
.cta-band {
  padding: 80px 0;
  background: var(--color-navy, #1a2744);
}
[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #1a2744 0%, #0d1627 100%);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cta-text p { color: rgba(255,255,255,0.7); font-size: 1rem; }
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }
.btn-ghost-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nec-grid { grid-template-columns: 1fr; gap: 40px; }
  .without-grid { grid-template-columns: 1fr; }
  .step-detail { grid-template-columns: 80px 1fr; }
  .step-detail-visual { grid-column: 1 / -1; height: 160px; }
  .step-highlight-grid { grid-template-columns: 100px 1fr; }
  .step-detail-highlight .step-detail-visual { grid-column: 1 / -1; height: 160px; }
}
@media (max-width: 640px) {
  .step-detail { grid-template-columns: 1fr; text-align: left; }
  .step-detail-num { font-size: 3.5rem; }
  .step-highlight-grid { grid-template-columns: 1fr; }
  .step-detail-highlight { padding: 32px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  /* Ensure photo and video visuals have proper height on mobile */
  .step-detail-visual { height: 240px; }
  .step-detail-visual--photo { height: 280px; }
  .step-detail-highlight .step-detail-visual { height: 220px; }
}

/* ── SHOP/FIELD/EXTRACTION PHASE TAGS ── */
.step-detail-phase-tag {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted, #7a7974);
  margin-bottom: 0.5rem;
}
.step-detail-phase-tag--field {
  color: #FE5000;
}
.step-detail-phase-tag--extract {
  color: #FE5000;
}
.step-detail--shop {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}
.step-detail--extract {
  /* background/border overridden by .step-detail-highlight — no override here */
}

