/* LePosta landing. Black and white; green only for confirmations (docs/marca.md). Self-hosted Geist (OFL, see /fonts/OFL.txt). */
@font-face {
	font-family: "Geist";
	src: url("/fonts/geist.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Geist Mono";
	src: url("/fonts/geist-mono.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--bg: #fafaf9;
	--fg: #0a0a0a;
	--muted: #71717a;
	--faint: #a1a1aa;
	--line: #e7e5e4;
	--panel: #f3f3f1;
	--card: #ffffff;
	--ok: #1f5f4a;
	--ok-soft: #e6f0eb;
	--bubble: #0a0a0a;
	--on-bubble: #fafafa;
	--btn: #0a0a0a;
	--on-btn: #fafafa;
	--danger: #b42318;
	--sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
	--max: 1120px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a0a0a;
		--fg: #fafafa;
		--muted: #a1a1aa;
		--faint: #71717a;
		--line: #262626;
		--panel: #121212;
		--card: #171717;
		--ok: #6fc3a2;
		--ok-soft: #13241d;
		--bubble: #fafafa;
		--on-bubble: #0a0a0a;
		--btn: #fafafa;
		--on-btn: #0a0a0a;
		--danger: #f97066;
	}
}

* {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 17px/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a {
	color: inherit;
}
:focus-visible {
	outline: 2px solid var(--fg);
	outline-offset: 3px;
	border-radius: 6px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}
.label {
	font: 400 0.78rem/1 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Header */
.top {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 76px;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.logo svg {
	width: 0.78em;
	height: 0.77em;
}
.top-links {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 0.94rem;
	color: var(--muted);
}
.top-links a {
	text-decoration: none;
}
.top-links a:hover {
	color: var(--fg);
}

/* Buttons and form */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--btn);
	color: var(--on-btn);
	font: 500 0.98rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s;
}
.btn:hover {
	opacity: 0.86;
}
.btn:disabled {
	opacity: 0.5;
	cursor: progress;
}
.btn-sm {
	height: 36px;
	padding: 0 16px;
	font-size: 0.9rem;
}
.signup {
	max-width: 460px;
}
.signup-row {
	display: flex;
	gap: 6px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
}
.signup-row:focus-within {
	border-color: var(--fg);
}
.signup-row input {
	flex: 1;
	min-width: 0;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: var(--fg);
	font: 400 1rem var(--sans);
}
.signup-row input::placeholder {
	color: var(--faint);
}
.signup-row input:focus {
	outline: none;
}
.hp {
	position: absolute;
	left: -9999px;
}
.turnstile-slot:not(:empty) {
	margin-top: 12px;
}
.signup-note {
	margin: 12px 0 0 18px;
	font-size: 0.84rem;
	color: var(--faint);
}
.signup-note a {
	color: var(--muted);
}
.form-status {
	margin: 6px 0 0 18px;
	min-height: 1.3em;
	font-size: 0.9rem;
}
.form-status.is-error {
	color: var(--danger);
}
.form-success {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 460px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--card);
}
.form-success .check {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ok);
	color: var(--bg);
	font-size: 0.85rem;
}
.form-success p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

/* Hero */
.hero {
	padding-block: 96px 56px;
}
h1,
h2 {
	margin: 0;
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.02;
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}
h1 {
	font-size: clamp(2.6rem, 6.6vw, 4.6rem);
}
h2 {
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}
.dim {
	color: var(--faint);
}
.hero-sub {
	margin: 28px 0 36px;
	max-width: 30em;
	font-size: clamp(1.08rem, 1.6vw, 1.24rem);
	color: var(--muted);
}
.works {
	margin-top: 28px;
	font-size: 0.9rem;
	color: var(--faint);
}
.works b {
	font-weight: 500;
	color: var(--muted);
}

