.hero {
  padding: 36px 0 8px;
  max-width: 840px;
}

.hero h1 {
  margin-top: 14px;
}

.hero .lead {
  margin-bottom: 26px;
}

.home-section {
  margin-top: 60px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.steps b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.trainer-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.trainer-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.trainer-card h3,
.trainer-card p {
  margin: 0;
}

.card-cta {
  margin-top: auto;
  padding-top: 4px;
  color: var(--primary);
  font-weight: 650;
}

.map-head h2 {
  margin: 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.legend-swatch.ready {
  border: 2px solid var(--primary);
}

.legend-swatch.planned {
  border-style: dashed;
}

.legend-swatch.later {
  background: var(--surface-3);
  border-color: transparent;
}

.home-section > p.muted {
  margin-top: 10px;
  max-width: 80ch;
}

.task-map {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-height: 122px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tile:hover {
  text-decoration: none;
  border-color: var(--border-strong);
}

.tile-num {
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.tile-title {
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--muted);
}

.tile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meter {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.tile-ready {
  border: 2px solid var(--primary);
  padding: 11px;
}

.tile-ready .tile-num {
  color: var(--primary);
}

.tile-planned {
  border-style: dashed;
  border-color: var(--border-strong);
}

.tile-later {
  background: var(--surface-2);
}

.tile.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.map-detail {
  margin-top: 14px;
}

.map-detail h3 {
  margin-bottom: 4px;
}
