/* SITE-LIVE (Пакет A, 30.10.2026): ядро «живих» блоків — простір імен .lv-*. Підключається на всіх v2-сторінках (partials/v2/ai-showcase.php, крок 12).
   Спільні стилі (site-v2.css, :root, шапка, футер, кнопки) НЕ змінюються: власні токени — на коренях компонентів (.lv-ai, .lv-offer, .lv-fx-*),
   кольори — лише з токенів --bf-* (обидві теми). Анімації — opacity/translate (без зсуву макета); prefers-reduced-motion і без JS — статичний вигляд. */

.lv-ai, .lv-offer, .lv-fx-tiers, .lv-fx-table {
  --lv-card: var(--bf-card); --lv-soft: var(--bf-surface-2); --lv-line: var(--bf-hairline);
  --lv-acc: var(--bf-accent-strong); --lv-acc-soft: var(--bf-accent-soft); --lv-acc-ink: var(--bf-accent-ink); --lv-on-acc: var(--bf-on-accent);
  --lv-r: var(--bf-radius-card); --lv-r2: var(--bf-radius-md); --lv-shadow: var(--bf-shadow-sm); --lv-shadow-hi: var(--bf-shadow-lg);
}
@keyframes lv-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }
@keyframes lv-pop { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: none; } }
@keyframes lv-pulse { 0% { box-shadow: inset 0 0 0 0 transparent; } 45% { box-shadow: inset 0 0 0 2px var(--lv-acc); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes lv-caret { 50% { opacity: 0; } }

/* ── загальні компоненти ── */
.lv-card { padding: 24px; border-radius: var(--lv-r); background: var(--lv-card); box-shadow: var(--lv-shadow); }
.lv-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--bf-radius-full); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lv-chip--ok { background: var(--bf-st-success-bg); color: var(--bf-st-success-fg); }
.lv-chip--warn { background: var(--bf-st-warning-bg); color: var(--bf-st-warning-fg); }
.lv-chip--accent { background: var(--lv-acc-soft); color: var(--lv-acc-ink); }
.lv-chip--muted { background: var(--bf-st-neutral-bg); color: var(--bf-st-neutral-fg); }
.lv-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.lv-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--bf-text); font-size: 15px; font-weight: 500; line-height: 1.4; }
.lv-checks svg { flex: 0 0 auto; margin-top: -1px; padding: 4px; border-radius: 50%; background: var(--lv-acc-soft); color: var(--lv-acc-ink); box-sizing: content-box; }
.lv-note { margin: 10px 0 0; color: var(--bf-text-muted); font-size: 13px; line-height: 1.5; }
.lv-anchor { position: relative; top: -90px; display: block; height: 0; }

