/*
 * Prairie Ledger — corporate site (prairieledger.com)
 *
 * Reuses the product's own brand tokens (app/src/lib/styles/tokens.css)
 * rather than inventing a new palette — this is the same company's public
 * face pairing with app.prairieledger.com, so it needs to feel like the
 * same brand, not a second startup. Type scale is expanded well past the
 * app's compact scale, since a marketing page has room the in-field
 * capture UI never did.
 */

@font-face {
	font-family: 'InterVariable';
	src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-primary: #2d5016;
	--color-primary-hover: #1f3810;
	--color-primary-tint: #e8efe2;
	--color-cream: #f7f4ef;
	--color-charcoal: #1a1a1a;
	--color-charcoal-muted: #6b6558;
	--color-border: #e2ddd1;
	--color-white: #ffffff;

	--font-sans: 'InterVariable', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--text-sm: 0.9375rem;
	--text-base: 1.0625rem;
	--text-lg: 1.25rem;
	--text-xl: 1.625rem;
	--text-2xl: 2.25rem;
	--text-3xl: 3rem;
	--text-4xl: 4rem;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-24: 6rem;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 24px;

	--shadow-card: 0 1px 3px rgba(26, 26, 26, 0.06), 0 12px 32px rgba(26, 26, 26, 0.06);
	--content-width: 1120px;
	--measure: 62ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	background: var(--color-cream);
	color: var(--color-charcoal);
	font-size: var(--text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

.wrap {
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 var(--space-6);
}

h1,
h2,
h3 {
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
}

.eyebrow {
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	height: 52px;
	padding: 0 var(--space-8);
	border-radius: var(--radius-sm);
	font-size: var(--text-base);
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.button:active {
	transform: translateY(1px);
}
.button-primary {
	background: var(--color-primary);
	color: var(--color-cream);
}
.button-primary:hover {
	background: var(--color-primary-hover);
}
.button-ghost {
	background: transparent;
	color: var(--color-charcoal);
	border: 1px solid var(--color-border);
}
.button-ghost:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.button-on-dark {
	background: var(--color-cream);
	color: var(--color-primary);
}
.button-on-dark:hover {
	background: var(--color-white);
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(247, 244, 239, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
	height: 88px;
}
.brand-logo {
	height: 40px;
	width: auto;
}
.header-nav {
	display: flex;
	align-items: center;
	gap: var(--space-8);
}
.header-nav__links {
	display: flex;
	gap: var(--space-6);
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--text-sm);
	font-weight: 600;
}
.header-nav__links a {
	text-decoration: none;
	color: var(--color-charcoal-muted);
}
.header-nav__links a:hover {
	color: var(--color-primary);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
	padding: var(--space-24) 0 var(--space-16);
	overflow: hidden;
}
.hero .wrap {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--space-16);
	align-items: center;
}
.hero-copy .eyebrow {
	margin-bottom: var(--space-4);
}
.hero-copy h1 {
	font-size: var(--text-4xl);
	letter-spacing: -0.02em;
}
.hero-copy p {
	margin-top: var(--space-6);
	font-size: var(--text-lg);
	color: var(--color-charcoal-muted);
	max-width: 46ch;
}
.hero-actions {
	display: flex;
	gap: var(--space-4);
	margin-top: var(--space-8);
	flex-wrap: wrap;
}
.hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-visual img {
	width: min(340px, 80%);
	filter: drop-shadow(0 24px 48px rgba(45, 80, 22, 0.16));
}
.hero-visual::before {
	content: '';
	position: absolute;
	inset: -10%;
	background: radial-gradient(circle, var(--color-primary-tint) 0%, transparent 70%);
	z-index: -1;
}

/* ── Section rhythm ──────────────────────────────────────────────────── */

section {
	padding: var(--space-24) 0;
}
.section-white {
	background: var(--color-white);
}
.section-header {
	max-width: 640px;
	margin: 0 auto var(--space-16);
	text-align: center;
}
.section-header .eyebrow {
	display: block;
	margin-bottom: var(--space-4);
}
.section-header h2 {
	font-size: var(--text-3xl);
}
.section-header p {
	margin-top: var(--space-4);
	color: var(--color-charcoal-muted);
	font-size: var(--text-lg);
}

/* ── Journey steps ───────────────────────────────────────────────────── */

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-6);
}
.step {
	background: var(--color-cream);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-8) var(--space-6);
	position: relative;
}
.step-index {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--color-primary);
	letter-spacing: 0.06em;
}
.step h3 {
	font-size: var(--text-lg);
	margin-top: var(--space-4);
}
.step p {
	margin-top: var(--space-2);
	font-size: var(--text-sm);
	color: var(--color-charcoal-muted);
}
.step-icon {
	width: 28px;
	height: 28px;
	color: var(--color-primary);
	margin-bottom: var(--space-2);
}
.step-icon svg {
	width: 100%;
	height: 100%;
}

/* ── Trust mark section ──────────────────────────────────────────────── */

.trust-section .wrap {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: var(--space-16);
	align-items: center;
}
.trust-mark-img {
	width: min(320px, 100%);
	margin: 0 auto;
}
.trust-copy h2 {
	font-size: var(--text-3xl);
}
.trust-copy p {
	margin-top: var(--space-6);
	font-size: var(--text-lg);
	color: var(--color-charcoal-muted);
}
.trust-copy p + p {
	margin-top: var(--space-4);
}

/* ── About / audience cards ──────────────────────────────────────────── */

