/**
 * Loyalty page — values from the mockup at the 1512px design width.
 *
 * 1. Hero
 * 2. Membership tiers
 * 3. FAQs
 *
 * The app download box between tiers and FAQs is shared with the homepage and
 * styled in main.css ("App download box").
 */

/* -------------------------------------------------------------------------- */
/* 1. Hero                                                                     */
/* -------------------------------------------------------------------------- */

/*
 * 670px tall with the header floating over it. Copy sits on the bottom edge:
 * heading and text on the left, the store badges on the right, both 60px up.
 */
.lhero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 670px;
	padding-top: var(--header-h);
	padding-bottom: 60px;
	background: var(--c-ink);
	color: var(--c-white);
	isolation: isolate;
}

.lhero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.lhero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkens the photo towards the bottom, where the copy sits. */
.lhero__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(0 0 0 / 35%) 0%, rgb(0 0 0 / 55%) 55%, rgb(0 0 0 / 80%) 100%);
	content: "";
}

.lhero__inner {
	display: flex;
	gap: 32px;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
}

.lhero__title {
	margin: 0;
	color: var(--c-white);
	font-size: clamp(40px, 4.7619vw, 72px); /* 72 / 1512 */
	font-weight: var(--fw-bold);
	line-height: 1.2;
	text-transform: uppercase;
}

.lhero__text {
	max-width: 760px;
	margin: 8px 0 0;
	font-size: 20px;
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

.lhero__apps {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: flex-end;
}

.lhero__apps-label {
	margin: 0;
	font-size: 20px;
	font-weight: var(--fw-semibold);
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

@media (max-width: 1000px) {
	.lhero {
		min-height: 560px;
		padding-bottom: 40px;
	}

	.lhero__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.lhero__apps {
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.lhero__text,
	.lhero__apps-label {
		font-size: 16px;
	}
}

/* -------------------------------------------------------------------------- */
/* 2. Membership tiers                                                         */
/* -------------------------------------------------------------------------- */

.ltiers__text {
	margin: 32px 0 0;
	color: var(--c-charcoal);
	font-size: 16px;
	font-weight: var(--fw-medium);
	line-height: 1.5;
}

.ltiers__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.ltier {
	padding: 24px 24px 27px;
	border-radius: 12px;
	background: var(--c-charcoal);
	color: var(--c-white);
}

.ltier__badge {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	background: var(--c-purple);
	color: var(--c-white);
}

.ltier__badge svg {
	display: block;
}

.ltier__name {
	margin: 16px 0 0;
	color: var(--c-white);
	font-size: clamp(24px, 2.1164vw, 32px); /* 32 / 1512 */
	font-weight: var(--fw-semibold);
	line-height: 1.2;
	text-transform: none;
}

.ltier__rate {
	margin: 8px 0 0;
	font-size: 18px;
	font-weight: var(--fw-medium);
	line-height: 1.4;
}

.ltier__rate strong {
	font-weight: var(--fw-bold);
}

@media (max-width: 1000px) {
	.ltiers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ltiers__grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- */
/* 3. FAQs                                                                     */
/* -------------------------------------------------------------------------- */

.lfaq {
	background: var(--c-off-white);
}

.lfaq__head {
	max-width: 1160px;
	margin-inline: auto;
	text-align: center;
}

.lfaq__text {
	margin-top: 10px;
}

.lfaq__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-items: start;
	margin-top: 30px;
}

.lfaq__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lfaq__item {
	border: 1px solid #e3e0de;
	border-radius: 12px;
	background: var(--c-off-white);
}

.lfaq__q {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	color: var(--c-charcoal);
	font-size: 16px;
	font-weight: var(--fw-semibold);
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.lfaq__q::-webkit-details-marker {
	display: none;
}

.lfaq__sign {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* Plus becomes minus when open. */
.lfaq__sign-v {
	transition: opacity var(--duration) var(--ease);
}

.lfaq__item[open] .lfaq__sign-v {
	opacity: 0;
}

.lfaq__a {
	padding: 0 16px 16px;
	color: var(--c-grey);
	font-size: 16px;
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

.lfaq__a p {
	margin: 0 0 8px;
}

.lfaq__a p:last-child {
	margin-bottom: 0;
}

.lfaq__a ul {
	margin: 0 0 8px;
	padding-left: 20px;
	list-style: disc;
}

.lfaq__a li::marker {
	color: var(--c-purple);
}

.lfaq__a strong {
	color: var(--c-charcoal);
}

.lfaq__a a {
	color: var(--c-purple);
	text-decoration: underline;
}

@media (max-width: 900px) {
	.lfaq__cols {
		grid-template-columns: 1fr;
	}
}
