/* FlipTurn marketing site — brand-matched to the app (web/src/lib/styles/tokens.css). */
:root {
	--brand-primary: #6474a6;   /* periwinkle */
	--brand-primary-hover: #54639a;
	--brand-light: #87b7d1;     /* light blue accent */
	--brand-navy: #1f2a44;      /* body text */
	--brand-tint: #eef0f8;      /* soft backgrounds */
	--brand-slate: #5b6577;
	--surface: #ffffff;
	--surface-alt: #f6f8fc;
	--border: #e2e7f0;
	--radius: 12px;
	--radius-lg: 20px;
	--container: 64rem;
	--shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	color: var(--brand-navy);
	background: var(--surface);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

a { color: var(--brand-primary); }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius);
	padding: 0.6rem 1.1rem;
	border: 1.5px solid transparent;
	transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
	white-space: nowrap;
}
.btn.lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; }
.btn.primary { background: var(--brand-primary); color: #fff; }
.btn.primary:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn.secondary:hover { background: var(--brand-tint); }
.btn.ghost { background: transparent; color: var(--brand-navy); border-color: var(--border); padding: 0.5rem 1rem; }
.btn.ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--brand-navy); }
.brand-mark { width: 1.9rem; height: 1.9rem; }
.brand-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.header-nav a:not(.btn) { color: var(--brand-slate); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.header-nav a:not(.btn):hover { color: var(--brand-primary); }

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(180deg, var(--brand-tint) 0%, #ffffff 100%);
	padding: 4.5rem 0 4rem;
	text-align: center;
}
.hero-inner { max-width: 44rem; margin: 0 auto; }
.badge {
	display: inline-block;
	background: var(--brand-light);
	color: #0f2433;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; margin: 0 0 1rem; }
.accent { color: var(--brand-primary); }
.lede { font-size: 1.2rem; color: var(--brand-slate); margin: 0 auto 1.75rem; max-width: 38rem; }
.cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.cta-row:not(.center) { justify-content: center; }
.cta-row.center { justify-content: center; }
.cta-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--brand-slate); }

/* ---------- Features ---------- */
.features { padding: 4.5rem 0; }
.features h2 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card {
	background: var(--surface-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}
.card-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.15rem; margin: 0 0 0.45rem; }
.card p { margin: 0; color: var(--brand-slate); font-size: 0.97rem; }

/* ---------- Privacy ---------- */
.privacy { background: var(--brand-navy); color: #fff; padding: 4.5rem 0; }
.privacy-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.privacy h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 1rem; }
.privacy p { color: #c7cede; margin: 0 0 1.25rem; }
.privacy .who h3 { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--brand-light); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 1.7rem; color: #e7ebf4; }
.checks li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--brand-light);
	font-weight: 800;
}

/* ---------- Closing ---------- */
.closing { padding: 4.5rem 0; text-align: center; }
.closing h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 0.75rem; }
.closing p { color: var(--brand-slate); margin: 0 auto 1.75rem; max-width: 34rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; }
.footer-brand .brand-mark { width: 1.5rem; height: 1.5rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--brand-slate); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: var(--brand-primary); }
.footer-fine { margin: 0; color: var(--brand-slate); font-size: 0.85rem; }

@media (max-width: 40rem) {
	.privacy-inner { grid-template-columns: 1fr; gap: 1.75rem; }
	.header-nav { gap: 0.85rem; }
	.header-nav a#nav-features { display: none; }
}
