/**
 * Component: Hero Banner — styles
 * Scoped to .hero-banner (BEM root). All rules confined to this component — no
 * global/site-wide selectors. Site-wide tokens from style.css via var(--*).
 *
 * Centered stack: headline, copy, waitlist form, then the phone mockups, on a
 * blue-grey gradient that fades to the page white behind the phones.
 */

/* ── Root ─────────────────────────────────────────────────────── */
.hero-banner {
	background: linear-gradient(180deg, var(--color-panel-bottom) 0%, var(--color-bg) 62%);
	color: var(--color-text-pri);
	padding-block: clamp(3rem, 8vw, 7.5rem) 0;
	padding-inline: var(--space-lg);
	overflow: hidden;
}

.hero-banner__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 1440px;
	margin-inline: auto;
	text-align: center;
}

/* ── Copy ─────────────────────────────────────────────────────── */
.hero-banner__title {
	max-width: 760px;
	margin: 0;
	font-family: var(--font-title);
	font-size: clamp(2.25rem, 4.6vw, 4rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
	color: var(--color-text-pri);
}

.hero-banner__subhead {
	max-width: 660px;
	margin: var(--space-xl) 0 0;
	font-family: var(--font-body);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.5;
	color: var(--color-text-sec);
}

/* The inline waitlist form: fixed-width row under the copy. */
.hero-banner__inner .waitlist-form {
	width: 100%;
	max-width: 552px;
	margin-top: var(--space-2xl);
}

/* ── Mockups ──────────────────────────────────────────────────── */
.hero-banner__image {
	display: block;
	width: 100%;
	max-width: 1280px;
	height: auto;
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* ── Tablet ≤900px ────────────────────────────────────────────── */
@media (max-width: 900px) {
	.hero-banner {
		padding-inline: var(--space-2xl);
	}

	/* Let the floating UI cards bleed slightly so the phones stay legible. */
	.hero-banner__image {
		width: 116%;
		max-width: none;
	}
}

/* ── Mobile ≤480px ────────────────────────────────────────────── */
@media (max-width: 480px) {
	.hero-banner {
		padding-inline: var(--space-lg);
	}

	.hero-banner__subhead {
		margin-top: var(--space-lg);
	}

	.hero-banner__inner .waitlist-form {
		margin-top: var(--space-xl);
	}

	.hero-banner__image {
		width: 135%;
	}
}

/* ── Entrance on load ─────────────────────────────────────────── */
/* Staggered fade-up of the copy and form. The mockup image only rises, no
   fade: it is the LCP element and Chrome doesn't count an opacity:0 element
   as painted, so fading it would delay LCP by the animation. Opt-in on
   no-preference, so reduced-motion users get the static page. */
@media (prefers-reduced-motion: no-preference) {
	@keyframes hero-banner-rise {
		from { opacity: 0; transform: translateY(16px); }
	}

	@keyframes hero-banner-lift {
		from { transform: translateY(40px); }
	}

	.hero-banner__title,
	.hero-banner__subhead,
	.hero-banner__inner .waitlist-form {
		animation: hero-banner-rise 0.7s ease-out both;
	}

	.hero-banner__subhead { animation-delay: 0.1s; }
	.hero-banner__inner .waitlist-form { animation-delay: 0.2s; }

	.hero-banner__image {
		animation: hero-banner-lift 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
	}
}
