@font-face { font-family: "Inter P"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter P"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/inter-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter P"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter P"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
	--pine: #0f3d2c; --pine-2: #1a5c43; --mint: #2ecc98; --pale: #d4f4e9; --paler: #eefaf5; --line: #c9e6da; --white: #fff;
	--muted: #4a6b5e; --soft: #a8e6cf;   /* soft: pale green that reads on pine */
	--max: 1240px;
	--pad: clamp(20px, 4.5vw, 64px);
	--gutter: max(var(--pad), calc((100vw - var(--max)) / 2));
	--merlon: clamp(18px, 3.2vh, 34px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
	font-family: "Inter P", system-ui, sans-serif; background: var(--white); color: var(--pine);
	-webkit-font-smoothing: antialiased; letter-spacing: -0.03em; overflow: hidden;
}
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { padding-inline: var(--gutter); }

/* ---------- Screen ---------- */
.screen { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: clamp(18px, 4vh, 40px) var(--gutter) 0; position: relative; z-index: 3; }
.logo { display: block; width: clamp(112px, 11vw, 150px); }
.logo-svg { display: block; width: 100%; height: auto; }
.logo-svg .m, .logo-svg .w { fill: var(--pine); }

.social { display: flex; gap: clamp(14px, 1.8vw, 22px); }
.social a { position: relative; display: grid; place-items: center; width: 32px; height: 32px; color: var(--pine); transition: color .2s, transform .2s; }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.social a:last-child svg { fill: none; stroke: currentColor; width: 26px; height: 26px; }
.social a:hover { color: var(--mint); transform: translateY(-2px); }
.social a::after {
	content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px);
	background: var(--pine); color: var(--white); font-size: 12px; font-weight: 600; white-space: nowrap;
	padding: 5px 9px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.social a:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 0; display: flex; }
.hero-in { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.intro { display: flex; flex-direction: column; }
.trust, .headline { position: relative; z-index: 1; }
.trust {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: -0.01em;
	background: var(--pale); color: var(--pine); padding: 10px 16px; border-radius: 4px; margin-bottom: clamp(16px, 3vh, 30px);
}
.trust strong { font-weight: 700; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--mint); }
.headline { font-weight: 700; letter-spacing: -0.055em; line-height: .92; font-size: min(7.4vw, 11vh, 120px); }

/* Rotating illustrations: each rises over the wall, holds, then sinks behind it */
.rotator {
	position: absolute; z-index: 0; pointer-events: none;
	right: calc(var(--gutter) + 1vw); bottom: 0; width: min(34vw, 50vh, 460px); height: 1px;
}
.rot {
	position: absolute; left: 50%; bottom: 0; width: var(--w); height: auto;
	transform: translate(-50%, 140%) rotate(calc(var(--r) - 14deg)); transform-origin: 50% 100%;
	transition: transform .55s cubic-bezier(.55, 0, .9, .4);
}
.rot.is-up { transform: translate(-50%, var(--y)) rotate(var(--r)); transition: transform .9s cubic-bezier(.2, 1.35, .4, 1) .2s; }

/* ---------- Fortress ---------- */
.fort {
	position: relative; z-index: 2; margin-top: var(--merlon); background: var(--pine); color: var(--white);
	padding: clamp(24px, 5vh, 52px) 0 clamp(16px, 3vh, 28px);
}
.fort::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--merlon);
	background: repeating-linear-gradient(90deg, var(--pine) 0 var(--mw, calc(var(--merlon) * 2.2)), transparent 0 var(--period, calc(var(--merlon) * 3.6)));
}
.fort-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.fort-copy { font-size: clamp(19px, min(2vw, 3.1vh), 28px); line-height: 1.2; letter-spacing: -0.045em; max-width: 30ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: clamp(18px, 3.4vh, 32px); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 99px;
	background: var(--mint); color: var(--pine); font-weight: 700; font-size: 17px; padding: 16px 26px 16px 28px;
	transition: transform .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--pine); color: var(--white); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.alt { font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--white); transition: color .2s, text-decoration-color .2s; }