.audience-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-6);
}
.audience-card {
	/* Mirror of the How It Works section. There, a #ffffff section holds
	   #f7f4ef cells (.step). Here it is the other way up: the section keeps
	   #f7f4ef to hold its place in the page's alternating rhythm, so these
	   cells go #ffffff to stand out against it. */
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	border: 1px solid var(--color-border);
}
.audience-card h3 {
	font-size: var(--text-lg);
}
.audience-card p {
	margin-top: var(--space-3);
	color: var(--color-charcoal-muted);
	font-size: var(--text-sm);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq-list {
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}
.faq-item {
	padding: var(--space-8) 0;
	border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child {
	padding-top: 0;
}
.faq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.faq-item h3 {
	font-size: var(--text-lg);
}
.faq-item p {
	margin-top: var(--space-3);
	color: var(--color-charcoal-muted);
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-16);
	align-items: center;
}
.about-copy p {
	color: var(--color-charcoal-muted);
	font-size: var(--text-lg);
}
.about-copy p + p {
	margin-top: var(--space-4);
}
.about-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	background: var(--color-primary-tint);
	color: var(--color-primary);
	border-radius: 999px;
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	font-weight: 600;
	margin-bottom: var(--space-6);
}
.about-visual {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-card);
	padding: var(--space-8);
}
.about-visual dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}
.about-visual .stat-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--color-border);
}
.about-visual .stat-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.about-visual dt {
	font-size: var(--text-sm);
	color: var(--color-charcoal-muted);
}
.about-visual dd {
	margin: 0;
	font-size: var(--text-lg);
	font-weight: 700;
	color: var(--color-primary);
	text-align: right;
}

/* ── CTA band ────────────────────────────────────────────────────────── */

.cta-band {
	background: var(--color-primary);
	color: var(--color-cream);
	text-align: center;
}
.cta-band h2 {
	font-size: var(--text-3xl);
	color: var(--color-white);
}
.cta-band p {
	margin-top: var(--space-4);
	font-size: var(--text-lg);
	color: rgba(247, 244, 239, 0.82);
	max-width: 52ch;
	margin-left: auto;
	margin-right: auto;
}
.cta-band .hero-actions {
	justify-content: center;
	margin-top: var(--space-8);
}

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

.contact-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: var(--space-16);
}
.contact-info h2 {
	font-size: var(--text-3xl);
}
.contact-info p {
	margin-top: var(--space-4);
	color: var(--color-charcoal-muted);
	font-size: var(--text-lg);
}

.contact-form {
	background: var(--color-cream);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
}
.field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-bottom: var(--space-4);
}
.field span {
	font-size: var(--text-sm);
	font-weight: 600;
}
.field input,
.field textarea {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	resize: vertical;
}
.field input:focus,
.field textarea:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}
.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}
/* Honeypot — hidden from real users, catches simple bots that fill every field. */
/* Honeypot wrapper. Positioned off-canvas rather than display:none —
   some bots specifically skip display:none fields, and screen readers are
   handled by aria-hidden + tabindex="-1" on the inputs themselves. */
.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}
.form-status {
	margin-top: var(--space-4);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	font-weight: 600;
	display: none;
}
.form-status.is-visible {
	display: block;
}
.form-status.is-success {
	background: var(--color-primary-tint);
	color: var(--color-primary);
}
.form-status.is-error {
	background: #f6e3de;
	color: #a3341f;
}

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

.site-footer {
	background: var(--color-cream);
	border-top: 1px solid var(--color-border);
	padding: var(--space-16) 0 var(--space-8);
}
.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-8);
	flex-wrap: wrap;
	padding-bottom: var(--space-8);
	margin-bottom: var(--space-8);
	border-bottom: 1px solid var(--color-border);
}
.footer-brand img {
	height: 68px;
	margin-bottom: var(--space-4);
}
.footer-brand p {
	color: var(--color-charcoal-muted);
	font-size: var(--text-sm);
	max-width: 32ch;
}
.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-12);
}
.footer-nav-col {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.footer-nav-col span {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--color-charcoal-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.footer-nav-col a {
	font-size: var(--text-sm);
	text-decoration: none;
	color: var(--color-charcoal);
}
.footer-nav-col a:hover {
	color: var(--color-primary);
}
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);
	font-size: var(--text-sm);
	color: var(--color-charcoal-muted);
}

/* ── Scroll reveal ───────────────────────────────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

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

@media (max-width: 960px) {
	.hero .wrap {
		grid-template-columns: 1fr;
		gap: var(--space-8);
	}
	.hero-visual {
		order: -1;
	}
	.hero-visual img {
		width: min(220px, 60%);
	}
	.steps {
		grid-template-columns: repeat(2, 1fr);
	}
	.trust-section .wrap {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.trust-copy p {
		max-width: 56ch;
		margin-left: auto;
		margin-right: auto;
	}
	.audience-grid {
		grid-template-columns: 1fr;
	}
	.about-grid {
		grid-template-columns: 1fr;
	}
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	:root {
		--text-4xl: 2.5rem;
		--text-3xl: 2rem;
		--space-24: 3.5rem;
		--space-16: 2.5rem;
	}
	.site-header .wrap {
		height: 72px;
	}
	.header-nav__links {
		display: none;
	}
	.brand-logo {
		height: 30px;
	}
	.hero {
		padding-top: var(--space-16);
	}
	.hero-actions,
	.cta-band .hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.button {
		width: 100%;
	}
	.steps {
		grid-template-columns: 1fr;
	}
	.field-row {
		grid-template-columns: 1fr;
	}
	.footer-top {
		flex-direction: column;
	}
	.footer-nav {
		gap: var(--space-6) var(--space-8);
	}
	.footer-nav-col {
		min-width: 45%;
	}
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}
