/* OneSum – coming soon landing */

:root {
	--os-bg: #0b0a1f;
	--os-bg-glow: #24154f;
	--os-text: #ffffff;
	--os-muted: #c3bedb;
	--os-faint: #9a95b4;
	--os-line: rgba(255, 255, 255, 0.12);
	--os-pill-bg: rgba(60, 40, 130, 0.35);
	--os-pill-border: rgba(139, 112, 255, 0.45);
	--os-accent: #8b6cff;
	--os-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--os-wrap: 1580px;
}

html,
body.os-landing {
	margin: 0;
	padding: 0;
	background: var(--os-bg);
	color: var(--os-text);
	font-family: var(--os-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

:where(.os-landing) :where(p, h1) {
	margin: 0;
}

.os-page {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	isolation: isolate;
}

/* Soft purple glow behind the hero, fading to near-black at the edges */
.os-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 45% 50% at 50% 52%, rgba(52, 30, 110, 0.85) 0%, rgba(36, 21, 79, 0.55) 40%, transparent 75%),
		radial-gradient(ellipse 40% 35% at 100% 100%, rgba(40, 46, 90, 0.35) 0%, transparent 70%),
		var(--os-bg);
}

.os-wrap {
	width: 100%;
	max-width: var(--os-wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---------- Header ---------- */

.os-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 32px;
	padding-bottom: 32px;
}

.os-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--os-text);
	text-decoration: none;
}

.os-brand__mark {
	width: auto;
	height: clamp(36px, 2vw, 56px);
	display: block;
}

.os-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.os-brand__word {
	display: block;
	width: auto;
	height: clamp(17px, 0.9vw, 26px);
}

.os-brand__sub {
	margin-top: 7px;
	font-size: clamp(9px, 0.45vw, 11px);
	font-weight: 500;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: var(--os-muted);
}

.os-header__status {
	font-size: clamp(11px, 0.55vw, 13px);
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--os-muted);
}

/* ---------- Hero ---------- */

.os-hero {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 40px;
	padding-bottom: 80px;
}

.os-pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 22px;
	border: 1px solid var(--os-pill-border);
	border-radius: 999px;
	background: var(--os-pill-bg);
	font-size: clamp(10.5px, 0.5vw, 12.5px);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #e4e0f7;
}

.os-pill__icon {
	width: 9px;
	height: 9px;
	fill: var(--os-accent);
	flex: none;
}

.os-title {
	margin-top: 44px;
	font-size: clamp(42px, 5.2vw, 98px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.065em;
	color: var(--os-text);
}

.os-lede {
	margin-top: 30px;
	font-size: clamp(16px, 1vw, 24px);
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--os-muted);
}

.os-mark {
	position: relative;
	margin-top: 44px;
	width: clamp(130px, 8.4vw, 206px);
}

.os-mark::before {
	content: "";
	position: absolute;
	inset: -30%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(110, 70, 220, 0.35) 0%, transparent 65%);
	filter: blur(10px);
}

.os-mark img {
	display: block;
	width: 100%;
	height: auto;
}

.os-tagline {
	margin-top: 28px;
	font-size: clamp(14px, 0.7vw, 17px);
	letter-spacing: 0.02em;
	color: var(--os-muted);
}

.os-signoff {
	margin-top: 40px;
	font-size: clamp(14px, 0.7vw, 17px);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--os-text);
}

/* ---------- Footer ---------- */

.os-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 30px;
	padding-bottom: 34px;
	border-top: 1px solid var(--os-line);
	font-size: clamp(12.5px, 0.6vw, 15px);
	color: var(--os-faint);
}

.os-footer a {
	color: var(--os-text);
	text-decoration: none;
}

.os-footer a:hover,
.os-footer a:focus-visible {
	text-decoration: underline;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	.os-pill,
	.os-title,
	.os-lede,
	.os-mark,
	.os-tagline,
	.os-signoff {
		opacity: 0;
		animation: os-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}
	.os-title   { animation-delay: 0.08s; }
	.os-lede    { animation-delay: 0.18s; }
	.os-mark    { animation-delay: 0.28s; }
	.os-tagline { animation-delay: 0.38s; }
	.os-signoff { animation-delay: 0.46s; }

	.os-mark img {
		animation: os-float 7s ease-in-out 1.2s infinite;
	}
}

@keyframes os-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

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

/* ---------- Desktop: fit everything inside one screen ----------
   Vertical sizes scale with viewport height (vh) as well as width,
   so the whole page sits within 100dvh on laptops and large monitors. */

@media (min-width: 769px) {
	.os-header {
		padding-top: clamp(14px, 3vh, 32px);
		padding-bottom: clamp(10px, 2vh, 32px);
	}
	.os-brand__mark { height: clamp(32px, min(2vw, 5vh), 56px); }
	.os-brand__word { height: clamp(15px, min(0.9vw, 2.3vh), 26px); }
	.os-brand__sub  { margin-top: clamp(4px, 0.6vh, 7px); }

	.os-hero {
		padding-top: clamp(4px, 1.5vh, 40px);
		padding-bottom: clamp(8px, 3vh, 60px);
	}
	.os-pill   { padding: clamp(7px, 1vh, 11px) 22px; }
	.os-title {
		margin-top: clamp(14px, 3vh, 44px);
		font-size: clamp(36px, min(5.2vw, 8.6vh), 98px);
	}
	.os-lede     { margin-top: clamp(10px, 2vh, 30px); font-size: clamp(15px, min(1vw, 2.4vh), 24px); }
	.os-mark     { margin-top: clamp(14px, 3vh, 44px); width: clamp(72px, min(8.4vw, 15vh), 206px); }
	.os-tagline  { margin-top: clamp(12px, 2.2vh, 28px); }
	.os-signoff  { margin-top: clamp(10px, 2.4vh, 40px); }

	.os-footer__inner {
		padding-top: clamp(12px, 2.2vh, 30px);
		padding-bottom: clamp(14px, 2.6vh, 34px);
	}
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
	.os-wrap { padding-inline: 16px; }
	.os-header { padding-top: 20px; padding-bottom: 20px; }
	.os-header__status { font-size: 10px; letter-spacing: 0.2em; }
	.os-pill { font-size: 9.5px; letter-spacing: 0.16em; padding: 8px 14px; }
	.os-title { margin-top: 28px; }
	.os-footer__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 6px;
	}
}

/* Admin bar offset when logged in */
.admin-bar .os-page {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}
