/* ==========================================================================
   Qamuz landing page: header, hero carousel, steps, showcase, pricing, FAQ, footer.
   Uses the tokens from qamuz-app.css ("Qamuz Night Studio").
   ========================================================================== */

body.qz-landing-page {
	--qz-l-max: 1200px;
	--qz-l-gutter: clamp(16px, 4vw, 40px);
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body.qz-landing-page .qz-player {
	left: 0;
}

/* Elementor containers: one per section. */
.qz-l-section.e-con,
.qz-l-section {
	--padding-top: clamp(64px, 9vw, 112px);
	--padding-bottom: clamp(64px, 9vw, 112px);
	padding: clamp(64px, 9vw, 112px) var(--qz-l-gutter) !important;
	gap: 36px !important;
}

.qz-l-section > .e-con-inner,
.qz-l-section > .elementor-element {
	width: 100%;
	max-width: var(--qz-l-max);
	margin-inline: auto;
}

.qz-l-section--alt.e-con,
.qz-l-section--alt {
	background: var(--qz-side);
	border-block: 1px solid var(--qz-line);
}

.qz-l-flush.e-con,
.qz-l-flush {
	padding: 0 !important;
	gap: 0 !important;
}

.qz-btn--lg {
	min-height: 50px;
	padding: 0 24px;
	font-size: 15px;
	border-radius: 12px;
}

.qz-l-center {
	margin: 8px 0 0;
	text-align: center;
}

/* ---------- section heading ---------- */

.qz-l-head {
	max-width: 720px;
	margin: 0 auto 8px;
	text-align: center;
}

.qz-l-eyebrow {
	margin: 0 0 12px;
	color: var(--qz-accent);
	font: 600 12px/1.2 var(--qz-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qz-l-title {
	margin: 0 0 14px;
	color: var(--qz-ink);
	font: 700 clamp(30px, 4.2vw, 46px)/1.08 var(--qz-display);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.qz-l-intro {
	margin: 0 auto;
	max-width: 58ch;
	color: var(--qz-soft);
	font-size: 17px;
	line-height: 1.6;
}

/* ---------- header ---------- */

.qz-l-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: color-mix(in srgb, var(--qz-bg) 72%, transparent);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: border-color 0.2s, background 0.2s;
}

.admin-bar .qz-l-header {
	top: 32px;
}

.qz-l-header.is-scrolled {
	background: color-mix(in srgb, var(--qz-bg) 92%, transparent);
	border-bottom-color: var(--qz-line);
}

.qz-l-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: var(--qz-l-max);
	height: 72px;
	margin: 0 auto;
	padding: 0 var(--qz-l-gutter);
}

.qz-l-nav {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.qz-l-nav ul {
	display: flex;
	gap: 4px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

body.qz-app-page .qz-l-nav ul a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--qz-soft);
	font: 600 14px/1.2 var(--qz-sans);
	text-decoration: none;
	transition: color 0.15s, background 0.15s;
}

body.qz-app-page .qz-l-nav ul a:hover,
body.qz-app-page .qz-l-nav ul a.is-current {
	color: var(--qz-ink);
	background: var(--qz-hover);
}

.qz-l-nav__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.qz-l-nav__actions .qz-btn {
	min-height: 40px;
}

.qz-l-header__toggle {
	display: none;
	margin-left: auto;
}

@media (max-width: 959px) {
	.admin-bar .qz-l-header {
		top: 46px;
	}

	.qz-l-header__toggle {
		display: inline-grid;
	}

	.qz-l-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px var(--qz-l-gutter) 24px;
		background: var(--qz-side);
		border-bottom: 1px solid var(--qz-line);
		box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
	}

	.qz-l-header:not(.is-open) .qz-l-nav {
		display: none;
	}

	.qz-l-nav ul {
		flex-direction: column;
		margin: 0;
	}

	body.qz-app-page .qz-l-nav ul a {
		padding: 12px;
		font-size: 16px;
	}

	.qz-l-nav__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.qz-l-nav__actions .qz-btn {
		min-height: 46px;
	}
}

/* ---------- hero carousel ---------- */

.qz-hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(560px, 82vh, 760px);
	background: var(--qz-bg);
	border-bottom: 1px solid var(--qz-line);
	isolation: isolate;
	touch-action: pan-y;
}

.qz-hero__track {
	position: absolute;
	inset: 0;
}

