/* Pricing page — MyGym / MyCoach tabs, plan cards, start-up deal,
   included list, next steps, MyCoach earnings calculator (ADR-142).
   Layout follows the 2026-11 website mockup; colours and type are the
   TKNQ tokens from site.css. */

.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}
.tab {
  margin-bottom: -1px;
  padding: 0 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--red); }

html[data-tab='mygym'] #mycoach,
html[data-tab='mycoach'] #mygym { display: none; }

/* ---------- Shared type ---------- */

.section { padding: 44px 0 72px; }
.section--tight { padding: 0 0 80px; }
.section--ruled { padding: 64px 0 88px; border-top: 1px solid var(--line); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.title {
  margin-top: 14px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.title--sm { margin-top: 0; font-size: clamp(26px, 3vw, 32px); }

.lede {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

.subhead {
  margin-bottom: 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.fineprint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Plans header + member sizer ---------- */

.plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-bottom: 36px;
}
.plans-intro { flex: 1 1 520px; max-width: 600px; }
.plans-intro--wide { max-width: 720px; margin-bottom: 40px; }

.sizer,
.earn-calc { display: flex; flex-direction: column; gap: 10px; }
.sizer { flex: 0 1 360px; min-width: min(320px, 100%); }
.sizer[hidden],
.earn-calc[hidden] { display: none; }
.sizer label,
.earn-calc label { color: var(--text-2); font-size: 15px; }
.sizer-row { display: flex; align-items: center; gap: 16px; }
.sizer-row input[type='range'] { flex: 1; min-width: 0; accent-color: var(--red); height: 28px; }
.sizer-row output {
  min-width: 3.2ch;
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.earn-calc .sizer-row output { font-size: 20px; }

/* ---------- Plan cards ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1040px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 20px 20px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  transition: border-color 0.2s;
}
.plan.is-fit,
.plan--featured { border-color: var(--red); }

.fit-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  background: var(--red-tint);
  color: #ff9a9f;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fit-tag[hidden] { display: none; }
.fit-tag--inline { position: static; }

.plan-band {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 22px 0 24px;
}
.amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.amount--words { font-size: 26px; line-height: 44px; white-space: nowrap; }
.per { color: var(--muted); font-size: 14px; white-space: nowrap; }

.plan-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Start-up deal / whole-gym callout ---------- */

.startup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--red);
  background: linear-gradient(120deg, rgba(226, 30, 38, 0.08), transparent 60%);
}
.startup-copy { flex: 1 1 420px; }
.startup-copy p { margin-top: 12px; max-width: 58ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.startup-title {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.25;
}
.startup-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.startup-offer .plan-price { margin: 0 0 12px; }

/* ---------- Included in every plan ---------- */

.included {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--line);
}
.included li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.included svg { color: var(--red); flex: none; }

/* ---------- Next steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px 28px;
  margin: 36px 0 44px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.step-num {
  color: var(--red);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}
.steps h4 { font-family: var(--display); font-weight: 700; font-size: 17px; }
.steps p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- MyCoach ---------- */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .coach-grid { grid-template-columns: 1fr; } }
.coach-grid .plan { padding: 26px 24px 24px; }
.coach-grid .plan-price { margin-bottom: 18px; }

.feature-list { list-style: none; border-top: 1px solid var(--line); }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.feature-list li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 8px;
  margin-top: -4px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.earn-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
