/**
 * HLxHub — Mobile Compare Review
 *
 * File:
 * assets/css/single-mobile/review/compare-review.css
 *
 * Scope:
 * .hlx-compare-review
 */


/* ================================================================
   ROOT
================================================================ */

.hlx-compare-review {
	position: relative;
	margin: 100px 0 0;
	padding: 0;
	background: #ffffff;
	overflow: hidden;
	isolation: isolate;
}

.hlx-compare-review *,
.hlx-compare-review *::before,
.hlx-compare-review *::after {
	box-sizing: border-box;
}

.hlx-compare-review img,
.hlx-compare-review svg {
	max-width: 100%;
}

.hlx-compare-review svg {
	display: block;
}


/* ================================================================
   BACKGROUND GLOWS
================================================================ */

.hlx-compare-review::before {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	top: 40px;
	left: -260px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(37, 99, 235, 0.08) 0%,
		rgba(37, 99, 235, 0.035) 35%,
		transparent 72%
	);
	pointer-events: none;
	z-index: -1;
}

.hlx-compare-review::after {
	content: "";
	position: absolute;
	width: 500px;
	height: 500px;
	right: -250px;
	bottom: 50px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(32, 191, 107, 0.07) 0%,
		rgba(32, 191, 107, 0.025) 38%,
		transparent 72%
	);
	pointer-events: none;
	z-index: -1;
}


/* ================================================================
   CONTAINER
================================================================ */

.hlx-compare-review__container {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}


/* ================================================================
   HEADER
================================================================ */

.hlx-compare-review__header {
	max-width: 850px;
	margin: 0 auto 52px;
	text-align: center;
}

.hlx-compare-review__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 18px;

	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: #2563eb;
	text-transform: uppercase;
}

.hlx-compare-review__eyebrow-line {
	width: 34px;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		#2563eb
	);
}

.hlx-compare-review__eyebrow-line:last-child {
	background: linear-gradient(
		90deg,
		#2563eb,
		transparent
	);
}

.hlx-compare-review__title {
	margin: 0;
	color: #111827;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.hlx-compare-review__intro {
	max-width: 760px;
	margin: 20px auto 0;
	color: #667085;
	font-size: 16px;
	line-height: 1.8;
}


/* ================================================================
   PHONE CARDS
================================================================ */

.hlx-compare-review__phones {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 34px;
}

.hlx-compare-review__phone-card {
	position: relative;
	min-width: 0;
	padding: 28px 24px 25px;

	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.98),
			rgba(248, 250, 252, 0.92)
		);

	border: 1px solid #e7ebf1;
	border-radius: 24px;

	box-shadow:
		0 15px 45px rgba(15, 23, 42, 0.07),
		0 2px 8px rgba(15, 23, 42, 0.03);

	text-align: center;

	overflow: hidden;

	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.hlx-compare-review__phone-card::before {
	content: "";
	position: absolute;
	width: 190px;
	height: 190px;
	top: -100px;
	right: -80px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(37, 99, 235, 0.09),
		transparent 70%
	);
	pointer-events: none;
}

.hlx-compare-review__phone-card:hover {
	transform: translateY(-6px);
	border-color: rgba(37, 99, 235, 0.22);

	box-shadow:
		0 22px 55px rgba(15, 23, 42, 0.10),
		0 5px 14px rgba(37, 99, 235, 0.06);
}


/* ================================================================
   FEATURED PHONE
================================================================ */

.hlx-compare-review__phone-card.is-featured {
	border-color: rgba(37, 99, 235, 0.30);

	background:
		linear-gradient(
			145deg,
			#ffffff 0%,
			#f7faff 100%
		);

	box-shadow:
		0 22px 60px rgba(37, 99, 235, 0.11),
		0 3px 12px rgba(15, 23, 42, 0.04);
}

.hlx-compare-review__phone-card.is-featured::after {
	content: "";
	position: absolute;
	top: 0;
	left: 12%;
	right: 12%;
	height: 2px;

	background: linear-gradient(
		90deg,
		transparent,
		#2563eb,
		#20bf6b,
		transparent
	);
}


/* ================================================================
   PHONE BADGE
================================================================ */

