/* Plans page — stable reference layout, compact but not forced to 100vh */

.hs-plans {
  --plans-accent: #6b2cf0;
  --plans-title: #6b2cf0;
  --plans-muted: #8b8b97;
  --plans-card: #ffffff;
  --plans-ink: #0b0b0f;
  --plans-radius: 24px;
  background: transparent;
  color: var(--text, #eef1f8);
  padding: 28px 0 48px;
  margin: 0;
}

.hs-plans__shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-inline: 0;
}

.hs-plans__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.hs-plans__title {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}

.hs-plans__subtitle {
  margin: 0;
  max-width: 260px;
  text-align: right;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.hs-plans__formats {
  position: relative;
  display: inline-flex;
  gap: 0;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hs-plans__formats-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
}

.hs-plans__format {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.28s ease;
}

.hs-plans__format.is-active {
  background: transparent;
  color: var(--plans-title);
}

.hs-plans__format:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .hs-plans__formats-pill {
    transition: none;
  }

  .hs-plans__format {
    transition: none;
  }
}

.hs-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.hs-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  border: 0;
  border-radius: var(--plans-radius);
  background: var(--plans-card);
  color: var(--plans-ink);
  box-shadow: none;
}

.hs-plan-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--plans-accent);
  color: #fff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.hs-plan-card__name {
  margin: 0 70px 6px 0;
  color: var(--plans-title);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hs-plan-card__blurb {
  margin: 0 0 16px;
  max-width: 18em;
  min-height: 2.7em;
  color: var(--plans-muted);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.hs-plan-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.hs-plan-card__amount {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0b0b0f;
  line-height: 1;
}

.hs-plan-card__unit {
  color: #2a2a33;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.hs-plan-card__divider {
  height: 1px;
  margin: 0 0 14px;
  background: #ececf1;
  border: 0;
}

.hs-plan-card__feats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}

.hs-plan-card__feats li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  color: #1c1c24;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.hs-plan-card__check {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--plans-accent);
  flex-shrink: 0;
}

.hs-plan-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 18px;
  min-width: 132px;
  min-height: 40px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #0b0b0f;
  color: #fff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hs-plan-card__cta:hover:not(:disabled) {
  filter: brightness(1.1);
}

.hs-plan-card__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hs-plans__wide {
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--plans-radius);
  background: #0b0b0f;
  color: #fff;
}

.hs-plans__wide[hidden] {
  display: none !important;
}

.hs-plans-wide__title {
  margin: 0 0 4px;
  color: var(--plans-accent);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hs-plans-wide__blurb {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.hs-plans-wide__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-plans-wide__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.hs-plans-wide__chips svg {
  width: 14px;
  height: 14px;
  color: var(--plans-accent);
}

.hs-plans-wide__side {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.hs-plans-wide__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.hs-plans-wide__amount {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.hs-plans-wide__unit {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.hs-plans-wide__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 40px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b0b0f;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hs-plans-wide__cta:hover:not(:disabled) {
  filter: brightness(1.1);
}

.hs-plans-wide__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hs-plans__note {
  margin: 16px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 12px;
}

.hs-plans__note a {
  color: var(--plans-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .hs-plans__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hs-plans__wide {
    grid-template-columns: 1fr;
  }

  .hs-plans-wide__side {
    justify-items: start;
    width: 100%;
    text-align: left;
  }

  .hs-plans__header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 420px;
    margin-inline: auto;
  }

  .hs-plans__subtitle {
    text-align: center;
    max-width: 22rem;
    margin-inline: auto;
  }

  .hs-plans__formats {
    display: flex;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    margin-bottom: 18px;
  }

  .hs-plans__format {
    flex: 1 1 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
  }

  .hs-plans__note {
    max-width: 420px;
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .hs-plans {
    padding: 20px 0 40px;
  }

  .hs-plans__title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hs-plans__subtitle {
    font-size: 14px;
    line-height: 1.45;
  }
}

/* ===== Modals ===== */
body.hs-coach-order-modal-open,
body.hs-coach-course-detail-open {
  overflow: hidden;
}

.hs-coach-order-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.hs-coach-order-modal[hidden] {
  display: none !important;
}

.hs-coach-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 18, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hs-coach-order-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 22px;
  background: rgba(22, 24, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  color: #eef0f8;
  box-sizing: border-box;
}

.hs-coach-order-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.22);
}

.hs-coach-order-modal__title {
  margin: 0 36px 8px 0;
  font-size: clamp(1.25rem, 3.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hs-coach-order-modal__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(238, 240, 248, 0.72);
}

.hs-coach-order-modal__summary {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hs-coach-order-modal__summary-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-coach-order-modal__summary-row + .hs-coach-order-modal__summary-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hs-coach-order-modal__summary-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 230, 255, 0.45);
}

.hs-coach-order-modal__summary-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.hs-coach-order-modal__form {
  display: flex;
  flex-direction: column;
}

.hs-coach-order-modal__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.hs-coach-order-modal__field[hidden] {
  display: none !important;
}

.hs-coach-order-modal__label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(238, 240, 248, 0.82);
}

.hs-coach-order-modal__field-hint {
  display: block;
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(238, 240, 248, 0.55);
}

.hs-coach-order-modal__optional {
  font-weight: 500;
  color: rgba(238, 240, 248, 0.45);
}

.hs-coach-order-modal__input,
.hs-coach-order-modal__textarea {
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.hs-coach-order-modal__input:focus,
.hs-coach-order-modal__textarea:focus {
  outline: none;
  border-color: rgba(98, 54, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.22);
}

.hs-coach-order-modal__textarea {
  resize: vertical;
  min-height: 80px;
}

.hs-coach-order-modal__error {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #ff8a8a;
}

.hs-coach-order-modal__guest-only {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hs-coach-order-modal__guest-only[hidden],
#hsCoachPayBlock[hidden] {
  display: none !important;
}

.hs-coach-order-modal__guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hs-coach-order-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.hs-course-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.hs-course-detail-modal[hidden] {
  display: none !important;
}

.hs-course-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hs-course-detail-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  padding: 26px 24px 18px;
  border-radius: 22px;
  background: rgba(16, 18, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef0f8;
  box-sizing: border-box;
}

.hs-course-detail-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  font-size: 26px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.2);
}

.hs-course-detail-modal__kicker {
  margin: 0 40px 6px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(167, 180, 255, 0.65);
}

.hs-course-detail-modal__title {
  margin: 0 40px 10px 0;
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.22;
}

.hs-course-detail-modal__subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(226, 232, 255, 0.78);
}

.hs-course-detail-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hs-course-detail-modal__chip {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(224, 231, 255, 0.92);
  background: rgba(98, 54, 255, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.hs-course-detail-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-bottom: 12px;
}

.hs-course-detail-modal__desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.hs-course-detail-modal__desc[hidden],
.hs-course-detail-modal__h[hidden] {
  display: none !important;
}

.hs-course-detail-modal__h {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 230, 255, 0.5);
}

.hs-course-detail-modal__list {
  margin: 0;
  padding: 0 0 0 1.15em;
  font-size: 15px;
  line-height: 1.5;
}

.hs-course-detail-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
