/* Encanti Quiz — funil de vendas */

.encanti-quiz-page {
	margin: 0;
	background: radial-gradient(120% 120% at 50% 0%, #241146 0%, #0B0620 55%, #06030f 100%);
	color: #F5EFE0;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
}

.encanti-quiz-page * {
	box-sizing: border-box;
}

.eq-app {
	max-width: 560px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 20px 40px;
	position: relative;
}

/* Progress bar */
.eq-progress {
	position: sticky;
	top: 0;
	padding: 14px 0 10px;
	background: linear-gradient(#0B0620 70%, transparent);
	z-index: 20;
}

.eq-progress__track {
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.eq-progress__fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #E8B93E, #F4D976);
	border-radius: 999px;
	transition: width 0.35s ease;
}

.eq-progress__label {
	margin-top: 6px;
	font-size: 13px;
	color: #C9BFE0;
	text-align: center;
}

/* Screens */
.eq-screen {
	display: none;
}

.eq-screen.is-active {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: eq-fade-in 0.4s ease both;
}

@keyframes eq-fade-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.eq-card {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(232, 185, 62, 0.18);
	border-radius: 24px;
	padding: 28px 22px;
	backdrop-filter: blur(6px);
	position: relative;
}

.eq-card--intro,
.eq-card--compose,
.eq-card--preview {
	text-align: center;
}

/* Mascot */
.eq-mascot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.eq-mascot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.eq-mascot__fallback {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #4a2a86, #1C0A63);
	box-shadow: 0 0 0 3px rgba(232, 185, 62, 0.35), 0 8px 30px rgba(232, 185, 62, 0.15);
}

.eq-mascot--hero {
	width: 140px;
	height: 140px;
	margin: 0 auto 18px;
}

.eq-mascot--hero .eq-mascot__fallback {
	font-size: 56px;
}

.eq-mascot--corner {
	position: absolute;
	top: -18px;
	right: 18px;
	width: 56px;
	height: 56px;
}

.eq-mascot--corner .eq-mascot__fallback {
	font-size: 26px;
}

.eq-mascot--spin .eq-mascot__fallback,
.eq-mascot--spin img {
	animation: eq-pulse 1.8s ease-in-out infinite;
}

@keyframes eq-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

.eq-mascot--dancing {
	animation: eq-mascot-dance 0.6s ease-in-out infinite;
}

.eq-mascot--float {
	animation: eq-mascot-float 3.2s ease-in-out infinite;
}

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

@keyframes eq-mascot-dance {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	25% { transform: translateY(-10px) rotate(-6deg); }
	50% { transform: translateY(-2px) rotate(0deg); }
	75% { transform: translateY(-10px) rotate(6deg); }
}

/* Typography */
.eq-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	color: #E8B93E;
	font-weight: 700;
	margin: 0 0 8px;
}

.eq-card h1 {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #fff;
}

.eq-card h2 {
	font-size: 21px;
	line-height: 1.3;
	margin: 6px 0 16px;
	color: #fff;
}

.eq-lead {
	color: #D8CFEE;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 22px;
}

.eq-lead--sm {
	font-size: 13.5px;
	margin-bottom: 16px;
}

.eq-microcopy {
	font-size: 12.5px;
	color: #A79BC9;
	margin-top: 14px;
}

/* Options */
.eq-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.eq-options--inline {
	grid-template-columns: 1fr 1fr;
}

.eq-option {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
	color: #F5EFE0;
	border-radius: 14px;
	padding: 14px 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	min-height: 52px;
}

.eq-option:hover {
	border-color: rgba(232, 185, 62, 0.5);
}

.eq-option.is-selected {
	background: linear-gradient(135deg, #E8B93E, #C9932A);
	border-color: #E8B93E;
	color: #1C0A63;
	box-shadow: 0 6px 18px rgba(232, 185, 62, 0.35);
}

.eq-other-input {
	margin-bottom: 14px;
}

/* Text fields */
.eq-field-label {
	display: block;
	font-size: 13px;
	color: #D8CFEE;
	margin: 0 0 8px;
	font-weight: 600;
}

.eq-text-input,
.eq-other-input input,
.eq-textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	padding: 13px 14px;
	color: #fff;
	font-size: 15px;
	font-family: inherit;
	margin-bottom: 16px;
}

.eq-text-input:focus,
.eq-other-input input:focus,
.eq-textarea:focus {
	outline: none;
	border-color: #E8B93E;
}

.eq-text-input.is-invalid {
	border-color: #F26D6D;
	margin-bottom: 6px;
}

.eq-field-error {
	color: #F26D6D;
	font-size: 12px;
	margin: -10px 0 16px;
}

.eq-field-error[hidden] {
	display: none;
}

.eq-textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.5;
}

