/* ==========================================================================
   Quaid — landing page styles
   Aesthetic: organic / cartographic. Deep pine green with sand, sage and sky
   accents drawn from the app logo. No frameworks, no CDNs, no cookies.
   ========================================================================== */

:root {
	/* Brand palette, sampled from the logo */
	--pine: #1e5550;
	--pine-deep: #143b37;
	--pine-soft: #2f6f69;
	--sage: #e4e5c7;
	--sky: #bcd7e0;
	--sand: #f5e6cd;
	--ink: #16201f;
	--paper: #fbfaf5;
	--paper-2: #f3f1e8;
	--muted: #5d6b69;
	--line: rgba(30, 85, 80, 0.14);

	--maxw: 1080px;
	--radius: 20px;
	--radius-lg: 32px;

	/* Type. Native stacks only (no CDN). A characterful serif for display,
	   a clean grotesque-ish system sans for body. */
	--font-display: "Hoefler Text", "Iowan Old Style", "Palatino Linotype",
		Palatino, "Big Caslon", Georgia, serif;
	--font-body: ui-rounded, "SF Pro Rounded", -apple-system,
		BlinkMacSystemFont, "Segoe UI", Avenir, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	background: var(--paper);
	color: var(--ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ---- Decorative contour-map backdrop (pure CSS, very light) -------------- */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(900px 600px at 12% -8%, rgba(188, 215, 224, 0.35), transparent 60%),
		radial-gradient(800px 700px at 105% 10%, rgba(245, 230, 205, 0.45), transparent 55%),
		radial-gradient(1000px 800px at 50% 120%, rgba(228, 229, 199, 0.5), transparent 60%);
	pointer-events: none;
}

a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Top bar ============================================================ */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(12px);
	background: rgba(251, 250, 245, 0.72);
	border-bottom: 1px solid var(--line);
}
.topbar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; display: block; }
.brand b { font-size: 1.3rem; letter-spacing: -0.01em; color: var(--pine-deep); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--pine); text-decoration: none; }
@media (max-width: 680px) { .nav-links { display: none; } }

/* ===== Hero =============================================================== */
.hero {
	position: relative;
	padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}
@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pine-soft);
	background: rgba(47, 111, 105, 0.10);
	padding: 7px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
}
.hero h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--pine-deep);
	margin-bottom: 20px;
}
.hero h1 em {
	font-style: italic;
	color: var(--pine-soft);
}
.hero .lede {
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	color: var(--muted);
	max-width: 30ch;
	margin-bottom: 32px;
}
@media (max-width: 860px) { .hero .lede { margin-inline: auto; } }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .cta-row { justify-content: center; } }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 24px;
	border-radius: 14px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
	background: var(--pine);
	color: #fff;
	box-shadow: 0 8px 22px rgba(30, 85, 80, 0.28);
}
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-2px); text-decoration: none; }
.btn-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--pine-deep);
}
.btn-ghost:hover { background: rgba(30, 85, 80, 0.06); text-decoration: none; }
.btn[disabled], .btn.is-soon {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

/* Hero phone */
.hero-phone {
	justify-self: center;
	position: relative;
}
.phone {
	position: relative;
	width: clamp(230px, 30vw, 300px);
	border-radius: 44px;
	background: #fff;
	padding: 10px;
	box-shadow:
		0 2px 6px rgba(20, 59, 55, 0.10),
		0 30px 70px rgba(20, 59, 55, 0.30);
	border: 1px solid rgba(20, 59, 55, 0.08);
}
.phone img { width: 100%; display: block; border-radius: 35px; }
.hero-phone::after {
	/* soft ground shadow */
	content: "";
	position: absolute;
	left: 50%; bottom: -26px;
	width: 70%; height: 36px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(20, 59, 55, 0.22), transparent 70%);
	filter: blur(6px);
	z-index: -1;
}
.float-badge {
	position: absolute;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--pine-deep);
	box-shadow: 0 10px 26px rgba(20, 59, 55, 0.16);
	display: flex;
	align-items: center;
	gap: 8px;
}
.float-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pine-soft); }
.float-badge.one { top: 16%; left: -38px; animation: floaty 6s ease-in-out infinite; }
.float-badge.two { bottom: 18%; right: -30px; animation: floaty 7s ease-in-out infinite 0.8s; }
@media (max-width: 520px) { .float-badge { display: none; } }
@keyframes floaty {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}

