/*
 * The Quick Ride launch site. Brand values come from ../shared/tokens.css
 * (transcribed from theme.dart); this file is layout and craft on top.
 * The design language is DESIGN-FLAGSHIP.md's: paper canvas, ink type,
 * one red accent per section, sharp radii, Inter with tight tracking.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	font-family: var(--qr-font);
	background: var(--qr-canvas);
	color: var(--qr-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 28px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px;
	border-radius: var(--qr-radius-button);
	font-size: 17px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--qr-red); color: var(--qr-on-red); }
.btn-red:hover { box-shadow: 0 8px 24px rgba(196, 22, 28, 0.35); }
.btn-paper { background: var(--qr-paper); color: var(--qr-ink); }
.btn-paper:hover { box-shadow: 0 8px 24px rgba(20, 20, 20, 0.18); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.45); color: var(--qr-on-red); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ink { background: var(--qr-ink); color: var(--qr-on-red); }
.btn-ink:hover { box-shadow: 0 8px 24px rgba(20, 20, 20, 0.3); }

/* ── The nav ─────────────────────────────────────────────────────────── */

nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 10;
	transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
	color: var(--qr-on-red);
}
nav .wrap {
	display: flex;
	align-items: center;
	gap: 36px;
	height: 76px;
}
nav.scrolled {
	background: rgba(246, 244, 242, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: inset 0 -1px 0 var(--qr-outline);
	color: var(--qr-ink);
}
.nav-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-right: auto;
}
.nav-brand svg { width: 40px; height: 40px; }
nav.scrolled .nav-brand svg { color: var(--qr-red); }
.nav-links {
	display: flex;
	gap: 28px;
	font-size: 15.5px;
	font-weight: 500;
}
.nav-links a { opacity: 0.85; transition: opacity 150ms ease; }
.nav-links a:hover { opacity: 1; }
nav .btn {
	height: 42px;
	padding: 0 20px;
	font-size: 15.5px;
}
nav.scrolled .btn-paper { background: var(--qr-red); color: var(--qr-on-red); }

/* ── The hero ────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	background: var(--qr-red);
	color: var(--qr-on-red);
	overflow: hidden;
	padding: 170px 0 0;
}
.hero .wrap {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}
.hero-copy { padding-bottom: 110px; }
.hero h1 {
	font-size: clamp(52px, 6.4vw, 84px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.02;
}
.hero .lede {
	margin-top: 26px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--qr-red-wash);
	max-width: 46ch;
}
.hero-ctas {
	display: flex;
	gap: 14px;
	margin-top: 38px;
	flex-wrap: wrap;
}
.pilot-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 26px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--qr-red-wash);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--qr-radius-pill);
	padding: 7px 16px;
}
.pilot-chip::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--qr-on-red);
}

/* The speed trails, blown up as the hero's background motif */
.hero-trails {
	position: absolute;
	left: -180px;
	top: 90px;
	width: 720px;
	color: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.hero-phone {
	position: relative;
	justify-self: center;
	transform: rotate(2.5deg);
}

/* ── The phone frame ─────────────────────────────────────────────────── */

.device {
	width: var(--device-w, 320px);
	padding: 10px;
	background: var(--qr-ink);
	border-radius: 46px;
	box-shadow: 0 40px 90px rgba(20, 20, 20, 0.35);
}
.device .screen {
	aspect-ratio: 1080 / 2400;
	border-radius: 37px;
	overflow: hidden;
	background: var(--qr-canvas);
}
.device .screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-phone .device { --device-w: 340px; }
.hero-phone .device { margin-bottom: -84px; }

/* ── The places marquee ──────────────────────────────────────────────── */

.marquee {
	background: var(--qr-ink);
	color: rgba(255, 255, 255, 0.75);
	overflow: hidden;
	padding: 18px 0;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.marquee-track {
	display: flex;
	gap: 56px;
	width: max-content;
	animation: marquee 36s linear infinite;
	white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: '·'; color: var(--qr-red); font-weight: 700; }
@keyframes marquee {
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee-track { animation: none; }
}

/* ── Sections ────────────────────────────────────────────────────────── */

section { padding: 110px 0; }
.kicker {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--qr-red);
	margin-bottom: 14px;
}
h2 {
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.08;
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head p {
	margin-top: 16px;
	font-size: 18px;
	color: var(--qr-gray);
}

/* Feature rows: text and phone, alternating */
.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
	padding: 44px 0;
}
.feature:nth-child(even) .feature-copy { order: 2; }
.feature h3 {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.feature p {
	margin-top: 14px;
	font-size: 17.5px;
	color: var(--qr-gray);
	max-width: 44ch;
}
.feature ul {
	margin-top: 18px;
	list-style: none;
}
.feature li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
	font-size: 16.5px;
	color: var(--qr-gray);
}
.feature li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 12px;
	height: 4px;
	border-radius: 2px;
	background: var(--qr-red);
}
.feature-media {
	position: relative;
	display: flex;
	justify-content: center;
}
.feature-media .device { --device-w: 300px; }

