/* Previa gratis antes do pagamento — tela nova (docs/PLANO-PREVIA-GRATIS.md).
   Mesma paleta da landing (styles.css): creme, tinta, coral. Mobile primeiro:
   o publico chega pelo navegador do Instagram. */

:root {
  --cream: #F5EAD8;
  --cream-deep: #EBDFC9;
  --cream-edge: #DFD1B8;
  --paper: #FBF6EC;
  --ink: #1A2332;
  --ink-soft: #39455A;
  --ink-ghost: #6E7788;
  --coral: #E5553C;
  --coral-deep: #C8462C;
  --coral-soft: #F5B7A8;
  --forest: #5A6B4C;
  --gold: #D4A55C;
  --rule: rgba(26, 35, 50, 0.12);
  --shadow: 0 10px 30px -18px rgba(26, 35, 50, 0.45);
  --lyr: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden], .pv-hidden { display: none !important; }

/* topo */
/* topo igual ao do resto do site (.topbar do styles.css): mesmo logo, tamanho e fundo */
.pv-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 234, 216, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 35, 50, .12);
}
.pv-top-inner { max-width: 1040px; margin: 0 auto; padding: 6px 28px; display: flex; align-items: center; justify-content: space-between; }
.pv-brand { display: block; line-height: 0; }
.pv-brand img { height: 154px; width: auto; display: block; transition: transform .2s; }
.pv-brand:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .pv-top-inner { padding: 4px 16px; }
  .pv-brand img { height: 105px; }
}
.pv-credits { font-size: 13px; font-weight: 600; color: var(--coral-deep); background: #fff; border: 1px solid var(--coral-soft); border-radius: 999px; padding: 4px 12px; }

.pv-main { max-width: 640px; margin: 0 auto; padding: 20px 16px 120px; }
.pv-screen { animation: pvIn .35s ease; }
@keyframes pvIn { from { transform: translateY(8px); } to { transform: none; } }

/* tipografia */
.pv-h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(28px, 7vw, 38px); line-height: 1.12; margin: 10px 0 8px; }
.pv-h1 em { font-style: italic; color: var(--coral); }
.pv-h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.25; margin: 10px 0 6px; }
.pv-sub { color: var(--ink-soft); margin-bottom: 18px; }
.pv-meta { color: var(--ink-ghost); font-size: 14px; margin-bottom: 14px; }
.pv-label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 8px; }
.pv-label-big { font-size: 17px; font-family: "Fraunces", Georgia, serif; margin-top: 26px; }
.pv-opt { font-weight: 400; color: var(--ink-ghost); }
.pv-mini { font-size: 13px; color: var(--ink-ghost); margin-top: 6px; }
.pv-center { text-align: center; }
.pv-err { background: #fdeceb; color: var(--coral-deep); border: 1px solid var(--coral-soft); border-radius: 12px; padding: 10px 14px; margin: 14px 0; font-size: 14px; }

/* etapas */
.pv-steps { list-style: none; display: flex; gap: 6px; align-items: center; justify-content: center; margin: 4px 0 14px; font-size: 13px; color: var(--ink-ghost); }
.pv-steps li { display: flex; align-items: center; gap: 6px; }
.pv-steps li + li::before { content: ""; width: 18px; height: 2px; background: var(--cream-edge); margin-right: 4px; }
.pv-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--cream-edge); font-weight: 600; font-size: 12px; background: var(--paper); }
.pv-steps li.on { color: var(--ink); font-weight: 600; }
.pv-steps li.on span { background: var(--coral); border-color: var(--coral); color: #fff; }
.pv-steps li.done span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pv-fstep { display: none; }
.pv-fstep.on { display: block; animation: pvIn .3s ease; }

/* campos */
input, select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--cream-edge); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--coral); }
textarea { resize: vertical; line-height: 1.5; }
.pv-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .pv-row { grid-template-columns: 1fr 1fr; } }
.pv-field { margin-top: 2px; }
.pv-count { text-align: right; font-size: 12px; color: var(--ink-ghost); margin-top: 4px; }
#fEstiloOutro { margin-top: 10px; }
select:disabled { opacity: .45; background: var(--cream-deep); cursor: not-allowed; }

/* chips */
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-chips button {
  border: 1.5px solid var(--cream-edge); background: #fff; border-radius: 999px;
  padding: 9px 14px; font-size: 14px; transition: all .15s;
}
.pv-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pv-chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .pv-chips-grid { grid-template-columns: repeat(3, 1fr); } }
.pv-chips-grid button { border-radius: 12px; padding: 12px 10px; }

