/* ────────────────────────────────────────────
   COMPARISON TABLE
   Uses --sans, --bg, --ink, --ink-soft, --accent from style.css.
   .badge / .badge-row base rules live in custom.css.
   ════════════════════════════════════════════ */

.compare {
	background: var(--bg);
}

.compare__inner {
	position: relative;
	width: min(1120px, 92vw);
	margin: 0 auto;
	padding: clamp(34px, 5vh, 64px) 0 clamp(72px, 10vh, 124px);
	text-align: center;
}

.compare__glow {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	left: 56%;
	top: 56%;
	width: 640px;
	height: 600px;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(239, 108, 35, 0.32) 0%, rgba(239, 108, 35, 0.10) 44%, transparent 70%);
	filter: blur(58px);
}

.compare__title {
	position: relative;
	z-index: 1;
	font-family: var(--sans);
	font-weight: 500;
	font-size: clamp(30px, 3.8vw, 54px);
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 0 clamp(38px, 5vh, 56px);
	text-wrap: balance;
}

.ctable-wrap {
	position: relative;
	z-index: 1;
	padding: 8px;
}

.ctable {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-width: 680px;
	max-width: 1000px;
	margin: 0 auto;
	text-align: left;
}

/* frosted glass card behind the rows */
.ctable__card {
	position: absolute;
	z-index: 0;
	top: 72px;
	left: 0;
	right: 0;
	height: 812px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.42);
	border: 1px solid rgba(150, 110, 70, 0.16);
	box-shadow: 0 30px 70px -42px rgba(90, 55, 25, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(16px) saturate(115%);
	-webkit-backdrop-filter: blur(16px) saturate(115%);
}

.col {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.col--feature {
	flex: 1;
}

.col--routine {
	width: 212px;
	flex: none;
}

.col--outliv {
	width: 212px;
	flex: none;
	align-self: start;
	z-index: 2;
	border-radius: 22px;
	padding-bottom: 30px;
	background: linear-gradient(180deg, #ef6c23 0%, rgba(239, 108, 35, 0.92) 34%, rgba(239, 108, 35, 0.46) 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 42px 80px -32px rgba(150, 70, 25, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.32);
	backdrop-filter: blur(10px) saturate(120%);
	-webkit-backdrop-filter: blur(10px) saturate(120%);
}

.chead {
	height: 72px;
	display: flex;
	align-items: center;
}

.crow {
	height: 58px;
	display: flex;
	align-items: center;
}

.col--feature .chead {
	padding-left: 22px;
}

.col--feature .crow {
	padding: 0 24px 0 22px;
	font-family: var(--sans);
	font-size: 15.5px;
	color: var(--ink);
	border-bottom: 1px solid rgba(90, 55, 25, 0.1);
}

.col--feature .crow:last-child {
	border-bottom: 0;
}

.col--routine .chead {
	justify-content: center;
	font-family: var(--sans);
	font-size: clamp(14px, 1.3vw, 17px);
	font-weight: 500;
	color: var(--ink-soft);
}

.col--routine .crow {
	justify-content: center;
	border-bottom: 1px solid rgba(90, 55, 25, 0.1);
}

.col--routine .crow:last-child {
	border-bottom: 0;
}

/* base-orange header (logo sits on plain orange) */
.col--outliv .chead {
	height: 72px;
	justify-content: center;
	background: transparent;
}

.col--outliv .chead img {
	height: 23px;
	width: auto;
	display: block;
}

.col--outliv .crow {
	justify-content: center;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.col--outliv .crow:last-child {
	border-bottom: 0;
}

.cnum {
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 600;
}

.col--routine .cnum {
	color: var(--ink-soft);
	font-weight: 500;
}

.ic {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
}

.ic--check {
	color: var(--accent);
	background: #fff;
	font-weight: 700;
	box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.28);
}

.ic--x {
	color: rgba(90, 55, 25, 0.42);
	border: 1.5px solid rgba(90, 55, 25, 0.28);
}

@media (max-width: 760px) {
	/*
	 * Fit the table on a phone without sideways scrolling: value columns at
	 * 105px (narrower clips the OUTLIV logo), and feature text that scales with
	 * the screen and wraps to 2–3 lines.
	 */
	.ctable-wrap {
		overflow-x: visible;
		padding: 4px 0 0;
	}

	.ctable {
		min-width: 0;
		max-width: none;
		width: 100%;
	}

	.chead {
		height: 54px;
	}

	.crow {
		height: 52px;
	}

	.col--feature .chead {
		padding-left: 12px;
	}

	.col--feature .crow {
		padding: 0 6px 0 12px;
		font-size: clamp(11px, 3.4vw, 14px);
		line-height: 1.22;
	}

	.col--routine,
	.col--outliv {
		width: 105px;
	}

	.col--routine .chead {
		font-size: 11px;
		line-height: 1.15;
		text-align: center;
		padding: 0 4px;
	}

	/* The desktop .col--outliv .chead { height: 72px } rule is more specific
	   than .chead above, so without this the OUTLIV header stayed 72px tall
	   on mobile and its rows sat 18px lower than the other two columns. */
	.col--outliv .chead {
		height: 54px;
	}

	.col--outliv .chead img {
		height: 13px;
	}

	.col--outliv {
		padding-bottom: 14px;
		border-radius: 14px;
	}

	.cnum {
		font-size: 13px;
	}

	.col--routine .cnum {
		font-size: 12.5px;
	}

	.ic {
		width: 18px;
		height: 18px;
		font-size: 9.5px;
	}

	.ctable__card {
		top: 54px;
		bottom: 0;
		height: auto;
		border-radius: 16px;
	}
}
/* Lumart, 12 Nov: every feature label fits two lines so the rows read evenly.
   Value columns 105 → 88px (the OUTLIV logo is 11px tall here and still fits),
   which gives the labels ~30px more. */
@media (max-width: 760px) {
	.col--routine, .col--outliv { width: 88px; }
	.col--outliv .chead img { height: 11px; }
	.col--feature .crow { font-size: clamp(11.5px, 3.45vw, 14px); line-height: 1.2; }
}
/* Lumart, 12 Nov: on phones the white card ended level with the bottom of the
   orange column, so the last row looked taller than the rest. The card now stops
   at the last row and the orange column hangs below it, as on desktop. */
@media (max-width: 760px) {
	.col--outliv { padding-bottom: 22px; }
	.ctable__card { bottom: 22px; }
}
/* Lumart, 27 Nov: a 15th row (hormone optimisation) pushed the last row out of the
   white card, which had a fixed height for 14 rows. The card now ends at the last
   row whatever the row count, with the orange column hanging below it. */
@media (min-width: 761px) {
	.ctable__card { height: auto; bottom: 30px; }
}