.hlx-compare-review__phone-badge {
	position: relative;
	z-index: 2;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 27px;
	padding: 5px 11px;

	border-radius: 999px;

	background: #f1f5f9;
	color: #64748b;

	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hlx-compare-review__phone-card.is-featured
.hlx-compare-review__phone-badge {
	background: rgba(37, 99, 235, 0.09);
	color: #2563eb;
}


/* ================================================================
   PHONE IMAGE
================================================================ */

.hlx-compare-review__phone-image {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 190px;

	margin: 18px 0 14px;

	border-radius: 18px;

	background:
		radial-gradient(
			circle at center,
			rgba(37, 99, 235, 0.055),
			transparent 65%
		);
}

.hlx-compare-review__phone-image img {
	width: auto;
	height: auto;
	max-width: 150px;
	max-height: 175px;

	object-fit: contain;

	filter:
		drop-shadow(
			0 20px 20px rgba(15, 23, 42, 0.16)
		);

	transition: transform 0.35s ease;
}

.hlx-compare-review__phone-card:hover
.hlx-compare-review__phone-image img {
	transform: translateY(-7px);
}


/* ================================================================
   IMAGE PLACEHOLDER
================================================================ */

.hlx-compare-review__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 120px;
	height: 170px;

	border: 2px solid #cbd5e1;
	border-radius: 18px;

	color: #94a3b8;

	background:
		linear-gradient(
			145deg,
			#f8fafc,
			#eef2f7
		);

	box-shadow:
		0 18px 28px rgba(15, 23, 42, 0.09);
}

.hlx-compare-review__image-placeholder svg {
	width: 54px;
	height: 80px;
}


/* ================================================================
   PHONE NAME
================================================================ */

.hlx-compare-review__phone-name {
	position: relative;
	z-index: 2;

	margin: 0;

	color: #111827;

	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
}


/* ================================================================
   PHONE PRICE
================================================================ */

.hlx-compare-review__phone-price {
	margin-top: 8px;

	color: #2563eb;

	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}


/* ================================================================
   PHONE VERDICT
================================================================ */

.hlx-compare-review__phone-verdict {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	max-width: 100%;

	margin-top: 13px;
	padding: 7px 11px;

	border-radius: 999px;

	background: rgba(32, 191, 107, 0.08);
	color: #159957;

	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.hlx-compare-review__phone-verdict svg {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}


/* ================================================================
   TABLE WRAPPER
================================================================ */

.hlx-compare-review__table-wrap {
	width: 100%;
	margin-top: 30px;

	border: 1px solid #e6eaf0;
	border-radius: 24px;

	background: rgba(255, 255, 255, 0.96);

	box-shadow:
		0 18px 55px rgba(15, 23, 42, 0.065);

	overflow: hidden;
}


/* ================================================================
   TABLE
================================================================ */

.hlx-compare-review__table {
	width: 100%;
}

.hlx-compare-review__table-row {
	display: grid;
	grid-template-columns: 1.2fr repeat(3, 1fr);

	border-bottom: 1px solid #edf0f4;
}

.hlx-compare-review__table-row:last-child {
	border-bottom: 0;
}


/* ================================================================
   TABLE HEADER
================================================================ */

.hlx-compare-review__table-head {
	background:
		linear-gradient(
			135deg,
			#f8fafc,
			#f2f6fb
		);
}

.hlx-compare-review__table-head
.hlx-compare-review__value {
	color: #111827;
	font-weight: 800;
	font-size: 13px;
}

.hlx-compare-review__table-head
.hlx-compare-review__value:first-of-type {
	background: rgba(37, 99, 235, 0.045);
}


/* ================================================================
   FEATURE CELL
================================================================ */

.hlx-compare-review__feature {
	display: flex;
	align-items: center;
	gap: 11px;

	min-width: 0;
	padding: 18px 20px;

	color: #344054;

	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.hlx-compare-review__feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 32px;
	height: 32px;
	flex: 0 0 32px;

	border-radius: 10px;

	background: rgba(37, 99, 235, 0.07);
	color: #2563eb;
}

.hlx-compare-review__feature-icon svg {
	width: 17px;
	height: 17px;
}


/* ================================================================
   VALUE CELL
================================================================ */

.hlx-compare-review__value {
	display: flex;
	align-items: center;
	justify-content: center;

	min-width: 0;
	padding: 18px 14px;

	color: #475467;

	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;

	text-align: center;
	word-break: break-word;
}

.hlx-compare-review__table-row
.hlx-compare-review__value:nth-child(2) {
	background: rgba(37, 99, 235, 0.025);
	color: #1d4ed8;
	font-weight: 700;
}


/* ================================================================
   BOTTOM GRID
================================================================ */

.hlx-compare-review__bottom-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: 22px;

	margin-top: 30px;
}


