/* ──────────────── FarmFin — palette + layout ──────────────── */

:root {
	--leaf:           #6db139;
	--leaf-bright:    #82c84b;
	--leaf-soft:      rgba(109, 177, 57, 0.12);
	--forest:         #0d3520;
	--forest-soft:    #1a4a30;

	--cream:          #faf7ee;
	--cream-deep:     #f1ebd9;
	--paper:          #ffffff;

	--ink:            #1c2218;
	--ink-soft:       #4a5249;
	--ink-faint:      rgba(28, 34, 24, 0.55);
	--ink-thin:       rgba(28, 34, 24, 0.10);

	--rule:           rgba(13, 53, 32, 0.14);
	--shadow-card:    0 1px 2px rgba(13, 53, 32, 0.04), 0 8px 24px rgba(13, 53, 32, 0.06);
	--shadow-lift:    0 4px 12px rgba(13, 53, 32, 0.08), 0 24px 48px rgba(13, 53, 32, 0.10);

	--ease-out:       cubic-bezier(.22, .8, .2, 1);
	--max-w:          1100px;
	--gutter:         clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
	:root {
		--leaf:         #82c84b;
		--leaf-bright:  #a3d96e;
		--leaf-soft:    rgba(130, 200, 75, 0.16);
		--forest:       #d4e9d8;
		--forest-soft:  #b7d4bc;

		--cream:        #0e1410;
		--cream-deep:   #161e18;
		--paper:        #1a2420;

		--ink:          #ecf0e6;
		--ink-soft:     #b6c0b1;
		--ink-faint:    rgba(236, 240, 230, 0.55);
		--ink-thin:     rgba(236, 240, 230, 0.10);

		--rule:         rgba(212, 233, 216, 0.16);
		--shadow-card:  0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
		--shadow-lift:  0 4px 12px rgba(0, 0, 0, 0.4), 0 24px 48px rgba(0, 0, 0, 0.45);
	}
}

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

html { scroll-behavior: smooth; }

html, body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
	background-color: var(--cream);
	background-image:
		radial-gradient(ellipse 60% 50% at 12% 8%,  var(--leaf-soft), transparent 65%),
		radial-gradient(ellipse 55% 50% at 92% 88%, var(--leaf-soft), transparent 65%);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01", "cv11", "kern";
}

a {
	color: var(--forest);
	text-decoration-color: var(--rule);
	text-underline-offset: 0.18em;
	transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}
a:hover { color: var(--leaf); text-decoration-color: var(--leaf); }

@media (prefers-color-scheme: dark) {
	a { color: var(--leaf-bright); }
	a:hover { color: var(--leaf); }
}

h1, h2, h3 {
	font-family: 'Newsreader', 'Source Serif 4', Georgia, serif;
	font-weight: 500;
	letter-spacing: -0.012em;
	color: var(--forest);
	line-height: 1.1;
}

@media (prefers-color-scheme: dark) {
	h1, h2, h3 { color: var(--forest); } /* in dark, --forest is the light leafy tone */
}

p { color: var(--ink-soft); }

/* ──────────────── Nav ──────────────── */

.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 30;
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	background: color-mix(in srgb, var(--cream) 78%, transparent);
	border-bottom: 1px solid var(--rule);
}

.nav-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0.7rem var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--forest);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.nav-brand-mark {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.nav-brand-name {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 600;
	font-size: 1.1rem;
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	background: var(--forest);
	color: var(--cream);
	font-size: 0.88rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.nav-cta:hover { background: var(--leaf); color: var(--cream); transform: translateY(-1px); }

@media (prefers-color-scheme: dark) {
	.nav-cta { background: var(--leaf); color: var(--cream); }
	.nav-cta:hover { background: var(--leaf-bright); color: var(--cream); }
}

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

.hero {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 9rem var(--gutter) 5rem;
	text-align: center;
	position: relative;
}

.hero-logo {
	width: 132px;
	height: 132px;
	display: block;
	margin: 0 auto 1.5rem;
	border-radius: 28px;
	filter: drop-shadow(0 22px 36px rgba(13, 53, 32, 0.18));
	animation: float 7s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-logo { animation: none; }
}

.hero-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--leaf);
	margin-bottom: 1.1rem;
}

.hero-title {
	font-size: clamp(2.5rem, 6.5vw, 4.4rem);
	font-weight: 500;
	max-width: 14ch;
	margin: 0 auto 1.2rem;
}

.hero-title em {
	font-style: italic;
	color: var(--leaf);
	font-feature-settings: "ss01";
}

.hero-sub {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	max-width: 38ch;
	margin: 0 auto 2.4rem;
	color: var(--ink-soft);
	line-height: 1.55;
}

.hero-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.4rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 160ms var(--ease-out),
	            color 160ms var(--ease-out),
	            border-color 160ms var(--ease-out),
	            transform 160ms var(--ease-out);
	font-family: inherit;
}

.btn-primary {
	background: var(--forest);
	color: var(--cream);
}
.btn-primary:hover { background: var(--leaf); color: var(--cream); transform: translateY(-1px); }

.btn-ghost {
	background: transparent;
	color: var(--forest);
	border-color: var(--rule);
}
.btn-ghost:hover { color: var(--leaf); border-color: var(--leaf); }

@media (prefers-color-scheme: dark) {
	.btn-primary { background: var(--leaf); color: var(--cream); }
	.btn-primary:hover { background: var(--leaf-bright); color: var(--cream); }
	.btn-ghost { color: var(--forest); }
	.btn-ghost:hover { color: var(--leaf); border-color: var(--leaf); }
}

