/*
 * The landing pages, on top of the site's existing vocabulary.
 *
 * Deliberately small. Nearly everything these pages use already exists —
 * .component, .eyebrow, .section-h2, .btn-primary, the .tk-wire ticker — and
 * a second parallel set of card and button styles is exactly how a site drifts
 * into looking like two sites. What is here is only what had no equivalent:
 * a list of station names, the chip grid that links the pages to each other,
 * and a hero that leads with a number rather than a slogan.
 */

/* ---------------------------------------------------------------- the hero */

.lp-hero {
	/* The top bar is position: fixed, so its height has to be added rather
	   than assumed: without this the eyebrow sat at y=48 on a phone, which is
	   behind a 71px bar. */
	padding-top: calc(var(--nav-h) + clamp(3.5rem, 6vw, 5rem));
	padding-bottom: clamp(3rem, 9vw, 6rem);
	border-bottom: 1px solid var(--border-soft);
	/* A wash rather than a photograph. The number is the hero here, and a
	   picture behind it would be competing with the only thing on the page
	   somebody came for. */
	background:
		radial-gradient(120% 80% at 15% 0%, rgba(255, 47, 176, 0.18), transparent 60%),
		radial-gradient(90% 70% at 90% 20%, rgba(186, 255, 41, 0.1), transparent 55%);
}

/* The container keeps its full width so the hero starts on the same left edge
   as every section below it; the children are what get a readable measure.
   Capping the container instead centred a 46rem block inside 1180px, which
   left the hero visibly out of line with the rest of the page. */
.lp-hero .component-inner > * {
	max-width: 44rem;
}

/* Bebas Neue, like every other h1 on the site, but sized for a headline that
   opens with a five-digit number rather than two short words. */
.lp-h1 {
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 8vw, 5rem);
	line-height: 0.92;
	letter-spacing: 0.01em;
	margin: 0.5rem 0 0;
	text-wrap: balance;
}

.lp-sub {
	margin: 1rem 0 1.75rem;
	max-width: 34rem;
	color: var(--text-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* The date the figures were taken. Quiet, but never absent: a precise number
   with no date attached is a claim that rots without anybody noticing. */
.lp-counted {
	margin: 1.5rem 0 0;
	max-width: 38rem;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--text-faint);
}

.lp-wire-section {
	padding-block: 0;
	border-bottom: 1px solid var(--border-soft);
}

/* ----------------------------------------------------------- the real list */

.lp-stations {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	/* Fits more columns on a wider screen rather than stretching two of them,
	   which is the same rule the app's station rails follow. */
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1px;
	background: var(--border-soft);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.lp-station {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.9rem 1.1rem;
	background: var(--bg-elevated);
	min-width: 0;
}

.lp-station-name {
	font-weight: 600;
	font-size: 0.9375rem;
	/* Station names run long and are frequently all-caps with a bitrate
	   suffix; wrapping them would tear the grid's rhythm apart. */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lp-station-meta {
	font-size: 0.75rem;
	color: var(--text-faint);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lp-cta-row {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

/* ------------------------------------------------------------------- why */

.lp-why {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.lp-why-item h3 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	font-weight: 600;
	/* Not the display face: these are three short labels in a row, and Bebas
	   at this size reads as three more headlines competing with the h2. */
	font-family: var(--font-body);
	text-transform: none;
}

.lp-why-item p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* ------------------------------------------- links between the pages */

.lp-related {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 2rem;
}

.lp-related-label {
	margin: 0 0 0.9rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.lp-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lp-chips a {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text);
	text-decoration: none;
	font-size: 0.875rem;
	transition:
		border-color 0.15s ease,
		color 0.15s ease;
}

.lp-chips a:hover {
	border-color: var(--accent-2);
	color: var(--accent-2);
}

/* The count is the reason the chip is worth clicking, so it is shown rather
   than saved for the page behind it. Tabular so a column of them lines up. */
.lp-chip-num {
	font-size: 0.75rem;
	color: var(--text-faint);
	font-variant-numeric: tabular-nums;
}

.lp-chips a:hover .lp-chip-num {
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.lp-chips a {
		transition: none;
	}
}
