/* Logged-out marketing page.
   Keep copy and structure in sync with opxaero.com (docs/index.html).
   Same type, vermilion, and alternating canvas. The hero keeps the dotted
   field. Tokens stay on .landing so they never recolor the dashboard.
   Linked after style.css. */

.landing {
	--l-canvas: #F3F2F2;
	--l-surface: #FFFFFF;
	--l-surface-2: #EBE9E6;
	--l-ink: #201E1D;
	--l-muted: #6C6763;
	--l-hairline: #D8D5D0;
	--l-hairline-strong: #C7C3BD;
	--l-accent: #EC3013;
	--l-accent-text: #C4250E;
	--l-btn: #C4250E;
	--l-btn-hover: #A81F0B;
	--l-good: #1F7A4D;
	--l-on-good: #fff;
	--l-shadow: 0 1px 2px rgba(32, 30, 29, .04), 0 12px 32px -18px rgba(32, 30, 29, .28);

	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--l-ink);
	background: var(--l-canvas);
	flex: none;
	min-height: auto;
	display: block;
	position: relative;
}

html[data-theme="dark"] .landing {
	--l-canvas: #1A1917;
	--l-surface: #232120;
	--l-surface-2: #2A2825;
	--l-ink: #F2F0ED;
	--l-muted: #A39D97;
	--l-hairline: #38342F;
	--l-hairline-strong: #4A453F;
	--l-accent: #F0421F;
	--l-accent-text: #FF6A4A;
	--l-btn: #F0421F;
	--l-btn-hover: #FF5A38;
	--l-good: #4FB07C;
	--l-on-good: #1A1917;
	--l-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .7);
}

#app:has(> .landing) {
	padding: 0;
	max-width: none;
	height: auto;
	min-height: 100dvh;
	max-height: none;
	overflow: visible;
	display: block;
	background: #F3F2F2;
}
html[data-theme="dark"] #app:has(> .landing) { background: #1A1917; }

/* The in-app disclaimer footer stays in the DOM for signed-in views.
   On this page the marketing footer carries the same line. */
#app:has(> .landing) > .app-footer { display: none; }

.landing h1,
.landing h2,
.landing h3,
.landing p,
.landing a,
.landing blockquote,
.landing button {
	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	color: inherit;
}
.landing h1,
.landing h2,
.landing h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.landing p { margin: 0; font-weight: 400; font-size: 1rem; line-height: 1.6; }
.landing .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; width: 100%; box-sizing: border-box; }

.landing .eyebrow {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--l-accent-text);
	margin: 0 0 16px;
}
.landing .eyebrow.mut { color: var(--l-muted); }
.landing h2 {
	font-size: clamp(2rem, 4.2vw, 3rem);
	line-height: 1.05;
	max-width: 18ch;
	margin-bottom: 16px;
}
.landing .lede {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.5;
	color: var(--l-muted);
	max-width: 42ch;
}

.landing > section { padding: 78px 0; }
.landing > section:nth-child(odd) { background: var(--l-surface-2); }
.landing > section:nth-child(even) { background: var(--l-surface); }

