.how {
  max-width: 1440px; /* F2 sizes its content box at 1360, so its sections span 1440 */
  margin: 0 auto;
  padding: 104px clamp(16px, 3vw, 40px) 24px;
  scroll-margin-top: 24px;
}

.how h2 {
  max-width: 760px;
  font-size: var(--fs-h2);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.how__lead {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 18px;
}

.how__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.how__tasks {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how__task {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.how__task[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-line);
}

.how__task b {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.how__task span {
  font-size: 14px;
  color: var(--ink2);
}

.how__replay {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
}

.how__stage {
  box-sizing: content-box; /* F2 sizes the 640px basis without padding */
  flex: 3 1 640px;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.how__cap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
}

.how__cap p {
  margin: 0;
}

.how__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.how__step {
  font-size: 13px;
  color: var(--ink2);
}

.how__caption {
  margin-top: 2px !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.how__bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.how__bars span {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.4s;
}

.how__bars span.on {
  background: var(--accent);
}

.how__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.how__col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.how__col[data-state='now'] {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 18px 40px -24px rgba(36, 86, 199, 0.55);
}

.how__col[data-state='done'] {
  border-color: var(--accent-line);
  background: var(--surface);
}

.how__colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.how__colhead b {
  font-size: 15px;
  font-weight: 600;
}

.how__badge {
  flex: none;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.how__col[data-state='now'] .how__badge {
  background: var(--accent);
  color: #fff;
}

.how__col[data-state='done'] .how__badge {
  background: var(--accent-soft);
  color: var(--accent);
}

.how__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.how__row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: background 0.3s, border-color 0.3s;
}

.how__row[data-tone='lit'] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.how__row[data-tone='seal'] {
  border-color: var(--seal-line);
  background: var(--seal-soft);
}

.how__row[data-tone='out'] {
  border-color: var(--accent);
  background: var(--surface);
}

.how__row p {
  margin: 0;
}

.how__kicker {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.how__flag {
  font-weight: 500;
  color: var(--muted);
}

.how__row[data-tone='lit'] .how__flag,
.how__row[data-tone='out'] .how__flag {
  color: var(--accent);
}

.how__row[data-tone='seal'] .how__flag,
.how__row[data-flag='Needs approval'] .how__flag {
  color: var(--seal);
}

.how__rtitle {
  margin-top: 2px !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.how__note {
  margin-top: 2px !important;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink2);
}
