/* Estilo da página da VSL. Cores, raios, sombras e tipos são os tokens do @theme de app/frontend/src/index.css;
   o quadro de planos repete as classes do QuadroDePlanos do painel. */
:root {
  --color-canvas: #0a090b;
  --color-surface: #141317;
  --color-surface-2: #1a191e;
  --color-line: rgb(245 243 240 / 0.075);
  --color-line-strong: rgb(245 243 240 / 0.13);
  --color-fg: #f5f3f0;
  --color-fg-secondary: #a8a29a;
  --color-fg-muted: #8f8981;
  --color-fg-apagado: #726d66;
  --color-primary: #ff6a3d;
  --color-primary-hover: #ff7c54;
  --color-primary-ink: #ff9a7b;
  --color-on-primary: #1a0d05;
  --color-cs-laranja-claro: #ff9a4d;

  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-palco: inset 0 1px 0 rgb(255 154 77 / 0.14), 0 40px 80px -40px rgb(255 106 61 / 0.18), 0 30px 60px -30px rgb(0 0 0 / 0.9);
  --shadow-cs-botao: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 26px -10px rgb(255 106 61 / 0.7);
  --shadow-cs-botao-hover: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 16px 34px -12px rgb(255 106 61 / 0.85);
  --shadow-cs-destaque: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 30px 60px -28px rgb(255 106 61 / 0.55), 0 0 0 0 rgb(255 106 61 / 0);
  --shadow-cs-destaque-pulso: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 30px 60px -28px rgb(255 106 61 / 0.55), 0 0 42px 6px rgb(255 106 61 / 0.42);
  --shadow-cs-selo: 0 8px 20px -8px rgb(255 106 61 / 0.9);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--color-canvas);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: radial-gradient(ellipse 90% 560px at 50% -120px, rgb(255 106 61 / 0.16), transparent 70%) no-repeat, var(--color-canvas);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgb(255 106 61 / 0.26);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.topo {
  display: flex;
  justify-content: center;
  padding: 18px 16px 12px;
}

.topo__logo {
  display: block;
  width: 116px;
  height: 26px;
  filter: drop-shadow(0 4px 10px rgb(255 106 61 / 0.35));
}

main {
  flex: 1;
}

.palco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 472px;
  margin: 0 auto;
  padding: 0 16px;
}

.palco__titulo {
  margin: 0;
  font-size: clamp(19px, 5.3vw, 24px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.destaque {
  color: var(--color-primary);
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-palco);
}

@media (min-width: 600px) {
  .player {
    width: min(100%, max(300px, calc((100svh - 150px) * 9 / 16)));
  }
}

.player__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player__controle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-fg);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease-out);
}

.player__controle:focus-visible {
  outline-offset: -4px;
}

.player__controle:disabled {
  cursor: default;
  background: rgb(0 0 0 / 0.6);
}

.aviso,
.retomar,
.player__erro {
  display: none;
}

[data-fase="previa"] .aviso {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: min(82%, 300px);
  padding: 22px 26px 20px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-xl);
  background: rgb(10 9 11 / 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.9);
  text-align: center;
  animation: cs-subir 0.5s var(--ease-out) both;
}

.aviso__icone {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--color-primary-hover), var(--color-primary));
  color: var(--color-on-primary);
  box-shadow: var(--shadow-cs-botao);
  animation: pulsar 2s var(--ease-out) infinite;
}

.aviso__titulo {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.aviso__acao {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-primary-ink);
}

.so-toque {
  display: none;
}

@media (pointer: coarse) {
  .so-mouse {
    display: none;
  }

  .so-toque {
    display: inline;
  }
}

[data-fase="assistindo"][data-pausado="true"] .player__controle {
  background: rgb(0 0 0 / 0.38);
}

[data-fase="assistindo"][data-pausado="true"] .retomar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--color-primary-hover), var(--color-primary));
  color: var(--color-on-primary);
  box-shadow: var(--shadow-cs-botao);
}