/* The locked-fare card (the splash mock, in HTML) */
.fare-card {
	position: absolute;
	right: max(0px, calc(50% - 300px));
	bottom: 42px;
	background: var(--qr-paper);
	border-radius: var(--qr-radius-tile);
	box-shadow: 0 24px 60px rgba(20, 20, 20, 0.22);
	padding: 22px 26px;
	min-width: 250px;
}
.fare-card .route {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
}
.fare-card .route .dot {
	width: 9px; height: 9px;
	border: 2.5px solid var(--qr-ink);
	border-radius: 50%;
}
.fare-card .route .arrow { color: var(--qr-gray); font-weight: 400; }
.fare-card .amount {
	margin-top: 12px;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.fare-card .caption {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--qr-gray);
}

/* ── The driver band (ink) ───────────────────────────────────────────── */

.drive {
	background: var(--qr-ink);
	color: var(--qr-on-red);
}
.drive .wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}
.drive .kicker { color: var(--qr-red); }
.drive p { color: rgba(255, 255, 255, 0.72); }
.drive .feature-media .device {
	background: #2A2A2A; /* the bezel must separate from the ink field */
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.drive ul { margin-top: 26px; list-style: none; }
.drive li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 12px;
	font-size: 17px;
	color: rgba(255, 255, 255, 0.72);
}
.drive li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 12px;
	height: 4px;
	border-radius: 2px;
	background: var(--qr-red);
}
.drive .btn { margin-top: 36px; }

/* ── About ───────────────────────────────────────────────────────────── */

.about .wrap {
	max-width: 760px;
	text-align: center;
}
.about h2 { margin-bottom: 22px; }
.about p {
	font-size: 19px;
	color: var(--qr-gray);
	line-height: 1.65;
}
.about p + p { margin-top: 16px; }
.about svg {
	width: 88px;
	height: 88px;
	color: var(--qr-red);
	margin: 0 auto 30px;
}
.audience-cards {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
	margin-top: 48px;
	text-align: left;
}
.audience-card {
	background: var(--qr-paper);
	border-radius: var(--qr-radius-tile);
	padding: 26px 24px;
}
.audience-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.audience-card p { margin-top: 8px; font-size: 15.5px; color: var(--qr-gray); }

/* ── Download ────────────────────────────────────────────────────────── */

.download { padding-top: 0; }
.download-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.app-card {
	border-radius: var(--qr-radius-hero);
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 300px;
}
.app-card.rider { background: var(--qr-red); color: var(--qr-on-red); }
.app-card.driver { background: var(--qr-ink); color: var(--qr-on-red); }
.app-card svg { width: 64px; height: 64px; margin-bottom: 18px; }
.app-card.driver svg { color: var(--qr-red); }
.app-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.app-card p { font-size: 16.5px; opacity: 0.82; max-width: 40ch; }
.app-card .store-badge { margin-top: auto; padding-top: 28px; }

/* Store badges: our own clean pills, not the stores' artwork.
   .disabled = the listings aren't live yet; swap span→a and drop the
   class at launch. */
.store-badge {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.store-badge .badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--qr-paper);
	color: var(--qr-ink);
	border-radius: var(--qr-radius-card);
	padding: 12px 22px;
	transition: transform 150ms ease, box-shadow 150ms ease;
}
.store-badge a.badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.store-badge .badge.disabled {
	opacity: 0.55;
	filter: grayscale(1);
	cursor: default;
}
.store-badge .apple { width: 26px; height: 26px; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .small { font-size: 12px; font-weight: 500; color: var(--qr-gray); }
.store-badge .big { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.contact-card {
	background: var(--qr-paper);
	border-radius: var(--qr-radius-hero);
	padding: 40px;
}
.contact-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.contact-card p {
	margin-top: 10px;
	font-size: 16.5px;
	color: var(--qr-gray);
	max-width: 44ch;
}
.contact-card .btn { margin-top: 26px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
	border-color: var(--qr-outline);
	color: var(--qr-ink);
	background: var(--qr-paper);
}
.btn-outline:hover { background: var(--qr-canvas); }

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
	background: var(--qr-ink);
	color: rgba(255, 255, 255, 0.72);
	padding: 64px 0 48px;
}
footer .wrap {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	flex-wrap: wrap;
}
.footer-brand {
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-brand .nav-brand { color: var(--qr-on-red); margin: 0; }
.footer-brand .nav-brand svg { color: var(--qr-red); }
.footer-brand p { font-size: 15px; }
.footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15.5px;
}
.footer-links a:hover { color: var(--qr-on-red); }
.footer-meta {
	width: 100%;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* ── Reveal on scroll ────────────────────────────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 960px) {
	.hero .wrap,
	.drive .wrap,
	.feature { grid-template-columns: 1fr; gap: 44px; }
	.feature:nth-child(even) .feature-copy { order: 0; }
	.hero { padding-top: 130px; }
	.hero-copy { padding-bottom: 0; }
	.hero-phone { padding-bottom: 0; }
	.hero-phone .device { margin-bottom: -60px; }
	.download-cards,
	.contact-cards { grid-template-columns: 1fr; }
	.audience-cards { grid-template-columns: 1fr; }
	section { padding: 80px 0; }
	.fare-card { right: max(0px, calc(50% - 280px)); }
}
@media (max-width: 700px) {
	.nav-links { display: none; }
	.hero h1 { font-size: 46px; }
	.feature-media { flex-direction: column; align-items: center; }
	.fare-card { position: static; margin: -30px auto 0; width: fit-content; }
}