.qz-hero__slide {
	--h: 190;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 72px var(--qz-l-gutter) 120px;
	background:
		radial-gradient(ellipse at 78% 38%, hsl(var(--h) 95% 55% / 0.26), transparent 58%),
		radial-gradient(ellipse at 10% 100%, hsl(calc(var(--h) + 20) 80% 40% / 0.16), transparent 50%),
		linear-gradient(160deg, hsl(var(--h) 45% 9%) 0%, #070a10 70%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.qz-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s ease, visibility 0s;
	z-index: 1;
}

.qz-hero__art {
	position: absolute;
	inset: 12% 0 18% 42%;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 85%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 35%, #000 85%, transparent);
	transform: translateX(24px);
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.qz-hero__slide.is-active .qz-hero__art {
	transform: none;
}

.qz-hero__art svg {
	width: 100%;
	height: 100%;
}

.qz-hero__art rect {
	fill: hsl(var(--h) 90% 60% / 0.38);
	transform-box: fill-box;
	transform-origin: center;
	animation: qz-l-bar 2.4s ease-in-out infinite alternate;
}

.qz-hero__art rect:nth-child(3n) {
	animation-duration: 1.8s;
}

.qz-hero__art rect:nth-child(4n) {
	fill: rgba(231, 236, 245, 0.42);
	animation-duration: 2.9s;
}

.qz-hero__art rect:nth-child(5n + 2) {
	animation-delay: -1.1s;
}

@keyframes qz-l-bar {
	from {
		transform: scaleY(0.55);
	}

	to {
		transform: scaleY(1);
	}
}

.qz-hero__content {
	position: relative;
	width: 100%;
	max-width: var(--qz-l-max);
	margin: 0 auto;
}

.qz-hero__content > * {
	max-width: 640px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.qz-hero__slide.is-active .qz-hero__content > * {
	opacity: 1;
	transform: none;
}

.qz-hero__slide.is-active .qz-hero__content > :nth-child(2) {
	transition-delay: 0.08s;
}

.qz-hero__slide.is-active .qz-hero__content > :nth-child(3) {
	transition-delay: 0.16s;
}

.qz-hero__slide.is-active .qz-hero__content > :nth-child(4) {
	transition-delay: 0.24s;
}

.qz-hero__title {
	margin: 0 0 18px;
	color: var(--qz-ink);
	font: 700 clamp(40px, 6.4vw, 76px)/1.02 var(--qz-display);
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.qz-hero__text {
	margin: 0 0 30px;
	color: var(--qz-soft);
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
	max-width: 52ch !important;
}

.qz-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.qz-hero__controls {
	position: absolute;
	right: 0;
	bottom: 36px;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: var(--qz-l-max);
	margin: 0 auto;
	padding: 0 var(--qz-l-gutter);
}

.qz-hero__arrow {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--qz-line-strong);
	border-radius: 50%;
	background: rgba(7, 10, 16, 0.5);
	color: var(--qz-ink);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.qz-hero__arrow:hover {
	border-color: var(--qz-accent);
	color: var(--qz-accent);
}

.qz-hero__arrow:focus-visible,
.qz-hero__dot:focus-visible {
	outline: 2px solid var(--qz-accent);
	outline-offset: 2px;
}

.qz-hero__pause {
	margin-left: auto;
}

.qz-hero__dots {
	display: flex;
	gap: 6px;
}

.qz-hero__dot {
	position: relative;
	width: 44px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.qz-hero__dot span {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 3px;
	margin-top: -1.5px;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(231, 236, 245, 0.2);
}

.qz-hero__dot span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--qz-accent);
	transform: scaleX(0);
	transform-origin: left;
}

.qz-hero__dot[aria-selected="true"] span::after {
	transform: scaleX(1);
}

.qz-hero.is-playing .qz-hero__dot[aria-selected="true"] span::after {
	transform: scaleX(0);
	animation: qz-l-progress var(--qz-interval, 6000ms) linear forwards;
}

@keyframes qz-l-progress {
	to {
		transform: scaleX(1);
	}
}

@media (max-width: 767px) {
	.qz-hero {
		min-height: 600px;
	}

	.qz-hero__slide {
		align-items: flex-end;
		padding-bottom: 112px;
	}

	.qz-hero__art {
		inset: 2% -10% 64% 0;
	}

	.qz-hero__actions .qz-btn {
		flex: 1 1 100%;
	}

	.qz-hero__controls .qz-hero__arrow:not(.qz-hero__pause) {
		display: none;
	}
}

/* ---------- steps ---------- */

.qz-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.qz-step {
	position: relative;
	padding: 28px 26px 30px;
	border: 1px solid var(--qz-line);
	border-radius: 18px;
	background: var(--qz-surface);
	transition: border-color 0.2s, transform 0.2s;
}

.qz-step:hover {
	border-color: var(--qz-line-strong);
	transform: translateY(-3px);
}

.qz-step__n {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--qz-accent);
	font: 600 14px/1 var(--qz-mono);
}

.qz-step__title {
	margin: 0 0 10px;
	color: var(--qz-ink);
	font: 700 21px/1.2 var(--qz-display);
}

.qz-step__text {
	margin: 0;
	color: var(--qz-soft);
	font-size: 15px;
	line-height: 1.6;
}

/* reveal on scroll (added by JS only, so content is visible without it) */
.qz-reveal-ready [data-qz-reveal] > * {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	transition-delay: calc(var(--i, 0) * 90ms);
}

.qz-reveal-ready [data-qz-reveal].is-in > * {
	opacity: 1;
	transform: none;
}

/* ---------- showcase ---------- */

.qz-showcase .qz-card__uses {
	padding-top: 12px;
}

/* ---------- pricing ---------- */

.qz-pricing {
	display: grid;
	gap: 28px;
}

.qz-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 18px;
	align-items: stretch;
}

.qz-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 26px 26px;
	border: 1px solid var(--qz-line);
	border-radius: 20px;
	background: var(--qz-surface);
}

