/* Página /vendas/: do link ao vídeo de venda. Usa os tokens do clipador.css e do produtos.css.
   O elemento central é o `.vd`: três linhas (link, anúncio lido, roteiro) que se acendem em sequência e o celular com o vídeo.
   Sem JS ou com movimento reduzido, tudo aparece aceso e parado. */
body.produto[data-tone="vendas"] { --tone: #ff6a3d; --on-tone: #1a0a04; }

/* O fluxo animado (`.fl`): janela no estilo do app com cinco telas (link, leitura, roteiro, geração, pronto).
   Sem JS fica parada na tela do roteiro; o JS (vendas-page.js) avança sozinho e os botões de baixo trocam a tela. */
.fl { min-width: 0; }
.fl-win { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: 0 40px 80px -48px var(--shadow); }
.fl-top { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.fl-dots { display: flex; gap: 5px; }
.fl-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.fl-body { position: relative; min-height: 520px; padding: 20px; }
.fl-stage { position: absolute; inset: 0; padding: 20px; display: grid; gap: 12px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.fl-stage.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fl-label, .fl-body small { color: var(--soft); font-size: 12.5px; font-weight: 600; }
.fl-h { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.fl-help { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fl-field { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--primary-text, var(--tone)); border-radius: 999px; background: var(--surface-2, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent); font: 500 14px var(--mono, ui-monospace, monospace); color: var(--ink); overflow: hidden; white-space: nowrap; }
.fl-caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--tone); animation: fl-blink .9s steps(1) infinite; }
@keyframes fl-blink { 50% { opacity: 0; } }
.fl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-body .chip { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2, var(--surface)); font-size: 12.5px; font-weight: 600; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.fl-body .chip.is-on { color: var(--on-tone); background: var(--tone); border-color: var(--tone); }
.fl-list { display: grid; gap: 10px; margin: 6px 0; padding: 0; list-style: none; }
.fl-list li { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 14.5px; font-weight: 600; transition: color .3s ease; }
.fl-list .tick { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%; color: transparent; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.fl-list .tick svg { width: 12px; height: 12px; }
.fl-list li.is-done { color: var(--ink); }
.fl-list li.is-done .tick { color: #fff; background: #34c77b; border-color: #34c77b; }
.fl-list li.is-now { color: var(--ink); }
.fl-list li.is-now .tick { border-color: var(--tone); border-top-color: transparent; animation: fl-spin .8s linear infinite; }
@keyframes fl-spin { to { rotate: 360deg; } }
.fl-bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-2, var(--line)); }
.fl-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tone), #ffb199); transition: width .5s linear; }

.fl-review { display: grid; gap: 10px; }
.fl-prod { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.fl-prod img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; }
.fl-prod b, .fl-prod span, .fl-prod small { display: block; }
.fl-prod b { font-size: 15px; font-weight: 800; }
.fl-prod span { color: var(--muted); font-size: 12.5px; }
.fl-script { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2, var(--surface)); }
.fl-script p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.fl-fit { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-size: 12px; font-weight: 600; }
.fl-fit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c77b; }
.fl-opts { display: grid; gap: 7px; }
.fl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; font-size: 13.5px; font-weight: 600; }
.fl-sw { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); transition: background .25s ease; }
.fl-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .25s ease; }
.fl-sw.is-on { background: var(--tone); }
.fl-sw.is-on::after { translate: 16px 0; }
.fl-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fl-go .button { pointer-events: none; }