/* microfone */
.pv-mic {
  width: 100%; margin-top: 12px; padding: 13px; border-radius: 999px;
  border: 1.5px dashed var(--coral-soft); background: #fff; color: var(--coral-deep); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pv-mic-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: none; }
.pv-mic.rec { border-style: solid; background: #fdeceb; }
.pv-mic.rec .pv-mic-dot { display: inline-block; animation: pvPulse 1s infinite; }
@keyframes pvPulse { 50% { opacity: .25; } }
.pv-mic-hint { font-size: 13px; color: var(--ink-ghost); text-align: center; margin-top: 6px; }
.pv-moldando { margin-top: 14px; font-size: 13px; color: var(--ink-ghost); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pv-moldando b { background: var(--cream-deep); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 500; }

/* botoes */
.pv-nav { display: flex; gap: 10px; margin-top: 22px; }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .1s, background .15s;
}
.pv-btn:active { transform: scale(.98); }
.pv-btn:disabled { opacity: .55; cursor: default; }
.pv-btn-main { background: var(--coral); color: #fff; flex: 1; box-shadow: 0 10px 24px -12px rgba(229, 85, 60, .8); }
.pv-btn-main:hover { background: var(--coral-deep); }
.pv-btn-ghost { background: transparent; border: 1.5px solid var(--cream-edge); color: var(--ink-soft); }
.pv-btn-sec { background: #fff; border: 1.5px solid var(--coral); color: var(--coral-deep); padding: 10px 16px; font-size: 14px; }
.pv-btn-full { width: 100%; }
.pv-link { background: none; border: none; color: var(--coral-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

.pv-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 70%, rgba(245, 234, 216, 0));
}
.pv-sticky .pv-btn { max-width: 608px; margin: 0 auto; display: flex; }

/* carregamento */
.pv-loading { text-align: center; padding: 50px 0 20px; }
.pv-pen { font-size: 44px; animation: pvPen 1.2s ease-in-out infinite; }
@keyframes pvPen { 50% { transform: translateX(10px) rotate(8deg); } }
.pv-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep); border: 1px solid var(--coral-soft); border-radius: 999px; padding: 5px 12px; background: #fff; }
.pv-ring { position: relative; width: 170px; height: 170px; margin: 24px auto 10px; }
.pv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pv-ring circle { fill: none; stroke-width: 8; }
.pv-ring-bg { stroke: var(--cream-edge); }
.pv-ring-fg { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s linear; }
.pv-ring-txt { position: absolute; inset: 0; display: grid; place-content: center; }
.pv-ring-txt b { font-family: "Fraunces", Georgia, serif; font-size: 38px; }
.pv-ring-txt small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-ghost); }
.pv-frase { font-style: italic; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; margin: 16px auto; max-width: 440px; min-height: 48px; transition: opacity .3s; }
.pv-wave { display: flex; gap: 4px; justify-content: center; align-items: center; height: 30px; }
.pv-wave i { width: 4px; background: var(--coral); border-radius: 3px; animation: pvWave 1s ease-in-out infinite; }
.pv-wave i:nth-child(odd) { animation-delay: .2s; } .pv-wave i:nth-child(3n) { animation-delay: .45s; }
@keyframes pvWave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.pv-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--coral-soft); border-top-color: var(--coral); border-radius: 50%; animation: pvRot .8s linear infinite; vertical-align: -1px; }
@keyframes pvRot { to { transform: rotate(360deg); } }

