/* ==========================================================================
   TextCRM Solutions CTA Widget
   Mirrors demo-html/solution.html → closing "Ready to scale? — Start turning
   conversations into revenue today" section. Centered single-column layout,
   gradient glass card, soft radial glow, button sizing aligned to the Final
   CTA widget so closing CTAs across the site stay visually consistent.
   ========================================================================== */

.textcrm-solutions-cta {
	position: relative;
	width: 100%;
	padding-top: 96px;                /* py-24 */
	padding-bottom: 96px;
	background-color: #0b1326;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #f3f4f6;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.textcrm-solutions-cta *,
.textcrm-solutions-cta *::before,
.textcrm-solutions-cta *::after {
	box-sizing: border-box;
}

.textcrm-solutions-cta__container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Card — glass-card rounded-[3rem] gradient-bg from-surface-container-highest
   to-surface, with a subtle radial glow in the top/bottom corner.
   -------------------------------------------------------------------------- */
.textcrm-solutions-cta__card {
	position: relative;
	overflow: hidden;
	padding: 80px;                    /* p-20 default */
	border-radius: 48px;              /* rounded-[3rem] */
	border: 1px solid rgba(255, 255, 255, 0.1);
	background-color: rgba(255, 255, 255, 0.03); /* matches Roles widget card surface */
	text-align: center;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);

	/* Glow tunables, driven by the Style tab. */
	--solctas-glow: rgba(68, 226, 205, 0.15);
	--solctas-glow-pos: 80% 80%;
}

.textcrm-solutions-cta__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--solctas-glow-pos, 80% 80%), var(--solctas-glow, rgba(68, 226, 205, 0.15)), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

/* Inner content stacks above the glow layer. */
.textcrm-solutions-cta__content {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   Eyebrow — text-secondary uppercase tracking-widest block mb-6
   -------------------------------------------------------------------------- */
.textcrm-solutions-cta__eyebrow {
	display: block;
	margin-bottom: 24px;              /* mb-6 */
	font-size: 12px;
	line-height: 1;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;            /* tracking-widest */
	color: #00f5a0;
}

/* --------------------------------------------------------------------------
   Title — text-headline-lg-mobile md:text-headline-lg mb-8
   -------------------------------------------------------------------------- */
.textcrm-solutions-cta__title {
	margin: 0 0 32px;                 /* mb-8 */
	font-size: 32px;                  /* headline-lg-mobile */
	line-height: 1.2;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.textcrm-solutions-cta__title-accent {
	color: #00f5a0;
}

/* --------------------------------------------------------------------------
   Subtitle / description — Roles-widget parity (Inter 400, 16/1.6, gray-400)
   -------------------------------------------------------------------------- */
.textcrm-solutions-cta__subtitle {
	margin: 0 auto 32px;
	max-width: 640px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #9ca3af;
}

/* Tighten the visual gap when the subtitle directly follows the title — the
   title's tall line-box makes the default 32px feel like ~50px. */
.textcrm-solutions-cta__title + .textcrm-solutions-cta__subtitle {
	margin-top: -16px;
}

/* --------------------------------------------------------------------------
   Actions row — flex flex-col sm:flex-row justify-center gap-4 max-w-xl mx-auto
   Button sizing follows the Final CTA widget (px-8 py-4, rounded-xl, text-lg).
   -------------------------------------------------------------------------- */
.textcrm-solutions-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

.textcrm-solutions-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 32px;               /* px-8 py-4 — Final CTA parity */
	border: 1px solid transparent;
	border-radius: 12px;              /* rounded-xl */
	font-family: inherit;
	font-size: 18px;                  /* text-lg */
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease,
		border-color 200ms ease, box-shadow 250ms ease, transform 200ms ease;
	white-space: nowrap;
}

.textcrm-solutions-cta__btn:focus-visible {
	outline: 2px solid rgba(0, 245, 160, 0.65);
	outline-offset: 2px;
}

.textcrm-solutions-cta__btn--primary {
	background-color: #00f5a0;
	color: #000000;
	border-color: #00f5a0;
}

.textcrm-solutions-cta__btn--primary:hover {
	box-shadow: 0 0 24px rgba(0, 245, 160, 0.4);
	transform: translateY(-1px);
}

.textcrm-solutions-cta__btn--secondary {
	background-color: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.1);
}

.textcrm-solutions-cta__btn--secondary:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.textcrm-solutions-cta__btn-text {
	display: inline-block;
}

.textcrm-solutions-cta__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: currentColor;
}

.textcrm-solutions-cta__btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.textcrm-solutions-cta__btn-icon i {
	font-size: 20px;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Trust indicators — flex flex-wrap justify-center gap-8 text-sm
   -------------------------------------------------------------------------- */
.textcrm-solutions-cta__indicators {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin-top: 48px;                 /* mt-12 */
	color: #c7c4d7;                   /* on-surface-variant */
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.textcrm-solutions-cta__indicator {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
}

.textcrm-solutions-cta__indicator-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;                      /* text-lg ≈ 18px */
	height: 18px;
	flex-shrink: 0;
	color: #00f5a0;
}

.textcrm-solutions-cta__indicator-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.textcrm-solutions-cta__indicator-text {
	white-space: normal;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* sm+ — actions inline, sized to content + padding (matches Final CTA) */
@media (min-width: 640px) {
	.textcrm-solutions-cta__actions {
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}
	.textcrm-solutions-cta__btn {
		width: auto;
	}
}

/* md+ — larger title (headline-lg) */
@media (min-width: 768px) {
	.textcrm-solutions-cta__title {
		font-size: 48px;
	}
}

/* Tablet — slightly tighter padding */
@media (max-width: 1023px) {
	.textcrm-solutions-cta__card {
		padding: 56px;
	}
}

/* Phones — section breathing room, narrower padding, smaller title */
@media (max-width: 640px) {
	.textcrm-solutions-cta__card {
		padding: 40px 24px;
		border-radius: 32px;
	}
	.textcrm-solutions-cta__title {
		font-size: 28px;
	}
	.textcrm-solutions-cta__indicators {
		gap: 16px 24px;
	}
}

@media (max-width: 480px) {
	.textcrm-solutions-cta {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	.textcrm-solutions-cta__container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.textcrm-solutions-cta__indicators {
		margin-top: 32px;
		gap: 12px 20px;
		font-size: 13px;
	}
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	.textcrm-solutions-cta__btn {
		transition: none;
	}
	.textcrm-solutions-cta__btn--primary:hover {
		transform: none;
	}
}