/* ── еталон «Вартість» ── */
.lv-offers { display: grid; gap: 20px; margin-top: 24px; }
.lv-offer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 28px; align-items: stretch; padding: 28px; border-radius: var(--lv-r); background: var(--lv-card); box-shadow: var(--lv-shadow); transition: box-shadow .25s ease, transform .25s ease; }
.lv-offer__main { display: grid; align-content: start; gap: 10px; }
.lv-offer__eyebrow { justify-self: start; padding: 4px 12px; border-radius: var(--bf-radius-full); background: var(--lv-acc-soft); color: var(--lv-acc-ink); font-size: 13px; font-weight: 600; }
.lv-offer__title { margin: 0; color: var(--bf-text); font-size: 22px; line-height: 1.25; }
.lv-offer__desc { margin: 0; color: var(--bf-text-2); font-size: 15px; line-height: 1.55; }
.lv-offer__price { display: grid; align-content: center; gap: 6px; padding: 22px; border-radius: var(--lv-r2); background: var(--lv-acc-soft); }
.lv-offer__label { color: var(--lv-acc-ink); font-size: 13px; font-weight: 600; }
.lv-offer__v { color: var(--bf-text); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.lv-offer__v small { color: var(--bf-text-2); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.lv-offer__sub { color: var(--bf-text-2); font-size: 14px; }
.lv-offer__btn { margin-top: 10px; justify-self: stretch; text-align: center; }

/* ── секція «ШІ у вашому бізнесі» ── */
.lv-seg { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 6px; border-radius: var(--bf-radius-full); background: var(--lv-card); box-shadow: var(--lv-shadow); }
.lv-seg__tab { display: grid; gap: 2px; padding: 10px 22px; border: 0; border-radius: var(--bf-radius-full); background: transparent; color: var(--bf-text-muted); font: inherit; text-align: center; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lv-seg__tab b { color: var(--bf-text); font-size: 15px; }
.lv-seg__tab small { font-size: 12px; }
.lv-seg__tab[aria-selected="true"] { background: var(--lv-acc); color: var(--lv-on-acc); }
.lv-seg__tab[aria-selected="true"] b { color: var(--lv-on-acc); }
.lv-seg__tab:focus-visible { outline: 2px solid var(--lv-acc); outline-offset: 2px; }
@media (hover: hover) { .lv-seg__tab:not([aria-selected="true"]):hover { background: var(--lv-acc-soft); } }

.lv-pipe { margin-bottom: 20px; }
.lv-pipe__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lv-pipe__head h3 { margin: 0; color: var(--bf-text); font-size: 19px; }
.lv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-pill { padding: 7px 14px; border: 1px solid var(--lv-line); border-radius: var(--bf-radius-full); background: var(--lv-card); color: var(--bf-text); font: inherit; font-size: 14px; cursor: pointer; }
.lv-pill[aria-pressed="true"] { border-color: transparent; background: var(--lv-acc-soft); color: var(--lv-acc-ink); font-weight: 600; }
.lv-pill:focus-visible { outline: 2px solid var(--lv-acc); outline-offset: 2px; }
.lv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lv-step { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--lv-r2); background: var(--lv-soft); transition: box-shadow .3s ease; }
.lv-step h4 { margin: 0; color: var(--bf-text); font-size: 15px; }
.lv-step__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lv-acc); color: var(--lv-on-acc); font-size: 13px; font-weight: 700; }
.lv-step.lv-cur { box-shadow: 0 0 0 2px var(--lv-acc), var(--lv-shadow); }
.lv-bubble, .lv-draft { flex: 1 1 auto; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--lv-card); color: var(--bf-text); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.lv-bubble { flex: 0 0 auto; border-bottom-left-radius: 4px; }
.lv-step__meta { margin: auto 0 0; color: var(--bf-text-muted); font-size: 13px; line-height: 1.45; }
.lv-step__meta b { color: var(--bf-text); font-weight: 600; }
.lv-chan { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; }
.lv-chan li { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; border-radius: 12px; background: var(--lv-card); color: var(--bf-text); font-size: 13px; font-weight: 500; }
.lv-chan .lv-chip { white-space: normal; }
.lv-draft { height: 14.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.lv-step__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.lv-step4s { flex: 0 0 auto; margin: 0; padding: 14px; border-radius: 14px; background: var(--lv-card); color: var(--lv-acc-ink); font-size: 16px; font-weight: 700; }
.lv-step__hint { margin: 0; color: var(--bf-text-muted); font-size: 12px; line-height: 1.45; }
.lv-rest { visibility: hidden; }
.lv-caret { display: inline-block; width: 2px; height: 1em; margin: 0 1px -2px; background: var(--lv-acc); animation: lv-caret 1s steps(1) infinite; }

.lv-stack { display: grid; gap: 20px; }
.lv-panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.lv-mode-h { margin: 0 0 12px; color: var(--bf-text); font-size: 18px; }
.lv-res { display: flex; flex-direction: column; }
.lv-res__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lv-res__head h4 { margin: 0; color: var(--bf-text); font-size: 16px; }
.lv-state { margin: 0 0 10px; }
.lv-post { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px 14px; padding: 14px; border-radius: var(--lv-r2); background: var(--lv-soft); }
.lv-post__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.lv-post__head b { display: block; color: var(--bf-text); font-size: 14px; }
.lv-post__head small { color: var(--bf-text-muted); font-size: 12px; }
.lv-post__ava { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lv-acc); color: var(--lv-on-acc); font-weight: 700; }
.lv-post__text { margin: 0; color: var(--bf-text); font-size: 14px; line-height: 1.5; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; height: 7.5em; }
.lv-post__img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; }
.lv-fakebtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lv-fakebtn { padding: 8px 16px; border-radius: var(--bf-radius-full); background: var(--lv-soft); color: var(--bf-text); font-size: 14px; font-weight: 600; }
.lv-fakebtn.is-main { background: var(--lv-acc); color: var(--lv-on-acc); }
.lv-chat { display: grid; align-content: start; gap: 10px; flex: 1 1 auto; padding: 14px; border-radius: var(--lv-r2); background: var(--lv-soft); }
.lv-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.lv-msg p { margin: 0; }
.lv-msg time { display: block; margin-top: 4px; font-size: 11px; opacity: .75; text-align: right; }
.lv-msg--in { justify-self: start; border-bottom-left-radius: 4px; background: var(--lv-card); color: var(--bf-text); box-shadow: var(--bf-shadow-xs); }
.lv-msg--ai { justify-self: end; border-bottom-right-radius: 4px; background: var(--lv-acc); color: var(--lv-on-acc); }
.lv-msg--draft { justify-self: end; border: 1px dashed var(--lv-acc-ink); border-bottom-right-radius: 4px; background: var(--lv-acc-soft); color: var(--bf-text); }
.lv-msg__tag { display: block; margin-bottom: 4px; color: var(--lv-acc-ink); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.lv-chat__done { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--bf-radius-full); background: var(--bf-st-success-bg); color: var(--bf-st-success-fg); font-size: 13px; font-weight: 600; }
.lv-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1 1 auto; align-content: start; }
.lv-feed__it { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: var(--lv-r2); background: var(--lv-soft); }
.lv-feed__line { flex: 1 1 100%; color: var(--bf-text); font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.lv-feed__when { color: var(--bf-text-muted); font-size: 13px; }
.lv-ai__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.lv-ai__note { max-width: 860px; margin: 14px auto 0; color: var(--bf-text-muted); font-size: 13px; line-height: 1.55; text-align: center; }

/* без JS: усі режими підряд, кожен зі своїм заголовком; перемикача немає */
.lv-ai:not(.lv-js) .lv-seg, .lv-ai:not(.lv-js) .lv-pills { display: none; }
.lv-panel.lv-armed :is(.lv-msg, .lv-chat__done, .lv-feed__it, .lv-post, .lv-fakebtns) { opacity: 0; }
.lv-ai:not(.lv-js) .lv-step4 + .lv-step4::before { content: " · "; color: var(--bf-text-muted); }
/* з JS: панелі режимів в одній клітинці (висота = найвища панель, без зсуву), неактивні приховані */
.lv-ai.lv-js .lv-stack > .lv-panel { grid-area: 1 / 1; }
.lv-ai.lv-js .lv-panel[data-lv-off] { visibility: hidden; }
.lv-ai.lv-js .lv-step4[data-lv-off] { display: none; }
.lv-ai.lv-js .lv-mode-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* сцена активної панелі: повідомлення й пункти стрічки з'являються по черзі (лише коли JS увімкнув .is-play) */
.lv-ai.lv-js .lv-panel.is-play .lv-msg, .lv-ai.lv-js .lv-panel.is-play .lv-chat__done, .lv-ai.lv-js .lv-panel.is-play .lv-feed__it,
.lv-ai.lv-js .lv-panel.is-play .lv-post, .lv-ai.lv-js .lv-panel.is-play .lv-fakebtns { animation: lv-pop .45s var(--bf-ease) both; }
.lv-panel.is-play .lv-chat > :nth-child(2), .lv-panel.is-play .lv-feed__it:nth-child(2), .lv-panel.is-play .lv-fakebtns { animation-delay: .5s !important; }
.lv-panel.is-play .lv-chat > :nth-child(3), .lv-panel.is-play .lv-feed__it:nth-child(3) { animation-delay: 1s !important; }
.lv-panel.is-play .lv-chat > :nth-child(4) { animation-delay: 1.5s !important; }
.lv-panel.is-play .lv-chat > :nth-child(5) { animation-delay: 2s !important; }

/* ── ефекти наявних блоків (/tsiny/ і еталон): поява один раз (лише коли JS «озброїв» блок нижче екрана), ховер — лише для миші ── */
.lv-armed.lv-fx-tiers > *, .lv-armed .lv-checks li, .lv-armed.lv-fx-tiers .bf-sx-tier__list li, .lv-armed.lv-offer { opacity: 0; }
.lv-in.lv-fx-tiers > * { animation: lv-in .55s var(--bf-ease) both; }
.lv-in.lv-fx-tiers > :nth-child(2) { animation-delay: .12s; } .lv-in.lv-fx-tiers > :nth-child(3) { animation-delay: .24s; }
.lv-in.lv-offer { animation: lv-in .55s var(--bf-ease) both; }
.lv-in .lv-checks li, .lv-in.lv-fx-tiers .bf-sx-tier__list li { animation: lv-pop .4s var(--bf-ease) both; }
.lv-in .lv-checks li:nth-child(1), .lv-in .bf-sx-tier__list li:nth-child(1) { animation-delay: .35s; }
.lv-in .lv-checks li:nth-child(2), .lv-in .bf-sx-tier__list li:nth-child(2) { animation-delay: .45s; }
.lv-in .lv-checks li:nth-child(3), .lv-in .bf-sx-tier__list li:nth-child(3) { animation-delay: .55s; }
.lv-in .bf-sx-tier__list li:nth-child(4) { animation-delay: .65s; } .lv-in .bf-sx-tier__list li:nth-child(5) { animation-delay: .75s; }
.lv-in .bf-sx-tier__list li:nth-child(6) { animation-delay: .85s; } .lv-in .bf-sx-tier__list li:nth-child(n+7) { animation-delay: .95s; }
.lv-fx-tiers > .bf-sx-tier--featured { box-shadow: var(--bf-ring-accent), 0 16px 44px -16px var(--bf-accent-glow), var(--bf-shadow-md); }
.lv-fx-table td, .lv-fx-table th { transition: background-color .2s ease; }
.lv-fx-table .lv-col { background: var(--lv-acc-soft); }
.lv-in.lv-fx-table .ss2-terms__base { animation: lv-pulse 1.6s ease .5s 1; }
@media (hover: hover) {
  .lv-fx-tiers > .bf-sx-tier, .lv-offer { transition: transform .25s ease, box-shadow .25s ease; }
  .lv-fx-tiers > .bf-sx-tier:hover, .lv-offer:hover { transform: translateY(-4px); box-shadow: var(--lv-shadow-hi); }
  .lv-fx-tiers > .bf-sx-tier--featured:hover { box-shadow: var(--bf-ring-accent), 0 20px 50px -14px var(--bf-accent-glow), var(--lv-shadow-hi); }
  .lv-fx-tiers .bf-btn-primary:hover, .lv-offer__btn:hover { box-shadow: 0 10px 24px -10px var(--bf-accent-glow); }
  .lv-fx-table tbody tr:hover > td { background: var(--lv-acc-soft); }
  .lv-fx-table tbody tr:hover > td.lv-col { background: var(--bf-accent-soft-2); }
}

@media (max-width: 1023px) {
  .lv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-panel__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .lv-offer { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .lv-offer__v { font-size: 30px; }
  .lv-seg { width: auto; flex-direction: column; border-radius: var(--lv-r2); }
  .lv-seg__tab { border-radius: var(--bf-radius-sm); }
  .lv-card { padding: 18px; }
  .lv-steps { grid-template-columns: minmax(0, 1fr); }
  .lv-step__img { max-width: 280px; justify-self: center; align-self: center; }
  .lv-post { grid-template-columns: minmax(0, 1fr) 84px; }
  .lv-post__img { width: 84px; height: 84px; }
}
/* SITE-STATUS-LABELS (05.11.2026): бейдж статусу функції біля назви чіпа. Спільний .bf-sx-chip не змінюється: усе лише на чіпах із .chip-has-status. */
.bf-sx-chip.chip-has-status { flex-wrap: wrap; row-gap: 4px; padding-block: 6px; max-width: 100%; }
.chip-status { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--bf-radius-full); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.chip-status--soon { background: var(--bf-card); color: var(--bf-st-neutral-fg); }
.chip-status--agree { background: var(--bf-st-warning-bg); color: var(--bf-st-warning-fg); }
.intg-status-note { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--bf-text-2); }
/* RETAIL-MARKETPLACES-FULL (23.11.2026): статуси маркетплейсів (джерело — data/site_facts.php 'mp') і групи майданчиків на /integratsiyi/ та
   /crm-dlya-internet-magazynu-marketpleisy/. Лише нові класи .chip-status--key|--feed і .mpl-*; спільні .bf-sx-chip / .intg-cat не змінюються.
   Обгортка груп — .intg-categories / .intg-cat (вигляд картки й скла), заголовок — власний .mpl-t (НЕ .intg-cat__title: його розбирає bf2_sw_intg_hub). */
.chip-status--key { background: var(--bf-accent-soft); color: var(--bf-accent-ink); }
.chip-status--feed { background: var(--bf-st-neutral-bg); color: var(--bf-st-neutral-fg); }
.mpl-t { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 650; }
.mpl-t svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--bf-accent-ink); }
.mpl-d { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--bf-text-2); }
.intg-cat .bf-sx-chips.mpl-chips { justify-content: flex-start; }
.mpl-wide { grid-column: 1 / -1; }
.mpl-legend { display: grid; gap: 6px; max-width: 920px; margin: 16px auto 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--bf-text-2); }
.mpl-legend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.mpl-legend .chip-status { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .lv-ai *, .lv-offer, .lv-offer *, .lv-fx-tiers *, .lv-fx-table * { animation: none !important; }
  .lv-fx-tiers > .bf-sx-tier:hover, .lv-offer:hover { transform: none; }
  .lv-caret { display: none; }
}
