/* =========================================================
   GPACal — home-only sections (steps, comparison).
   Shared components: gc-ui.css · Tokens & primitives: gc.css
   ========================================================= */

/* ---------- How it works (steps) ----------
   5 / 2 / 1 columns — at 2 columns the final step spans the full row. */
.gc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 16px;
}

.gc-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gc-step__rail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--gc-bg);
  border: var(--gc-rule-ink);
  font-weight: 800;
  font-size: 15px;
}

.gc-step__line {
  flex: 1;
  height: 2px;
  background: var(--gc-divider);
  display: none;
}

.gc-step__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--gc-bg);
  transition: box-shadow var(--gc-dur), transform var(--gc-dur);
}

.gc-step__card:hover {
  box-shadow: var(--gc-shadow-md);
  transform: translateY(-2px);
}

.gc-step__icon {
  color: var(--gc-accent);
  margin-bottom: 20px;
}

.gc-home .gc-step__card h3 {
  font-size: 20px;
  margin: 0;
}

.gc-home .gc-step__card p {
  font-size: 14px;
  color: var(--gc-neutral-700);
}

.gc-step--done .gc-step__num {
  background: var(--gc-accent);
  color: var(--gc-bg);
  border-color: var(--gc-accent);
}

.gc-step--done .gc-step__card {
  background: var(--gc-accent);
  color: var(--gc-bg);
}

.gc-step--done .gc-step__icon,
.gc-home .gc-step--done .gc-step__card p {
  color: var(--gc-bg);
}

@media (min-width: 560px) {
  .gc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gc-step__line {
    display: block;
  }

  /* Even steps end a row at 2 columns */
  .gc-step:nth-child(even) .gc-step__line {
    display: none;
  }

  .gc-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .gc-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .gc-step:nth-child(even) .gc-step__line {
    display: block;
  }

  .gc-step:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.gc-steps__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: var(--gc-rule);
}

.gc-steps__close > span {
  font-size: 16px;
  font-weight: 600;
}

.gc-steps__cta {
  min-width: 220px;
}

/* ---------- Comparison ---------- */
.gc-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.gc-compare__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--gc-bg);
}

.gc-compare__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: var(--gc-rule);
}

.gc-compare__abbr {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.gc-home .gc-compare__name {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0;
}

.gc-home .gc-compare__desc {
  flex: 1;
  font-size: 14px;
  color: var(--gc-neutral-700);
}

.gc-compare__link {
  align-self: flex-start;
  margin-top: 8px;
  padding-left: 0;
}

