/* ==========================================================================
   Relive Health — home & landing sections
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */

.rl-hero {
	position: relative;
	background: var(--rl-slate-900);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.rl-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.rl-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}
.rl-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		100deg,
		rgba(34, 51, 66, 0.96) 0%,
		rgba(34, 51, 66, 0.9) 42%,
		rgba(34, 51, 66, 0.55) 72%,
		rgba(34, 51, 66, 0.35) 100%
	);
}
@media (max-width: 767px) {
	.rl-hero::after {
		background: linear-gradient(180deg, rgba(34, 51, 66, 0.9) 0%, rgba(34, 51, 66, 0.96) 55%);
	}
}

/* The brand mark, blown up as a watermark — echoes the deck's RELIVE bleed.
   Loaded as an <img>, so the fill is baked into the file and only the
   opacity is set here. */
.rl-hero__watermark {
	position: absolute;
	right: -6%;
	bottom: -26%;
	width: min(680px, 62%);
	opacity: 0.09;
	z-index: -1;
	pointer-events: none;
}
@media (max-width: 899px) {
	.rl-hero__watermark {
		right: -22%;
		bottom: -18%;
		width: 78%;
		opacity: 0.07;
	}
}

/* Copy left, portrait right. Single column until there is room for the image
   to be worth its weight — below that the headline should own the screen. */
.rl-hero__grid {
	position: relative;
	display: grid;
	gap: var(--rl-6);
	align-items: center;
}
@media (min-width: 900px) {
	.rl-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
		gap: var(--rl-7);
	}
}
.rl-hero__inner {
	position: relative;
	padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem);
	max-width: 700px;
}
.rl-hero__portrait {
	display: none;
}
@media (min-width: 900px) {
	.rl-hero__portrait {
		display: block;
		border-radius: var(--rl-r-lg);
		overflow: hidden;
		/* Lifts the photograph off the navy without a hard edge. */
		box-shadow: 0 24px 60px rgba(13, 20, 28, .35);
	}
	.rl-hero__portrait img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 4;
		object-fit: cover;
	}
}
.rl-hero h1 {
	color: #fff;
	margin-bottom: var(--rl-4);
}
.rl-hero h1 em {
	font-style: normal;
	color: var(--rl-blue);
}
.rl-hero__sub {
	font-size: var(--rl-step-1);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
	max-width: 54ch;
	margin-bottom: var(--rl-5);
}
.rl-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rl-3);
	margin-bottom: var(--rl-5);
}
.rl-hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rl-3) var(--rl-5);
	font-size: var(--rl-step--2);
	color: rgba(255, 255, 255, 0.75);
	list-style: none;
	margin: 0;
	padding: 0;
}
.rl-hero__proof li {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
}
.rl-hero__proof svg {
	width: 16px;
	height: 16px;
	color: var(--rl-blue);
	flex: 0 0 auto;
}

/* --- Section headers ------------------------------------------------------ */

.rl-sechead {
	max-width: 60ch;
	margin-bottom: var(--rl-6);
}
.rl-sechead--center {
	margin-inline: auto;
	text-align: center;
}
.rl-sechead p {
	font-size: var(--rl-step-1);
	color: var(--rl-ink-2);
	margin: 0;
}
.rl-on-dark .rl-sechead p {
	color: rgba(255, 255, 255, 0.78);
}
.rl-sechead__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--rl-5);
	max-width: none;
	flex-wrap: wrap;
}

/* --- Category tiles ------------------------------------------------------- */

.rl-cats {
	display: grid;
	gap: var(--rl-4);
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
	.rl-cats {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--rl-5);
	}
}
.rl-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 230px;
	padding: var(--rl-4);
	border-radius: var(--rl-r-lg);
	overflow: hidden;
	background: var(--rl-slate-900);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}
@media (min-width: 900px) {
	.rl-cat {
		min-height: 300px;
		padding: var(--rl-5);
	}
}
.rl-cat img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform 600ms var(--rl-ease);
}
.rl-cat::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(34, 51, 66, 0.1) 25%, rgba(34, 51, 66, 0.88) 100%);
}
.rl-cat:hover img {
	transform: scale(1.06);
}
.rl-cat__t {
	font-family: var(--rl-font-display);
	font-size: var(--rl-step-1);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}
.rl-cat__d {
	font-size: var(--rl-step--2);
	color: rgba(255, 255, 255, 0.78);
	margin-top: 0.3rem;
	line-height: 1.45;
}
.rl-cat__go {
	margin-top: var(--rl-3);
	font-size: var(--rl-step--2);
	font-weight: 600;
	color: var(--rl-blue);
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}
.rl-cat:hover .rl-cat__go::after {
	transform: translateX(3px);
}
.rl-cat__go::after {
	content: "→";
	transition: transform var(--rl-dur) var(--rl-ease);
}

/* --- Split feature -------------------------------------------------------- */

