/* =============================================================================
 * LITSLINK BLOCKS — Tech stack · dark accordion (acf/ll-techstack-dark)
 * Self-contained: block-scoped palette, literal font fallback. No global .block-head.
 * Colors sampled from the mockup cut: bg #010005, item border #768297,
 * note bg #030e1a, accent #1690d3.
 * ========================================================================== */
.block-ll-techstack-dark {
	--tsd-bg: #010005;
	--tsd-border: #768297;
	--tsd-ink: #ffffff;
	--tsd-body: #f9fafb;
	--tsd-muted: #e5e7eb;
	--tsd-accent: #1690d3;
	--tsd-note-bg: #030e1a;

	position: relative;
	font-family: var(--ll-font, 'Montserrat', 'Montserrat-fallback', Arial, sans-serif);
	background: var(--tsd-bg) url(../../../images/fitness-ai-agents/stack-bg.webp) center / cover no-repeat;
	padding: 75px 0 70px;
	box-sizing: border-box;
}
.block-ll-techstack-dark *,
.block-ll-techstack-dark *::before,
.block-ll-techstack-dark *::after { box-sizing: border-box; }

.block-ll-techstack-dark__inner {
	position: relative;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

/* Header */
.block-ll-techstack-dark__head-block { text-align: center; max-width: 820px; margin: 0 auto; }
.block-ll-techstack-dark__eyebrow {
	margin: 0 0 12px;
	font-size: 12px; line-height: 16px; font-weight: 700;
	letter-spacing: 1.2px; text-transform: uppercase;
	color: var(--tsd-border);
}
.block-ll-techstack-dark__title {
	margin: 0;
	font-size: 40px; line-height: 52px; font-weight: 600; letter-spacing: -1px;
	color: var(--tsd-ink);
}
.block-ll-techstack-dark__subtitle {
	margin: 14px auto 0; max-width: 780px;
	font-size: 18px; line-height: 27px; font-weight: 400;
	color: var(--tsd-muted);
}

/* Accordion columns */
.block-ll-techstack-dark__cols { display: flex; gap: 32px; align-items: flex-start; width: 100%; }
.block-ll-techstack-dark__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.block-ll-techstack-dark__item {
	background: var(--tsd-bg);
	border: 1px solid var(--tsd-border);
	border-radius: 16px;
	overflow: hidden;
	padding: 20px;
}
.block-ll-techstack-dark__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}
.block-ll-techstack-dark__head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.block-ll-techstack-dark__icon { flex: 0 0 auto; display: flex; color: var(--tsd-body); }
.block-ll-techstack-dark__icon svg,
.block-ll-techstack-dark__icon img { display: block; }
.block-ll-techstack-dark__item-title {
	margin: 0;
	font-size: 16px; line-height: 22px; font-weight: 600;
	font-family: inherit;
	color: var(--tsd-ink);
}
.block-ll-techstack-dark__chev { flex: 0 0 16px; color: var(--tsd-body); transition: transform 0.25s ease; }
.block-ll-techstack-dark__item--open .block-ll-techstack-dark__chev { transform: rotate(180deg); }
.block-ll-techstack-dark__body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.block-ll-techstack-dark__item--open .block-ll-techstack-dark__body { max-height: 480px; }
.block-ll-techstack-dark__body p {
	margin: 10px 0 0;
	font-size: 14px; line-height: 20px; font-weight: 400;
	color: var(--tsd-body);
}
.block-ll-techstack-dark__body a { color: var(--tsd-accent); text-decoration: underline; }

/* Note bar */
.block-ll-techstack-dark__note {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	min-height: 110px;
	background: var(--tsd-note-bg);
	border: 1px solid rgba(118, 130, 151, 0.75);
	border-radius: 14px;
	padding: 24px;
}
.block-ll-techstack-dark__note-icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(22, 144, 211, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tsd-accent);
}
.block-ll-techstack-dark__note-text {
	margin: 5px 0 0;
	font-size: 16px; line-height: 23px; font-weight: 400;
	color: var(--tsd-muted);
}
.block-ll-techstack-dark__note-text strong { font-weight: 700; color: var(--tsd-ink); }

/* -----------------------------------------------------------------------------
 * OPT-IN trailing CTA bar (tsd_cta). AI-Marketing §09: dark rounded bar, bold
 * title left, outline pill button right. Scoped to __cta so default is untouched.
 * -------------------------------------------------------------------------- */
.block-ll-techstack-dark__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	background: var(--tsd-note-bg);
	border: 1px solid rgba(118, 130, 151, 0.75);
	border-radius: 14px;
	padding: 24px 32px;
}
.block-ll-techstack-dark__cta-title {
	margin: 0;
	font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--tsd-ink);
}
.block-ll-techstack-dark__cta-btn {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 24px;
	border: 1px solid var(--tsd-accent);
	border-radius: 999px;
	color: var(--tsd-ink);
	background: var(--tsd-accent);
	font-size: 15px; font-weight: 600; text-decoration: none;
	transition: opacity .15s ease;
}
.block-ll-techstack-dark__cta-btn:hover { opacity: .9; }

/* Responsive */
@media (max-width: 1024px) {
	.block-ll-techstack-dark { padding: 56px 0; }
	.block-ll-techstack-dark__inner { gap: 32px; }
	.block-ll-techstack-dark__title { font-size: 30px; line-height: 40px; }
	.block-ll-techstack-dark__cols { flex-direction: column; gap: 11px; }
}
@media (max-width: 767px) {
	/* Match library standard: 20px side gutters on mobile (desktop keeps its wide gutter). */
	.block-ll-techstack-dark__inner { padding: 0 20px; }
	.block-ll-techstack-dark { padding: 44px 0; }
	.block-ll-techstack-dark__inner { gap: 24px; }
	.block-ll-techstack-dark__title { font-size: 24px; line-height: 32px; letter-spacing: -0.5px; }
	.block-ll-techstack-dark__subtitle { font-size: 16px; line-height: 24px; }
	.block-ll-techstack-dark__note { min-height: 0; padding: 20px; }
	.block-ll-techstack-dark__cta { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
	.block-ll-techstack-dark__cta-title { font-size: 18px; }
}
