/* Launcher cards — shared by the static landing (public/index.html, block
   under the hero) and the EJS /start page (views/start.ejs). Intentionally
   NOT scoped to .index-landing so the same markup styles identically in both
   contexts. Visual mirrors .lp-price-card from index.css. */

.launch {
  --launch-dark: #2b333d;
  --launch-dark-hover: #1c2530;
  --launch-red: linear-gradient(135deg, rgb(241, 49, 51) 0%, rgb(196, 60, 61) 50%, rgb(178, 52, 53) 100%);
  --launch-featured: linear-gradient(135deg, #a81f27 0%, #c63c2f 45%, #e0662d 100%);
  /* Фирменный зелёный — цвет бургер-меню в турнире (.page-title-actions .btn-link). */
  --launch-green: #18BC9C;
  --launch-green-grad: linear-gradient(135deg, #1bcaa8 0%, #18BC9C 50%, #149c82 100%);
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.launch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 10px 24px rgba(31, 42, 58, 0.08);
}

.launch-card--featured {
  border-color: #c63c2f;
  box-shadow: 0 18px 36px rgba(198, 60, 47, 0.22);
}

.launch-card--free {
  border-color: var(--launch-green);
  box-shadow: 0 14px 30px rgba(24, 188, 156, 0.20);
}

.launch-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--launch-featured);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.launch-card__badge--free { background: var(--launch-green-grad); }

.launch-card__name { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.35rem; color: #1c2530; }
.launch-card__price { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: #1c2530; margin-bottom: 0.7rem; }
.launch-card__price--free { color: var(--launch-green); }
/* No flex-grow here: an expanding description would absorb the row's height
   difference and push the CTA buttons to different levels when the feature
   lists open. A min-height instead equalises the name+price+desc block so the
   «Начать» buttons line up in BOTH states; the leftover height (from the grid
   stretch) then falls BELOW the feature list. */
.launch-card__desc { font-size: 0.93rem; color: #4a5563; line-height: 1.45; min-height: 5.9em; margin-bottom: 1.2rem; }

.launch-card__form { margin: 0; }

.launch-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--launch-dark);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}
.launch-card__cta:hover { background: var(--launch-dark-hover); color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.launch-card__cta--free { background: var(--launch-green-grad); box-shadow: 0 12px 24px rgba(24, 188, 156, 0.30); }
.launch-card__cta--free:hover { filter: brightness(1.04); background: var(--launch-green-grad); }
.launch-card__cta--featured { background: var(--launch-featured); }
.launch-card__cta--featured:hover { filter: brightness(0.94); background: var(--launch-featured); }

/* «Что входит в тарифы» — одна кнопка раскрывает списки во ВСЕХ карточках
   разом (синхронно), чтобы ряд оставался выровненным по высоте. */
.launch-toggle-row { text-align: center; margin-top: 1.4rem; }
.launch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid #cfd6df;
  border-radius: 999px;
  background: #fff;
  color: #2b333d;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.launch-toggle:hover { background: #f1f4f8; border-color: #b6c0cc; }
.launch-toggle__icon { font-size: 0.8em; transition: transform 0.2s ease; }
.launch.is-expanded .launch-toggle__icon { transform: rotate(180deg); }
.launch-compare { margin-top: 0.7rem; }

.launch-feats {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: none;
  border-top: 1px solid #eef1f5;
  padding-top: 0.6rem;
}
.launch.is-expanded .launch-feats { display: block; }
.launch-feats li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 0.88rem;
  color: #353c45;
  line-height: 1.35;
}
.launch-feats li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 3px;
  color: var(--launch-green);
  font-weight: 700;
}

/* Demo strip below the cards */
.launch-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
  padding: 1rem 1.3rem;
  background: #f6f8fa;
  border: 1px dashed #cfd6df;
  border-radius: 12px;
  text-align: center;
}
.launch-demo__text { color: #4a5563; font-size: 0.95rem; }
.launch-demo__cta {
  flex: none;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cfd6df;
  color: #2b333d !important;
  white-space: nowrap;
}
.launch-demo__cta:hover { background: #eef2f6; text-decoration: none; color: #1c2530 !important; }

/* Pricing note + compare link inside the launcher section (works on /start
   too, where the .index-landing-scoped index.css rules don't apply). */
.launch .lp-pricing-note { text-align: center; color: #5a6573; font-size: 0.95rem; margin: 1.1rem auto 0; max-width: 46rem; }
.launch .lp-pricing-note a { color: #c63c2f; font-weight: 600; }
.launch .lp-price-more { font-weight: 700; color: #c63c2f; }

@media (max-width: 991px) {
  .launch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .launch-grid { grid-template-columns: 1fr; gap: 1rem; }
}