.btn .arrow { transition: transform 160ms var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ──────────────── Section scaffolding ──────────────── */

section {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 5rem var(--gutter);
}

.section-eyebrow {
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--leaf);
	margin-bottom: 0.9rem;
}

.section-title {
	font-size: clamp(1.85rem, 3.6vw, 2.6rem);
	margin-bottom: 2.6rem;
	max-width: 22ch;
}

/* ──────────────── Features ──────────────── */

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
}

.feature {
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 16px;
	padding: 1.6rem 1.45rem;
	box-shadow: var(--shadow-card);
	transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.feature-icon {
	width: 36px; height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--leaf-soft);
	color: var(--leaf);
	margin-bottom: 0.9rem;
	font-size: 1.1rem;
}

.feature-name {
	font-size: 1.08rem;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	color: var(--forest);
	margin-bottom: 0.35rem;
	letter-spacing: -0.005em;
}

@media (prefers-color-scheme: dark) {
	.feature-name { color: var(--forest); }
}

.feature-desc {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--ink-soft);
}

/* ──────────────── Examples (AI prompts) ──────────────── */

.examples-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 0.9rem;
}

.prompt {
	background: var(--cream-deep);
	border: 1px solid var(--rule);
	border-radius: 14px;
	padding: 1.15rem 1.2rem;
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--ink);
}

.prompt-mark {
	color: var(--leaf);
	font-weight: 600;
	flex-shrink: 0;
}

/* ──────────────── How it works ──────────────── */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 1.5rem;
	counter-reset: step;
}

.step {
	position: relative;
	padding-top: 2.2rem;
}

.step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: 0; left: 0;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.65rem;
	font-weight: 500;
	color: var(--leaf);
}

.step::after {
	content: "";
	position: absolute;
	top: 1.2rem; left: 2.3rem;
	right: 0; height: 1px;
	background: var(--rule);
}

.step-name {
	font-size: 1.1rem;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	color: var(--forest);
	margin-bottom: 0.45rem;
	letter-spacing: -0.005em;
}

@media (prefers-color-scheme: dark) {
	.step-name { color: var(--forest); }
}

.step-desc {
	font-size: 0.95rem;
	color: var(--ink-soft);
	line-height: 1.55;
}

/* ──────────────── Waitlist ──────────────── */

.waitlist {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 4rem var(--gutter) 6rem;
}

.waitlist-card {
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 24px;
	padding: clamp(2rem, 5vw, 3.2rem);
	box-shadow: var(--shadow-lift);
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.waitlist-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--leaf);
	margin-bottom: 0.9rem;
}

.waitlist-title {
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	margin-bottom: 0.7rem;
}

.waitlist-sub {
	font-size: 1rem;
	color: var(--ink-soft);
	margin-bottom: 1.8rem;
	max-width: 36ch;
	margin-left: auto;
	margin-right: auto;
}

.waitlist-form {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	text-align: left;
}

.waitlist-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink-soft);
	margin-bottom: 0.3rem;
}

.waitlist-optional {
	color: var(--ink-faint);
	font-weight: 400;
}

.waitlist-input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: var(--cream);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.waitlist-input::placeholder { color: var(--ink-faint); }

.waitlist-input:focus {
	outline: 2px solid var(--leaf);
	outline-offset: 1px;
	border-color: var(--leaf);
	background: var(--paper);
}

.waitlist-textarea {
	resize: vertical;
	min-height: 70px;
	max-height: 200px;
	font-family: inherit;
}

.waitlist-honey {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.waitlist-actions {
	margin-top: 0.6rem;
}

.waitlist-submit {
	width: 100%;
	justify-content: center;
}

.waitlist-error {
	color: #b04022;
	font-size: 0.9rem;
	margin-top: 0.3rem;
}

@media (prefers-color-scheme: dark) {
	.waitlist-error { color: #ff8770; }
}

.waitlist-thanks-title { margin-bottom: 0.7rem; }
.waitlist-aside {
	font-size: 0.82rem;
	color: var(--ink-faint);
	margin-top: 1rem;
}

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

.site-footer {
	border-top: 1px solid var(--rule);
	padding: 3rem var(--gutter) 4rem;
	max-width: var(--max-w);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.footer-credit {
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.1rem;
	font-size: 0.88rem;
	color: var(--ink-faint);
}

.footer-links a {
	color: var(--ink-soft);
	text-decoration: none;
}
.footer-links a:hover { color: var(--leaf); }

.footer-dot { color: var(--ink-faint); }

/* ──────────────── Legal pages (privacy, terms) ──────────────── */

.legal {
	max-width: 720px;
	margin: 0 auto;
	padding: 7rem var(--gutter) 5rem;
}

.legal .back {
	display: inline-block;
	margin-bottom: 1.6rem;
	color: var(--ink-faint);
	font-size: 0.88rem;
	text-decoration: none;
}
.legal .back:hover { color: var(--leaf); }

.legal h1 {
	font-size: clamp(2rem, 4vw, 2.6rem);
	margin-bottom: 0.4rem;
}

.legal .updated {
	color: var(--ink-faint);
	font-size: 0.85rem;
	margin-bottom: 2.4rem;
}

.legal h2 {
	font-size: 1.18rem;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 0.7rem;
	color: var(--forest);
	letter-spacing: -0.005em;
}

@media (prefers-color-scheme: dark) {
	.legal h2 { color: var(--forest); }
}

.legal p, .legal li {
	font-size: 0.96rem;
	color: var(--ink-soft);
	line-height: 1.7;
	margin-bottom: 0.7rem;
}

.legal ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal strong { color: var(--ink); }

@media (prefers-color-scheme: dark) {
	.legal strong { color: var(--ink); }
}

/* ──────────────── Misc ──────────────── */

.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;
}
