/* Quiz LATAM — mesma estrutura e visual do quiz do BR (versão verde/menta). */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
body { background: #fbfaf7; color: #1c1c1c; min-height: 100vh; }
.q-head { display: flex; justify-content: center; padding: 18px 20px 6px; } .q-head img { height: 36px; }
.q-wrap { display: flex; justify-content: center; padding: 14px 16px 26px; }
.q-wrap .quiz-modal-card { margin: 0 auto; }
.q-foot { text-align: center; padding: 0 20px 34px; font-size: .78rem; color: #6b6b66; } .q-foot a { color: inherit; }
.q-intro { text-align: center; font-size: .86rem; color: #6b6b66; max-width: 480px; margin: 0 auto 6px; padding: 0 16px; }
.q-intro strong { color: #0fa876; }
.quiz-err { color: #b42318; font-size: .85rem; min-height: 1.2em; margin-top: 6px; }
.locked-card .btn-primary.pulso { animation: pulso 1.3s ease-in-out 3; }
@keyframes pulso { 0%,100% { box-shadow: 0 0 0 0 rgba(22,201,141,.55); } 50% { box-shadow: 0 0 0 12px rgba(22,201,141,0); } }
.loading-pct { font-variant-numeric: tabular-nums; }
.review-card-note { font-size: .8rem; color: #6b6b66; margin-top: 10px; }

/* Reskin do quiz/loading/oferta (gerados por script.js) pra bater com a paleta da página B
   (verde-menta + rosa, igual referência Notas Infinitas). Mesma estrutura de style.css,
   só trocando as cores — o HTML/JS que o script.js injeta é o mesmo em qualquer página. */

.screen { text-align: center; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* ---- Quiz overlay (modal por cima da home) ---- */
#quiz-overlay { position: relative; z-index: 20; }
.quiz-backdrop {
  position: fixed; inset: 0; background: rgba(20, 30, 25, .45); backdrop-filter: blur(2px);
  z-index: 20;
}
body.quiz-open { overflow: hidden; }
.quiz-close {
  position: absolute; top: 18px; right: 18px; background: none; border: none;
  font-size: 1rem; color: #6b6b66; cursor: pointer;
}
/* Telas full-page (loading e oferta) */
.fullpage-takeover {
  position: fixed; inset: 0; background: #fbfaf7; z-index: 30; overflow-y: auto;
  padding: 40px 20px; display: flex; flex-direction: column; align-items: center;
}
.fullpage-takeover .loading-screen,
.fullpage-takeover .offer-screen { max-width: 480px; width: 100%; margin-top: 40px; }
.btn-primary {
  background: #16c98d;
  color: #fff; border: none; padding: 16px 32px; border-radius: 14px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-primary:hover { background: #0fa876; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
/* ---- Quiz modal ---- */
.quiz-modal-root {
  position: fixed; inset: 0; z-index: 25; display: flex; align-items: center;
  justify-content: center; padding: 20px; overflow-y: auto;
}
.quiz-modal-card {
  position: relative; background: #fff; border-radius: 20px; padding: 28px 26px;
  width: 100%; max-width: 480px; text-align: left;
  box-shadow: 0 20px 60px rgba(20, 40, 30, .2);
  animation: fadeIn .25s ease;
  margin: auto;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
.quiz-top { margin-bottom: 18px; }
.quiz-section { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: #0fa876; text-transform: uppercase; }
.quiz-progress-track { height: 6px; background: #eae7df; border-radius: 6px; margin: 8px 0 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: #16c98d; transition: width .3s ease; }
.quiz-step-count { font-size: .78rem; color: #6b6b66; }
.quiz-q { font-size: 1.25rem; margin: 14px 0 6px; font-family: Georgia, "Times New Roman", serif; color: #1c1c1c; }
.quiz-hint { font-size: .88rem; color: #6b6b66; margin-bottom: 16px; }
.quiz-body { margin: 16px 0; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options-grid.wrap { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.option-card.option-extra, .pill.option-extra { display: none; }
.options-grid.options-expanded .option-card.option-extra { display: flex; }
.options-grid.options-expanded .pill.option-extra { display: inline-block; }
.options-show-more {
  display: block; width: 100%; text-align: center; background: none; border: none;
  color: #16c98d; font-weight: 600; font-size: .9rem; padding: 12px; cursor: pointer;
}
.option-card {
  background: #f7f5f0; border: 1.5px solid #eae7df; border-radius: 14px;
  padding: 18px 14px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 6px; font-size: .95rem; color: #1c1c1c;
}
.option-card .opt-emoji { font-size: 1.6rem; }
.option-card:hover { border-color: #16c98d; }
.option-card.selected { border-color: #0fa876; background: #e6f7ef; }
.pill {
  background: #fff; border: 1.5px solid #eae7df; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; font-size: .92rem; color: #1c1c1c;
}
.pill.selected { border-color: #0fa876; background: #e6f7ef; color: #0fa876; }
.input-text, .textarea-field {
  width: 100%; border: 1.5px solid #eae7df; border-radius: 12px;
  padding: 14px; font-size: 1rem; color: #1c1c1c; background: #f7f5f0;
}
.textarea-field { min-height: 110px; resize: vertical; }
.word-counter { font-size: .82rem; color: #c0335a; font-weight: 600; margin-top: 8px; }
.word-counter-ok { color: #0fa876; }
.input-text:focus, .textarea-field:focus { outline: none; border-color: #16c98d; }
.quiz-label { display: block; font-size: .82rem; font-weight: 600; color: #6b6b66; margin: 14px 0 6px; }
.input-wrapper { display: flex; align-items: center; gap: 10px; border: 1.5px solid #eae7df; border-radius: 12px; padding: 4px 14px; background: #f7f5f0; }
.input-wrapper .input-text.has-icon { border: none; background: transparent; padding: 10px 0; }
.input-icon { font-size: 1rem; }
.review-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eae7df; font-size: .9rem; }
.review-label { color: #6b6b66; text-transform: uppercase; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.review-value { text-align: right; color: #1c1c1c; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.quiz-back { background: none; border: none; color: #6b6b66; font-size: .92rem; cursor: pointer; }
.quiz-next {
  background: #16c98d; color: #fff; border: none;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; cursor: pointer; flex: 1;
}
.quiz-next:hover:not(:disabled) { background: #0fa876; }
.quiz-next:disabled { opacity: .45; cursor: not-allowed; }
/* ---- Loading screen ---- */
.loading-screen .eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: #0fa876; text-transform: uppercase; margin-bottom: 6px; }
.loading-screen h2 { font-family: Georgia, serif; font-size: 1.4rem; color: #1c1c1c; }
.loading-card { background: #fff; border-radius: 20px; padding: 26px; margin-top: 20px; box-shadow: 0 20px 60px rgba(20,40,30,.1); text-align: left; }
.loading-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.loading-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #6b6b66; }
.loading-pct { font-size: 1.5rem; font-weight: 700; color: #0fa876; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; margin-bottom: 14px; }
.waveform span { width: 3px; background: #a8ecd2; border-radius: 3px; height: 40%; animation: wave 1s ease-in-out infinite; }
.waveform span:nth-child(odd) { height: 70%; animation-delay: .15s; }
.waveform span:nth-child(3n) { height: 90%; animation-delay: .3s; }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.progress-bar { height: 8px; background: #eae7df; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
#progress-fill { height: 100%; width: 0%; background: #16c98d; transition: width .3s linear; }
/* Barra "respira" a partir de 90% — evita parecer travada enquanto espera o Suno de verdade terminar. */
#progress-fill.quase-la { animation: quase-la-pulse 1.8s ease-in-out infinite; }
@keyframes quase-la-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.loading-status { font-size: .88rem; color: #6b6b66; margin-bottom: 18px; }
.draft-box { border-top: 1px dashed #eae7df; padding-top: 14px; max-height: 130px; overflow-y: auto; }
.draft-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: #0fa876; }
.draft-line { font-size: .85rem; color: #6b6b66; margin-top: 8px; font-family: ui-monospace, monospace; }
/* ---- Offer screen ---- */
.offer-screen .eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: #0fa876; text-transform: uppercase; margin-bottom: 6px; }
.offer-screen h2 { margin-bottom: 18px; font-family: Georgia, serif; color: #1c1c1c; }
.offer-screen em { color: #c0335a; font-style: italic; }
.preview-card { background: #fff; border-radius: 18px; padding: 20px; text-align: left; box-shadow: 0 14px 40px rgba(20,40,30,.08); margin-bottom: 16px; }
.preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.preview-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: #6b6b66; }
.badge-free { background: #e6f7ef; color: #0fa876; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.preview-title { font-size: 1.1rem; font-weight: 600; margin-top: 4px; color: #1c1c1c; }
.preview-meta { color: #6b6b66; font-size: .85rem; margin-bottom: 12px; }
.preview-fallback { color: #6b6b66; font-size: .85rem; font-style: italic; }
.preview-card audio { width: 100%; }
.locked-card { background: #14251f; color: #fff; border-radius: 18px; padding: 22px; text-align: left; }
.locked-top { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .06em; color: #b8d9cc; margin-bottom: 10px; }
.locked-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.locked-list { list-style: none; margin-bottom: 18px; }
.locked-list li { font-size: .88rem; color: #dcefe6; padding: 4px 0; }
.locked-footer { text-align: center; font-size: .78rem; color: #b8d9cc; margin-top: 10px; }
.locked-card.paywall-active { box-shadow: 0 0 0 3px #16c98d; animation: pulse 1.4s ease-in-out 2; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.preview-cap-note { font-size: .78rem; color: #6b6b66; margin-top: 8px; }
/* Card Payment Brick (iframe do Mercado Pago) precisa de espaço próprio */
#card-payment-brick-container { margin: 18px 0; }
/* ---- Paywall overlay ---- */
.paywall-overlay {
  position: fixed; inset: 0; background: rgba(18, 30, 25, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 50; animation: fadeIn .2s ease;
}

.fullpage-takeover[hidden] { display: none; }

/* Linha da revisão: rótulo e valor podem quebrar (e-mails compridos não estouram a tela no celular). */
.review-row { flex-wrap: wrap; align-items: baseline; }
.review-label { flex-shrink: 1; }
.review-value { min-width: 0; overflow-wrap: anywhere; flex: 1 1 auto; }
html, body { overflow-x: hidden; }

.option-card .opt-sub { font-size: .72rem; color: #7a7a72; text-align: center; line-height: 1.3; }

/* ---- 3 letras para elegir, ajuste y contacto ---- */
.qn-letras-tela { max-width: 560px; margin: 0 auto; padding: 24px 18px 40px; text-align: left; }
.qn-letras-tela h2 { font-size: 1.35rem; margin: 6px 0 8px; line-height: 1.3; }
.qn-sub-texto { color: #6b6b63; font-size: .92rem; line-height: 1.5; margin: 0 0 14px; }
.qn-pct { text-align: center; font-weight: 700; color: #0fa876; margin: 10px 0 4px; }
.qn-abas { display: flex; gap: 8px; margin: 6px 0 10px; }
.qn-aba { flex: 1; padding: 10px 6px; border: 1.5px solid #eae7df; background: #fff; border-radius: 10px; font-size: .92rem; cursor: pointer; color: #1c1c1c; }
.qn-aba.ativa { border-color: #0fa876; background: #e6f7ef; color: #0a7d58; font-weight: 700; }
.qn-lendo { color: #8a8a82; font-size: .82rem; margin: 0 0 10px; }
.qn-letra { width: 100%; min-height: 300px; border: 1.5px solid #eae7df; background: #f7f5f0; border-radius: 12px; padding: 14px; font: inherit; font-size: .98rem; line-height: 1.7; color: #1c1c1c; resize: vertical; margin-bottom: 12px; }
.qn-ajustar { background: none; border: 1.5px dashed #c9c5ba; border-radius: 10px; padding: 11px; width: 100%; cursor: pointer; color: #4a4a44; margin-bottom: 14px; font-size: .92rem; }
.qn-ajustar:disabled { opacity: .5; cursor: default; }
.qn-ajuste { background: #f7f5f0; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.qn-ajuste-acoes { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.qn-link { background: none; border: 0; color: #6b6b63; text-decoration: underline; cursor: pointer; padding: 12px 0 0; font-size: .9rem; display: block; width: 100%; text-align: center; }
.qn-letras-tela .btn-primary { width: 100%; margin-top: 4px; }
.qn-letras-tela .quiz-err { color: #c0392b; font-size: .88rem; min-height: 1.2em; margin: 4px 0 8px; }
