/* ==========================================================================
   TextCRM Final CTA Widget
   Mirrors demo-html/home page.html → closing "Ready to grow your revenue?
   Start turning conversations into revenue today" section.
   ========================================================================== */

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

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

/* --------------------------------------------------------------------------
   Background effects (tint + dot pattern)
   bg-brand-green/5  +  radial-gradient(#00f5a0 1px, transparent 1px) @ 30px
   -------------------------------------------------------------------------- */
.textcrm-final-cta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.textcrm-final-cta__tint,
.textcrm-final-cta__dots {
	position: absolute;
	inset: 0;
}

.textcrm-final-cta__tint {
	background-color: rgba(0, 245, 160, 0.05);
}

.textcrm-final-cta__dots {
	opacity: 0.1;
	background-image: radial-gradient(#00f5a0 1px, transparent 1px);
	background-size: 30px 30px;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.textcrm-final-cta__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Card — bg-[#131b2e] rounded-3xl p-12 md:p-20 border border-white/5
   flex flex-col md:flex-row items-center justify-between gap-12
   -------------------------------------------------------------------------- */
.textcrm-final-cta__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 48px;                        /* gap-12 */
	padding: 32px 24px;               /* phone fallback */
	border-radius: 24px;              /* rounded-3xl */
	border: 1px solid rgba(255, 255, 255, 0.05);
	background-color: #131b2e;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Text column
   -------------------------------------------------------------------------- */
.textcrm-final-cta__text {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 576px;                 /* max-w-xl */
	text-align: left;
}

/* Eyebrow — text-[10px] font-bold uppercase tracking-widest text-brand-green mb-6 */
.textcrm-final-cta__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;              /* mb-6 */
	font-size: 10px;
	line-height: 1.4;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #00f5a0;
}

/* Title — text-4xl md:text-5xl font-bold mb-8 */
.textcrm-final-cta__title {
	margin: 0 0 32px;                 /* mb-8 */
	font-size: 36px;                  /* text-4xl ≈ 36px (mobile-first) */
	line-height: 1.1;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

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

/* Indicators — grid grid-cols-1 sm:grid-cols-3 gap-4 mb-10
   text-xs font-bold text-gray-500 uppercase tracking-widest */
.textcrm-final-cta__indicators {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;                        /* gap-4 */
	margin-bottom: 40px;              /* mb-10 */
	color: #6b7280;
	font-size: 12px;                  /* text-xs */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.3;
}

.textcrm-final-cta__indicator {
	display: inline-flex;
	align-items: center;
	gap: 8px;                         /* gap-2 */
	color: inherit;
}

.textcrm-final-cta__indicator-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;                      /* w-4 h-4 */
	height: 16px;
	flex-shrink: 0;
	color: #00f5a0;
}

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

.textcrm-final-cta__indicator-text {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Action buttons — flex flex-col sm:flex-row items-center gap-4
   px-8 py-4 rounded-xl font-bold text-lg
   -------------------------------------------------------------------------- */
.textcrm-final-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;                        /* gap-4 */
	width: 100%;
}

.textcrm-final-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;                         /* gap-2 */
	width: 100%;
	padding: 16px 32px;               /* px-8 py-4 */
	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-final-cta__btn:focus-visible {
	outline: 2px solid rgba(0, 245, 160, 0.65);
	outline-offset: 2px;
}

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

.textcrm-final-cta__btn--primary:hover {
	box-shadow: 0 0 24px rgba(0, 245, 160, 0.4); /* hover:shadow-xl, brand-tinted */
	transform: translateY(-1px);
}

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

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

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

.textcrm-final-cta__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;                      /* w-5 h-5 */
	height: 20px;
	flex-shrink: 0;
	color: currentColor;
}

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

/* --------------------------------------------------------------------------
   Graphic asset (node representation, lg+ only)
   hidden lg:block relative w-96 h-96
   -------------------------------------------------------------------------- */
.textcrm-final-cta__graphic {
	display: none;
	position: relative;
	width: 384px;
	height: 384px;
	flex-shrink: 0;
}

.textcrm-final-cta__graphic-glow {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 245, 160, 0.2);
	border-radius: 9999px;
	filter: blur(100px);
	-webkit-filter: blur(100px);
	pointer-events: none;
}

.textcrm-final-cta__graphic-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 24px;                    /* p-6 */
	border-radius: 16px;              /* rounded-2xl */
	border: 1px solid rgba(255, 255, 255, 0.05);
	background-color: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.textcrm-final-cta__graphic-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;                      /* w-24 h-24 */
	height: 96px;
	margin-bottom: 32px;              /* mb-8 */
	border-radius: 16px;              /* rounded-2xl */
	border: 1px solid rgba(0, 245, 160, 0.4);
	background-color: #0b1326;
	box-shadow: 0 0 20px rgba(0, 245, 160, 0.2);
	color: #00f5a0;
}

.textcrm-final-cta__graphic-main svg {
	width: 48px;                      /* w-12 h-12 */
	height: 48px;
	display: block;
	color: currentColor;
}

.textcrm-final-cta__graphic-main i {
	font-size: 48px;
	line-height: 1;
	color: currentColor;
}

.textcrm-final-cta__graphic-nodes {
	display: flex;
	gap: 16px;                        /* gap-4 */
}

.textcrm-final-cta__graphic-node {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;                      /* w-12 h-12 */
	height: 48px;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	background-color: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #6b7280;
	cursor: pointer;
	transition: color 200ms ease, background-color 200ms ease,
		border-color 200ms ease;
}

.textcrm-final-cta__graphic-node:hover {
	color: #00f5a0;
	border-color: rgba(0, 245, 160, 0.3);
}

.textcrm-final-cta__graphic-node svg {
	width: 24px;                      /* w-6 h-6 */
	height: 24px;
	display: block;
	color: currentColor;
}

.textcrm-final-cta__graphic-node i {
	font-size: 24px;
	line-height: 1;
	color: currentColor;
}

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

/* sm+ — buttons & indicators inline, slightly wider card padding */
@media (min-width: 640px) {
	.textcrm-final-cta__indicators {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.textcrm-final-cta__actions {
		flex-direction: row;
		align-items: center;
		width: auto;
	}
	.textcrm-final-cta__btn {
		width: auto;
	}
}

/* md+ — full padding, larger title, row layout begins */
@media (min-width: 768px) {
	.textcrm-final-cta__card {
		flex-direction: row;
		align-items: center;
		padding: 56px;
	}
	.textcrm-final-cta__text {
		text-align: left;
	}
	.textcrm-final-cta__title {
		font-size: 48px;              /* md:text-5xl */
	}
}

/* lg+ — reference padding (p-20 = 80px) and graphic asset becomes visible */
@media (min-width: 1024px) {
	.textcrm-final-cta__card {
		padding: 80px;
	}
	.textcrm-final-cta__card--with-graphic .textcrm-final-cta__graphic {
		display: block;
	}
}

/* Small phones — tighten section padding */
@media (max-width: 480px) {
	.textcrm-final-cta {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	.textcrm-final-cta__container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.textcrm-final-cta__title {
		font-size: 30px;
	}
}

/* Tighten alignment when the card stacks vertically */
@media (max-width: 767px) {
	.textcrm-final-cta__text {
		text-align: left;
		max-width: 100%;
	}
}

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