/**
 * Features page — scoped to .page-features only.
 */

/* ── Section 1: Free vs Pro matrix (matches homepage compare-teaser) ── */
.page-features .ll-features-matrix {
	position: relative;
	overflow: hidden;
}

.page-features .ll-features-matrix::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 50% at 15% 0%, rgba(0, 102, 255, 0.06) 0%, transparent 55%),
		radial-gradient(ellipse 60% 45% at 90% 100%, rgba(0, 163, 42, 0.05) 0%, transparent 50%);
	pointer-events: none;
}

.page-features .ll-features-matrix .ll-container {
	position: relative;
	z-index: 1;
}

.page-features .ll-features-matrix__lead {
	max-width: 45rem;
	margin: 0 auto 2.5rem;
	text-align: center;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #5b6b7c;
	text-wrap: pretty;
}

.page-features .ll-features-matrix__header {
	max-width: 40rem;
	margin: 0 auto 2rem;
	text-align: center;
}

.page-features .ll-features-matrix__title {
	margin: 0 0 0.75rem;
	font-family: "DM Sans", sans-serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ll-navy);
	text-wrap: balance;
}

.page-features .ll-features-matrix__subtitle {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: #5b6b7c;
}

/* Table card — highlighted comparison panel */
.page-features .ll-features-matrix__table-card {
	position: relative;
	overflow: hidden;
	max-width: 52rem;
	margin-inline: auto;
	padding: 0;
	border-radius: 18px;
	border: 2px solid rgba(0, 102, 255, 0.22);
	background:
		linear-gradient(180deg, #fff 0%, #f8fbff 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 20px 48px rgba(0, 102, 255, 0.12),
		0 4px 16px rgba(2, 12, 42, 0.06);
}

.page-features .ll-features-matrix__table-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ll-success) 0%, var(--ll-success) 42%, var(--ll-primary) 42%, var(--ll-primary) 100%);
	pointer-events: none;
}

.page-features .ll-features-matrix__table-card .ll-table-wrap {
	margin: 0;
	border-radius: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.page-features .ll-features-matrix__table-card .ll-features-table {
	width: 100%;
	font-size: 0.875rem;
	border-collapse: separate;
	border-spacing: 0;
}

.page-features .ll-features-matrix__table-card .ll-features-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--ll-surface);
	background: #fff;
}

.page-features .ll-features-matrix__table-card .ll-features-table__col-feature {
	text-align: left;
	min-width: 11rem;
	color: #5b6b7c;
}

.page-features .ll-features-matrix__table-card .ll-features-table__col-tier {
	text-align: center;
	width: 6rem;
	min-width: 5.5rem;
}

