/* Training Club page, on top of site.css. */

.tc-hero {
  background: var(--surface-training);
}

.tc-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-stack);
  padding-block: 48px;
}

.tc-hero__logo {
  display: block;
  width: auto;
  height: 72px;
}

.tc-hero__overline,
.tc-hero__note {
  opacity: 0.8;
}

.tc-hero__action {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack);
  width: 100%;
  margin-top: var(--space-inline);
}

/* Once the join button shows, the contact fallback goes. */
.tc-hero__join:not([hidden]) ~ .tc-hero__fallback {
  display: none;
}

.tc-hero__mail,
.tc-hero__mail:hover {
  color: inherit;
  text-decoration: underline;
}

/* What you get: rows of one card on a phone, one card each from 768px. */
.tc-features {
  display: grid;
  padding: 0;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  list-style: none;
}

.tc-feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-tight) var(--space-stack);
  padding: var(--space-card-padding);
}

.tc-feature + .tc-feature {
  border-top: 1px solid var(--border-subtle);
}

.tc-feature__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-field);
  background: var(--surface-sunken);
  color: var(--text-strong);
}

.tc-feature__text {
  grid-column: 2;
}

.tc-plans {
  display: grid;
  gap: var(--space-stack);
  padding: 0;
  list-style: none;
}

.tc-plan {
  display: grid;
  align-content: start;
  gap: var(--space-inline);
}

/* Same height with or without the pill, so both prices line up. */
.tc-plan__head {
  display: flex;
  min-height: var(--size-pill);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-inline);
}

.tc-plans__note {
  margin-top: var(--space-stack);
}

.tc-question {
  margin-top: var(--space-section-gap);
}

@media (min-width: 768px) {
  .tc-hero__action {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-stack) var(--space-section-gap);
  }

  .tc-features {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-section-gap);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .tc-feature {
    grid-template-columns: 1fr;
    align-content: start;
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
  }

  .tc-feature + .tc-feature {
    border-top: 0;
  }

  .tc-feature__icon {
    grid-row: auto;
  }

  .tc-feature__text {
    grid-column: auto;
  }

  .tc-plans {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-section-gap);
  }
}

@media (min-width: 1024px) {
  .tc-hero__content {
    justify-content: center;
    min-height: 400px;
    padding-block: 64px;
  }

  .tc-hero__logo {
    height: 96px;
  }

  .tc-features {
    grid-template-columns: repeat(4, 1fr);
  }
}