/* Demo: the same note in two assistants */
.demo {
	margin-top: 72px;
	padding: 40px;
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--panel);
	display: grid;
	grid-template-columns: 1fr 96px 1fr;
	align-items: center;
}
.chat {
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--card);
	overflow: hidden;
}
.chat-head {
	display: flex;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 0.86rem;
}
.chat-head strong {
	font-weight: 500;
}
.chat-head span {
	color: var(--faint);
	font-family: var(--mono);
	font-size: 0.78rem;
}
.chat-body {
	display: grid;
	gap: 12px;
	padding: 20px 18px 22px;
	font-size: 0.95rem;
}
.msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 16px;
	line-height: 1.45;
}
.msg.me {
	justify-self: end;
	background: var(--bubble);
	color: var(--on-bubble);
	border-bottom-right-radius: 6px;
}
.msg.ai {
	justify-self: start;
	background: var(--panel);
	border-bottom-left-radius: 6px;
}
.saved {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ok-soft);
	color: var(--ok);
	font: 400 0.76rem/1.2 var(--mono);
}
.saved::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.mini {
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
}
.mini b {
	display: block;
	font-weight: 500;
}
.mini small {
	color: var(--muted);
	font-size: 0.82rem;
}
.handoff-arrow {
	justify-self: center;
	width: 28px;
	height: 28px;
	color: var(--faint);
}

/* Which AI each person uses, and LePosta in the middle */
.chat-head .provider {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--panel);
	border: 1px solid var(--line);
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	color: var(--fg);
}
.chat-head .provider::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--faint);
}
.chat-head {
	align-items: center;
}
.chat-head .who {
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.84rem;
}
.relay-mid {
	justify-self: center;
	display: grid;
	justify-items: center;
	gap: 6px;
	color: var(--fg);
}
.relay-mid span {
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	font: 400 0.76rem/1.2 var(--mono);
}
.relay-mid svg {
	width: 24px;
	height: 24px;
}
.works .chip {
	display: inline-block;
	margin: 0 2px;
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--fg);
	font-weight: 500;
}

/* Any AI to any AI: the relay diagram */
:root {
	--edge: #d6d3d1;
}
@media (prefers-color-scheme: dark) {
	:root {
		--edge: #3f3f46;
	}
}
.flow-section {
	padding-top: 0;
}
.flow svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.flow .flow-mobile {
	display: none;
	max-width: 420px;
	margin: 0 auto;
}
.flow .edge {
	fill: none;
	stroke: var(--edge);
	stroke-width: 1.5;
}
.flow .pill rect {
	fill: var(--card);
	stroke: var(--line);
}
.flow .pill text {
	fill: var(--fg);
	font: 500 15px var(--sans);
}
.flow .cap {
	fill: var(--faint);
	font: 400 12px var(--mono);
	letter-spacing: 0.08em;
}
.flow .dot {
	fill: var(--fg);
}
.flow .joint {
	fill: var(--faint);
}
.flow .hub .sq {
	fill: var(--fg);
}
.flow .hub .mk {
	fill: var(--bg);
}
.flow .hub > circle {
	fill: var(--card);
	stroke: var(--line);
	filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.12));
}
@media (max-width: 640px) {
	.flow .flow-desktop {
		display: none;
	}
	.flow .flow-mobile {
		display: block;
	}
}
@media (prefers-reduced-motion: reduce) {
	.flow .dots {
		display: none;
	}
}

/* How it works */
.section {
	padding-block: 120px;
}
.section-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: end;
	margin-bottom: 64px;
}
.section-head p {
	margin: 0;
	max-width: 28em;
	color: var(--muted);
	font-size: 1.08rem;
}
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}
.step {
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.step h3 {
	margin: 18px 0 8px;
	font-weight: 500;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
}
.step p {
	margin: 0;
	color: var(--muted);
}
.step q {
	color: var(--fg);
	quotes: "“" "”";
}

/* Trust row under the steps */
.proof {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.95rem;
}
.proof span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.proof span::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--faint);
}