.page-features .ll-features-matrix__table-card .ll-features-table__col-tier--free {
	color: #2d6a3e;
	background: linear-gradient(180deg, #f4fbf6 0%, #fff 100%);
}

.page-features .ll-features-matrix__table-card .ll-features-table__col-tier--pro {
	color: var(--ll-primary);
	background: linear-gradient(180deg, #e8f0ff 0%, #f4f8ff 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.12);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody td {
	padding: 0.8rem 1rem;
	vertical-align: middle;
	border-bottom: 1px solid rgba(2, 12, 42, 0.06);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody td:first-child {
	font-weight: 500;
	color: var(--ll-navy);
	text-align: left;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody td:nth-child(2),
.page-features .ll-features-matrix__table-card .ll-features-table tbody td:nth-child(3) {
	text-align: center;
	width: 6rem;
	font-size: 1rem;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody td:nth-child(2) {
	background: rgba(0, 163, 42, 0.03);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody td.ll-table__highlight {
	background: #f4f8ff;
	font-weight: 700;
}

.page-features .ll-features-matrix__table-card .ll-features-table .ll-check {
	color: var(--ll-success);
}

.page-features .ll-features-matrix__table-card .ll-features-table .ll-dash {
	color: #8a96a3;
	font-weight: 600;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:nth-child(even):not(.ll-features-table__pro-only) td {
	background-color: rgba(2, 12, 42, 0.02);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:nth-child(even):not(.ll-features-table__pro-only) td:nth-child(2) {
	background-color: rgba(0, 163, 42, 0.05);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:nth-child(even):not(.ll-features-table__pro-only) td.ll-table__highlight {
	background-color: #eef4ff;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr.ll-features-table__pro-only td {
	background: #fafcff;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr.ll-features-table__pro-only td:nth-child(2) {
	background: #f8f9fa;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr.ll-features-table__pro-only td.ll-table__highlight {
	background: #f0f5ff;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr.ll-features-table__pro-only:first-of-type td {
	border-top: 2px solid rgba(0, 102, 255, 0.2);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr.ll-features-table__pro-only:first-of-type td:first-child::before {
	content: "Pro adds";
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ll-primary);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:hover td {
	background: var(--ll-surface-light);
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:hover td:nth-child(2) {
	background: #edf7f0;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:hover td.ll-table__highlight {
	background: #e8f0ff;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr.ll-features-table__pro-only:hover td {
	background: #f0f5ff;
}

.page-features .ll-features-matrix__table-card .ll-features-table tbody tr:last-child td {
	border-bottom: 0;
}

@media (min-width: 768px) {
	.page-features .ll-features-matrix__table-card .ll-features-table thead th,
	.page-features .ll-features-matrix__table-card .ll-features-table tbody td {
		padding: 0.875rem 1.25rem;
	}

	.page-features .ll-features-matrix__table-card .ll-features-table__col-tier {
		width: 7rem;
	}
}

.page-features .ll-features-matrix__links {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 35px;
	margin-bottom: 0;
	font-size: 0.9375rem;
}

.page-features .ll-features-matrix__links a {
	font-weight: 600;
}

/* ── Shared section header ── */
.page-features .ll-features-section-header {
	max-width: 40rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.page-features .ll-features-section-header .ll-section-eyebrow,
.page-features .ll-features-section-header .ll-badge {
	margin-bottom: 0.75rem;
}

.page-features .ll-features-section-header__title {
	margin: 0 0 0.75rem;
	font-family: "DM Sans", sans-serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ll-navy);
}

.page-features .ll-features-section-header__tier--free {
	color: var(--ll-success);
}

.page-features .ll-features-section-header__tier--pro {
	color: var(--ll-primary);
}

.page-features .ll-features-section-header__lead {
	margin: 0;
	font-size: 1.0625rem;
	color: #5b6b7c;
}

/* ── Section 2: Free tier ── */
.page-features .ll-features-free__cards {
	margin-bottom: 2.5rem;
}

.page-features .ll-features-card {
	height: 100%;
}

.page-features .ll-features-free__cards .ll-card__meta {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2d6a3e;
	background: linear-gradient(145deg, #f4fbf6 0%, #e8f7ec 100%);
	border: 1px solid rgba(0, 163, 42, 0.28);
}

.page-features .ll-features-card__title {
	margin: 0 0 0.25rem;
	font-family: "DM Sans", sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ll-navy);
}

.page-features .ll-features-card__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5b6b7c;
}

.page-features .ll-features-demos__row {
	margin-top: 2rem;
}

.page-features .ll-features-demo__title {
	margin: 0 0 0.75rem;
	font-family: "DM Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ll-navy);
}

.page-features .ll-features-demo__lead {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5b6b7c;
}

.page-features .ll-features-score {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.page-features .ll-features-score__ring {
	width: 5rem;
	height: 5rem;
	margin: 0;
	border-width: 6px;
	flex-shrink: 0;
}

.page-features .ll-features-score__ring .ll-score-ring__num {
	font-size: 1.5rem;
}

.page-features .ll-features-score__checks {
	flex: 1;
	min-width: 0;
}

.page-features .ll-features-gbp-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.page-features .ll-features-gbp-header strong {
	font-size: 0.8125rem;
	color: var(--ll-navy);
}

.page-features .ll-features-health-good {
	color: var(--ll-success);
	font-weight: 600;
}

.page-features .ll-features-spotlight {
	max-width: 35rem;
	margin: 2.5rem auto 0;
	text-align: center;
}

.page-features .ll-features-spotlight .ll-features-demo__title,
.page-features .ll-features-spotlight .ll-features-demo__lead {
	text-align: center;
}

.page-features .ll-features-cta {
	margin: 2.5rem 0 0;
	text-align: center;
}

.page-features .ll-features-cta--compact {
	margin-top: 2rem;
}

.page-features .ll-features-cta__links {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
}

.page-features .ll-features-cta__links a {
	font-weight: 600;
}

/* ── Section 3: Pro tier ── */
.page-features .ll-features-upgrade {
	max-width: 40rem;
	margin: 0 auto 2rem;
	padding: 1rem 1.25rem;
	text-align: center;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5b6b7c;
	background: linear-gradient(135deg, #f4f7fc 0%, #e8f0ff 100%);
	border: 1px solid #c5d9ff;
	border-radius: var(--ll-radius);
}

.page-features .ll-features-upgrade strong {
	color: var(--ll-navy);
}

.page-features .ll-features-pro .ll-features-card {
	border-color: rgba(0, 102, 255, 0.12);
}

.page-features .ll-features-pro .ll-card__meta {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ll-primary);
	background: rgba(0, 102, 255, 0.07);
	border: 1px solid rgba(0, 102, 255, 0.12);
}

.page-features .ll-features-pro .ll-features-card:hover {
	border-color: rgba(0, 102, 255, 0.28);
	box-shadow: 0 8px 28px rgba(0, 102, 255, 0.1);
}

@media (max-width: 640px) {
	.page-features .ll-features-matrix__lead {
		margin-bottom: 2rem;
		font-size: 1rem;
		text-align: left;
	}

	.page-features .ll-features-matrix__header {
		margin-bottom: 1.75rem;
		text-align: left;
	}

	.page-features .ll-features-matrix__title {
		font-size: clamp(1.5rem, 6.5vw, 1.875rem);
	}

	.page-features .ll-features-matrix__table-card {
		border-radius: 14px;
	}

	.page-features .ll-features-matrix__table-card .ll-features-table thead th,
	.page-features .ll-features-matrix__table-card .ll-features-table tbody td {
		padding: 0.75rem 0.875rem;
	}

	.page-features .ll-features-matrix__table-card .ll-features-table__col-feature {
		min-width: 9.5rem;
	}

	.page-features .ll-features-section-header {
		margin-bottom: 1.75rem;
		text-align: left;
	}

	.page-features .ll-features-section-header__title {
		font-size: clamp(1.5rem, 6.5vw, 1.875rem);
	}

	.page-features .ll-features-free__cards {
		margin-bottom: 2rem;
	}

	.page-features .ll-features-demos__row {
		margin-top: 1.5rem;
	}

	.page-features .ll-features-score {
		flex-direction: column;
		align-items: stretch;
	}

	.page-features .ll-features-score__ring {
		align-self: flex-start;
	}

	.page-features .ll-features-cta .ll-btn {
		display: flex;
		width: 100%;
		justify-content: center;
	}

	.page-features .ll-features-cta__links {
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
	}
}