/* Hero: the dotted field, always the dark gate, in both themes. */
.landing > section.landing-hero {
	position: relative;
	padding: 0;
	min-height: 100svh;
	background: #1A1917;
	color: #F2F0ED;
	overflow: hidden;
}
.landing-field {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}
.landing-hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100svh;
	padding-bottom: 40px;
	box-sizing: border-box;
}
.landing-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	padding-top: 14px;
}
.landing-top-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.landing-hero-copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-bottom: 4vh;
}
.landing-hero .eyebrow { color: #FF6A4A; }
.landing-hero h1 {
	font-size: clamp(2.4rem, 5.6vw, 4.15rem);
	line-height: .98;
	letter-spacing: -.025em;
	max-width: 16ch;
	margin-bottom: 18px;
	color: #F2F0ED;
}
.landing-hero .lede { color: #C8C3BC; margin-bottom: 26px; max-width: 36ch; }
.landing-brand {
	display: flex;
	align-items: baseline;
	gap: 9px;
	font-weight: 800;
	letter-spacing: -.02em;
	font-size: 1.14rem;
	color: inherit;
	text-decoration: none;
}
.landing-brand .mk { color: #F0421F; }

.landing a.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.2;
	padding: 15px 24px;
	border-radius: 2px;
	border: 1.5px solid transparent;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}
.landing a.btn-primary {
	background: var(--l-btn);
	border-color: var(--l-btn);
	color: #fff;
}
.landing a.btn-primary:hover { background: var(--l-btn-hover); border-color: var(--l-btn-hover); color: #fff; }
.landing a.btn-ghost {
	background: transparent;
	color: var(--l-ink);
	border-color: var(--l-hairline-strong);
}
.landing a.btn-ghost:hover { border-color: var(--l-ink); color: var(--l-ink); }
.landing-actions:not(.is-compact) .btn-primary::after {
	content: "→";
	display: inline-block;
	transition: transform .15s ease;
}
.landing-actions:not(.is-compact) .btn-primary:hover::after { transform: translateX(3px); }
.landing-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	width: auto;
	max-width: none;
	margin: 0;
}
.landing-top-actions { flex-wrap: nowrap; }
.landing p.landing-sub {
	display: block;
	margin-top: 18px;
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: .82rem;
	font-weight: 400;
	letter-spacing: .02em;
	color: var(--l-muted);
}
.landing-hero .landing-sub { color: #C8C3BC; }
.landing-hero a.btn-ghost { color: #F2F0ED; border-color: #4A453F; }
.landing-hero a.btn-ghost:hover { color: #F2F0ED; border-color: #F2F0ED; background: transparent; }
.landing .landing-hero-copy a.btn-primary {
	background: #F0421F;
	border-color: #F0421F;
	color: #fff;
}
.landing .landing-hero-copy a.btn-primary:hover {
	background: #FF5A38;
	border-color: #FF5A38;
	color: #fff;
}
.landing-top .btn { height: 34px; padding: 0 14px; font-size: .9rem; }

.landing button.landing-theme {
	min-width: 0;
	min-height: 0;
	width: 38px;
	height: 34px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 1px solid #4A453F;
	border-radius: 2px;
	color: #C8C3BC;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.landing button.landing-theme:hover { color: #F2F0ED; border-color: #F2F0ED; background: transparent; }
.landing button.landing-theme svg { width: 17px; height: 17px; }

.points {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 32px;
	border-top: 1px solid var(--l-hairline-strong);
}
.point {
	padding: 22px 22px 26px 0;
	border-right: 1px solid var(--l-hairline);
	border-bottom: 1px solid var(--l-hairline);
	padding-left: 22px;
}
.point:nth-child(4n+1) { padding-left: 0; }
.point:nth-child(4n) { border-right: 0; padding-right: 0; }
.point .pn {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--l-accent-text);
	margin-bottom: 8px;
}
.point p { font-weight: 700; letter-spacing: -.01em; line-height: 1.35; font-size: 1.05rem; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px 64px; align-items: start; }
.empathy-item + .empathy-item { margin-top: 22px; }
.empathy-item h3 { font-size: 1.28rem; line-height: 1.2; margin-bottom: 6px; }
.empathy-item p { color: var(--l-muted); }

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 34px;
	border-top: 1px solid var(--l-hairline-strong);
}
.step { padding: 24px 24px 6px; border-right: 1px solid var(--l-hairline); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.step .sn {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--l-accent-text);
	margin-bottom: 10px;
}
.step .st { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 8px; }
.step .sd { color: var(--l-muted); font-size: .95rem; line-height: 1.5; }
.section-cta { margin-top: 36px; }

.landing-why h2 { max-width: 22ch; }
.why-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	border-top: 1px solid var(--l-hairline-strong);
	margin-top: 8px;
}
.why-item { padding: 26px 34px 0 0; }
.why-item + .why-item { border-left: 1px solid var(--l-hairline); padding-left: 34px; }
.why-item .eyebrow { margin-bottom: 12px; }
.why-stmt {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.3;
	text-wrap: pretty;
}

.landing > section.landing-final {
	background: var(--l-good);
	color: var(--l-on-good);
}
.landing-final .eyebrow { color: var(--l-on-good); opacity: .8; }
.landing-final h2 { color: var(--l-on-good); max-width: 16ch; }
.landing-final .closer-lead { font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.landing-final .closer { max-width: 64ch; margin-bottom: 28px; color: color-mix(in srgb, var(--l-on-good) 92%, transparent); }
.landing-final .landing-sub { color: color-mix(in srgb, var(--l-on-good) 86%, transparent); }
.landing-final a.btn-primary { background: #fff; border-color: #fff; color: #1F7A4D; }
.landing-final a.btn-primary:hover { background: #f0ece6; border-color: #f0ece6; color: #1F7A4D; }
.landing-final a.btn-ghost { color: var(--l-on-good); border-color: color-mix(in srgb, var(--l-on-good) 55%, transparent); }
.landing-final a.btn-ghost:hover { color: var(--l-on-good); border-color: var(--l-on-good); background: transparent; }

.landing-foot { padding: 52px 0 60px; color: var(--l-muted); font-size: .9rem; background: var(--l-canvas); }
.landing-foot .top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.landing-foot .landing-brand { color: var(--l-ink); margin-bottom: 10px; }
.landing-foot .mk { color: var(--l-accent); }
.landing-foot .tagline { color: var(--l-ink); font-weight: 700; }
.landing-foot .links { display: flex; gap: 26px; flex-wrap: wrap; align-items: baseline; }
.landing-foot .policy-links { display: inline; }
.landing-foot a { color: var(--l-muted); text-decoration: none; border-bottom: 1px solid var(--l-hairline); font-weight: 400; }
.landing-foot a:hover { color: var(--l-ink); border-bottom-color: var(--l-ink); }
.landing-foot .fine { margin-top: 26px; font-size: .78rem; line-height: 1.6; max-width: 72ch; color: var(--l-muted); }
.landing-foot .fine strong { color: var(--l-ink); font-weight: 700; }

.landing :focus-visible { outline: 2px solid var(--l-accent); outline-offset: 2px; }

@media (max-width: 900px) {
	.points { grid-template-columns: 1fr 1fr; }
	.point:nth-child(4n+1) { padding-left: 22px; }
	.point:nth-child(odd) { padding-left: 0; }
	.point:nth-child(4n) { border-right: 1px solid var(--l-hairline); padding-right: 22px; }
	.point:nth-child(2n) { border-right: 0; padding-right: 0; }
	.steps { grid-template-columns: 1fr; border-top: 0; }
	.step { padding: 20px 0; border-right: 0; border-top: 1px solid var(--l-hairline); }
	.split { grid-template-columns: 1fr; gap: 28px; }
	.why-grid { grid-template-columns: 1fr; }
	.why-item { padding: 22px 0 0; }
	.why-item + .why-item {
		border-left: 0;
		border-top: 1px solid var(--l-hairline);
		padding-left: 0;
		margin-top: 22px;
	}
}
@media (max-width: 720px) {
	.landing { font-size: 16px; }
	.landing > section { padding: 56px 0; }
	.points { grid-template-columns: 1fr; }
	.point,
	.point:nth-child(4n+1),
	.point:nth-child(odd) { padding-left: 0; border-right: 0; }
	.landing-hero h1 { font-size: clamp(2.05rem, 10vw, 2.7rem); }
	.landing-hero-copy .landing-actions,
	.section-cta .landing-actions,
	.landing-final .landing-actions { flex-direction: column; align-items: stretch; }
	.landing-hero-copy .btn,
	.section-cta .btn,
	.landing-final .btn { width: 100%; }
	.landing-top { align-items: center; }
	.landing-top .landing-actions { display: none; }
	.landing-top-actions { margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
	.landing-actions:not(.is-compact) .btn-primary::after { transition: none; }
}
