/*
 * Блок-презентація AI-асистента [monoscript_ai_showcase]: чорне тло, мінімалізм у дусі apple.com, шрифти теми.
 * На комп'ютері весь блок разом з відступами — до 680 px заввишки (вікно чату 540 + 2 × 64).
 */
.bba-sc {
	--sc-bg: #000;
	--sc-text: #f5f5f7;
	--sc-muted: #86868b;
	--sc-blue: #0071e3;
	--sc-link: #2997ff;
	--sc-panel: #161617;
	--sc-bubble: #262628;
	--sc-line: rgba(255, 255, 255, .1);
	background: var(--sc-bg);
	color: var(--sc-text);
	/* Шрифти сайту (тема Woodmart: Inter Tight); без теми — успадковані. */
	font-family: var(--wd-text-font, inherit);
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
	padding: 64px 22px;
	position: relative;
}
.bba-sc *, .bba-sc *::before, .bba-sc *::after { box-sizing: border-box; }
.bba-sc-inner {
	align-items: center;
	display: grid;
	gap: clamp(40px, 6vw, 96px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	margin: 0 auto;
	max-width: 1080px;
}

/* Текст ліворуч: заголовок, одне речення, тихий рядок переваг, дві кнопки, питання. */
.bba-sc-eyebrow {
	background: linear-gradient(90deg, #2997ff, #a259ff 60%, #ff6b9a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 17px;
	font-weight: 500;
	margin: 0 0 12px;
}
.bba-sc-title {
	color: var(--sc-text);
	font-family: var(--wd-title-font, inherit);
	font-size: clamp(38px, 3.9vw, 56px);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 20px;
	text-transform: none;
}
.bba-sc-title span { color: var(--sc-muted); display: block; }
.bba-sc-lead {
	color: var(--sc-text);
	font-size: clamp(17px, 1.6vw, 21px);
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 14px;
	max-width: 28em;
}
.bba-sc-points { color: var(--sc-muted); font-size: 15px; margin: 0 0 32px; }
.bba-sc-points i { font-style: normal; padding: 0 10px; }

.bba-sc-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 28px; }
.bba-sc a.bba-sc-btn {
	align-items: center;
	border-radius: 980px;
	cursor: pointer;
	display: inline-flex;
	font-size: 17px;
	font-weight: 400;
	gap: 6px;
	line-height: 1;
	padding: 14px 24px;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.bba-sc a.bba-sc-btn-primary { background: var(--sc-blue); color: #fff; }
.bba-sc a.bba-sc-btn-primary:hover { background: #0077ed; color: #fff; }
.bba-sc a.bba-sc-btn-ghost { border: 1px solid var(--sc-link); color: var(--sc-link); }
.bba-sc a.bba-sc-btn-ghost:hover { background: var(--sc-link); color: #000; }
.bba-sc a.bba-sc-btn:active { transform: scale(.98); }
.bba-sc a.bba-sc-btn:focus-visible, .bba-sc a.bba-sc-chip:focus-visible { outline: 2px solid var(--sc-link); outline-offset: 3px; }

.bba-sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bba-sc a.bba-sc-chip {
	border: 1px solid var(--sc-line);
	border-radius: 980px;
	color: var(--sc-muted);
	font-size: 13px;
	line-height: 1.2;
	padding: 8px 14px;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.bba-sc a.bba-sc-chip:hover { border-color: rgba(41, 151, 255, .6); color: var(--sc-text); }

/* Вікно чату праворуч */
.bba-sc-demo { position: relative; }
.bba-sc-glow {
	background:
		radial-gradient(40% 45% at 30% 30%, rgba(41, 151, 255, .22), transparent 70%),
		radial-gradient(40% 45% at 75% 70%, rgba(162, 89, 255, .18), transparent 70%);
	filter: blur(40px);
	inset: -12% -8%;
	pointer-events: none;
	position: absolute;
}
.bba-sc-window {
	background: rgba(22, 22, 23, .92);
	border: 1px solid var(--sc-line);
	border-radius: 30px;
	box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
	display: flex;
	flex-direction: column;
	cursor: pointer;
	height: 540px;
	transition: border-color .3s, box-shadow .3s;
	width: 100%;
	overflow: hidden;
	position: relative;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}
.bba-sc-bar { align-items: center; border-bottom: 1px solid var(--sc-line); display: flex; gap: 12px; padding: 18px 20px; }
.bba-sc-avatar {
	background: conic-gradient(from 200deg, #2997ff, #a259ff, #ff6b9a, #2997ff);
	border-radius: 50%;
	flex: 0 0 36px;
	height: 36px;
	position: relative;
}
.bba-sc-avatar::after { background: #161617; border-radius: 50%; content: ""; inset: 9px; position: absolute; }
.bba-sc-who { display: flex; flex-direction: column; line-height: 1.2; }
.bba-sc-who strong { color: var(--sc-text); font-size: 15px; font-weight: 600; }
.bba-sc-who span { align-items: center; color: var(--sc-muted); display: flex; font-size: 12px; gap: 6px; }
.bba-sc-who i { background: #30d158; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.bba-sc-shop {
	border: 1px solid var(--sc-line);
	border-radius: 980px;
	color: var(--sc-muted);
	font-size: 12px;
	margin-left: auto;
	padding: 6px 11px;
	transition: opacity .4s;
	white-space: nowrap;
}
.bba-sc-shop.is-fading { opacity: 0; }

/* Стрічка: нові повідомлення внизу, старі плавно їдуть угору й тануть під маскою. */
.bba-sc-feed {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	justify-content: flex-end;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
	overflow: hidden;
	padding: 20px 18px 14px;
}
.bba-sc-msg {
	/* Затримка: спершу старі повідомлення звільняють місце (зсув 450 мс), потім проявляється нове. */
	animation: bba-sc-in .5s cubic-bezier(.2, .8, .2, 1) .32s both;
	border-radius: 20px;
	font-size: 15px;
	line-height: 1.4;
	max-width: 82%;
	padding: 11px 15px;
	transition: opacity .6s, transform .6s;
}
.bba-sc-msg.is-user { align-self: flex-end; background: var(--sc-blue); border-bottom-right-radius: 6px; color: #fff; }
.bba-sc-msg.is-ai { align-self: flex-start; background: var(--sc-bubble); border-bottom-left-radius: 6px; color: var(--sc-text); }
.bba-sc-msg.is-gone { opacity: 0; transform: translateY(-14px) scale(.98); }
.bba-sc-card {
	align-items: center;
	background: rgba(255, 255, 255, .06);
	border-radius: 14px;
	display: flex;
	gap: 12px;
	margin-top: 10px;
	padding: 10px;
}
.bba-sc-card i {
	background: linear-gradient(135deg, #3a3a3c, #1c1c1e);
	border-radius: 10px;
	flex: 0 0 44px;
	height: 44px;
}
.bba-sc-card b { display: block; font-size: 13px; font-weight: 500; }
.bba-sc-card em { color: var(--sc-link); font-size: 13px; font-style: normal; font-weight: 600; }
.bba-sc-typing { animation: bba-sc-in .4s ease .3s both; align-self: flex-start; background: var(--sc-bubble); border-radius: 20px; border-bottom-left-radius: 6px; display: flex; gap: 5px; padding: 14px 16px; }
.bba-sc-typing span { animation: bba-sc-dot 1.2s infinite; background: var(--sc-muted); border-radius: 50%; height: 7px; width: 7px; }
.bba-sc-typing span:nth-child(2) { animation-delay: .15s; }
.bba-sc-typing span:nth-child(3) { animation-delay: .3s; }
.bba-sc-input {
	align-items: center;
	border-top: 1px solid var(--sc-line);
	color: var(--sc-muted);
	display: flex;
	font-size: 14px;
	justify-content: space-between;
	padding: 16px 20px;
}
.bba-sc-input i { background: var(--sc-blue); border-radius: 50%; height: 28px; opacity: .5; width: 28px; }

@keyframes bba-sc-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bba-sc-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Поява тексту під час прокрутки */
.bba-sc .bba-sc-text > * { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.bba-sc.is-pre .bba-sc-text > * { opacity: 0; transform: translateY(24px); }
.bba-sc .bba-sc-text > :nth-child(2) { transition-delay: .06s; }
.bba-sc .bba-sc-text > :nth-child(3) { transition-delay: .12s; }
.bba-sc .bba-sc-text > :nth-child(4) { transition-delay: .18s; }
.bba-sc .bba-sc-text > :nth-child(5) { transition-delay: .24s; }
.bba-sc .bba-sc-text > :nth-child(6) { transition-delay: .3s; }

@media (max-width: 900px) {
	.bba-sc-inner { gap: 48px; }
	.bba-sc-inner { grid-template-columns: minmax(0, 1fr); }
	.bba-sc-window { height: 460px; margin: 0 auto; max-width: 440px; }
}
@media (max-width: 480px) {
	.bba-sc { padding: 56px 16px; }
	.bba-sc-actions { align-items: stretch; flex-direction: column; }
	.bba-sc a.bba-sc-btn { justify-content: center; }
	.bba-sc-window { border-radius: 24px; height: 440px; }
	.bba-sc-msg { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.bba-sc *, .bba-sc *::before, .bba-sc *::after { animation: none !important; transition: none !important; }
	.bba-sc.is-pre .bba-sc-text > * { opacity: 1; transform: none; }
}

/* Вікно-демо — це кнопка: клік відкриває справжній чат. */
.bba-sc-window:hover { border-color: rgba(41, 151, 255, .45); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 4px rgba(41, 151, 255, .12); }
.bba-sc-window:focus-visible { outline: 2px solid var(--sc-link); outline-offset: 4px; }
.bba-sc-window:hover .bba-sc-input i { opacity: 1; }
.bba-sc-input span { transition: color .3s; }
.bba-sc-window:hover .bba-sc-input span { color: var(--sc-text); }