.rl-split {
	display: grid;
	gap: var(--rl-6);
	align-items: center;
}
@media (min-width: 900px) {
	.rl-split {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--rl-8);
	}
	.rl-split--flip .rl-split__media {
		order: 2;
	}
}
.rl-split__media img {
	border-radius: var(--rl-r-lg);
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.rl-split__list {
	list-style: none;
	margin: var(--rl-5) 0 0;
	padding: 0;
	display: grid;
	gap: var(--rl-4);
}
.rl-split__list li {
	display: flex;
	gap: var(--rl-3);
	margin: 0;
}
.rl-split__list svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--rl-blue-ink);
	margin-top: 3px;
}
.rl-split__list b {
	display: block;
	color: var(--rl-slate-900);
	font-size: var(--rl-step-0);
	margin-bottom: 0.15rem;
}
.rl-split__list span {
	font-size: var(--rl-step--1);
	color: var(--rl-ink-2);
	line-height: 1.55;
}
.rl-on-dark .rl-split__list b {
	color: #fff;
}
.rl-on-dark .rl-split__list span {
	color: rgba(255, 255, 255, 0.75);
}
.rl-on-dark .rl-split__list svg {
	color: var(--rl-blue);
}

/* --- Comparison table ----------------------------------------------------- */

.rl-compare {
	overflow-x: auto;
	border-radius: var(--rl-r-lg);
	border: 1px solid var(--rl-line);
	background: #fff;
}
.rl-compare table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: var(--rl-step--1);
}
.rl-compare th,
.rl-compare td {
	padding: var(--rl-4);
	text-align: left;
	border-bottom: 1px solid var(--rl-line);
	vertical-align: top;
}
.rl-compare thead th {
	font-family: var(--rl-font-display);
	font-size: var(--rl-step-0);
	color: var(--rl-slate-900);
	background: var(--rl-surface-2);
	white-space: nowrap;
}
.rl-compare thead th:first-child {
	background: transparent;
}
.rl-compare th[data-highlight],
.rl-compare td[data-highlight] {
	background: var(--rl-blue-050);
}
.rl-compare tbody th {
	font-weight: 500;
	color: var(--rl-ink-2);
	width: 34%;
}
.rl-compare tr:last-child th,
.rl-compare tr:last-child td {
	border-bottom: 0;
}
.rl-compare .yes {
	color: var(--rl-success);
	font-weight: 600;
}
.rl-compare .no {
	color: var(--rl-ink-3);
}

/* --- Stat band ------------------------------------------------------------ */

.rl-statband {
	background: var(--rl-slate);
	color: #fff;
	padding-block: var(--rl-7);
}
.rl-statband__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--rl-5);
}
@media (min-width: 860px) {
	.rl-statband__grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.rl-statband__grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* Three stats do not divide into two columns. One per row below the breakpoint
   reads better than a 2 + 1 orphan. */
@media (max-width: 859px) {
	.rl-statband__grid--3 {
		grid-template-columns: 1fr;
		gap: var(--rl-4);
	}
}

/* --- CTA band ------------------------------------------------------------- */

.rl-ctaband {
	background: var(--rl-blue);
	color: var(--rl-black);
	padding-block: var(--rl-8);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.rl-ctaband h2 {
	color: var(--rl-slate-900);
	max-width: 22ch;
	margin-inline: auto;
}
.rl-ctaband p {
	color: rgba(31, 33, 36, 0.78);
	font-size: var(--rl-step-1);
	max-width: 54ch;
	margin-inline: auto;
	margin-bottom: var(--rl-5);
}
.rl-ctaband .rl-btn {
	--btn-bg: var(--rl-slate-900);
	--btn-fg: #fff;
}
.rl-ctaband .rl-btn:hover {
	background: var(--rl-black);
	color: #fff;
}
.rl-ctaband__mark {
	position: absolute;
	left: -6%;
	top: -46%;
	width: min(380px, 34%);
	opacity: 0.16;
	pointer-events: none;
}
@media (max-width: 767px) {
	.rl-ctaband__mark {
		display: none;
	}
}

/* --- Quiz teaser ---------------------------------------------------------- */

.rl-quizcard {
	display: grid;
	gap: var(--rl-5);
	background: linear-gradient(135deg, var(--rl-slate-900), #17252f);
	border-radius: var(--rl-r-xl);
	padding: var(--rl-6);
	color: #fff;
	align-items: center;
}
@media (min-width: 860px) {
	.rl-quizcard {
		grid-template-columns: 1.25fr 1fr;
		padding: var(--rl-8);
		gap: var(--rl-7);
	}
}
.rl-quizcard h2 {
	color: #fff;
	font-size: var(--rl-step-3);
}
.rl-quizcard p {
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 0;
}
.rl-quizcard__side {
	display: grid;
	gap: var(--rl-3);
}
.rl-quizcard__side .rl-btn {
	width: 100%;
}
.rl-quizcard__meta {
	font-size: var(--rl-step--2);
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
}

/* --- Logo / press strip --------------------------------------------------- */

.rl-logostrip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--rl-5) var(--rl-7);
	opacity: 0.65;
	filter: grayscale(1);
}
.rl-logostrip img {
	height: 26px;
	width: auto;
}

/* --- Reveal on scroll ----------------------------------------------------- */

.rl-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 600ms var(--rl-ease), transform 600ms var(--rl-ease);
}
.rl-reveal.is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.rl-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
