/**
 * Front-page landing styles.
 *
 * Loaded on the front page only. Everything is prefixed `cl-` so it never
 * competes with Flatsome's grid or product-card styles, which the page still
 * relies on for the product rows.
 */

.cl-landing {
	--cl-ink: #0a0a0a;
	--cl-ink-soft: #2b2b2b;
	--cl-paper: #ffffff;
	--cl-paper-warm: #faf7f2;
	--cl-line: #e4e0d9;
	--cl-orange: #f8ae4c;
	--cl-blue: #2c4a96;
	--cl-muted: #6b6b6b;
	--cl-live: #d33;
}

.cl-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.cl-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Buttons */

.cl-landing .cl-btn {
	display: inline-block;
	padding: 14px 24px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: none;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cl-landing .cl-btn--primary {
	background: var(--cl-orange);
	border-color: var(--cl-orange);
	color: var(--cl-ink);
}

.cl-landing .cl-btn--primary:hover {
	background: #ffbe50;
	border-color: #ffbe50;
	color: var(--cl-ink);
}

.cl-landing .cl-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.cl-hero .cl-btn--ghost {
	color: #fff;
}

.cl-landing .cl-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.cl-section--final .cl-btn--ghost:hover {
	background: rgba(10, 10, 10, 0.06);
}

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

.cl-hero {
	background: var(--cl-ink);
	color: #fff;
	padding: 64px 0 56px;
}

.cl-hero__inner {
	max-width: 820px;
}

.cl-hero__eyebrow {
	margin: 0 0 18px;
	color: var(--cl-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cl-hero__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.01em;
}

.cl-hero__lead {
	margin: 0 0 28px;
	max-width: 640px;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.5;
}

.cl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.cl-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
}

.cl-hero__facts li {
	margin: 0;
	position: relative;
	padding-left: 16px;
}

.cl-hero__facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cl-orange);
}

/* ----------------------------------------------------------------- Search */

.cl-search {
	max-width: 620px;
}

.cl-landing .cl-search__label {
	display: block;
	margin-bottom: 8px;
	color: var(--cl-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* The hero sits on ink, so the label needs its own colour rather than the
   theme's default form-label grey. */
.cl-hero .cl-search__label {
	color: rgba(255, 255, 255, 0.72);
}

.cl-search__field {
	display: flex;
	gap: 8px;
}

.cl-landing .cl-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 13px 16px;
	border: 2px solid var(--cl-line);
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	color: var(--cl-ink);
	font-size: 16px;
}

.cl-landing .cl-search__input:focus {
	border-color: var(--cl-orange);
	outline: none;
}

.cl-landing .cl-search__submit {
	flex: 0 0 auto;
	padding: 13px 22px;
	border: 0;
	cursor: pointer;
}

/* --------------------------------------------------------------- Sections */

.cl-section {
	padding: 56px 0;
}

.cl-section--popular {
	padding-bottom: 16px;
}

.cl-section--paths {
	padding-top: 32px;
	padding-bottom: 8px;
}

.cl-section--trust {
	background: var(--cl-paper-warm);
}

.cl-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 28px;
}

.cl-section__head--tight {
	margin-top: 48px;
}

.cl-landing .cl-section__title {
	margin: 0 0 10px;
	max-width: 760px;
	color: var(--cl-ink);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.15;
}

.cl-section__lead {
	margin: 0;
	max-width: 640px;
	color: var(--cl-muted);
	font-size: 16px;
	line-height: 1.55;
}

