/* Xaccéntra COMING SOON — frontend */

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

html.xcs-html,
html.xcs-html body.xcs-page {
	margin: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
}

body.xcs-page {
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--xcs-text, #fff);
	background: var(--xcs-page-bg, #0a0a0a);
}

@supports (height: 100dvh) {
	html.xcs-html,
	html.xcs-html body.xcs-page {
		height: 100dvh;
		max-height: 100dvh;
	}
}

.xcs-bg,
.xcs-overlay {
	position: fixed;
	inset: 0;
}

.xcs-bg {
	overflow: hidden;
	background-color: var(--xcs-page-bg, #111);
}

.xcs-bg picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.xcs-bg-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--xcs-bg-fit, cover);
	object-position: var(--xcs-bg-pos, center center);
}

.xcs-slides {
	position: absolute;
	inset: 0;
}

.xcs-slide {
	opacity: 0;
	transition: opacity 1.2s ease;
}

.xcs-slide.is-active {
	opacity: 1;
}

.xcs-bg-video-fallback {
	display: none;
}

.xcs-overlay {
	background: var(--xcs-overlay-bg, var(--xcs-overlay, #0a0a0a));
	opacity: var(--xcs-overlay-alpha, 0.45);
}

@keyframes xcs-in-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes xcs-in-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@keyframes xcs-in-zoom {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: none; }
}

@keyframes xcs-tick {
	from { opacity: 0.35; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.xcs-anim .xcs-logo,
.xcs-anim .xcs-logo-link,
.xcs-anim .xcs-payoff,
.xcs-anim .xcs-center > *,
.xcs-anim .xcs-socials,
.xcs-anim .xcs-login {
	/* backwards e non both: a effetto finito tornano a valere le regole normali,
	   compreso il CSS personalizzato su opacity o transform. */
	animation: var(--xcs-anim-name, xcs-in-up) var(--xcs-anim-dur, 700ms) cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

/* Sta fra logo e titolo, quindi entra in mezzo ai due. */
.xcs-anim .xcs-payoff { animation-delay: 45ms; }
.xcs-anim .xcs-center > *:nth-child(2) { animation-delay: 90ms; }
.xcs-anim .xcs-center > *:nth-child(3) { animation-delay: 180ms; }
.xcs-anim .xcs-center > *:nth-child(4) { animation-delay: 270ms; }
.xcs-anim .xcs-center > *:nth-child(5) { animation-delay: 360ms; }
.xcs-anim .xcs-center > *:nth-child(6) { animation-delay: 450ms; }
.xcs-anim .xcs-center > *:nth-child(n + 7) { animation-delay: 540ms; }
.xcs-anim .xcs-socials { animation-delay: 600ms; }
.xcs-anim .xcs-login { animation-delay: 700ms; }

.xcs-cd-anim .xcs-cd-value.is-ticking {
	animation: xcs-tick 320ms ease both;
}

@media (prefers-reduced-motion: reduce) {
	.xcs-anim .xcs-logo,
	.xcs-anim .xcs-logo-link,
	.xcs-anim .xcs-center > *,
	.xcs-anim .xcs-socials,
	.xcs-anim .xcs-login,
	.xcs-cd-anim .xcs-cd-value.is-ticking {
		animation: none;
	}

	.xcs-slide {
		transition: none;
	}
}

.xcs-main {
	position: relative;
	z-index: 1;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: var(--xcs-align, center);
	text-align: var(--xcs-text-align, center);
	padding: 56px 20px 28px;
	max-width: var(--xcs-content-width, 820px);
	margin: 0 auto;
	gap: 0;
}

.xcs-center {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: var(--xcs-align, center);
	justify-content: var(--xcs-valign, center);
	gap: var(--xcs-block-gap, 16px);
	width: 100%;
	min-height: 0;
}

/* Logo e payoff stanno in cima, fuori dal flusso: così lo spazio tra di loro
   non rimpicciolisce il blocco centrale. */
.xcs-brand {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: var(--xcs-align, center);
	/* Stesso respiro di .xcs-main: senza questo il logo finisce sul bordo,
	   perché absolute ignora il padding del contenitore. */
	padding-top: inherit;
	padding-left: inherit;
	padding-right: inherit;
	box-sizing: border-box;
	z-index: 2;
	pointer-events: none;
}

.xcs-brand a,
.xcs-brand img {
	pointer-events: auto;
}

.xcs-logo {
	display: block;
	flex: 0 0 auto;
	width: var(--xcs-logo-w, 200px);
	max-width: 100%;
	height: auto;
	object-fit: contain;
	margin: 0;
	filter: var(--xcs-logo-filter, none);
}

.xcs-logo-link {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
	margin: 0;
}

.xcs-brand > .xcs-logo:has(+ .xcs-payoff),
.xcs-brand > .xcs-logo-link:has(+ .xcs-payoff) {
	margin-bottom: var(--xcs-logo-gap, 8px);
}

.xcs-title {
	margin: 0;
	font-family: var(--xcs-title-font, inherit);
	color: var(--xcs-title-color, var(--xcs-text, #fff));
	font-size: var(--xcs-title-size, 48px);
	font-weight: var(--xcs-title-weight, 700);
	font-style: var(--xcs-title-style, normal);
	text-decoration: var(--xcs-title-decoration, none);
	text-transform: var(--xcs-title-transform, none);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

/* Riga sotto il logo: sta fuori dal blocco dei testi. */
.xcs-payoff {
	flex: 0 0 auto;
	margin: 0;
	max-width: 100%;
	font-family: var(--xcs-payoff-font, inherit);
	color: var(--xcs-payoff-color, var(--xcs-text, #fff));
	font-size: var(--xcs-payoff-size, 16px);
	font-weight: var(--xcs-payoff-weight, 400);
	font-style: var(--xcs-payoff-style, normal);
	text-decoration: var(--xcs-payoff-decoration, none);
	text-transform: var(--xcs-payoff-transform, none);
	line-height: 1.35;
}

.xcs-subtitle {
	margin: -10px 0 0;
	font-family: var(--xcs-subtitle-font, inherit);
	color: var(--xcs-subtitle-color, var(--xcs-text, #fff));
	font-size: var(--xcs-subtitle-size, 22px);
	font-weight: var(--xcs-subtitle-weight, 600);
	font-style: var(--xcs-subtitle-style, normal);
	text-decoration: var(--xcs-subtitle-decoration, none);
	text-transform: var(--xcs-subtitle-transform, none);
	line-height: 1.3;
}

.xcs-copy {
	margin: 4px 0 0;
	max-width: 42em;
	font-family: var(--xcs-paragraph-font, inherit);
	color: var(--xcs-paragraph-color, var(--xcs-text, #fff));
	font-size: var(--xcs-paragraph-size, 16px);
	font-weight: var(--xcs-paragraph-weight, 400);
	font-style: var(--xcs-paragraph-style, normal);
	text-decoration: var(--xcs-paragraph-decoration, none);
	text-transform: var(--xcs-paragraph-transform, none);
	line-height: 1.6;
}

.xcs-countdown {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 8px;
	width: var(--xcs-cd-track, min(100%, 440px));
	max-width: 100%;
	margin: 12px 0 4px;
}

.xcs-cd-unit {
	flex: var(--xcs-cd-flex, 1 1 0);
	min-width: var(--xcs-cd-box-min, 0);
	padding: 10px 4px 8px;
	border-radius: var(--xcs-cd-box-radius, 12px);
	background: var(--xcs-cd-box-bg, rgba(255, 255, 255, 0.1));
	border: 1px solid var(--xcs-cd-box-border, rgba(255, 255, 255, 0.16));
	backdrop-filter: var(--xcs-cd-box-blur, blur(8px));
}

.xcs-cd-value {
	display: block;
	font-family: var(--xcs-cd-value-font, inherit);
	color: var(--xcs-cd-value-color, var(--xcs-text, #fff));
	font-size: var(--xcs-cd-value-size, 30px);
	font-weight: var(--xcs-cd-value-weight, 700);
	font-style: var(--xcs-cd-value-style, normal);
	text-decoration: var(--xcs-cd-value-decoration, none);
	text-transform: var(--xcs-cd-value-transform, none);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.xcs-cd-label {
	display: block;
	margin-top: 4px;
	font-family: var(--xcs-cd-label-font, inherit);
	color: var(--xcs-cd-label-color, var(--xcs-text, #fff));
	font-size: var(--xcs-cd-label-size, 11px);
	font-weight: var(--xcs-cd-label-weight, 600);
	font-style: var(--xcs-cd-label-style, normal);
	text-decoration: var(--xcs-cd-label-decoration, none);
	text-transform: var(--xcs-cd-label-transform, uppercase);
	letter-spacing: 0.04em;
	white-space: nowrap;
	opacity: 0.75;
}

.xcs-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 12px 22px;
	border-radius: 12px;
	background: var(--xcs-accent, #E0FF03);
	color: #1d2327;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.xcs-cta:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

.xcs-socials {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--xcs-align, center);
	gap: var(--xcs-social-gap, 14px);
	margin: 12px 0 4px;
}

.xcs-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--xcs-social-box, 56px);
	height: var(--xcs-social-box, 56px);
	border-radius: var(--xcs-social-radius, 50%);
	border: var(--xcs-social-border-w, 1px) solid var(--xcs-social-border, rgba(255, 255, 255, 0.22));
	color: var(--xcs-social-color, inherit);
	background: var(--xcs-social-bg, rgba(255, 255, 255, 0.08));
	/* Senza tema attorno, il browser sottolineerebbe il link attorno all'icona. */
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.xcs-social:hover {
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-1px);
}

.xcs-social svg {
	width: var(--xcs-social-size, 26px);
	height: var(--xcs-social-size, 26px);
}

/* Il contenitore prende tutta la colonna: pulsante e campo hanno larghezze proprie. */
.xcs-gate {
	margin-top: 8px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: var(--xcs-align, center);
	gap: 8px;
}

.xcs-gate-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0.9;
}

.xcs-gate[data-open="0"] .xcs-gate-label {
	display: none;
}

/* L'attributo hidden deve vincere sui display: flex/block qui sotto. */
.xcs-gate-label[hidden],
.xcs-gate-row[hidden],
.xcs-gate-launcher[hidden],
.xcs-gate-note[hidden],
.xcs-login[hidden],
.xcs-socials[hidden] {
	display: none;
}

.xcs-gate-launcher {
	width: var(--xcs-gate-btn-width, var(--xcs-gate-width, 48%));
	min-height: 46px;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--xcs-input-radius, 100px);
	background: var(--xcs-gate-launcher-bg, #ffffff);
	font: inherit;
	font-family: var(--xcs-gate-launcher-font, inherit);
	color: var(--xcs-gate-launcher-color, #1d2327);
	font-size: var(--xcs-gate-launcher-size, 15px);
	font-weight: var(--xcs-gate-launcher-weight, 700);
	font-style: var(--xcs-gate-launcher-style, normal);
	text-decoration: var(--xcs-gate-launcher-decoration, none);
	text-transform: var(--xcs-gate-launcher-transform, uppercase);
	letter-spacing: 0.12em;
	cursor: pointer;
}

.xcs-gate-row {
	width: var(--xcs-gate-width, 48%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.xcs-gate-row input {
	width: 100%;
	min-height: 44px;
	padding: 10px 42px 10px 16px;
	border: 1px solid #d0d0d0;
	border-radius: var(--xcs-input-radius, 100px);
	color: #1d2327;
	font-size: 15px;
}

.xcs-gate-row input:focus {
	outline: 2px solid var(--xcs-gate-btn, var(--xcs-accent, #E0FF03));
	outline-offset: 1px;
}

.xcs-pw-field {
	position: relative;
	width: 100%;
}

.xcs-pw-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #50575e;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.xcs-pw-toggle svg {
	width: 18px;
	height: 18px;
	display: block;
}

.xcs-pw-toggle[aria-pressed="false"] .xcs-pw-eye-off,
.xcs-pw-toggle[aria-pressed="true"] .xcs-pw-eye {
	display: none;
}

.xcs-cta--compact {
	margin-top: 0;
	min-width: 120px;
	padding: 10px 28px;
	white-space: nowrap;
	border: 0;
	cursor: pointer;
	border-radius: var(--xcs-input-radius, 100px);
	background: var(--xcs-gate-btn, var(--xcs-accent, #E0FF03));
	color: var(--xcs-gate-btn-text, #1d2327);
}

/* Nota ed errore seguono la più larga fra le due misure, così restano allineati. */
.xcs-gate-error,
.xcs-gate-note {
	width: max(var(--xcs-gate-width, 48%), var(--xcs-gate-btn-width, var(--xcs-gate-width, 48%)));
}

.xcs-gate-error {
	margin: 0;
	font-size: 13px;
	color: #fecaca;
}

.xcs-gate-note {
	margin: 0;
	font-family: var(--xcs-paragraph-font, inherit);
	font-size: 12px;
	line-height: 1.45;
	opacity: 0.88;
	white-space: pre-wrap;
}

.xcs-login {
	position: fixed;
	right: 24px;
	bottom: 20px;
	z-index: 2;
	margin: 0;
	font-size: 13px;
	opacity: 0.7;
}

.xcs-login a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1024px) {
	.xcs-bg-img {
		object-position: var(--xcs-bg-pos-tablet, var(--xcs-bg-pos, center center));
	}

	.xcs-logo {
		width: var(--xcs-logo-w-tablet, var(--xcs-logo-w, 180px));
	}

	.xcs-title {
		font-size: var(--xcs-title-size-tablet, var(--xcs-title-size, 36px));
	}

	.xcs-payoff {
		font-size: var(--xcs-payoff-size-tablet, var(--xcs-payoff-size, 15px));
	}

	.xcs-subtitle {
		font-size: var(--xcs-subtitle-size-tablet, var(--xcs-subtitle-size, 18px));
	}

	.xcs-copy {
		font-size: var(--xcs-paragraph-size-tablet, var(--xcs-paragraph-size, 15px));
	}

	.xcs-countdown {
		width: var(--xcs-cd-track-tablet, min(100%, 440px));
	}

	.xcs-cd-unit {
		flex: var(--xcs-cd-flex-tablet, 1 1 0);
		min-width: var(--xcs-cd-box-min-tablet, 0);
	}

	.xcs-cd-value {
		font-size: var(--xcs-cd-value-size-tablet, var(--xcs-cd-value-size, 26px));
	}

	.xcs-cd-label {
		font-size: var(--xcs-cd-label-size-tablet, var(--xcs-cd-label-size, 10px));
	}

	.xcs-gate-launcher {
		font-size: var(--xcs-gate-launcher-size-tablet, var(--xcs-gate-launcher-size, 14px));
	}

	.xcs-social {
		width: var(--xcs-social-box-tablet, var(--xcs-social-box, 56px));
		height: var(--xcs-social-box-tablet, var(--xcs-social-box, 56px));
	}

	.xcs-social svg {
		width: var(--xcs-social-size-tablet, var(--xcs-social-size, 26px));
		height: var(--xcs-social-size-tablet, var(--xcs-social-size, 26px));
	}
}

@media (max-width: 767px) {
	.xcs-main {
		padding: 36px 18px calc(64px + env(safe-area-inset-bottom, 0px));
	}

	.xcs-bg-img {
		object-position: var(--xcs-bg-pos-mobile, var(--xcs-bg-pos, center center));
	}

	.xcs-bg--video-wide .xcs-bg-video {
		display: none;
	}

	.xcs-bg--video-wide .xcs-bg-video-fallback {
		display: block;
	}

	.xcs-logo {
		width: var(--xcs-logo-w-mobile, var(--xcs-logo-w, 160px));
	}

	.xcs-countdown {
		gap: 8px;
		width: var(--xcs-cd-track-mobile, max-content);
		max-width: 100%;
		margin: 8px 0 0;
	}

	.xcs-cd-unit {
		flex: var(--xcs-cd-flex-mobile, 0 0 auto);
		padding: 10px 12px 8px;
		min-width: var(--xcs-cd-box-min-mobile, 64px);
	}

	.xcs-cd-value {
		font-size: var(--xcs-cd-value-size-mobile, var(--xcs-cd-value-size, 22px));
	}

	.xcs-cd-label {
		margin-top: 3px;
		font-size: var(--xcs-cd-label-size-mobile, var(--xcs-cd-label-size, 10px));
		letter-spacing: 0.02em;
	}

	.xcs-socials {
		margin: 4px 0 8px;
	}

	.xcs-social {
		width: var(--xcs-social-box-mobile, var(--xcs-social-box, 56px));
		height: var(--xcs-social-box-mobile, var(--xcs-social-box, 56px));
	}

	.xcs-social svg {
		width: var(--xcs-social-size-mobile, var(--xcs-social-size, 26px));
		height: var(--xcs-social-size-mobile, var(--xcs-social-size, 26px));
	}

	.xcs-login {
		right: 16px;
		bottom: calc(36px + env(safe-area-inset-bottom, 0px));
	}

	.xcs-title {
		font-size: var(--xcs-title-size-mobile, var(--xcs-title-size, 28px));
	}

	.xcs-payoff {
		font-size: var(--xcs-payoff-size-mobile, var(--xcs-payoff-size, 13px));
	}

	.xcs-subtitle {
		margin-top: -6px;
		font-size: var(--xcs-subtitle-size-mobile, var(--xcs-subtitle-size, 16px));
	}

	.xcs-copy {
		font-size: var(--xcs-paragraph-size-mobile, var(--xcs-paragraph-size, 15px));
	}

	.xcs-gate-launcher {
		font-size: var(--xcs-gate-launcher-size-mobile, var(--xcs-gate-launcher-size, 14px));
	}
}
