/* ============================================================================
   help/billing «Тарифи» (28.10, owner: «дизайн як до редизайну, картки низом прилипли …
   інші роблять красиві списки з галочками або прочерками в таблиці тарифів»).
   The 27.10 system (docs/landing-redesign-rules.md): cream page, white cards radius 30,
   pills, yellow only for plates. Cards = Figma 184:788 (453, illustration 283, body 40,
   rows 46 with a 1.5 check and a 1 px line). Loaded only by www/pricing.html (was help/billing),
   before ui.css (ui.css supplies the font, the pills and the tokens --y / --stone / --r-*).
   The period tabs copy landing.css .l-tabs (main.js moves the black runner by --tab-x / --tab-w).
   ========================================================================== */

.bl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--pad-wide));
  margin: 0 auto;
  padding: 60px var(--pad-wide) 120px;
}

/* ---------- «За рік / За місяць» (= 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); }
.l-tabs button {
  position: relative;
  min-width: 136px;
  padding: 16px 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%;
}
/* equal height (grid rows stretch); the content stays at the top, only the button goes to the bottom */
.bl-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--white);
}
/* 28.10 (owner): the photo at 47 : 32 like the landing cards, with the .lu overlay of Figma 43:225 (css/lu.css) */
.bl-plan__media { position: relative; container-type: inline-size; flex: none; aspect-ratio: 47 / 32; overflow: hidden; background: var(--stone); }
.bl-plan__media > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bl-plan__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 40px;
}
.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: baseline; 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__name { margin-top: 30px; font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; text-align: center; }
.bl-plan__for { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--grey-text); text-align: center; }
.bl-plan__text { margin: 30px 0 40px; font-size: 16px; line-height: 1.65; }
.bl-plan__go { width: 100%; margin-top: auto; }

/* Figma Frame 49: rows 46 = 26 of text + 20, a 1 px line under each, the check 24 at 1.5 */
.bl-list { display: flex; flex-direction: column; margin: 4px 0 40px; padding: 0; list-style: none; }
.bl-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 16px;
  line-height: 1.65;
}
.bl-ok { flex: none; width: 24px; height: 24px; margin-top: 1px; }

/* ---------- comparison table ---------- */
.bl-cmp { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: 1399px; }
.bl-cmp__title { font-size: var(--fs-xl); font-weight: 900; line-height: 1; letter-spacing: -.04em; text-align: center; }
/* clip (not hidden) keeps the radius without making a scroll box, so the head can stick to the window */
.bl-cmp__box { border-radius: var(--r-card); background: var(--white); overflow: clip; }
.bl-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.bl-table th, .bl-table td { padding: 16px 20px; border-bottom: 1px solid var(--ink-line); text-align: center; vertical-align: middle; }
.bl-table tbody th { font-size: 16px; line-height: 1.5; font-weight: 400; text-align: left; }
.bl-table__lab { width: 40%; }
.bl-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 24px 20px;
  background: var(--white);
  border-bottom-color: var(--black);
  vertical-align: bottom;
}
.bl-table__name { display: block; font-size: 20px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.bl-table__price { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--grey-text); white-space: nowrap; }
.bl-table tbody th, .bl-table tbody td:first-child { padding-left: 40px; }
.bl-table tbody td:last-child { padding-right: 40px; }
.bl-table__group th {
  padding-top: 40px;
  padding-bottom: 12px;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-text);
}
.bl-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.bl-yes { display: inline-flex; vertical-align: middle; }
.bl-yes svg { width: 24px; height: 24px; }
/* «no» is a short grey line, not a dash character (owner: no long dashes in texts) */
.bl-no { display: inline-block; width: 16px; height: 2px; background: var(--grey-soft); vertical-align: middle; }
.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- payment notes ---------- */
.bl-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1399px; }
.bl-info__item { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: var(--r-card); background: var(--white); }
.bl-info__title { font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.bl-info__item p { font-size: 16px; line-height: 1.65; }

/* ---------- other articles ---------- */
.bl-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  width: 100%;
  max-width: 1399px;
  padding: 40px;
  border-radius: var(--r-card);
  background: var(--y);
}
.bl-more__title { width: 100%; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.bl-more__links { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; line-height: 1.5; }
.bl-more__links a { text-decoration: underline; text-underline-offset: 3px; }
.bl-more__links a:hover { opacity: .6; }
.bl-more__ask { display: flex; align-items: center; gap: 20px; font-size: 16px; }

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

@media (max-width: 900px) {
  .bl { gap: 40px; padding: 40px var(--pad) 80px; }
  .bl__tabs { align-self: stretch; }
  .l-tabs { display: flex; width: 100%; }
  .l-tabs button { flex: 1 1 0; min-width: 0; padding: 16px 12px; }
  .bl-plans { grid-template-columns: minmax(0, 1fr); }
  .bl-plan__body { padding: 24px; }
  .bl-cmp { gap: 20px; }
  .bl-cmp__title { font-size: 28px; }
  /* phones (owner 30.10: the sideways-scrolling table «роз'їхалась»): no sideways scroll. Every row = the feature on its
     own line, its three marks under it in the three plan columns; the plan names stick to the top of the window. */
  .bl-table, .bl-table thead, .bl-table tbody { display: block; width: 100%; }
  .bl-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 12px;
    border-bottom: 1px solid var(--ink-line);
  }
  .bl-table th, .bl-table td { padding: 0; border-bottom: 0; }
  .bl-table thead { position: sticky; top: 0; z-index: 2; background: var(--white); }
  .bl-table thead tr { border-bottom-color: var(--black); }
  .bl-table thead th { position: static; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 4px 16px; }
  .bl-table thead .bl-table__lab { display: none; }
  .bl-table__name { font-size: 14px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .bl-table__price { margin-top: 6px; font-size: 12px; }
  .bl-table tbody th, .bl-table tbody td:first-child { padding-left: 0; }
  .bl-table tbody td:last-child { padding-right: 0; }
  .bl-table tbody th { grid-column: 1 / -1; padding: 14px 8px 4px; font-size: 14px; line-height: 1.35; }
  .bl-table tbody td { display: flex; justify-content: center; align-items: center; min-height: 40px; padding-bottom: 6px; }
  .bl-table__group th { padding: 32px 8px 10px !important; }
  .bl-table tbody:last-child tr:last-child { border-bottom: 0; }
  .bl-info { grid-template-columns: minmax(0, 1fr); }
  .bl-info__item { padding: 24px; }
  .bl-info__title { font-size: 24px; }
  .bl-more { padding: 24px; }
  .bl-more__ask { flex-wrap: wrap; }
  .bl-more__ask .cbtn { width: 100%; }
}

/* the title block starts on the cards' left edge (the 1400 column), not in the 1120 article column */
.doc-top--wide { width: calc(var(--content-max) + 2 * var(--pad-wide)); padding-left: var(--pad-wide); padding-right: var(--pad-wide); }
@media (max-width: 900px) {
  .doc-top--wide { padding-left: var(--pad); padding-right: var(--pad); }
}

/* 16.11 (owner, /pricing: «тут відцентруй у заголовку»): the title and its lead stand in the middle of the yellow top */
.doc-top--center { align-items: center; text-align: center; }
.doc-top--center .doc-top__lead { margin-inline: auto; }
