/* The feature pages (rackoon.fit/features/<name>/). Colors come from ../styles.css's tokens. */
.feature {
  padding-block: 8px 56px;
}
.feature h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.feature > .lead {
  max-width: 680px;
  margin-bottom: 40px;
}
.feat-row {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
@media (min-width: 820px) {
  .feat-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }
  .feat-row.flip .feat-text {
    order: 2;
  }
}
.feat-text {
  min-width: 0;
  max-width: 560px;
}
.feat-text h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
}
.feat-text p {
  color: var(--muted);
}
.feat-text p a {
  color: var(--text);
}
.next {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: right;
}
/* Round 140: Join the waitlist (a filled button) on the left, Next (the amber text link) on the right,
   with room between them; stacked and centered on phones, Next on top. */
.next:has(.soon-card-btn) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.next .soon-card-btn {
  margin-top: 0;
}
@media (max-width: 560px) {
  .next:has(.soon-card-btn) {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: 18px;
  }
}

/* Round 114: a section with text only ("What it adapts to" on Learns). */
.feat-row.text-only {
  grid-template-columns: minmax(0, 1fr);
}
.feat-row.text-only .feat-text {
  max-width: 72ch;
}

/* Round 119: the Learns page links to the simulations. */
.sims-link {
  margin: 24px 0 0;
}
