/* ==========================================================================
   TextCRM Compare Features Widget
   "Compare all features" comparison table from demo-html/pricing.html.
   Card surface, accent palette and type scale are aligned 1:1 with the
   Pricing / Roles / Inner Hero widgets so this reads as the same design
   system.
   ========================================================================== */

.textcrm-compare {
	position: relative;
	width: 100%;
	padding-top: 96px;
	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;

	--tc-accent: #00f5a0;
	--tc-card-blur: 10px;
	--tc-check-size: 24px;
	--tc-transition: 250ms;
}

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

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

/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */
.textcrm-compare__header {
	text-align: center;
	margin-bottom: 64px;
}

.textcrm-compare__title {
	margin: 0 0 16px;
	font-size: 30px;
	line-height: 1.3;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.textcrm-compare__subtitle {
	margin: 0 auto;
	max-width: 42rem;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0.01em;
	font-weight: 400;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Card — glass surface, tokens shared with the Roles / Pricing widget
   -------------------------------------------------------------------------- */
.textcrm-compare__card {
	overflow: hidden;
	border-radius: 32px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	background-color: rgba(255, 255, 255, 0.03);
	-webkit-backdrop-filter: blur(var(--tc-card-blur, 10px));
	backdrop-filter: blur(var(--tc-card-blur, 10px));
}

/* Horizontal scroll wrapper — preserves the table layout on narrow screens. */
.textcrm-compare__scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */
.textcrm-compare__table {
	width: 100%;
	min-width: 720px;                 /* prevents collapsing on phones — triggers horizontal scroll */
	border-collapse: collapse;
	table-layout: auto;
}

/* --------------------------------------------------------------------------
   Header row
   -------------------------------------------------------------------------- */
.textcrm-compare__thead {
	background-color: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.textcrm-compare__th {
	padding: 32px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	line-height: 1.4;
	vertical-align: middle;
}

/* "PLATFORM FEATURES" — label-sm uppercase */
.textcrm-compare__th--feature {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #9ca3af;
}

/* Plan name — centered, body-lg sized */
.textcrm-compare__th--plan {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #ffffff;
}

/* Highlighted plan name — brand accent */
.textcrm-compare__th--plan.is-highlighted {
	color: var(--tc-accent, #00f5a0);
}

/* --------------------------------------------------------------------------
   Body rows
   -------------------------------------------------------------------------- */
.textcrm-compare__row {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color var(--tc-transition, 250ms) ease;
}

.textcrm-compare__row:hover {
	background-color: rgba(255, 255, 255, 0.02);
}

.textcrm-compare__td {
	padding: 24px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.01em;
	vertical-align: middle;
}

/* Feature name (first column) — left-aligned, white */
.textcrm-compare__td--feature {
	text-align: left;
	padding-left: 32px;               /* pl-8 in the reference */
	font-weight: 400;
	color: #ffffff;
}

/* Center-aligned value cells */
.textcrm-compare__td--check,
.textcrm-compare__td--dash,
.textcrm-compare__td--text,
.textcrm-compare__td--text-bold {
	text-align: center;
}

/* Plain text value — muted */
.textcrm-compare__td--text {
	color: #9ca3af;
	font-weight: 400;
}

/* Emphasized text value — white + bold */
.textcrm-compare__td--text-bold {
	color: #ffffff;
	font-weight: 700;
}

/* Em-dash cell — muted */
.textcrm-compare__td--dash {
	color: #9ca3af;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
   Check icon
   -------------------------------------------------------------------------- */
.textcrm-compare__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tc-check-size, 24px);
	height: var(--tc-check-size, 24px);
	color: var(--tc-accent, #00f5a0);
}

.textcrm-compare__check svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* --------------------------------------------------------------------------
   Accessibility — visually hidden text used to label check / dash cells
   for screen readers.
   -------------------------------------------------------------------------- */
.textcrm-compare .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

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

@media (max-width: 767px) {
	.textcrm-compare {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.textcrm-compare__container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.textcrm-compare__header {
		margin-bottom: 40px;
	}

	.textcrm-compare__title {
		font-size: 24px;
	}

	.textcrm-compare__card {
		border-radius: 20px;
	}

	/* Tighter cell padding on phones */
	.textcrm-compare__th {
		padding: 20px 16px;
	}

	.textcrm-compare__td {
		padding: 16px;
	}

	.textcrm-compare__td--feature {
		padding-left: 20px;
	}

	/* Slightly smaller check on mobile */
	.textcrm-compare {
		--tc-check-size: 22px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.textcrm-compare__row {
		transition: none;
	}
}
