/* ============================================================
   Tektome — "How It Works" section.
   One large rounded panel split into four columns: a tinted
   illustration row on top, a white text row beneath, divided by
   hairlines. Categorical accent dots (red/green/amber) appear only
   inside the step-04 compliance chips — permitted, as that is a
   data/status display, not UI chrome.
   Loaded after graph.css. Tokens from colors_and_type.css.
   ============================================================ */

.how-section {
  background: var(--color-draft-white);
  padding: var(--space-24) 0;
  font-family: var(--font-sans);
  color: var(--fg-primary);
}
.how-section .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.how-section .section-header { margin: 0 auto 56px; }

/* ---- The panel ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
}
.step-card {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
}
.step-card:first-child { border-left: 0; }

/* ---- Illustration cell ---- */
.step-illustration {
  height: 232px;
  background: #F8F8FD;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.step-illustration svg { display: block; width: 100%; height: 100%; }

/* ---- Text cell ---- */
.step-text {
  padding: 28px 26px 34px;
}
.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--state-enabled-bg);
  color: var(--color-arch-purple);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.step-text h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  color: var(--color-data-black);
  margin: 0 0 12px;
  text-wrap: balance;
}
.step-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* ---- Step-04 tabs (rendered above its illustration) ---- */
.s4-wrap { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.s4-tabs {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray-600);
}
.s4-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.s4-tab.active { color: var(--color-arch-purple); border-bottom-color: var(--color-arch-purple); }
.s4-panels { flex: 1; min-height: 0; }
.s4-panel { width: 100%; height: 100%; }
.s4-panel svg { width: 100%; height: 100%; }

/* step-04 compliance chips */
.s4-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s4-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--fg-secondary);
  white-space: nowrap;
}
.s4-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(3) { border-left: 0; }
  .step-card:nth-child(3), .step-card:nth-child(4) { border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .step-card:first-child { border-top: 0; }
}
