/* ==========================================================================
   Pricing: the plans, the pilot and the small print.
   Built on site.css and tour.css, which carry the page frame without the 3D club: the
   sections, the pilot steps, the form and the FAQ. This file adds the plan cards.
   ========================================================================== */

.price-hero {
  display: grid;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) var(--gutter) 0;
}
.price-hero h1 {
  max-width: 13em;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 0.95;
  font-weight: 780;
  font-stretch: 106%;
  letter-spacing: -0.04em;
}
.price-hero__pilot {
  color: var(--text-2);
}
.price-hero__pilot a {
  color: var(--optic);
}

.price-plans {
  padding-top: clamp(36px, 5vw, 64px);
}

/* --- The three plans ----------------------------------------------------------- */

.plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(11, 17, 34, 0.72);
}
/* Where the browser can, every card shares one set of rows, so the prices and the
   spec lines sit level across all three however their sentences wrap. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .plans {
      grid-template-rows: repeat(6, auto);
      row-gap: 0;
    }
    .plan {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      row-gap: 18px;
    }
    .plan__cta {
      grid-row: 6;
    }
  }
}
.plan--featured {
  border-color: rgba(216, 255, 58, 0.55);
  background: linear-gradient(180deg, rgba(216, 255, 58, 0.08), rgba(11, 17, 34, 0.82) 42%);
  box-shadow: 0 30px 90px -60px rgba(216, 255, 58, 0.28);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: clamp(24px, 2.4vw, 34px);
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--optic);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan__name {
  font-size: 26px;
  font-weight: 760;
  font-stretch: 104%;
  letter-spacing: -0.02em;
}
.plan__for {
  font-size: 15px;
  color: var(--text-2);
}
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.plan__cur {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.plan__amount {
  font-family: var(--display);
  font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan--featured .plan__amount {
  color: var(--optic);
}
.plan__per {
  font-size: 14px;
  color: var(--text-2);
}
.plan__spec {
  margin: 0;
}
.plan__spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan__spec dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan__spec dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plan__note {
  font-size: 14px;
  color: var(--text-2);
}
.plan--featured .plan__note {
  padding-left: 12px;
  border-left: 2px solid var(--optic);
  color: var(--text);
}
.plan__cta {
  margin-top: auto;
}

/* --- What every plan has --------------------------------------------------------- */

.included {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
}
.included__title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}
.included__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.included__list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text-2);
}
/* The guardrails' mark: a lit square, like the corner of a court. */
.included__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(14px + 0.42em);
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1.5px solid var(--optic);
  box-shadow: 0 0 10px rgba(216, 255, 58, 0.45);
}

/* --- Free: the player app listing ------------------------------------------------- */

.listed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius);
  border: 1px dashed var(--line-2);
}
.listed__price {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  color: var(--optic);
}
.listed__copy {
  display: grid;
  gap: 6px;
}
.listed h3 {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.015em;
}
.listed__copy p {
  max-width: 64ch;
  font-size: 15px;
  color: var(--text-2);
}
.listed__copy a {
  color: var(--text);
  overflow-wrap: anywhere;
}

/* --- The small print ------------------------------------------------------------- */

.terms {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.terms div {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
}
.terms dt {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.015em;
}
.terms dd {
  max-width: 52ch;
  font-size: 15.5px;
  color: var(--text-2);
}

/* --- Narrow screens -------------------------------------------------------------- */

@media (max-width: 900px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .included {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .included__list,
  .terms {
    grid-template-columns: minmax(0, 1fr);
  }
  .listed {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .listed__cta {
    justify-self: start;
  }
}