/* letra */
.pv-badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--forest); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; }
.pv-title { margin-bottom: 2px; }
.pv-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); margin-top: 12px; }
.pv-card-head { display: flex; justify-content: space-between; align-items: center; font-family: "Fraunces", Georgia, serif; font-weight: 600; margin-bottom: 10px; }
.pv-font { display: flex; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.pv-font button { background: #fff; border: none; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.pv-font button + button { border-left: 1px solid var(--rule); }
.pv-lyrics {
  font-size: var(--lyr); line-height: 1.7; max-height: 46vh; overflow-y: auto; padding-right: 6px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.pv-lyrics .sec { display: block; color: var(--coral-deep); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 4px; }
.pv-lyrics .sec:first-child { margin-top: 0; }
.pv-lock { font-size: 12px; color: var(--ink-ghost); margin-top: 10px; }
.pv-card-fade .pv-lyrics { max-height: 34vh; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.pv-ajuste { margin-top: 12px; }
.pv-ajuste textarea { margin-top: 8px; }
.pv-ajuste-acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* vozes / pagamento */
.pv-vozes, .pv-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-voz { position: relative; display: grid; gap: 2px; background: #fff; border: 1.5px solid var(--cream-edge); border-radius: 14px; padding: 12px; cursor: pointer; transition: all .15s; }
.pv-voz input { position: absolute; opacity: 0; pointer-events: none; }
.pv-voz-ic { font-size: 20px; }
.pv-voz small { color: var(--ink-ghost); font-size: 12px; line-height: 1.35; }
.pv-voz:has(input:checked) { border-color: var(--coral); background: #fff7f4; box-shadow: 0 0 0 3px rgba(229, 85, 60, .12); }

/* previa */
.pv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pv-tabs button { border: 1.5px solid var(--cream-edge); background: #fff; border-radius: 14px; padding: 12px 8px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pv-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pv-pill { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 8px; }
.pv-player { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 14px; margin-top: 10px; box-shadow: var(--shadow); }
.pv-play { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--coral); color: #fff; font-size: 20px; box-shadow: 0 8px 18px -8px rgba(229, 85, 60, .9); }
.pv-prog { flex: 1; }
.pv-bar { height: 6px; background: var(--cream-edge); border-radius: 6px; overflow: hidden; }
.pv-bar-fill { height: 100%; width: 0; background: var(--coral); transition: width .25s linear; }
.pv-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-ghost); margin-top: 6px; }
.pv-nudge { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #fff7f4; border: 1px solid var(--coral-soft); border-radius: 14px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.pv-wpp-row { display: flex; gap: 8px; margin-top: 8px; }
.pv-wpp-row input { flex: 1; min-width: 0; }
#countryCode { width: 132px; flex-shrink: 0; padding-left: 8px; padding-right: 4px; }
.pv-trust { list-style: none; margin: 18px 0 0; font-size: 14px; color: var(--forest); display: grid; gap: 4px; }

/* pagamento */
#pixArea img { display: block; margin: 12px auto; border-radius: 8px; background: #fff; }
#pixArea { margin-top: 16px; }
#cardArea { margin-top: 16px; min-height: 200px; }

.pv-modo { margin: 4px 0 14px; }
.pv-modo button { font-size: 14px; }
.pv-limite { margin-top: 8px; font-size: 14px; color: var(--coral-deep); background: #fff7f4; border: 1px solid var(--coral-soft); border-radius: 10px; padding: 8px 12px; }
#fHistoriaDur { color: var(--forest); font-weight: 600; margin-right: 8px; }
.pv-count.cheio { color: var(--coral-deep); font-weight: 700; }
.pv-esperar { text-align: left; max-width: 440px; margin: 16px auto; }

/* meio centimetro entre as opcoes de pagamento e o botao Pagar */
.pv-pay { margin-bottom: 20px; }

/* aviso de cookies no topo nesta pagina: no rodape ele cobria o botao fixo (pv-sticky) */
.smc-consent { top: 8px !important; bottom: auto !important; }
.smc-consent__manage-link { display: none !important; }

/* autorizacoes de comunicacao (mesmo texto do formulario do index) */
.pv-optin { margin: 18px 0 4px; display: grid; gap: 10px; }
.pv-optin label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-soft, inherit); cursor: pointer; }
.pv-optin input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 1px 0 0; accent-color: var(--coral, #e8604c); cursor: pointer; }

/* "Criar nova previa" em destaque (Andre, 01/10): fundo escuro, letra branca */
.pv-btn-dark { background: var(--ink, #1A2332); color: #fff; border: none; margin-top: 14px; }
.pv-btn-dark:disabled { background: #8a909a; color: #fff; opacity: 1; }

/* segunda linha dos botoes (preco / quantas previas restam): nunca quebra no meio */
.pv-btn .pv-l2 { display: block; font-size: .82em; font-weight: 600; opacity: .9; margin-top: 2px; white-space: nowrap; }
#btnDesbloquear, #btnNovaPrevia { flex-direction: column; gap: 0; line-height: 1.25; }

/* "Gerar nova previa" embaixo do selo de previas gratis, mesmo tamanho (Andre, 01/10) */
.pv-credits-box { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pv-credits-box .pv-credits { text-align: center; }
.pv-credits-btn { background: var(--ink, #1A2332); color: #fff; border-color: var(--ink, #1A2332); cursor: pointer; font-family: inherit; }

/* botao verde do WhatsApp (o cliente manda a 1a mensagem) */
.pv-btn-wpp { background: #25D366; color: #fff; border: none; text-decoration: none; margin-top: 12px; display: flex; align-items: center; justify-content: center; }

/* botao azul do Telegram (o cliente toca em Iniciar no robo) */
.pv-btn-tg { background: #229ED9; color: #fff; border: none; text-decoration: none; margin-top: 12px; display: flex; align-items: center; justify-content: center; }

/* passo a passo de cada canal na tela de espera */
.pv-passo { font-size: 14px; line-height: 1.45; margin: 16px 0 0; text-align: left; color: var(--ink-soft); }
.pv-canais .pv-opt { font-size: 12.5px; }

/* "Como quer receber?": os 3 canais lado a lado */
.pv-canais-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 2px; }
.pv-canais-row label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; cursor: pointer; }
.pv-canais-row input { width: 18px; height: 18px; accent-color: var(--coral, #E5553C); }

/* Caminho "Musica + videoclipe" (03/10/2026, so TEST): faixa com as etapas embaixo do topo */
.pv-clipe-faixa { background: #1a1614; color: #fff; padding: 12px 16px 10px; text-align: center; }
.pv-clipe-tit { font-size: 14px; line-height: 1.4; margin-bottom: 8px; color: #f3d9c9; }
.pv-clipe-tit b { color: #fff; }
.pv-clipe-faixa ol { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; max-width: 640px; }
.pv-clipe-faixa li { font-size: 12px; color: #9a8c7b; display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; }
.pv-clipe-faixa li span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #5a4d44; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.pv-clipe-faixa li.ok { color: #e9dfd0; }
.pv-clipe-faixa li.ok span { background: #5a4d44; border-color: #5a4d44; }
.pv-clipe-faixa li.on { color: #fff; background: #E0457B; font-weight: 700; }
.pv-clipe-faixa li.on span { border-color: #fff; }
.pv-clipe-aviso { background: #fbe7ee; border: 1px solid #f3c2d3; color: #6b2a40; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin: 10px 0 4px; }
@media (max-width: 520px) { .pv-clipe-faixa li { font-size: 11px; padding: 2px 6px; } .pv-clipe-tit { font-size: 13px; } }

/* Fotos do videoclipe antes do pagamento (03/10/2026) */
.pv-fotos-drop { display: block; border: 2px dashed #E0457B; border-radius: 14px; padding: 24px 16px; text-align: center;
  background: #fff; color: #E0457B; font-weight: 700; cursor: pointer; margin: 6px 0 12px; }
.pv-fotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pv-foto { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #ece2d2; }
.pv-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-foto button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 24px; cursor: pointer; padding: 0; }
.pv-ouvir { border: 0; background: #E0457B; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Botao de confirmar/avancar em verde (03/10/2026, Andre: "gostei do botao verde sempre que for confirmar algo") */
.pv-btn-main { background: #25D366; color: #fff; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .9); }
.pv-btn-main:hover { background: #1DA851; }

/* Musica inteira protegida, ate 3 audicoes por versao (04/10/2026, so TEST) */
.pv-ouvir-aviso { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d9a6; color: #6b4a12; font-size: 14px; line-height: 1.45; text-align: center; }
.pv-ouvir-aviso.esgotou { background: #fbe7ee; border-color: #f3c2d3; color: #6b2a40; }
/* aviso das audicoes em vermelho (04/10/2026, Andre) */
.pv-ouvir-aviso, .pv-ouvir-aviso.esgotou { color: #D32F2F; background: #FFF5F5; border-color: #F5B5B5; font-weight: 600; }

/* "Especial Dia das Criancas" na tela de estilos (07/10/2026, so TEST) */
.pv-especial { margin: 4px 0 18px; padding: 14px 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #FFF3C4 0%, #FFD9EC 50%, #D9ECFF 100%); border: 2px solid #FFC94D; }
.pv-especial-tit { font-weight: 800; font-size: 17px; margin-bottom: 10px; color: #6A2BD9; letter-spacing: .2px; }
.pv-especial .pv-chips button { background: #fff; border-color: #F6B6D8; }
.pv-especial .pv-chips button.on { background: #6A2BD9; border-color: #6A2BD9; color: #fff; }