.alt:hover { color: var(--mint); text-decoration-color: var(--mint); }
.creds { list-style: none; font-size: 15px; letter-spacing: -0.02em; color: var(--soft); text-align: right; }
.creds li + li { margin-top: 6px; }
.creds strong { color: var(--white); font-weight: 700; }
.creds a { color: var(--white); font-weight: 600; text-decoration: none; }
.creds a:hover { text-decoration: underline; }
.legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(18px, 3.4vh, 34px); padding-top: 14px; border-top: 1px solid rgba(168, 230, 207, .3); font-size: 13px; color: var(--soft); }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: var(--soft); text-decoration: none; transition: color .2s; }
.legal-links a:hover { color: var(--white); }

/* ---------- Simple pages: About, Contact, Privacy ---------- */
body.is-page { overflow: auto; }
.page-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(56px, 10vh, 120px); }
.prose { max-width: 700px; }
.kicker { display: inline-block; background: var(--pale); padding: 6px 12px; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 22px; }
.page-title { font-weight: 700; letter-spacing: -0.05em; line-height: .98; font-size: clamp(40px, 6vw, 76px); }
.lede { margin-top: 22px; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.035em; }
.prose h2 { margin-top: 44px; font-size: 22px; font-weight: 700; letter-spacing: -0.035em; }
.prose p:not(.lede):not(.kicker), .prose li { margin-top: 12px; font-size: 17px; line-height: 1.6; letter-spacing: -0.015em; color: #24503f; }
.prose ul { list-style: none; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--mint); }
.prose strong { color: var(--pine); }
.prose a:not(.btn):not(.way):not(.alt-dark) { color: var(--pine); font-weight: 600; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 40px; }
.alt-dark { font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--mint); }
.ways { display: grid; gap: 12px; margin-top: 32px; }
.way { display: block; text-decoration: none; background: var(--paler); border: 1.5px solid transparent; border-radius: 8px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.way:hover { border-color: var(--mint); transform: translateY(-2px); }
.way strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.way span { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.fort-page { padding: 8px 0 20px; }
.fort-page .legal { margin-top: 0; border-top: 0; }

/* ---------- Get in touch: one question at a time ---------- */
.tf {
	position: fixed; inset: 0; z-index: 20; background: var(--white); color: var(--pine);
	display: flex; flex-direction: column; animation: tf-in .35s ease;
}
.tf[hidden] { display: none; }
@keyframes tf-in { from { opacity: 0; } }
.tf-bar { height: 4px; background: var(--paler); flex: none; }
.tf-progress { display: block; height: 100%; width: 0; background: var(--mint); transition: width .4s ease; }
.tf-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter) 0; flex: none; }
.tf-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-size: 15px; font-weight: 600; padding: 8px 0; }
.tf-back[hidden] { visibility: hidden; display: inline-flex; }
.tf-back svg { width: 18px; height: 18px; }
.tf-back:hover { color: var(--pine-2); }
.tf-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paler); display: grid; place-items: center; transition: background .2s; }
.tf-close:hover { background: var(--pale); }
.tf-close svg { width: 18px; height: 18px; }

.tf-stage {
	flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: center;
	width: 100%; max-width: 760px; margin: 0 auto; padding: 24px var(--pad) 40px;
}
.q { display: none; }
.q.is-active { display: block; animation: q-in .45s cubic-bezier(.2, .8, .2, 1); }
.q.is-back { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes q-in-back { from { opacity: 0; transform: translateY(-28px); } }
.q-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; }
.q-help { margin-top: 12px; font-size: 17px; color: var(--muted); letter-spacing: -0.02em; }

