/* Real-site-only overrides layered on top of the shared main.css / sections.css
   design system (forked from marketing-neon/). Keep this file small — most
   visual work should live in the shared vocabulary, not here. */

/* Anchor targets should clear the fixed nav bar when jumped to. */
#top,
#features,
#screens,
#faq {
	scroll-margin-top: 4.5rem;
}

/* The real hero gets more room to breathe than a gallery-demo entry. */
#top .header-demo {
	min-height: 46rem;
	padding-top: 7rem;
}

@media (max-width: 700px) {
	#top .header-demo {
		min-height: 0;
		padding-top: 6rem;
		padding-bottom: 3rem;
	}
}

/* ---------- 404 ---------- */
/* Deliberately one centred column with no header or footer: somebody who
   landed here wants a way out, not the full site chrome to scroll past. */
.page-404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
}

.notfound {
	max-width: 34rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.notfound-brand {
	height: 26px;
	width: auto;
	opacity: 0.9;
	margin-bottom: 1rem;
}

.notfound-title {
	font-size: clamp(3rem, 12vw, 5.5rem);
	line-height: 0.95;
	margin: 0;
}

.notfound-sub {
	color: var(--text-muted);
	margin: 0;
	max-width: 26rem;
}

.notfound-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 0.5rem;
}

.notfound-links {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 1.5rem;
	font-size: 0.875rem;
}

.notfound-links a {
	color: var(--text-faint);
}

.notfound-links a:hover {
	color: var(--accent-2);
}

/* ---------- Consent banner ---------- */
/* Styled and ready; see scripts/consent.js for why it is dormant. */
.consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: var(--bg-elevated);
	border-top: 1px solid var(--border);
	padding: 1rem 1.25rem;
}

.consent-inner {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.consent-text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	max-width: 46rem;
}

.consent-text a {
	color: var(--accent-2);
}

.consent-actions {
	display: flex;
	gap: 0.6rem;
	flex-shrink: 0;
}

/* ---------- Legal pages ---------- */
.legal {
	max-width: 44rem;
	margin: 0 auto;
	padding: 3.5rem 1.5rem 6rem;
}

.legal-back {
	display: inline-block;
	margin-bottom: 2.5rem;
	font-size: 0.875rem;
	color: var(--text-faint);
}

.legal-back:hover {
	color: var(--accent-2);
}

.legal h1 {
	font-size: clamp(2rem, 6vw, 3rem);
	margin: 0 0 1rem;
}

.legal h2 {
	font-size: 1.25rem;
	margin: 2.5rem 0 0.75rem;
}

.legal p {
	color: var(--text-muted);
	margin: 0 0 1rem;
	line-height: 1.7;
}

.legal-lead {
	font-size: 1.05rem;
}

.legal-updated {
	margin-top: 3rem;
	font-size: 0.8125rem;
	color: var(--text-faint);
}

/* ---------- Footer language switcher ---------- */
/* A real switcher between the generated locale pages. Distinct from the
   .lang-demo section above, which is a picture of the APP's language setting
   rather than a control for this site. */
.footer-langs {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	order: -1;
}

.footer-langs a {
	color: var(--text-faint);
}

.footer-langs a:hover {
	color: var(--accent-2);
}

.footer-langs [aria-current] {
	color: var(--accent-2);
	font-weight: 600;
}

/* ---------- Hero ---------- */
/* A larger display size than the gallery's default. The hero is the only
   place on the page where the type is the whole design, so it carries more
   of it. */
.header-demo-h1-xl {
	font-size: clamp(3.25rem, 8vw, 6rem);
	line-height: 0.92;
	letter-spacing: -0.01em;
}

/* Keeps the copy legible over the waveform bars behind it. */
.header-demo-device-copy {
	position: relative;
	z-index: 2;
}

.hero-note {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: var(--text-faint);
}

.header-demo-cta {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}


.header-demo-device.header-demo-waveform .header-demo-device-inner {
	position: relative;
	z-index: 1;
}

/* ---------- Hero waves ---------- */
/*
 * Replaces the equaliser bars. Deliberately quiet: this is atmosphere behind
 * a product shot, not a visualisation of anything, and the previous version
 * was loud enough to compete with the headline.
 */
.hero-waves {
	position: absolute;
	inset: auto 0 0 0;
	height: 46%;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
	/* Fades out towards the top so the waves emerge from the background
	   rather than starting on a hard edge. */
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
	mask-image: linear-gradient(180deg, transparent, #000 55%);
}

.hero-waves-defs {
	position: absolute;
}

.hero-wave {
	position: absolute;
	left: 0;
	bottom: 0;
	/* Two periods wide, so translating by half is exactly one period. */
	width: 200%;
	height: 100%;
	animation: hero-wave-drift var(--wave-duration, 30s) linear infinite;
	will-change: transform;
}

/* Alternating direction stops the layers from ever travelling as one sheet,
   which is what makes a multi-layer wave read as water instead of a slide. */
.hero-wave-2 {
	animation-direction: reverse;
}

@keyframes hero-wave-drift {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* A separate, much slower vertical breath on one layer. Its period shares no
   factor with the drift, so the surface never lands in the same arrangement
   twice within any sitting. */
.hero-wave-1 {
	animation:
		hero-wave-drift var(--wave-duration, 30s) linear infinite,
		hero-wave-swell 17s ease-in-out infinite;
}

@keyframes hero-wave-swell {
	0%,
	100% {
		translate: 0 0;
	}
	50% {
		translate: 0 -10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-wave {
		animation: none;
	}
}

@media (max-width: 860px) {
	.hero-waves {
		height: 34%;
	}
}