/* ===== Privacy strip ===================================================== */
.strip {
	background: var(--pine-deep);
	color: var(--sage);
	padding: 18px 0;
}
.strip .wrap {
	display: flex;
	gap: 28px;
	justify-content: center;
	flex-wrap: wrap;
	font-weight: 600;
	font-size: 0.95rem;
}
.strip span { display: inline-flex; align-items: center; gap: 9px; }
.strip svg { width: 18px; height: 18px; flex: none; }

/* ===== Section scaffolding ============================================== */
section { padding: clamp(56px, 9vw, 100px) 0; }
.section-head { max-width: 56ch; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	letter-spacing: -0.015em;
	color: var(--pine-deep);
	line-height: 1.08;
	margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ===== Feature rows (alternating) ====================================== */
.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 6vw, 80px);
	align-items: center;
	margin-bottom: clamp(56px, 9vw, 96px);
}
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
@media (max-width: 820px) {
	.feature { grid-template-columns: 1fr; text-align: center; }
	.feature.flip .feature-text { order: 0; }
}
.feature-text .kicker {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pine-soft);
	margin-bottom: 12px;
}
.feature-text h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	color: var(--pine-deep);
	line-height: 1.12;
	margin-bottom: 14px;
	letter-spacing: -0.01em;
}
.feature-text p { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
@media (max-width: 820px) { .feature-text p { margin-inline: auto; } }

.feature-media { display: flex; justify-content: center; }
.shot {
	position: relative;
	width: clamp(220px, 30vw, 286px);
	border-radius: 40px;
	background: #fff;
	padding: 9px;
	box-shadow: 0 2px 6px rgba(20,59,55,0.08), 0 22px 50px rgba(20,59,55,0.20);
	border: 1px solid rgba(20,59,55,0.07);
	transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.shot:hover { transform: translateY(-8px) rotate(-1deg); }
.feature.flip .shot:hover { transform: translateY(-8px) rotate(1deg); }
.shot img { width: 100%; display: block; border-radius: 32px; }

/* ===== Reveal-on-scroll ================================================ */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.float-badge { animation: none; }
	html { scroll-behavior: auto; }
}

/* ===== "How it works" steps ============================================ */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 26px;
	position: relative;
}
.step .n {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 600;
	color: var(--sky);
	line-height: 1;
	margin-bottom: 14px;
	display: block;
}
.step h4 { font-size: 1.15rem; color: var(--pine-deep); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ===== Download CTA ===================================================== */
.download {
	background:
		linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 100%);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: clamp(40px, 7vw, 72px);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.download::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(500px 300px at 15% 0%, rgba(188,215,224,0.22), transparent 60%),
		radial-gradient(500px 320px at 100% 100%, rgba(245,230,205,0.18), transparent 60%);
	pointer-events: none;
}
.download h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin-bottom: 14px;
	position: relative;
}
.download p { color: var(--sage); font-size: 1.1rem; margin-bottom: 30px; position: relative; }
.appstore {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	color: var(--pine-deep);
	font-weight: 700;
	padding: 15px 26px;
	border-radius: 14px;
	position: relative;
	box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}
.appstore.is-soon { opacity: 0.85; cursor: default; }
.appstore small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.appstore svg { width: 26px; height: 26px; }

/* ===== Footer ========================================================== */
footer {
	border-top: 1px solid var(--line);
	padding: 44px 0;
	color: var(--muted);
	font-size: 0.92rem;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand b { font-size: 1.05rem; }
footer nav { display: flex; gap: 22px; }

/* ===== Privacy page ==================================================== */
.legal {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(40px, 8vw, 90px) 24px;
}
.legal h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--pine-deep);
	letter-spacing: -0.02em;
	margin-bottom: 10px;
}
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.45rem;
	color: var(--pine-deep);
	margin: 34px 0 12px;
}
.legal p, .legal li { color: #2c3a38; font-size: 1.04rem; margin-bottom: 12px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal .callout {
	background: rgba(47,111,105,0.08);
	border-left: 3px solid var(--pine-soft);
	border-radius: 10px;
	padding: 18px 20px;
	margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