.cl-section__link {
	flex: 0 0 auto;
	color: var(--cl-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

/* ---------------------------------------------------------- Product rows */

/*
 * Same height cards, with the buttons on one line across the row.
 *
 * Flatsome's equalize_box attribute adds a class the theme never styles, so
 * cards end up as tall as their own contents. Two things vary: product images
 * are not all the same shape, since a graded slab photo is nothing like a
 * booster box photo, and names run from one line to three. The slider rows
 * place each card on its own, so stretching them levels nothing. Framing the
 * image as a square and giving the name a fixed three line block levels every
 * kind of row instead, and three lines is enough that names like "[Rip & Ship
 * Exclusive] 2025-26 Topps Inception UEFA Club Competitions" still read whole.
 */

/* The width is not redundant. The frame is a flex item here, and a flex item
   with an aspect ratio takes its width from its contents rather than stretching,
   so a card whose photo was uploaded at 128px got a 128px frame and a card half
   the height of its neighbours. */
.cl-landing .product-small .box-image {
	width: 100%;
	aspect-ratio: 1 / 1;
}

/* first-child only: the other divs in here are the absolutely placed hover
   tools, which must keep their own size. */
.cl-landing .product-small .box-image > div:first-child,
.cl-landing .product-small .box-image > div:first-child > a {
	display: block;
	width: 100%;
	height: 100%;
}

/* scale-down rather than contain: a few products were uploaded at 128px, and
   stretching those to fill the frame only makes them blurry. */
.cl-landing .product-small .box-image img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
}

.cl-landing .product-small .name.product-title {
	display: -webkit-box;
	overflow: hidden;
	height: 4.2em;
	line-height: 1.4;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.cl-landing .row.equalize-box > .col {
	display: flex;
}

.cl-landing .row.equalize-box > .col > .col-inner,
.cl-landing .row.equalize-box .col-inner > .product-small.box,
.cl-landing .row.equalize-box .product-small .box-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.cl-landing .row.equalize-box .product-small .title-wrapper {
	flex: 1 1 auto;
}

/*
 * The badge line, present on every card whether or not it has a badge.
 *
 * "Nylig lagt til" and the sale badge sit above the title in the text flow, so
 * the cards carrying one were 23px taller than the rest, and a slider row cannot
 * stretch the others to match. Giving the badgeless cards the same empty line
 * levels them while leaving the badge where it belongs. Both are held to one
 * height, so a badge that would otherwise wrap cannot bring the difference back.
 */
.cl-landing .row.equalize-box .product-small .box-text .new-badge {
	display: block;
	overflow: hidden;
	height: 23px;
	margin: 0;
	white-space: nowrap;
}

.cl-landing .row.equalize-box .product-small .box-text:not(:has(.new-badge))::before {
	display: block;
	height: 23px;
	content: '';
}

/* ------------------------------------------------------------------ Paths */

.cl-paths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cl-landing .cl-path {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--cl-line);
	border-radius: 6px;
	background: #fff;
	color: var(--cl-ink);
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.cl-landing .cl-path:hover {
	border-color: var(--cl-ink);
	transform: translateY(-2px);
}

/* Fixed media height so all three cards line up regardless of image ratio. */
.cl-path__media {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	height: 210px;
	background: var(--cl-paper-warm);
	overflow: hidden;
}

.cl-landing .cl-path__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Column so the links can sit on the same baseline across cards, whatever the
   headings above them wrap to. */
.cl-path__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.cl-path__title {
	display: block;
	margin-bottom: 6px;
	color: var(--cl-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cl-path__lead {
	display: block;
	margin-bottom: 8px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.cl-path__text {
	display: block;
	margin-bottom: 14px;
	color: var(--cl-muted);
	font-size: 15px;
	line-height: 1.5;
}

.cl-path__ctas {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: auto;
	gap: 10px;
}

.cl-landing .cl-path__cta {
	display: inline-block;
	color: var(--cl-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

/* Cards with one destination stay clickable across their whole area. */
.cl-path__cta--stretch::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* ------------------------------------------------------------------- Live */

.cl-live-badge {
	display: inline-block;
	margin-right: 10px;
	padding: 4px 10px;
	border: 1px solid var(--cl-line);
	border-radius: 3px;
	background: #fff;
	color: var(--cl-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	vertical-align: middle;
}

.cl-live-badge--on {
	border-color: var(--cl-live);
	background: var(--cl-live);
	color: #fff;
}

.cl-live {
	margin-bottom: 36px;
	padding: 24px;
	border: 1px solid var(--cl-line);
	border-radius: 6px;
	background: #fff;
}

.cl-landing .cl-live__status {
	margin: 0 0 16px;
	color: var(--cl-muted);
	font-size: 16px;
	line-height: 1.55;
}

.cl-live__player {
	position: relative;
}

/* Direct child only. The plugin's player sizes its own frame, including the
   vertical one, and shaping its iframe from out here would flatten that. */
.cl-live__player > iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

/* Between broadcasts the player is followed by the two follow buttons. */
.cl-live--off .cl-live__player {
	margin-bottom: 20px;
}

.cl-live__follow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cl-live__note {
	margin: 16px 0 0;
	color: var(--cl-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* ------------------------------------------------------------------- Loop */

.cl-loop {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.cl-loop__item {
	margin: 0;
	padding: 22px 20px;
	border-top: 3px solid var(--cl-orange);
	background: var(--cl-paper-warm);
}

.cl-landing .cl-loop__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
}

.cl-loop__text {
	margin: 0 0 14px;
	color: var(--cl-ink-soft);
	font-size: 15px;
	line-height: 1.55;
}

.cl-loop__link {
	color: var(--cl-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

/* ------------------------------------------------------------------ Trust */

.cl-trust {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.cl-trust__copy p {
	margin: 0 0 16px;
	color: var(--cl-ink-soft);
	font-size: 17px;
	line-height: 1.6;
}

.cl-compare {
	padding: 24px;
	border: 1px solid var(--cl-line);
	border-radius: 6px;
	background: #fff;
}

.cl-landing .cl-compare__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 800;
}

.cl-landing .cl-compare__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.cl-landing .cl-compare__table th,
.cl-landing .cl-compare__table td {
	padding: 12px 10px;
	border: 0;
	border-bottom: 1px solid var(--cl-line);
	background: none;
	text-align: left;
	vertical-align: top;
	line-height: 1.4;
}

.cl-landing .cl-compare__table thead th {
	color: var(--cl-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cl-landing .cl-compare__table tbody th {
	width: 34%;
	font-weight: 700;
}

/* Every private-seller answer is a single word, so the column is kept narrow and
   the space goes to the Collectible column instead. */
.cl-landing .cl-compare__table thead th:nth-child(2),
.cl-compare__no {
	width: 15%;
	white-space: nowrap;
}

.cl-compare__no {
	color: var(--cl-muted);
}

.cl-compare__yes {
	color: var(--cl-ink);
	font-weight: 600;
}

.cl-reviews {
	margin-top: 44px;
}

.cl-landing .cl-reviews__title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 800;
}

/* ------------------------------------------------------- Objections + FAQ */

.cl-objections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 40px;
	margin: 28px 0 44px;
}

.cl-landing .cl-objection__q {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.cl-objection__a {
	margin: 0;
	color: var(--cl-ink-soft);
	font-size: 15px;
	line-height: 1.6;
}

.cl-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 48px;
}

.cl-fact {
	padding: 20px;
	border: 1px solid var(--cl-line);
	border-radius: 6px;
}

.cl-landing .cl-fact__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
}

.cl-fact__body {
	margin: 0;
	color: var(--cl-muted);
	font-size: 15px;
	line-height: 1.55;
}

.cl-faq {
	max-width: 820px;
}

.cl-landing .cl-faq__title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 800;
}

.cl-faq__item {
	border-bottom: 1px solid var(--cl-line);
}

.cl-faq__q {
	padding: 16px 0;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	list-style: none;
}

.cl-faq__q::-webkit-details-marker {
	display: none;
}

.cl-faq__q::before {
	content: "+";
	display: inline-block;
	width: 22px;
	color: var(--cl-orange);
	font-weight: 800;
}

.cl-faq__item[open] .cl-faq__q::before {
	content: "\2013";
}

.cl-faq__a {
	margin: 0 0 18px;
	padding-left: 22px;
	color: var(--cl-ink-soft);
	font-size: 15px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ Final */

.cl-section--final {
	background: var(--cl-paper-warm);
	border-top: 1px solid var(--cl-line);
}

.cl-final {
	max-width: 760px;
	text-align: center;
}

.cl-landing .cl-final__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 800;
}

.cl-final__lead {
	margin: 0 auto 26px;
	max-width: 620px;
	color: var(--cl-muted);
	font-size: 17px;
	line-height: 1.55;
}

.cl-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.cl-chips__item {
	margin: 0;
}

.cl-landing .cl-chip {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--cl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--cl-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cl-landing .cl-chip:hover {
	border-color: var(--cl-ink);
	background: var(--cl-orange);
}

.cl-final__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

.cl-final__contact {
	margin: 24px 0 0;
	color: var(--cl-muted);
	font-size: 15px;
}

.cl-final__contact a {
	color: var(--cl-muted);
	text-decoration: underline;
}

/* ------------------------------------------------------------ Breakpoints */

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

	.cl-trust {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

@media (max-width: 849px) {
	.cl-paths {
		grid-template-columns: minmax(0, 1fr);
	}

	.cl-objections,
	.cl-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.cl-path__media {
		height: 190px;
	}

	/* Wider tap targets, so a Magic player does not land on Pokémon by mistake. */
	.cl-path__ctas {
		gap: 16px;
	}
}

@media (max-width: 549px) {
	.cl-hero {
		padding: 44px 0 40px;
	}

	.cl-section {
		padding: 40px 0;
	}

	.cl-loop {
		grid-template-columns: minmax(0, 1fr);
	}

	.cl-search__field {
		flex-wrap: wrap;
	}

	.cl-landing .cl-search__submit {
		width: 100%;
	}

	.cl-landing .cl-btn {
		width: 100%;
		text-align: center;
	}

	.cl-live {
		padding: 18px;
	}

	.cl-landing .cl-compare__table th,
	.cl-landing .cl-compare__table td {
		padding: 10px 6px;
		font-size: 14px;
	}
}