/* Share after signing up */
.share {
	margin-top: 14px;
	max-width: 460px;
}
.share p {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: var(--muted);
}
.share-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.share-actions a,
.share-actions button {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--fg);
	font: 500 0.88rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
}
.share-actions a:hover,
.share-actions button:hover {
	border-color: var(--fg);
}
.closing .share {
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

/* In dark mode the panel needs an edge to stand out from the page */
@media (prefers-color-scheme: dark) {
	.team {
		background: #111111;
		border: 1px solid var(--line);
	}
}

/* A single chat inside the dark panel keeps the page's own colors */
.team .chat {
	color: var(--fg);
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

/* Teams: dark panel */
.team {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 64px;
	border-radius: 28px;
	background: #0b0b0b;
	color: #fafafa;
}
.team .label {
	color: #8b8b93;
}
.team h2 {
	margin-top: 18px;
}
.team .dim {
	color: #6b6b73;
}
.team p {
	margin: 22px 0 0;
	max-width: 28em;
	color: #a1a1aa;
}
.facts {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	font-size: 0.95rem;
}
.facts li {
	display: flex;
	gap: 10px;
	color: #d4d4d8;
}
.facts li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 0.6em;
	border-radius: 50%;
	background: #71717a;
}
.posta {
	border-radius: 20px;
	background: #fafafa;
	color: #0a0a0a;
	overflow: hidden;
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
.posta header {
	display: flex;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e7e5e4;
	font: 400 0.76rem/1.2 var(--mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #71717a;
}
.posta header b {
	font-weight: 400;
	color: #1f5f4a;
	text-transform: none;
	letter-spacing: 0;
}
.posta .content {
	padding: 20px;
}
.posta h3 {
	margin: 0 0 16px;
	font-weight: 500;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}
.posta dl {
	margin: 0;
	display: grid;
	gap: 12px;
	font-size: 0.92rem;
}
.posta dt {
	font: 400 0.72rem/1.2 var(--mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a1a1aa;
}
.posta dd {
	margin: 3px 0 0;
}
.posta footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-top: 1px solid #e7e5e4;
	background: #f4f4f2;
	font-size: 0.86rem;
	color: #71717a;
}
.posta .actions {
	display: flex;
	gap: 8px;
}
.posta .ghost,
.posta .send {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 500;
}
.posta .ghost {
	border: 1px solid #e7e5e4;
	background: #fff;
}
.posta .send {
	background: #0a0a0a;
	color: #fafafa;
}

/* Closing call to action */
.closing {
	padding-block: 140px 120px;
	text-align: center;
}
.closing .signup,
.closing .form-success {
	margin: 40px auto 0;
	text-align: left;
}

/* Footer */
.foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 0 40px;
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	color: var(--faint);
}
.foot nav {
	display: flex;
	gap: 20px;
}
.foot a {
	text-decoration: none;
}
.foot a:hover {
	color: var(--fg);
}

/* Plain pages (privacy, 404) */
.page {
	max-width: 680px;
	margin: 0 auto;
	padding: 72px 24px 96px;
}
.page h1 {
	font-size: clamp(2.2rem, 5vw, 3rem);
	margin-bottom: 24px;
}
.page h2 {
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	margin: 36px 0 8px;
}
.page p,
.page li {
	color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
	.demo {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 20px;
	}
	.handoff-arrow,
	.relay-mid svg {
		transform: rotate(90deg);
	}
	.relay-mid {
		grid-auto-flow: column;
		align-items: center;
	}
	.section-head,
	.team {
		grid-template-columns: 1fr;
	}
	.team {
		padding: 40px 28px;
		gap: 40px;
	}
	.steps {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
@media (max-width: 640px) {
	body {
		font-size: 16px;
	}
	.top-links .hide-sm {
		display: none;
	}
	.hero {
		padding-block: 56px 32px;
	}
	.demo {
		margin-top: 48px;
		border-radius: 22px;
	}
	.section {
		padding-block: 80px;
	}
	.signup-row {
		flex-direction: column;
		border-radius: 22px;
	}
	.signup-row input {
		flex: none;
		height: 46px;
	}
	.btn {
		width: 100%;
	}
	.top .btn {
		width: auto;
	}
	.signup-note,
	.form-status {
		margin-left: 4px;
	}
	.closing {
		padding-block: 96px 80px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
