/**
 * Flex Maintenance public splash.
 * Local styles only — no CDN, no Tailwind runtime.
 */

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

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body.fm-page {
	--fm-accent: #6b52d1;
	--fm-ink: #0f172a;
	--fm-muted: #64748b;
	--fm-card: #ffffff;
	--fm-line: rgba(15, 23, 42, 0.08);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--fm-ink);
	background: #f8fafc;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.fm-page.has-bg {
	background-image: var(--fm-bg-image);
	background-size: cover;
	background-position: center;
}

.fm-shell {
	min-height: 100vh;
	display: flex;
}

.fm-visual {
	display: none;
}

.fm-main {
	width: 100%;
	max-width: 40rem;
	margin: auto;
	padding: 3rem 1.5rem;
	text-align: center;
}

.fm-logo {
	display: block;
	max-width: 10rem;
	max-height: 4.5rem;
	width: auto;
	height: auto;
	margin: 0 auto 1.75rem;
	object-fit: contain;
}

.fm-title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.fm-message {
	margin: 0 auto 2rem;
	max-width: 36rem;
	color: var(--fm-muted);
	font-size: 1.0625rem;
}

.fm-message p {
	margin: 0 0 0.75rem;
}

.fm-message p:last-child {
	margin-bottom: 0;
}

.fm-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 auto 2rem;
	max-width: 28rem;
}

.fm-unit {
	background: var(--fm-card);
	border: 1px solid var(--fm-line);
	border-radius: 1rem;
	padding: 0.85rem 0.4rem;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.fm-num {
	display: block;
	font-size: 1.5rem;
	font-weight: 750;
	letter-spacing: -0.03em;
	color: var(--fm-accent);
}

.fm-lbl {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fm-muted);
}

.fm-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.fm-email {
	color: var(--fm-accent);
	font-weight: 650;
	text-decoration: none;
}

.fm-email:hover,
.fm-email:focus {
	text-decoration: underline;
}

.fm-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.1rem;
}

.fm-social a {
	color: var(--fm-ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 650;
}

.fm-social a:hover,
.fm-social a:focus {
	color: var(--fm-accent);
}

.fm-login {
	margin: 2rem 0 0;
}

.fm-login a {
	color: var(--fm-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.fm-login a:hover,
.fm-login a:focus {
	color: var(--fm-accent);
	text-decoration: underline;
}

/* Centered */
.fm-template-centered.has-bg .fm-main {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(16px);
	border-radius: 1.5rem;
	padding: 3rem 2rem;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* Split */
body.fm-template-split {
	background: #fff;
}

body.fm-template-split.has-bg {
	background-image: none;
}

.fm-template-split .fm-shell {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 100vh;
	background: #fff;
}

.fm-template-split .fm-visual {
	display: block;
	min-height: 38vh;
	background-color: var(--fm-accent);
	background-image: linear-gradient(145deg, var(--fm-accent), #1e1b4b);
	background-size: cover;
	background-position: center;
}

body.fm-template-split.has-bg .fm-visual {
	background-image: var(--fm-bg-image), linear-gradient(145deg, var(--fm-accent), #1e1b4b);
}

.fm-template-split .fm-main {
	margin: 0;
	max-width: none;
	padding: 3.5rem 1.75rem 4rem;
	text-align: left;
	background: #fff;
}

.fm-template-split .fm-logo {
	margin-left: 0;
}

.fm-template-split .fm-message,
.fm-template-split .fm-countdown {
	margin-left: 0;
}

.fm-template-split .fm-links {
	align-items: flex-start;
}

.fm-template-split .fm-social {
	justify-content: flex-start;
}

@media (min-width: 900px) {
	.fm-template-split .fm-shell {
		grid-template-columns: 1.1fr 1fr;
		min-height: 100vh;
	}

	.fm-template-split .fm-visual {
		min-height: 100vh;
	}

	.fm-template-split .fm-main {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 4rem 4.5rem;
	}
}

/* Minimal */
.fm-template-minimal {
	background: #fff;
}

.fm-template-minimal.has-bg {
	background-image: none;
	background-color: #fff;
}

.fm-template-minimal .fm-main {
	max-width: 34rem;
	margin: 0;
	padding: 4.5rem 1.75rem;
	text-align: left;
}

.fm-template-minimal .fm-logo {
	margin: 0 0 2.5rem;
}

.fm-template-minimal .fm-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 650;
}

.fm-template-minimal .fm-message {
	margin-left: 0;
}

.fm-template-minimal .fm-countdown {
	margin-left: 0;
	max-width: 22rem;
}

.fm-template-minimal .fm-unit {
	box-shadow: none;
	border-radius: 0.65rem;
}

.fm-template-minimal .fm-links {
	align-items: flex-start;
}

.fm-template-minimal .fm-social {
	justify-content: flex-start;
}

@media (min-width: 800px) {
	.fm-template-minimal .fm-main {
		padding: 6rem 4rem;
	}
}

body.fm-page.admin-bar .fm-shell,
body.fm-page.admin-bar.fm-template-split .fm-visual {
	min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	body.fm-page.admin-bar .fm-shell,
	body.fm-page.admin-bar.fm-template-split .fm-visual {
		min-height: calc(100vh - 46px);
	}
}
