:root {
  --guide-blue: #1f6fe0;
}

html { scroll-behavior: smooth; }

.how-to-workflow,
.how-to-step,
.how-to-step__copy,
.app-figure,
.app-screenshot { box-sizing: border-box; }

.how-to-intro,
.how-to-workflow__heading,
.how-to-steps,
.how-to-complete,
.how-to-closing {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.how-to-intro { padding-bottom: 2.5rem; padding-top: 4rem; }
.how-to-intro h1 { max-width: 19ch; }

.how-to-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.how-to-nav__inner {
  display: flex;
  gap: .65rem;
  margin: 0 auto;
  max-width: 1120px;
  overflow-x: auto;
  padding: .75rem 1.25rem;
}

.how-to-nav a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .94rem;
  font-weight: 800;
  gap: .45rem;
  min-height: 44px;
  padding: .42rem .75rem;
  text-decoration: none;
}

.how-to-nav a:hover,
.how-to-nav a:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.how-to-nav a span {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: .78rem;
  height: 1.35rem;
  justify-content: center;
  width: 1.35rem;
}

.how-to-workflow {
  padding: 4.5rem 0;
  scroll-margin-top: 5.5rem;
}

.how-to-workflow--muted {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.how-to-workflow__heading {
  max-width: 760px;
  padding-bottom: 1.5rem;
}

.how-to-workflow__heading h2 { font-size: clamp(2rem, 3.3vw, 2.7rem); }
.how-to-workflow__heading p:last-child { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.how-to-workflow__kicker {
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .05em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.how-to-steps {
  list-style: none;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
  padding-top: 0;
}

.how-to-step {
  align-items: center;
  display: grid;
  gap: clamp(1.25rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 2.5rem 0;
}

.how-to-step + .how-to-step { border-top: 1px solid var(--line); }

.how-to-step__copy { align-items: flex-start; display: flex; gap: .9rem; }

.how-to-step__number {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .88rem;
  font-weight: 850;
  height: 2rem;
  justify-content: center;
  margin-top: .1rem;
  width: 2rem;
}

.how-to-step__copy h3 { font-size: 1.32rem; margin-bottom: .5rem; }
.how-to-step__copy p { color: var(--muted); margin-bottom: 0; max-width: 47ch; }

.app-figure {
  justify-self: center;
  margin: 0;
  max-width: 390px;
  width: min(390px, 100%);
}

.app-screenshot {
  background: #f7fbf9;
  border: 1px solid #bfd5cf;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(20, 78, 67, .14);
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 390px;
}

.app-figure figcaption {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .65rem;
}

.how-to-complete {
  color: var(--muted);
  font-size: .98rem;
  padding-top: 1rem;
}

.how-to-complete strong { color: var(--text); }

.how-to-closing {
  padding-bottom: 4.5rem;
  padding-top: 4.5rem;
  text-align: center;
}

.how-to-closing h2,
.how-to-closing p { margin-left: auto; margin-right: auto; }
.how-to-closing p { color: var(--muted); max-width: 58ch; }
.how-to-closing .button { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .how-to-intro,
  .how-to-workflow__heading,
  .how-to-steps,
  .how-to-complete,
  .how-to-closing { padding-left: 1rem; padding-right: 1rem; }
  .how-to-intro { padding-bottom: 2rem; padding-top: 2.8rem; }
  .how-to-workflow { padding: 3rem 0; }
  .how-to-step { grid-template-columns: 1fr; padding: 2rem 0; }
  .how-to-step__copy { max-width: 620px; }
  .app-figure { justify-self: start; }
}

@media (max-width: 460px) {
  .how-to-nav__inner {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .app-screenshot { border-radius: 12px; }
}
