/* How it works section styles. Classes start with how-. */
.how-list, .how-checks { margin: 0; padding: 0; list-style: none; }
.how-list li {
  position: relative; padding-left: 16px; margin: 0 0 8px;
  font: 400 14px/1.55 var(--font-body); color: var(--fg-2);
}
.how-list li:last-child { margin-bottom: 0; }
.how-list li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-tan);
}
.how-score-lead { margin-bottom: 12px; }
.how-checks { margin: 0 0 14px; }
.how-checks li {
  position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--border);
  font: 400 14px/1.45 var(--font-body); color: var(--fg-1);
}
.how-checks li:last-child { border-bottom: 1px solid var(--border); }
.how-checks li::before {
  content: ''; position: absolute; left: 2px; top: 13px; width: 13px; height: 7px;
  border-left: 2px solid var(--fg-2); border-bottom: 2px solid var(--fg-2);
  transform: rotate(-45deg);
}

.how-steps {
  list-style: none; margin: 0; padding: 0; counter-reset: how-step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px;
}
.how-step {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  counter-increment: how-step;
  background: var(--c-beige-100); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 20px;
}
.how-step::before { content: counter(how-step); font: 500 13px/1.3 var(--font-mono); color: var(--fg-3); }
.how-step:not(:last-child)::after {
  content: '\2192'; position: absolute; right: -28px; top: 50%; transform: translateY(-50%);
  width: 20px; text-align: center; font: 400 18px/1 var(--font-body); color: var(--fg-3);
}
.how-step-name { font: 600 18px/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--fg-1); }
.how-step-text { font: 400 14px/1.5 var(--font-body); color: var(--fg-2); }
.how-step code { font: 400 13px var(--font-mono); color: var(--fg-1); }

@media (max-width: 760px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how-step:not(:last-child)::after {
    content: '\2193'; right: auto; left: 50%; top: auto; bottom: -24px;
    transform: translateX(-50%);
  }
}