/* ================================================================
   HIGHLIGHTS CARD
================================================================ */

.hlx-compare-review__highlights-card,
.hlx-compare-review__note-card {
	position: relative;

	padding: 27px;

	border: 1px solid #e6eaf0;
	border-radius: 22px;

	background:
		linear-gradient(
			145deg,
			#ffffff,
			#f9fbfd
		);

	box-shadow:
		0 14px 40px rgba(15, 23, 42, 0.055);

	overflow: hidden;
}

.hlx-compare-review__highlights-card::before {
	content: "";
	position: absolute;

	width: 190px;
	height: 190px;

	right: -100px;
	top: -90px;

	border-radius: 50%;

	background: radial-gradient(
		circle,
		rgba(32, 191, 107, 0.08),
		transparent 70%
	);

	pointer-events: none;
}


/* ================================================================
   CARD HEADING
================================================================ */

.hlx-compare-review__card-heading {
	position: relative;
	z-index: 2;

	display: flex;
	align-items: center;
	gap: 14px;
}

.hlx-compare-review__heading-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 46px;
	height: 46px;
	flex: 0 0 46px;

	border-radius: 14px;

	background: rgba(32, 191, 107, 0.09);
	color: #20a764;
}

.hlx-compare-review__heading-icon svg {
	width: 23px;
	height: 23px;
}

.hlx-compare-review__card-label {
	display: block;

	margin-bottom: 3px;

	color: #20a764;

	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.hlx-compare-review__card-heading h3 {
	margin: 0;

	color: #111827;

	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}


/* ================================================================
   HIGHLIGHTS LIST
================================================================ */

.hlx-compare-review__highlights {
	position: relative;
	z-index: 2;

	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px 25px;

	margin: 23px 0 0;
	padding: 0;

	list-style: none;
}

.hlx-compare-review__highlights li {
	display: flex;
	align-items: flex-start;
	gap: 9px;

	min-width: 0;

	color: #475467;

	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

.hlx-compare-review__check {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 20px;
	height: 20px;
	flex: 0 0 20px;

	margin-top: 1px;

	border-radius: 50%;

	background: rgba(32, 191, 107, 0.10);
	color: #20a764;
}

.hlx-compare-review__check svg {
	width: 12px;
	height: 12px;
}


/* ================================================================
   NOTE CARD
================================================================ */

.hlx-compare-review__note-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;

	background:
		linear-gradient(
			145deg,
			#f8fbff,
			#f6faf8
		);
}

.hlx-compare-review__note-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;
	flex: 0 0 44px;

	border-radius: 13px;

	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
}

.hlx-compare-review__note-icon svg {
	width: 22px;
	height: 22px;
}

