/* How it works page. Loaded after design-home.css, which provides the shared
   tiers and hero video styles. */

.hiw-hero {
  padding: 72px 0 80px;
}

.hiw-hero .hiw-video {
  max-width: 1120px;
  margin: 0 auto;
}

.hiw-hero .hiw-hero-cta {
  justify-content: center;
  margin-top: 32px;
}

/* Setup cards */
.hiw-setup-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 26px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hiw-setup-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hiw-setup-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* Setup timeline */
.hiw-setup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hiw-setup;
}

.hiw-setup-step {
  counter-increment: hiw-setup;
}

.hiw-setup-step::before {
  content: counter(hiw-setup, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.hiw-setup-time {
  align-self: flex-start;
  order: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
}

.hiw-setup-step h3 {
  order: 1;
}

.hiw-setup-step p {
  order: 3;
}

/* FAQ sits between the grey modes section and the grey CTA block, so it
   switches to white to keep the alternation; the CTA's top rule separates them. */
.faq-section.hiw-faq {
  background: var(--bg);
  border-bottom: 0;
}

@media (max-width: 760px) {
  .hiw-hero {
    padding: 48px 0 56px;
  }

  .hiw-setup {
    grid-template-columns: 1fr;
  }
}