.fl-done { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.fl-done-txt { display: grid; gap: 10px; justify-items: start; }
.fl-done-txt .button { pointer-events: none; }
.fl-done-txt .button-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line-strong); box-shadow: none; }
.fl-link { color: var(--primary-text, var(--tone)); font-size: 14px; font-weight: 700; }
.fl-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #14110f; transition: aspect-ratio .45s ease, width .45s ease; }
.fl-frame[data-a="1:1"] { aspect-ratio: 1 / 1; }
.fl-frame[data-a="16:9"] { aspect-ratio: 16 / 9; }
.fl-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-ai { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; color: #fff; background: rgb(0 0 0 / 55%); font-size: 11px; font-weight: 700; }

.fl-steps { display: flex; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.fl-pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 6px; border: 0; border-radius: 10px; color: var(--soft); background: transparent; font: 600 12.5px var(--body, inherit); cursor: pointer; }
.fl-pill i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); font: 600 11px var(--mono, monospace); font-style: normal; }
.fl-pill.is-on { color: var(--ink); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.fl-pill.is-on i { color: var(--on-tone); background: var(--tone); }
.fl-pill:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.fl-cap { margin: 10px 4px 0; color: var(--soft); font-size: 12.5px; }

.fmt { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 32px; }
.fmt-f { margin: 0; display: grid; gap: 10px; }
.fmt-box { height: 260px; aspect-ratio: var(--ar); overflow: hidden; border-radius: 16px; background: #14110f; box-shadow: 0 30px 60px -40px var(--shadow); }
.fmt-box img { width: 100%; height: 100%; object-fit: cover; }
.fmt-f figcaption b, .fmt-f figcaption span { display: block; }
.fmt-f figcaption b { font-size: 15px; font-weight: 800; }
.fmt-f figcaption span { color: var(--muted); font-size: 13.5px; }
.fmt-dur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.fmt-dur li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fmt-dur b { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.fmt-dur span { color: var(--muted); font-size: 13px; }

.v-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; margin: 0; padding: 0; list-style: none; }
.v-gallery figure { margin: 0; display: grid; gap: 10px; }
.v-gallery .shot { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px; background: #14110f; box-shadow: 0 30px 60px -40px var(--shadow); }
.v-gallery .shot img, .v-gallery .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-gallery .shot::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 70%)); }
.v-gallery .cap { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.v-gallery figcaption { color: var(--muted); font-size: 13.5px; }

.v-note { margin-top: 18px; color: var(--soft); font-size: 13px; }
.v-photo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line)); border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 9%, var(--surface)), var(--surface) 75%); }
.v-photo h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.v-photo p { margin-top: 12px; color: var(--muted); }
/* Preço do vídeo de venda (#creditos): 360p e 720p por 15 s, em créditos e "a partir de" na moeda da página (plans_lib.render_sales_price). */
.v-price { margin-top: 28px; padding: 24px; border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--line)); border-radius: 22px; background: var(--surface); }
.v-price h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.v-price > p:not(.v-note) { margin-top: 6px; color: var(--muted); }
.v-price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.v-price-item { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2, var(--surface)); }
.v-price-item b { font-size: 14px; color: var(--muted); font-weight: 600; }
.v-price-credits { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.v-price-from { color: var(--soft); font-size: 14px; }
.v-drop { display: grid; place-items: center; gap: 8px; min-height: 190px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 20px; color: var(--muted); text-align: center; font-weight: 600; }

@media (max-width: 900px) {
  .fl-body { min-height: 540px; }
  .fl-pill span { display: none; }
  .fl-done { grid-template-columns: 110px minmax(0, 1fr); }
  .fmt-box { height: 200px; }
  .fmt-dur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-photo { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .v-price { padding: 20px; }
}
@media (max-width: 520px) { .v-price-list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fl-stage, .fl-frame, .fl-bar i { transition: none; } .fl-caret, .fl-list li.is-now .tick { animation: none; } }

/* Logos das lojas na tela do link do fluxo: pílula clara para o logotipo aparecer nas cores da marca nos dois temas. */
.fl-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.fl-logos li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #e6e1d8; border-radius: 999px; background: #fff; color: #181321; font-size: 13.5px; font-weight: 800; }
.fl-logos img { display: block; width: auto; height: 18px; }
.fl-logos img.ml { height: 16px; }

/* Espaços entre os blocos: os padrões do site (tokens em clipador.css); aqui só o topo e o texto menor. */
body.produto[data-tone="vendas"] .p-hero { padding-top: 120px; }
body.produto[data-tone="vendas"] .section-head p { font-size: 16px; }
@media (max-width: 900px) {
  body.produto[data-tone="vendas"] .p-hero { padding-top: 96px; }
}

/* Imobiliárias e ambientes: texto à esquerda e o vídeo horizontal à direita. */
.v-re { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.v-re h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.v-re p { margin-top: 12px; color: var(--muted); }
.v-re-pts { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.v-re-pts li { display: flex; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 600; }
.v-re-pts li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--tone); }
.v-re-media { margin: 0; display: grid; gap: 10px; }
.v-re-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; background: #14110f; box-shadow: 0 40px 80px -48px var(--shadow); }
.v-re-media figcaption { color: var(--soft); font-size: 12.5px; }
@media (max-width: 900px) { .v-re { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Exemplos: carrossel horizontal infinito (a lista é duplicada no HTML; a segunda metade é aria-hidden e inert) */
.v-carousel { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.v-gallery.v-track { display: flex; width: max-content; gap: 0; animation: v-marquee 52s linear infinite; }
.v-track > li { flex: 0 0 clamp(190px, 22vw, 250px); margin-right: 18px; }
.v-carousel:hover .v-track, .v-carousel:focus-within .v-track, .v-carousel.is-paused .v-track { animation-play-state: paused; }
@keyframes v-marquee { to { transform: translateX(-50%); } }
.v-pause { position: absolute; z-index: 3; top: 8px; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: color-mix(in srgb, var(--bg, #0b0b0c) 82%, transparent); color: var(--ink, #fff); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.v-pause svg { width: 16px; height: 16px; }
.v-pause .i-play, .v-pause[aria-pressed="true"] .i-pause { display: none; }
.v-pause[aria-pressed="true"] .i-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .v-carousel { overflow-x: auto; scroll-snap-type: x proximity; }
  .v-gallery.v-track { animation: none; }
  .v-track > li { scroll-snap-align: start; }
  .v-track > li[aria-hidden="true"], .v-pause { display: none; }
}