.opts { display: grid; gap: 10px; margin-top: clamp(22px, 4vh, 36px); max-width: 560px; }
.opt {
	display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
	background: var(--paler); border: 1.5px solid transparent; border-radius: 8px; padding: 14px 16px;
	transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.opt:hover { border-color: var(--mint); }
.opt kbd {
	flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px;
	background: var(--white); border: 1.5px solid var(--line); font: 700 13px/1 "Inter P", sans-serif; letter-spacing: 0;
}
.opt strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.opt small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; letter-spacing: -0.01em; }
.opt.is-on { background: var(--pine); color: var(--white); border-color: var(--pine); }
.opt.is-on kbd { background: var(--mint); border-color: var(--mint); color: var(--pine); }
.opt.is-on small { color: var(--soft); }
.opt.is-blink { animation: blink .3s 2; }
@keyframes blink { 50% { opacity: .55; } }

.q textarea, .q input[type=text], .q input[type=email] {
	display: block; width: 100%; margin-top: clamp(22px, 4vh, 36px); font: inherit; font-size: clamp(20px, 2.4vw, 28px);
	letter-spacing: -0.03em; color: var(--pine); background: transparent; border: 0; border-bottom: 2px solid var(--line);
	padding: 8px 0 12px; border-radius: 0; resize: none; transition: border-color .2s;
}
.q textarea { min-height: 3.6em; line-height: 1.3; }
.q textarea:focus, .q input:focus { outline: none; border-bottom-color: var(--pine); }
.q ::placeholder { color: #9bb8ac; }
.contact label + label input { margin-top: 18px; }
.q-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.q-note a { color: var(--pine); text-decoration-color: var(--mint); text-underline-offset: 3px; }
.q-err { margin-top: 14px; font-size: 15px; font-weight: 600; color: #b3261e; }
.q-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tf-foot { display: flex; align-items: center; gap: 16px; margin-top: clamp(24px, 4vh, 36px); }
.tf-foot[hidden] { display: none; }
.tf-hint { font-size: 14px; color: var(--muted); }
.tf-hint strong { font-weight: 600; }

.q-done { text-align: center; }
.q-done.is-active { display: flex; flex-direction: column; align-items: center; }
.q-done .btn { margin-top: 28px; }
.done-art { width: 170px; height: auto; margin-bottom: 26px; animation: fly .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes fly { from { opacity: 0; transform: translate(-60px, 40px) rotate(-10deg); } }

/* ---------- Smaller screens ---------- */
@media (max-width: 860px) {
	/* Mobile: sized from the screen width (not height) so every phone gets the same proportions.
	   If a phone's visible area is short, the page scrolls a little rather than squashing. */
	:root { --merlon: 7vw; }
	body { overflow: auto; }
	.screen { height: auto; min-height: 100svh; overflow: hidden; grid-template-rows: auto auto 1fr; }
	.headline { font-size: 12vw; }
	.trust { font-size: 13px; }
	.top { padding-top: 34px; }
	.hero-in { justify-content: flex-start; padding-top: 42px; padding-bottom: 56vw; }
	.intro { align-items: center; text-align: center; }
	.trust { align-self: center; }
	.rotator { right: auto; left: 50%; bottom: 0; width: min(54vw, 260px); transform: translateX(-50%); }
	.fort { padding: 40px 0 24px; }
	.fort-in, .fort .legal { text-align: center; }
	.fort-copy { margin-inline: auto; font-size: clamp(17px, 4.9vw, 22px); }
	.actions { flex-direction: column; justify-content: center; margin-top: 28px; }
	.legal { margin-top: 28px; flex-direction: column; justify-content: center; }
	.fort-in { grid-template-columns: 1fr; }
	.creds { display: none; }
	.social a::after { display: none; }
	.tf-hint { display: none; }
}
@media (max-width: 560px) {
	.btn { font-size: 16px; padding: 14px 22px 14px 24px; }
	.trust { font-size: 13px; }
	.opt { padding: 12px 14px; }
	.opt strong { font-size: 16px; }
}
/* Very short screens: allow a scroll rather than cut anything off */
@media (max-height: 540px) { body { overflow: auto; } .screen { height: auto; min-height: 100dvh; } .rotator { display: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