.eq-counter {
	margin: -10px 0 16px;
	font-size: 12px;
	color: #A79BC9;
	text-align: right;
}

.eq-counter--ok {
	color: #7ED897;
}

.eq-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 12.5px;
	color: #C9BFE0;
	margin: 4px 0 6px;
	cursor: pointer;
}

.eq-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.eq-consent a {
	color: #E8B93E;
}

.eq-consent--confirm {
	background: rgba(226, 109, 109, 0.08);
	border: 1px solid rgba(226, 109, 109, 0.28);
	border-radius: 12px;
	padding: 12px 14px;
	margin: 4px 0 12px;
}

.eq-consent-info {
	background: rgba(90, 180, 200, 0.08);
	border: 1px solid rgba(90, 180, 200, 0.28);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 12px;
	line-height: 1.5;
	color: #B9CFD8;
	margin: 0 0 18px;
}

.eq-consent-info a {
	color: #7FD4E8;
}

.eq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons & nav */
.eq-nav {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

.eq-btn {
	appearance: none;
	border: none;
	border-radius: 14px;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.1s ease, opacity 0.2s ease;
}

.eq-btn:active {
	transform: scale(0.98);
}

.eq-btn--primary {
	flex: 1;
	background: linear-gradient(135deg, #E8B93E, #C9932A);
	color: #1C0A63;
	box-shadow: 0 8px 22px rgba(232, 185, 62, 0.3);
}

.eq-btn--primary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	box-shadow: none;
}

.eq-btn--ghost {
	background: transparent;
	color: #C9BFE0;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.eq-btn--lg {
	width: 100%;
	padding: 18px 20px;
	font-size: 16px;
}

.eq-btn--whatsapp {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	margin-top: 14px;
	background: linear-gradient(135deg, #25D366, #1DA851);
	color: #05310f;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.eq-whatsapp-icon {
	position: fixed;
	right: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: #25D366;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	line-height: 1;
	cursor: pointer;
	z-index: 999;
	transition: transform 0.15s ease;
}

.eq-whatsapp-icon[hidden] {
	display: none;
}

/* Em telas largas o card fica centralizado com espaço vazio nas laterais —
   a partir daqui há espaço de sobra pra ancorar o botão ao lado do card
   (borda direita do .eq-app, max-width 560px) em vez do canto da viewport. */
@media (min-width: 700px) {
	.eq-whatsapp-icon {
		right: auto;
		left: calc(50% + 280px + 14px);
		bottom: 24px;
	}
}

.eq-whatsapp-icon:hover {
	transform: scale( 1.08 );
}

.eq-btn--mercadopago {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #ffffff;
	color: #3483FA;
	border: 2px solid #3483FA;
	box-shadow: 0 8px 24px rgba(52, 131, 250, 0.25);
	text-decoration: none;
	margin-top: 10px;
}

.eq-payment-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 18px 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #C9BFE0;
	font-size: 14.5px;
	font-weight: 600;
}

.eq-payment-loading__spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(232, 185, 62, 0.3);
	border-top-color: #E8B93E;
	animation: eq-spin 0.8s linear infinite;
	flex: none;
}

@keyframes eq-spin {
	to { transform: rotate(360deg); }
}

.eq-payment-methods {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/* O atributo "hidden" sozinho não vence uma regra de autor que já
   define "display" pro mesmo elemento (a regra do navegador pro
   [hidden] tem prioridade mais baixa que qualquer CSS nosso,
   independente de especificidade). Por isso essas duas regras
   explícitas são necessárias, não só estéticas. */
.eq-payment-methods[hidden],
.eq-payment-loading[hidden] {
	display: none;
}

.eq-qr-block {
	margin: 18px auto 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.eq-qr-caption {
	font-size: 12.5px;
	color: #A79BC9;
	margin: 0;
}

.eq-qr-code {
	display: inline-flex;
	background: #fff;
	padding: 10px;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	line-height: 0;
}

.eq-qr-code svg {
	display: block;
	width: 150px;
	height: 150px;
}

.eq-notice {
	margin: 18px 0 6px;
	padding: 12px 14px;
	background: rgba(232, 185, 62, 0.12);
	border: 1px solid rgba(232, 185, 62, 0.3);
	border-radius: 12px;
	font-size: 13px;
	color: #F5EFE0;
	line-height: 1.5;
	text-align: left;
}

.eq-notice strong {
	color: #E8B93E;
}

/* Compose screen */
.eq-compose-progress {
	margin: 20px 0 0;
}

.eq-compose-progress__track {
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.eq-compose-progress__fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #E8B93E, #F4D976);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.eq-compose-progress__label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #F5EFE0;
	text-align: center;
}

/* Preview / urgency */
.eq-timer {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	background: rgba(139, 30, 43, 0.25);
	border: 1px solid rgba(232, 90, 90, 0.4);
	border-radius: 16px;
	padding: 12px 26px;
	margin: 6px 0 20px;
}

.eq-timer__label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #F0A5A5;
}

.eq-timer__value {
	font-size: 30px;
	font-weight: 800;
	color: #fff;
	font-variant-numeric: tabular-nums;
	animation: eq-timer-pulse 1s ease-in-out infinite;
}

@keyframes eq-timer-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.75; }
}