.hlx-compare-review__note-label {
	display: block;

	margin: 2px 0 7px;

	color: #2563eb;

	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.hlx-compare-review__note-card p {
	margin: 0;

	color: #667085;

	font-size: 12px;
	line-height: 1.7;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1000px) {

	.hlx-compare-review__phones {
		gap: 16px;
	}

	.hlx-compare-review__phone-card {
		padding: 23px 17px;
		border-radius: 20px;
	}

	.hlx-compare-review__phone-image {
		height: 165px;
	}

	.hlx-compare-review__phone-image img {
		max-height: 150px;
		max-width: 125px;
	}

	.hlx-compare-review__image-placeholder {
		width: 100px;
		height: 145px;
	}

	.hlx-compare-review__table-row {
		grid-template-columns: 1.05fr repeat(3, 1fr);
	}

	.hlx-compare-review__feature {
		padding: 16px 14px;
	}

	.hlx-compare-review__value {
		padding: 16px 8px;
		font-size: 12px;
	}

	.hlx-compare-review__bottom-grid {
		grid-template-columns: 1fr;
	}

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 760px) {

	.hlx-compare-review {
		margin-top: 75px;
	}

	.hlx-compare-review__container {
		width: min(100% - 28px, 600px);
	}

	.hlx-compare-review__header {
		margin-bottom: 35px;
	}

	.hlx-compare-review__eyebrow {
		font-size: 9px;
		gap: 8px;
	}

	.hlx-compare-review__eyebrow-line {
		width: 22px;
	}

	.hlx-compare-review__title {
		font-size: clamp(28px, 8vw, 38px);
		line-height: 1.12;
	}

	.hlx-compare-review__intro {
		margin-top: 15px;
		font-size: 14px;
		line-height: 1.7;
	}


	/* Phone cards become stacked */

	.hlx-compare-review__phones {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.hlx-compare-review__phone-card {
		display: grid;
		grid-template-columns: 115px minmax(0, 1fr);
		grid-template-areas:
			"badge badge"
			"image name"
			"image price"
			"image verdict";

		align-items: center;

		padding: 19px;
		text-align: left;
	}

	.hlx-compare-review__phone-badge {
		grid-area: badge;
		justify-self: start;
	}

	.hlx-compare-review__phone-image {
		grid-area: image;

		height: 150px;
		margin: 12px 10px 0 0;
	}

	.hlx-compare-review__phone-image img {
		max-width: 105px;
		max-height: 140px;
	}

	.hlx-compare-review__image-placeholder {
		width: 82px;
		height: 125px;
		border-radius: 14px;
	}

	.hlx-compare-review__image-placeholder svg {
		width: 40px;
		height: 65px;
	}

	.hlx-compare-review__phone-name {
		grid-area: name;
		align-self: end;
		font-size: 16px;
	}

	.hlx-compare-review__phone-price {
		grid-area: price;
		margin-top: 5px;
		font-size: 18px;
	}

	.hlx-compare-review__phone-verdict {
		grid-area: verdict;
		justify-self: start;
		margin-top: 8px;
		font-size: 10px;
	}


	/* Table */

	.hlx-compare-review__table-wrap {
		border-radius: 18px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.hlx-compare-review__table {
		min-width: 650px;
	}

	.hlx-compare-review__table-row {
		grid-template-columns: 145px repeat(3, minmax(150px, 1fr));
	}

	.hlx-compare-review__feature {
		padding: 14px 12px;
		font-size: 12px;
	}

	.hlx-compare-review__feature-icon {
		width: 28px;
		height: 28px;
		flex-basis: 28px;
	}

	.hlx-compare-review__value {
		padding: 14px 9px;
		font-size: 11px;
	}


	/* Bottom */

	.hlx-compare-review__bottom-grid {
		gap: 15px;
		margin-top: 18px;
	}

	.hlx-compare-review__highlights-card,
	.hlx-compare-review__note-card {
		padding: 21px;
		border-radius: 18px;
	}

	.hlx-compare-review__highlights {
		grid-template-columns: 1fr;
		gap: 11px;
	}

}


/* ================================================================
   SMALL MOBILE
================================================================ */

@media (max-width: 430px) {

	.hlx-compare-review__container {
		width: min(100% - 22px, 390px);
	}

	.hlx-compare-review__title {
		font-size: 27px;
	}

	.hlx-compare-review__intro {
		font-size: 13px;
	}

	.hlx-compare-review__phone-card {
		grid-template-columns: 95px minmax(0, 1fr);
		padding: 16px;
	}

	.hlx-compare-review__phone-image {
		height: 135px;
	}

	.hlx-compare-review__phone-image img {
		max-width: 88px;
		max-height: 125px;
	}

	.hlx-compare-review__image-placeholder {
		width: 72px;
		height: 110px;
	}

	.hlx-compare-review__phone-name {
		font-size: 14px;
	}

	.hlx-compare-review__phone-price {
		font-size: 16px;
	}

	.hlx-compare-review__phone-verdict {
		padding: 6px 8px;
		font-size: 9px;
	}

	.hlx-compare-review__highlights-card,
	.hlx-compare-review__note-card {
		padding: 18px;
	}

	.hlx-compare-review__card-heading {
		gap: 10px;
	}

	.hlx-compare-review__heading-icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.hlx-compare-review__card-heading h3 {
		font-size: 16px;
	}

}


/* ================================================================
   MOTION SAFETY
================================================================ */

@media (prefers-reduced-motion: reduce) {

	.hlx-compare-review__phone-card,
	.hlx-compare-review__phone-image img {
		transition: none;
	}

	.hlx-compare-review__phone-card:hover {
		transform: none;
	}

	.hlx-compare-review__phone-card:hover
	.hlx-compare-review__phone-image img {
		transform: none;
	}

}


/* ================================================================
   LAYOUT SAFETY
================================================================ */

.hlx-compare-review {
	max-width: 100%;
}

.hlx-compare-review__container,
.hlx-compare-review__phones,
.hlx-compare-review__bottom-grid,
.hlx-compare-review__table-wrap {
	min-width: 0;
}

.hlx-compare-review h2,
.hlx-compare-review h3,
.hlx-compare-review p {
	overflow-wrap: anywhere;
}