.qz-plan.is-featured {
	border-color: color-mix(in srgb, var(--qz-accent) 55%, transparent);
	background:
		radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--qz-accent) 14%, transparent), transparent 60%),
		var(--qz-surface);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--qz-accent) 18%, transparent), 0 24px 60px color-mix(in srgb, var(--qz-accent) 8%, transparent);
}

.qz-plan__badge {
	position: absolute;
	top: -12px;
	left: 26px;
	padding: 5px 10px;
	border-radius: 99px;
	background: var(--qz-accent);
	color: var(--qz-accent-ink);
	font: 700 11px/1 var(--qz-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.qz-plan__name {
	margin: 0 0 18px;
	color: var(--qz-soft);
	font: 700 15px/1.2 var(--qz-sans);
	letter-spacing: 0.02em;
}

.qz-plan__price {
	margin: 0;
	color: var(--qz-ink);
	font: 700 52px/1 var(--qz-display);
	letter-spacing: -0.03em;
}

.qz-plan__credits {
	margin: 12px 0 2px;
	color: var(--qz-accent);
	font: 600 16px/1.3 var(--qz-mono);
}

.qz-plan__songs {
	margin: 0 0 14px;
	color: var(--qz-soft);
	font-size: 14px;
}

.qz-plan__note {
	margin: 0 0 22px;
	padding-top: 14px;
	border-top: 1px solid var(--qz-line);
	color: var(--qz-soft);
	font-size: 14px;
}

.qz-plan .qz-btn {
	margin-top: auto;
}

.qz-costs {
	padding: 26px;
	border: 1px solid var(--qz-line);
	border-radius: 20px;
	background: var(--qz-side);
}

.qz-costs__title {
	margin: 0 0 16px;
	color: var(--qz-ink);
	font: 700 19px/1.2 var(--qz-display);
}

.qz-costs__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qz-cost {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--qz-line);
}

.qz-cost__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--qz-accent) 8%, transparent);
	color: var(--qz-accent);
}

.qz-cost__info strong {
	display: block;
	color: var(--qz-ink);
	font: 700 15px/1.3 var(--qz-sans);
}

.qz-cost__info small {
	display: block;
	color: var(--qz-soft);
	font-size: 13px;
}

.qz-cost__n {
	color: var(--qz-ink);
	font: 600 14px/1 var(--qz-mono);
	white-space: nowrap;
}

.qz-costs__gift {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 0;
	color: var(--qz-accent);
	font-weight: 600;
	font-size: 14px;
}

.qz-pricing__note {
	margin: 0;
	color: var(--qz-soft);
	font-size: 14px;
	text-align: center;
}

/* ---------- FAQ ---------- */

