/*
 * /roadmaps, the index.
 *
 * Built from patterns that already exist on the site rather than new ones:
 * the header follows .tools-hero, the cards follow .tutoring-package-card
 * (this page is a pricing table where most of the options are free), and the
 * green-dot facts list is lifted from .roadmap-buy__facts on the roadmap
 * pages this links to, so the index and the detail page read as one product.
 *
 * Only common.css and components.css are loaded alongside this, so the
 * available tokens are --primary-color, --secondary-color, --light-color and
 * --header-height. style.css is homepage-only; nothing from it is usable here.
 */

/* No margin override: common.css gives main `max-width: 1100px; margin: 4rem
   auto`, and page-links already contributes 2rem below. */
.roadmaps-page {
  margin-block-end: 3rem;
}

/* --- header, after .tools-hero ------------------------------------------- */

.roadmaps-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.roadmaps-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.roadmaps-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--secondary-color);
  text-wrap: balance;
}

.roadmaps-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--secondary-color);
  opacity: 0.85;
}

/* --- grid ---------------------------------------------------------------- */

.roadmaps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* --- card, after .tutoring-package-card ---------------------------------- */

.roadmap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
  min-width: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(16, 172, 132, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 172, 132, 0.45);
}

/* The one that costs money gets the highlighted treatment the pricing page
   gives its best-value card. Nothing else on the page competes with it. */
.roadmap-card--paid {
  border-color: var(--primary-color);
  box-shadow: 0 4px 24px rgba(16, 172, 132, 0.15);
}

/* Gate as the eyebrow, in the site's uppercase tracked green. */
.roadmap-card__gate {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.roadmap-card--soon .roadmap-card__gate {
  color: var(--secondary-color);
  opacity: 0.6;
}

.roadmap-card__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.roadmap-card__title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.roadmap-card__title a:hover {
  color: var(--primary-color);
}

/* Price block, after .tutoring-package-price. */
.roadmap-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
}

.roadmap-card__amount {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.roadmap-card__per {
  font-size: 0.9rem;
  color: var(--secondary-color);
  opacity: 0.7;
}

.roadmap-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--secondary-color);
  opacity: 0.78;
}

/* Green-dot facts, lifted from .roadmap-buy__facts on the roadmap page. */
.roadmap-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.roadmap-card__facts li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--secondary-color);
  opacity: 0.82;
}

.roadmap-card__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

.roadmap-card__note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--secondary-color);
  opacity: 0.6;
}

/* CTA, after .tutoring-package-cta: outline by default, filled on the paid
   card so the page has exactly one solid button. */
.roadmap-card__cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  background-color: transparent;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.roadmap-card__cta:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.roadmap-card__cta:active {
  transform: scale(0.97);
}

.roadmap-card--paid .roadmap-card__cta {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 172, 132, 0.25);
}

.roadmap-card--paid .roadmap-card__cta:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.roadmaps-empty {
  text-align: center;
  color: var(--secondary-color);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .roadmaps-hero {
    padding: 1rem 0 2rem;
  }

  .roadmaps-grid {
    grid-template-columns: 1fr;
  }
}