.eq-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 12px;
	margin-bottom: 22px;
}

.eq-price__original {
	font-size: 18px;
	color: #A79BC9;
	text-decoration: line-through;
}

.eq-price__final {
	font-size: 34px;
	font-weight: 800;
	color: #E8B93E;
}

/* Letra (revisão + correção) */
#eq-song-title {
	font-size: 18px;
	font-weight: 700;
	color: #E8B93E;
	margin: 0 0 10px;
}

.eq-lyrics {
	white-space: pre-wrap;
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.7;
	color: #F5EFE0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: 16px;
	margin: 0 0 18px;
}

#eq-correction-block {
	margin-bottom: 18px;
}

.eq-correction-status {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(232, 185, 62, 0.1);
	border: 1px solid rgba(232, 185, 62, 0.3);
	border-radius: 12px;
	padding: 10px 14px;
	margin: 0 0 16px;
	font-size: 13px;
	color: #E8D9B0;
}

.eq-correction-status--empty {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.14);
	color: #A79BC9;
}

.eq-correction-counter {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 999px;
	background: #E8B93E;
	color: #2A1B4D;
	font-weight: 700;
	font-size: 13px;
}

.eq-correction-status--empty .eq-correction-counter {
	background: rgba(255, 255, 255, 0.16);
	color: #A79BC9;
}

/* Upsells (tela de checkout) */
.eq-upsells {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 18px 0 22px;
}

/* Mesmo problema/solução já usado em .eq-payment-methods[hidden] e
   outros: display:flex no seletor de cima vence o [hidden] do user
   agent, então precisa dessa regra explícita — ver atalho de teste
   (Q1 "Outro" = PERSONAL_TEST_COUPON_CODE) em quiz.js. */
.eq-upsells[hidden] {
	display: none;
}

.eq-upsell {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	padding: 13px 14px;
	font-size: 13.5px;
	color: #F5EFE0;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.eq-upsell:has(input:checked) {
	border-color: #E8B93E;
	background: rgba(232, 185, 62, 0.08);
}

.eq-upsell input {
	margin-top: 2px;
	flex-shrink: 0;
}

.eq-upsell--disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.eq-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.12);
	color: #C9BFE0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 4px;
}

.eq-order-summary {
	background: rgba(232, 185, 62, 0.06);
	border: 1px solid rgba(232, 185, 62, 0.3);
	border-radius: 14px;
	padding: 14px 16px;
	margin: 4px 0 18px;
}

.eq-order-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: #C9BFE0;
	padding: 3px 0;
}

.eq-order-summary__row--upsell {
	color: #E8D9B0;
}

.eq-order-summary__row--upsell[hidden] {
	display: none;
}

.eq-order-summary__original {
	color: #A79BC9;
	text-decoration: line-through;
	margin-right: 6px;
}

.eq-order-summary__row--coupon {
	color: #E8D9B0;
}

.eq-order-summary__row--coupon[hidden] {
	display: none;
}

.eq-order-summary__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid rgba(232, 185, 62, 0.25);
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

@keyframes eq-order-summary-pop {
	0% { transform: scale( 1 ); }
	35% { transform: scale( 1.03 ); }
	100% { transform: scale( 1 ); }
}

.eq-order-summary.is-updated {
	animation: eq-order-summary-pop 0.35s ease;
}

/* Prévia de áudio */
#eq-audio-player {
	width: 100%;
	margin: 6px 0 20px;
}

/* Mobile refinements */
@media (max-width: 400px) {
	.eq-card h1 { font-size: 23px; }
	.eq-card h2 { font-size: 19px; }
	.eq-options { grid-template-columns: 1fr 1fr; gap: 8px; }
	.eq-option { font-size: 13px; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.eq-screen.is-active,
	.eq-mascot--spin .eq-mascot__fallback,
	.eq-mascot--spin img,
	.eq-mascot--dancing,
	.eq-mascot--float,
	.eq-timer__value {
		animation: none;
	}
}
