/* ClinicaLingo landing — palette & typography per product/BRAND.md
   Two working colors only: scrub-navy #1e4976 (authority) and warm coral #ed7558 (humanity). */

:root {
	--primary:      #1e4976;
	--primary-ink:  #112e50;
	--accent:       #ed7558;
	--accent-soft:  #fde5dc;
	--bg:           #fbfbfd;
	--surface:      #ffffff;
	--line:         #e3e8ef;
	--muted:        #5b6b82;
	--success:      #2d7a4f;
	--radius:       12px;
	--radius-sm:    8px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--primary-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

main { max-width: 860px; margin: 0 auto; padding: 40px 24px 72px; }

/* ── Header ─────────────────────────────────────────────────── */
header { display: flex; align-items: center; margin-bottom: 48px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { display: block; height: 32px; width: auto; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 8px 0 24px; }
.hero h1 {
	font-size: clamp(32px, 5.2vw, 52px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--primary-ink);
	margin: 0 0 20px;
	max-width: 22ch;
}
.hero h1 .accent {
	background: var(--accent-soft);
	padding: 0 .18em;
	border-radius: 4px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.lede {
	font-size: clamp(17px, 1.5vw, 19px);
	color: var(--primary-ink);
	margin: 0 0 28px;
	max-width: 62ch;
	line-height: 1.55;
}
.lede strong { color: var(--primary); font-weight: 600; }

/* ── Waitlist form ──────────────────────────────────────────── */
.waitlist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.waitlist input[type=email] {
	flex: 1 1 280px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--primary-ink);
	font: inherit;
}
.waitlist input[type=email]::placeholder { color: var(--muted); }
.waitlist input[type=email]:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--primary);
}
.waitlist button {
	padding: 14px 22px;
	background: var(--primary);
	color: #ffffff;
	border: 0;
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
	font: inherit;
	letter-spacing: -0.005em;
}
.waitlist button:hover { background: var(--primary-ink); }
.wl-micro { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.wl-msg { color: var(--success); min-height: 1.4em; margin: 0; font-size: 14px; }
.wl-msg.err { color: #9a2b2b; }

/* ── Proof row ──────────────────────────────────────────────── */
.proof {
	margin-top: 40px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.proof > div { font-size: 14px; color: var(--primary-ink); }
.proof strong {
	display: block;
	font-size: 16px;
	color: var(--primary);
	font-weight: 700;
	margin-bottom: 2px;
}
@media (max-width: 640px) {
	.proof { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
}

/* ── The gap paragraph ──────────────────────────────────────── */
.gap {
	margin: 56px 0 24px;
	font-size: 17px;
	max-width: 62ch;
	color: var(--primary-ink);
}
.gap .closing { color: var(--primary); font-weight: 600; }

/* ── Scenario card ──────────────────────────────────────────── */
.scenario-wrap { margin: 36px 0 56px; }
.scenario-title {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 10px;
}
.scenario {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 4px 0;
	max-width: 620px;
	box-shadow: 0 1px 0 rgba(30, 73, 118, 0.04);
}
.scenario-row {
	display: grid;
	grid-template-columns: 84px 1fr 36px;
	align-items: start;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}
.scenario-row:last-child { border-bottom: 0; }
.scenario-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 3px;
}
.scenario-row.answer .scenario-label { color: var(--primary); }
.scenario-text { font-size: 16px; line-height: 1.45; color: var(--primary-ink); }
.scenario-text.spanish { font-style: italic; }
.scenario-text.prompt { color: var(--muted); font-size: 15px; }
.scenario-audio {
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--bg); border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center;
	color: var(--primary);
	font-size: 13px;
}
.scenario-foot { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ── Lead magnet (free PDF) ─────────────────────────────────── */
.lead-magnet {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
	margin: 0 0 48px;
	padding: 20px 22px;
	background: var(--accent-soft);
	border: 1px solid rgba(237, 117, 88, 0.25);
	border-radius: var(--radius);
}
.lm-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.lm-title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: var(--primary-ink);
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.lm-blurb {
	margin: 0;
	color: var(--primary-ink);
	font-size: 14px;
	line-height: 1.5;
	max-width: 58ch;
}
.lm-cta {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 14px 20px;
	background: var(--primary);
	color: #fff;
	text-decoration: none;
	border-radius: var(--radius);
	font-weight: 600;
	min-width: 160px;
	text-align: center;
	transition: background .15s ease;
}
.lm-cta:hover { background: var(--primary-ink); }
.lm-cta-label { font-size: 15px; }
.lm-cta-meta { font-size: 11px; font-weight: 500; opacity: 0.85; letter-spacing: 0.03em; }
@media (max-width: 560px) {
	.lead-magnet { grid-template-columns: 1fr; }
	.lm-cta { width: 100%; }
}

/* ── Pricing strip ──────────────────────────────────────────── */
.pricing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 48px 0 48px;
}
.plan {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 22px;
}
.plan.pro { border-color: var(--primary); }
.plan h3 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.plan .price {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	color: var(--primary-ink);
	letter-spacing: -0.01em;
}
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: 6px;
	font-size: 15px; color: var(--primary-ink);
}
.plan li { padding-left: 18px; position: relative; }
.plan li::before {
	content: "·"; color: var(--accent); font-weight: 700;
	position: absolute; left: 6px; top: 0;
}
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }

/* ── Closing CTA ────────────────────────────────────────────── */
.closing-cta { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.tagline {
	color: var(--primary);
	font-weight: 600;
	font-size: 17px;
	margin: 16px 0 0;
	letter-spacing: -0.005em;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	display: grid;
	gap: 10px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--primary); }
.disclaimer { max-width: 60ch; line-height: 1.5; }

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.hero h1 { animation: fadeUp .55s ease-out both; }
	.lede { animation: fadeUp .65s ease-out both; animation-delay: .06s; }
	.waitlist { animation: fadeUp .75s ease-out both; animation-delay: .12s; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
