/* ── How it works ──────────────────────────────────────────────
   The five-step sequence from the live site. Ordered deliberately:
   this is a process, unlike the platform grid below it which is a
   set of capabilities.
──────────────────────────────────────────────────────────────── */
.howto {
  background: var(--color-surface);
  padding: var(--space-3xl) var(--gutter);
}

.howto__intro {
  max-width: var(--content-narrow);
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.howto__eyebrow {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.howto__headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.howto__steps {
  max-width: var(--content-width);
  margin: 0 auto;
  counter-reset: howto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.howto-step {
  counter-increment: howto;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-lg);
  align-items: start;
  background: var(--color-bg);
  border: 1px solid rgba(26,10,20,0.06);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg) var(--space-xl);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.howto-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* The numeral is generated from the counter, so the steps stay in
   sequence if one is added or removed. */
.howto-step::before {
  content: counter(howto);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--color-monika);
}

.howto-step__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.howto-step__body {
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 62ch;
}

.howto-step__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  transition: gap var(--duration-base) var(--ease-out);
}
.howto-step__link:hover {
  gap: 12px;
  color: var(--color-accent-deep);
}

/* ── Responsive — mirrors --bp-md / --bp-sm in tokens.css ── */
@media (max-width: 768px) {
  .howto-step {
    grid-template-columns: 48px 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .howto-step::before { font-size: var(--text-3xl); }
}

@media (prefers-reduced-motion: reduce) {
  .howto-step,
  .howto-step__link { transition: none; }
  .howto-step:hover { transform: none; }
}
