/*
 * O checkout do Arpejo (checkout.js monta a janela): igual em todas as páginas de vendas. Usa as
 * cores (--brand, --ink…) e o .btn de cada página.
 */
@keyframes pop { from { transform: scale(.2) rotate(-60deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes rot { to { transform: rotate(360deg); } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: rot .8s linear infinite; }
.testnote { font-size: 13px; font-weight: 700; color: #7A5200; background: #FFF4D6; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal .scrim { position: absolute; inset: 0; background: rgba(20, 14, 10, .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 30px; padding: 22px 24px 24px; box-shadow: 0 40px 100px -20px rgba(30, 18, 10, .55); transform: translateY(40px) scale(.96); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.modal.open { pointer-events: auto; }
.modal.open .scrim { opacity: 1; }
.modal.open .sheet { transform: none; opacity: 1; }
.sheet canvas.burst { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F4EDE3; font-size: 16px; cursor: pointer; z-index: 6; }

.stepper { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin: 8px 30px 22px 0; }
.stepper .line { position: absolute; left: 16px; right: 16px; top: 15px; height: 3px; background: var(--line); border-radius: 3px; }
.stepper .line i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--brand)); transition: width .6s cubic-bezier(.3, .8, .3, 1); }
.stp { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 80px; font-size: 12px; font-weight: 700; color: var(--dim); }
.stp:nth-child(2) { align-items: flex-start; }
.stp:last-child { align-items: flex-end; }
.stp .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2.5px var(--line); font-size: 14px; transition: background .4s, box-shadow .4s, color .4s, transform .4s; }
.stp.cur { color: var(--ink); }
.stp.cur .c { box-shadow: inset 0 0 0 2.5px var(--brand); color: var(--brand); transform: scale(1.1); }
.stp.done .c { background: var(--brand); color: #fff; box-shadow: none; }

.co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.co-head img { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.co-head b { display: block; font-size: 18px; line-height: 1.25; }
.co-head span { font-size: 13px; color: var(--dim); font-weight: 600; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { position: relative; border: 2px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; text-align: left; background: #fff; font: inherit; transition: border-color .2s, background .2s, transform .2s; }
.method:hover { transform: translateY(-2px); }
.method.sel { border-color: var(--brand); background: #FBF3EA; }
.method b { display: block; font-size: 16px; }
.method span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.method .tag { position: absolute; top: -10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--keep); color: #fff; }
.calc { margin: 16px 0; padding: 16px; border-radius: 18px; background: #FBF6EF; display: grid; gap: 8px; font-size: 14.5px; }
.calc > div { display: flex; justify-content: space-between; }
.calc .fee { color: var(--del); }
.calc .total { padding-top: 10px; border-top: 1px dashed #E8DCCD; font-weight: 800; font-size: 18px; }
.calc .fee-row { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .35s, opacity .35s; }
.calc.with-fee .fee-row { max-height: 30px; opacity: 1; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field label em { font-style: normal; font-weight: 600; color: var(--dim); }
.field input { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px; border: 2px solid var(--line); outline: none; transition: border-color .2s; width: 100%; }
.field input:focus { border-color: var(--brand); }
.field input.bad { border-color: var(--del); animation: shake2 .35s; }
@keyframes shake2 { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.co-btn { width: 100%; margin-top: 4px; }
.gwrap { display: flex; justify-content: center; min-height: 44px; }
.gwrap .gbtn { max-width: 400px; }
.linkbtn { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#cardWaiting { display: none; }
.secure { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 12px; }
.pane { display: none; }
.pane.on { display: block; animation: paneIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes paneIn { from { opacity: 0; transform: translateX(24px); } }
.qr { width: 220px; height: 220px; margin: 6px auto 14px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 12px; border-radius: 12px; border: 2px solid var(--line); color: var(--ink-2); }
.copy-row button { border: 0; border-radius: 12px; padding: 0 16px; font: inherit; font-weight: 800; color: #fff; background: var(--brand); cursor: pointer; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fav); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }
.note { font-size: 13px; color: var(--dim); text-align: center; margin-top: 10px; }
.err { display: none; font-size: 13.5px; color: var(--del); background: #FFF0F3; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.err.on { display: block; }

.success { text-align: center; }
.check { width: 84px; height: 84px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--keep), #12A672); color: #fff; font-size: 40px; font-weight: 900; box-shadow: 0 16px 40px -12px rgba(25, 201, 135, .6); }
.pane.on .check { animation: pop .8s cubic-bezier(.3, 1.8, .5, 1); }
.done-badge { position: relative; width: 96px; height: 96px; margin: 6px auto 16px; }
.done-badge img { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 20px 44px -16px rgba(232, 85, 30, .55); animation: bob 5s ease-in-out infinite; }
.done-badge .tick { position: absolute; right: -8px; bottom: -6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--keep), #12A672); color: #fff; font-size: 20px; font-weight: 900; border: 4px solid #fff; box-shadow: 0 8px 20px -8px rgba(25, 201, 135, .7); }
.pane.on .done-badge .tick { animation: pop .8s .15s cubic-bezier(.3, 1.8, .5, 1) both; }
.done-title { font-size: 26px; font-weight: 800; }
.linkbtn.back { margin-top: 14px; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.linkbtn.back:hover { color: var(--brand); background: #F7F1E8; }
.dl { margin: 18px 0 8px; }
.dl small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.tut { text-align: left; margin-top: 22px; }
.tut h4 { font-size: 16px; margin-bottom: 12px; }
.tut ol { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.tut li { counter-increment: s; display: flex; gap: 12px; background: #FBF6EF; border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.tut li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; }
.tut li b { color: var(--ink); }
.tut .mock { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .2); font-size: 12.5px; color: var(--ink); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 60; transition: .35s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Etapa do e-mail */
.field input.big { font-size: 17px; padding: 15px 16px; }
.fixmail { display: block; width: 100%; margin: -4px 0 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: #FFF4D6; color: #7A5200; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.fixmail b { text-decoration: underline; }
.login-box { margin: 0 0 12px; padding: 14px; border-radius: 18px; background: #FBF3EA; box-shadow: inset 0 0 0 2px #F5D5C3; }
.login-box > p { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.login-box > p b { color: var(--ink); }
.login-box .field input { background: #fff; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.who-line { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: -4px 0 12px; }
.who-line b { color: var(--ink); word-break: break-all; }
.linkbtn.inline { display: inline; margin: 0; padding: 0; color: var(--brand); text-decoration: underline; font-size: inherit; }
.setpw { text-align: left; margin-top: 18px; padding: 14px; border-radius: 18px; background: #FBF6EF; }
.setpw b { display: block; font-size: 15px; }
.setpw > span { display: block; font-size: 13px; color: var(--dim); margin: 2px 0 10px; }
.setpw .copy-row input { font-size: 15px; }

@media (max-width: 600px) {
  .sheet { padding: 20px 18px 20px; border-radius: 26px; }
  .modal { padding: 10px; }
}

/* Navegador de app (Instagram, Facebook…): a ajuda para baixar pelo Chrome (inapp.js) */
.inapp { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(20, 14, 10, .6); }
.inapp.on { display: flex; }
.inapp-card { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 30px 80px -20px rgba(30, 18, 10, .55); animation: paneIn .35s cubic-bezier(.2, .8, .2, 1); }
.inapp-card > b { display: block; font-size: 18px; margin-right: 34px; }
.inapp-card p { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 10px; }
.inapp-card ol { margin: 0 0 16px 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.inapp-card small { display: block; text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.inapp-k { font-weight: 800; color: var(--ink); background: #F4EDE3; border-radius: 8px; padding: 1px 7px; }
.inapp-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F4EDE3; font-size: 15px; cursor: pointer; }

/* Atendimento em destaque nas telas de download (Tudo pronto e a ajuda do Chrome) */
.help-cta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; text-align: left; margin-top: 16px; padding: 14px; border-radius: 18px; background: #EEFBF5; box-shadow: inset 0 0 0 1.5px #C8F0DE; }
.help-cta .help-ic { font-size: 26px; }
.help-cta b { display: block; font-size: 15px; color: var(--ink); }
.help-cta small { display: block; font-size: 12.5px; color: var(--ink-2); margin: 0; text-align: left; }
.help-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.help-acts .btn { flex: 1; padding: 11px 14px; font-size: 14.5px; }
.help-acts .btn.wa { background: #25D366; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .6); }
.help-acts .btn.wa::after { display: none; }

/* Prova junto de todo botão de pagar: uma linha acima (pay-above) e uma abaixo (trust-row). */
.pay-above { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 2px 0 2px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.trust-row span { white-space: nowrap; }
.field-note { font-size: 12px; font-weight: 600; color: var(--dim); }
@media (min-width: 901px) { .cta-row .trust-row { justify-content: flex-start; margin-top: 0; } }

/* Entrar no chat com o código de licença (support.js) */
.help-code { display: flex; gap: 8px; width: 100%; }
.help-code input { flex: 1; min-width: 0; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); outline: none; background: #fff; }
.help-code input:focus { border-color: var(--brand); }
.help-gate .linkbtn { margin: 0; }

/* Aparelhos extras junto da licença: uma linha discreta, desmarcada, na conta da tela de pagamento;
   marcada, ganha um contador pequeno (1 a 5). O mesmo contador serve à oferta da LP2. */
.calc .extra-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.calc .extra-row label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.calc .extra-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); flex: none; }
.calc .extra-row small { color: var(--dim); }
.stepper-mini { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper-mini[hidden] { display: none; }
.stepper-mini button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 17px; font-weight: 800; line-height: 1; color: var(--brand); cursor: pointer; }
.stepper-mini button:disabled { color: var(--line); cursor: default; }
.stepper-mini b { min-width: 16px; text-align: center; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