[data-fase="erro"] .player__erro {
  display: block;
  max-width: 80%;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.player__barra {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: rgb(255 255 255 / 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

[data-fase="assistindo"] .player__barra {
  opacity: 1;
}

.player__progresso {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cs-laranja-claro), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms linear;
}

.planos {
  width: 100%;
  max-width: 1152px;
  margin: 48px auto 0;
  padding: 0 16px;
  scroll-margin-top: 16px;
  animation: cs-subir 0.7s var(--ease-out) both;
}

.planos[hidden] {
  display: none;
}

.planos__cabecalho {
  margin-bottom: 32px;
}

.planos__titulo {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.planos__descricao {
  max-width: 70ch;
  margin: 4px 0 0;
  color: var(--color-fg-muted);
}

.quadro {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.quadro__colunas {
  display: grid;
  grid-template-columns: repeat(var(--colunas), minmax(0, 1fr));
}

.quadro__aviso {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 24px;
  color: var(--color-fg-muted);
  text-align: center;
}

.quadro__aviso p {
  margin: 0;
}

.coluna {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 24px 28px;
}

.coluna:not(.coluna--recomendada):not(:first-child) {
  border-left: 1px solid var(--color-line);
}

.coluna--recomendada {
  z-index: 10;
  margin-top: -16px;
  padding-top: 40px;
  border: 1px solid rgb(255 106 61 / 0.7);
  border-radius: var(--radius-xl);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-cs-destaque);
}

.coluna--batendo {
  animation: batimento 1.6s var(--ease-in-out) infinite;
}

.selo {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  box-shadow: var(--shadow-cs-selo);
}

.coluna__nome {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.coluna__resumo {
  min-height: 18.75px;
  min-height: 1lh;
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-fg-muted);
}

.coluna__preco {
  margin-top: 20px;
}

.preco {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.preco__simbolo {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-fg-secondary);
}

.preco__inteiro {
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.preco__resto {
  display: flex;
  flex-direction: column;
}

.preco__fracao {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.preco__mes {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-fg-muted);
}

.coluna__por-hora {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-fg-muted);
}

.coluna__por-hora strong {
  font-weight: 600;
  color: var(--color-fg-secondary);
}

.coluna__capacidade {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.capacidade__horas {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.capacidade__numero {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.capacidade__legenda {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-fg-secondary);
}

.trilha {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
  margin-top: 10px;
}

.trilha__traco {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-line);
}

.trilha__cheio {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, var(--color-cs-laranja-claro), var(--color-primary));
}

.capacidade__cortes {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 600;
}

.capacidade__media {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-fg-muted);
}

.coluna__acao {
  margin-top: 24px;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 12.5px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), translate 160ms var(--ease-out);
}

.botao:active {
  translate: 0 1px;
}

.botao--lg {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
}

.botao--primario {
  background: linear-gradient(to bottom, var(--color-primary-hover), var(--color-primary));
  color: var(--color-on-primary);
  box-shadow: var(--shadow-cs-botao);
}

.botao--primario:hover {
  box-shadow: var(--shadow-cs-botao-hover);
}

.botao--secundario {
  border-color: var(--color-line-strong);
  background: var(--color-surface-2);
  color: var(--color-fg);
}

.botao--secundario:hover {
  border-color: var(--color-fg-muted);
}

.coluna__recursos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.recurso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.375;
  color: var(--color-fg-secondary);
}

.recurso > svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-primary-ink);
}

.recurso strong,
.garantia__titulo {
  font-weight: 600;
  color: var(--color-fg);
}

.recurso__marcas {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  transform: translateY(2px);
}

.pagamento {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 20px 24px;
  border-top: 1px solid var(--color-line);
}

.garantia {
  display: flex;
  align-items: center;
  gap: 12px;
}

.garantia__icone {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-primary-ink);
  box-shadow: 0 0 0 1px var(--color-line);
}

.garantia__titulo {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
}

.garantia__texto,
.pagamento__processador {
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-fg-muted);
}

.garantia__texto {
  display: block;
}

.pagamento__processador {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

@media (max-width: 1100px) {
  .planos {
    max-width: 512px;
  }

  .quadro__colunas {
    grid-template-columns: minmax(0, 1fr);
  }

  .coluna:not(.coluna--recomendada):not(:first-child) {
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }

  .coluna--recomendada {
    margin: 20px 12px;
    padding-top: 36px;
  }

  .pagamento__processador {
    margin-left: 0;
  }
}

.rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 56px;
  padding: 24px 16px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  color: var(--color-fg-apagado);
  font-size: 13px;
}

.rodape a {
  color: inherit;
  text-underline-offset: 2px;
}

.rodape a:hover {
  color: var(--color-fg);
}

@keyframes cs-subir {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes pulsar {
  0% {
    box-shadow: var(--shadow-cs-botao), 0 0 0 0 rgb(255 106 61 / 0.55);
  }
  70%,
  100% {
    box-shadow: var(--shadow-cs-botao), 0 0 0 12px rgb(255 106 61 / 0);
  }
}

/* Batida dupla, como um coração: dois picos curtos e uma pausa, com o brilho laranja acompanhando a escala. */
@keyframes batimento {
  0%,
  42%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-cs-destaque);
  }
  12% {
    transform: scale(1.03);
    box-shadow: var(--shadow-cs-destaque-pulso);
  }
  20% {
    transform: scale(1.008);
  }
  28% {
    transform: scale(1.03);
    box-shadow: var(--shadow-cs-destaque-pulso);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .coluna--batendo {
    box-shadow: var(--shadow-cs-destaque-pulso);
  }
}