.qz-faq {
	display: grid;
	gap: 10px;
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

.qz-faq__item {
	border: 1px solid var(--qz-line);
	border-radius: 14px;
	background: var(--qz-surface);
	transition: border-color 0.15s;
}

.qz-faq__item[open] {
	border-color: var(--qz-line-strong);
}

.qz-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	color: var(--qz-ink);
	font: 700 16px/1.35 var(--qz-sans);
	list-style: none;
	cursor: pointer;
}

.qz-faq__item summary::-webkit-details-marker {
	display: none;
}

.qz-faq__item summary:focus-visible {
	outline: 2px solid var(--qz-accent);
	outline-offset: -2px;
	border-radius: 14px;
}

.qz-faq__icon {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
}

.qz-faq__icon::before,
.qz-faq__icon::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--qz-accent);
	transition: transform 0.2s;
}

.qz-faq__icon::after {
	transform: rotate(90deg);
}

.qz-faq__item[open] .qz-faq__icon::after {
	transform: rotate(0);
}

.qz-faq__a {
	padding: 0 22px 20px;
}

.qz-faq__a p {
	margin: 0;
	color: var(--qz-soft);
	font-size: 15px;
	line-height: 1.65;
}

/* ---------- footer ---------- */

.qz-l-footer {
	padding: 0 var(--qz-l-gutter);
	background: var(--qz-side);
	border-top: 1px solid var(--qz-line);
	color: var(--qz-soft);
}

.qz-l-footer__cta,
.qz-l-footer__grid,
.qz-l-footer__bottom {
	max-width: var(--qz-l-max);
	margin: 0 auto;
}

.qz-l-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: -1px;
	padding: 44px 0;
	border-bottom: 1px solid var(--qz-line);
}

.qz-l-footer__cta h2 {
	margin: 0 0 8px;
	color: var(--qz-ink);
	font: 700 clamp(26px, 3vw, 34px)/1.15 var(--qz-display);
	letter-spacing: -0.02em;
}

.qz-l-footer__cta p {
	margin: 0;
	font-size: 16px;
}

.qz-l-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr));
	gap: 36px;
	padding: 52px 0 40px;
}

.qz-l-footer__brand p {
	margin: 16px 0 0;
	max-width: 38ch;
	font-size: 14px;
	line-height: 1.65;
}

.qz-l-footer__col h3 {
	margin: 4px 0 16px;
	color: var(--qz-ink);
	font: 700 13px/1 var(--qz-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.qz-l-footer ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.qz-app-page .qz-l-footer ul a {
	color: var(--qz-soft);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s;
}

body.qz-app-page .qz-l-footer ul a:hover {
	color: var(--qz-ink);
}

.qz-l-social {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px !important;
	margin-top: 18px !important;
}

body.qz-app-page .qz-l-social a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--qz-line-strong);
	border-radius: 99px;
	font-size: 13px !important;
}

.qz-l-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding: 22px 0 96px; /* room for the floating Maestro button */
	border-top: 1px solid var(--qz-line);
	font: 500 12px/1.4 var(--qz-mono);
}

.qz-l-footer__bottom p {
	margin: 0;
}

.qz-l-footer__bottom ul {
	display: flex;
	gap: 18px;
}

body.qz-app-page .qz-l-footer__bottom ul a {
	font-size: 12px;
}

.qz-l-footer__made {
	margin-left: auto !important;
}

@media (max-width: 899px) {
	.qz-l-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qz-l-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 479px) {
	.qz-l-footer__cta .qz-btn {
		width: 100%;
	}

	.qz-l-footer__made {
		margin-left: 0 !important;
	}
}

/* ---------- studio demo section ---------- */

.qz-l-demo .qamuz-rack-wrap,
.qz-l-demo .elementor-widget-qamuz-studio-rack {
	margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
	body.qz-landing-page {
		scroll-behavior: auto;
	}

	.qz-hero__slide,
	.qz-hero__content > *,
	.qz-hero__art,
	.qz-step,
	.qz-reveal-ready [data-qz-reveal] > * {
		transition: none !important;
	}

	.qz-hero__art rect,
	.qz-hero.is-playing .qz-hero__dot[aria-selected="true"] span::after {
		animation: none !important;
	}
}

/* ---------- legal pages (Privacidad, Términos) ---------- */

.qz-legal h2 {
	margin: 36px 0 10px;
	color: var(--qz-ink);
	font: 700 22px/1.3 var(--qz-display);
	letter-spacing: -0.01em;
}

.qz-legal ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.qz-legal li {
	margin-bottom: 6px;
}

.qz-legal strong {
	color: var(--qz-ink);
}
