/* ============================================================================
   The three plan cards with «За рік / За місяць» and the sites slider: ONE look for /pricing and the landing's
   #plans (24.11, owner: «ті самі три картки, що на /pricing … вигляд, тексти й поведінка ідентичні»). Moved here
   word for word from billing.css (Figma 172:72, 20.11). /pricing loads this file right before billing.css, so its
   cascade is unchanged; the landing loads it after landing.css and adds, inside #plans only, the few values the
   cards take from ui.css on /pricing (landing.css «Обери свою систему»). The markup comes from pricing.html between
   <!-- plans --> and <!-- /plans --> (tools/generators/make_plans.py copies it into index.html; build-zip.py fails
   when the two differ). The slider's own look lives in style.css (.bl-sites).
   ========================================================================== */

/* ---------- «За рік / За місяць» (= landing .l-tabs) ---------- */
.l-tabs {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  background: var(--stone);
  border-radius: var(--r-pill);
}
.l-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--tab-w, 50%);
  transform: translateX(var(--tab-x, 0));
  border-radius: var(--r-pill);
  background: var(--black);
}
.l-tabs.is-ready::before { transition: transform .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1); }
/* Figma 172:90: 136 × 41 (12 / 500 UPPER, 12 above and under) */
.l-tabs button {
  position: relative;
  min-width: 136px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  transition: color .25s;
}
.l-tabs button.is-active { color: var(--white); }

/* ---------- three cards ---------- */
.bl-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 453px));
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.bl-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--sh-card, 0 8px 24px rgba(0, 0, 0, .05));
  transition: box-shadow .25s;
}
/* hover (owner 20.11: Figma 172:120 is the HOVER state of any card, not a marked plan): a 2 px yellow frame drawn inside,
   so the content does not move, and a yellow glow; also while the card holds the keyboard focus */
.bl-plan:hover, .bl-plan:focus-within { box-shadow: inset 0 0 0 2px var(--y), 0 8px 24px rgba(255, 255, 0, .15); }
.bl-plan__body { display: flex; flex-direction: column; gap: 32px; padding: 32px; }
.bl-plan__head { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.bl-plan__name { font-size: 20px; font-weight: 900; line-height: 1.2; letter-spacing: -.04em; }
.bl-plan__for { font-size: 14px; line-height: 1.35; color: var(--grey-text); }
.bl-plan__price { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bl-tag {
  display: inline-flex;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--y);
  font-size: 16px;
  line-height: 1.65;
  white-space: nowrap;
}
.bl-tag[hidden] { display: none; }
.bl-plan__row { display: flex; align-items: flex-start; justify-content: center; gap: 12px; white-space: nowrap; }
.bl-plan__sum { font-size: var(--fs-price); font-weight: 900; line-height: 1.1; letter-spacing: -.04em; }
.bl-plan__per { font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.bl-plan__text { font-size: 14px; line-height: 1.35; }
.bl-plan__go { width: 100%; }

@media (max-width: 1100px) {
  .bl-plan__body { padding: 24px; gap: 24px; }
}

@media (max-width: 900px) {
  .l-tabs { display: flex; width: 100%; }
  .l-tabs button { flex: 1 1 0; min-width: 0; padding: 12px; }
  .bl-plans { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bl-plan__body { padding: 24px; gap: 24px; }
  .bl-plan__per { font-size: 16px; }   /* the phone price is 28 (--fs-price), so «/ міс» steps down to 16 */
}
