/* ==========================================================================
   Práksis Mídias — estilos da página de venda e da página de obrigado.
   Reaproveita os tokens de css/style.css (--color-praksis, fontes Nomixa).
   ========================================================================== */

.pks-midias {
  background: #fff;
  color: #111;
}

.pks-midias .container {
  margin-top: 0;
}

/* ---------- Cabeçalho simples ---------- */

.pks-topo {
  background: var(--color-bg-light);
  padding: 18px 0;
  border-bottom: 1px solid #ededed;
}

.pks-topo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pks-topo__marca {
  font-family: var(--font-bold);
  font-size: 26px;
  color: var(--color-praksis);
  text-decoration: none;
}

.pks-topo__marca:hover,
.pks-topo__marca:focus {
  color: #ff6d1a;
  text-decoration: none;
}

.pks-topo__selo {
  font-size: 13px;
  color: #666;
}

/* ---------- Hero ---------- */

.pks-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, #fff 100%);
}

.pks-hero__tag {
  display: inline-block;
  background: rgba(235, 94, 40, 0.12);
  color: #b8431a;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.pks-hero__titulo {
  font-family: var(--font-bold);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 20px;
}

.pks-hero__titulo em {
  font-style: normal;
  color: var(--color-praksis);
}

.pks-hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: #555;
  max-width: 620px;
  margin: 0 0 28px;
}

.pks-hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.pks-hero__bullets li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.pks-hero__bullets li::before {
  content: '\f00c';
  font-family: var(--font-fa);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--color-praksis);
}

.pks-hero__grade {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

/* Sem isto, o conteúdo largo da faixa de amostras estica a coluna do grid. */
.pks-hero__texto,
.pks-hero__amostras {
  min-width: 0;
}

.pks-hero__micro {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: #777;
}

/* ---------- Amostras do acervo ---------- */

.pks-mosaico {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pks-mosaico .pks-amostra--alta {
  grid-row: span 2;
  aspect-ratio: auto;
}

.pks-amostra {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(140deg, #f2f2f2 0%, #e8e6e4 100%);
  aspect-ratio: 1 / 1;
}

.pks-amostra--alta {
  aspect-ratio: 9 / 16;
}

.pks-amostra img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pks-amostra::before {
  content: attr(data-formato);
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Enquanto o arquivo não existe, o quadro continua parecendo intencional. */
.pks-amostra.is-vazio::after {
  content: 'amostra do acervo';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0aaa6;
  font-size: 13px;
  text-align: center;
  padding: 0 14px;
}

/* ---------- Problema x solução ---------- */

.pks-comparativo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}

.pks-coluna {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 18px;
  padding: 26px 24px;
}

.pks-coluna h3 {
  font-family: var(--font-bold);
  font-size: 17px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pks-coluna ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pks-coluna li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 13px;
  color: #555;
  line-height: 1.55;
}

.pks-coluna li:last-child {
  margin-bottom: 0;
}

.pks-coluna li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5d5d5;
}

.pks-coluna--dor h3 {
  color: #9a3412;
}

.pks-coluna--virada {
  border-color: rgba(235, 94, 40, 0.35);
  box-shadow: 0 14px 34px rgba(235, 94, 40, 0.09);
}

.pks-coluna--virada h3 {
  color: var(--color-praksis);
}

.pks-coluna--virada li::before {
  background: var(--color-praksis);
}

.pks-coluna--virada li {
  color: #333;
}

/* ---------- Preview ---------- */

.pks-galeria {
  column-count: 3;
  column-gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

.pks-galeria .pks-amostra {
  break-inside: avoid;
  margin-bottom: 16px;
  display: block;
}

.pks-preview__nota {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin: 22px auto 0;
  max-width: 560px;
  line-height: 1.6;
}

.pks-preview__cta {
  text-align: center;
  margin-top: 28px;
}

/* ---------- Oferta ---------- */

.pks-oferta {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 34px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.pks-oferta__valor {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 22px;
  padding: 30px 28px;
}

.pks-oferta__valor h3 {
  font-family: var(--font-bold);
  font-size: 19px;
  margin: 0 0 18px;
}

.pks-lista-valor {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.pks-lista-valor li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.55;
}

.pks-lista-valor li::before {
  content: '\f00c';
  font-family: var(--font-fa);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--color-praksis);
}

.pks-ancora {
  background: var(--color-bg-light);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.pks-ancora__titulo {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin: 0 0 12px;
}

.pks-ancora__linha {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #e0dedc;
  font-size: 14.5px;
  color: #666;
}

.pks-ancora__linha:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pks-ancora__linha strong {
  color: #444;
  white-space: nowrap;
}

.pks-ancora__linha.is-destaque span,
.pks-ancora__linha.is-destaque strong {
  color: var(--color-praksis);
  font-weight: 700;
}

.pks-garantia {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(235, 94, 40, 0.28);
  background: rgba(235, 94, 40, 0.05);
  border-radius: 14px;
  padding: 16px 18px;
}

.pks-garantia i {
  font-size: 22px;
  color: var(--color-praksis);
  line-height: 1.3;
}

.pks-garantia strong {
  display: block;
  font-size: 15px;
  color: #111;
  margin-bottom: 3px;
}

.pks-garantia span {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Seções ---------- */

.pks-secao {
  padding: 72px 0;
}

.pks-secao--cinza {
  background: var(--color-bg-light);
}

.pks-secao__titulo {
  font-family: var(--font-bold);
  font-size: clamp(24px, 3.4vw, 36px);
  text-align: center;
  margin: 0 0 12px;
}

.pks-secao__intro {
  text-align: center;
  color: #666;
  max-width: 680px;
  margin: 0 auto 44px;
  font-size: 17px;
  line-height: 1.6;
}

.pks-card {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 18px;
  padding: 26px 22px;
  height: 100%;
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pks-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.pks-card__ico {
  font-size: 30px;
  color: var(--color-praksis);
  display: block;
  margin-bottom: 14px;
}

.pks-card h6 {
  font-family: var(--font-bold);
  font-size: 17px;
  margin: 0 0 8px;
}

.pks-card p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Passos ---------- */

.pks-passos {
  counter-reset: passo;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pks-passos li {
  counter-increment: passo;
  position: relative;
  padding-left: 62px;
  margin-bottom: 28px;
}

.pks-passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-praksis);
  color: #fff;
  font-family: var(--font-bold);
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pks-passos h6 {
  font-family: var(--font-bold);
  font-size: 17px;
  margin: 6px 0 6px;
}

.pks-passos p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Checkout ---------- */

.pks-checkout {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
  max-width: 520px;
  margin: 0 auto;
}

.pks-checkout__preco {
  text-align: center;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ededed;
}

.pks-checkout__valor {
  display: block;
  font-family: var(--font-bold);
  font-size: 44px;
  line-height: 1.1;
  color: #111;
}

.pks-checkout__valor.is-carregando {
  color: #bbb;
}

.pks-checkout__legenda {
  display: block;
  color: #777;
  font-size: 14px;
  margin-top: 6px;
}

.pks-campo {
  margin-bottom: 16px;
}

.pks-campo label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.pks-campo input[type='text'],
.pks-campo input[type='email'],
.pks-campo input[type='tel'] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pks-campo input:focus {
  outline: none;
  border-color: var(--color-praksis);
  box-shadow: 0 0 0 3px rgba(235, 94, 40, 0.15);
}

.pks-metodos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.pks-metodo {
  position: relative;
  margin: 0;
}

.pks-metodo input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pks-metodo span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #444;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pks-metodo span i {
  font-size: 21px;
  color: var(--color-praksis);
}

.pks-metodo input:checked + span {
  border-color: var(--color-praksis);
  background: rgba(235, 94, 40, 0.06);
  color: #111;
}

.pks-metodo input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(235, 94, 40, 0.25);
}

.pks-botao {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--color-praksis);
  color: #fff;
  font-family: var(--font-bold);
  font-size: 18px;
  padding: 17px 24px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pks-botao:hover:not(:disabled) {
  background: #ff6d1a;
  transform: translateY(-2px);
}

.pks-botao:disabled {
  background: #d8d8d8;
  color: #888;
  cursor: not-allowed;
  transform: none;
}

.pks-botao--secundario {
  background: transparent;
  color: var(--color-praksis);
  border: 2px solid var(--color-praksis);
}

.pks-botao--secundario:hover:not(:disabled) {
  background: rgba(235, 94, 40, 0.08);
  color: var(--color-praksis);
}

.pks-botao--hero {
  display: inline-block;
  width: auto;
  padding: 16px 34px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(235, 94, 40, 0.25);
}

.pks-botao--hero:hover,
.pks-botao--hero:focus {
  color: #fff;
  text-decoration: none;
}

.pks-campo__dica {
  display: block;
  font-size: 12.5px;
  color: #8a8a8a;
  margin-top: 6px;
}

.pks-alerta {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pks-alerta--erro {
  background: #fee2e2;
  color: #b91c1c;
}

.pks-alerta--info {
  background: #fff7ed;
  color: #9a3412;
}

.pks-seguranca {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.pks-faq details {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.pks-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #111;
  list-style: none;
}

.pks-faq summary::-webkit-details-marker {
  display: none;
}

.pks-faq summary::after {
  content: '\f107';
  font-family: var(--font-fa);
  float: right;
  color: var(--color-praksis);
}

.pks-faq details[open] summary::after {
  content: '\f106';
}

.pks-faq p {
  margin: 14px 0 0;
  color: #666;
  line-height: 1.65;
}

/* ---------- Página de obrigado ---------- */

.pks-obrigado {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.pks-obrigado__caixa {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  padding: 42px 32px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}

.pks-obrigado__ico {
  font-size: 52px;
  color: var(--color-praksis);
  margin-bottom: 18px;
  display: block;
}

.pks-obrigado__titulo {
  font-family: var(--font-bold);
  font-size: 28px;
  margin: 0 0 12px;
}

.pks-obrigado__texto {
  color: #666;
  line-height: 1.65;
  margin: 0 0 24px;
}

.pks-qrcode {
  width: 240px;
  height: 240px;
  margin: 0 auto 20px;
  display: block;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.pks-copiacola {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: monospace;
  color: #444;
  background: var(--color-bg-light);
  margin-bottom: 12px;
  word-break: break-all;
  resize: none;
}

.pks-obrigado .pks-botao + .pks-botao {
  margin-top: 12px;
}

.pks-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #eee;
  border-top-color: var(--color-praksis);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: pks-girar 0.9s linear infinite;
}

@keyframes pks-girar {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Rodapé ---------- */

.pks-rodape {
  background: var(--color-bg-dark);
  color: #aaa;
  padding: 34px 0;
  text-align: center;
  font-size: 14px;
}

.pks-rodape a {
  color: #ddd;
  text-decoration: underline;
  margin: 0 8px;
}

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

.pks-rodape__legal {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* ---------- Documentos legais ---------- */

.pks-legal {
  padding: 56px 0 72px;
  max-width: 820px;
  margin: 0 auto;
}

.pks-legal h1 {
  font-family: var(--font-bold);
  font-size: 34px;
  margin: 0 0 8px;
}

.pks-legal__data {
  color: #888;
  font-size: 14px;
  margin-bottom: 34px;
}

.pks-legal h2 {
  font-family: var(--font-bold);
  font-size: 21px;
  margin: 36px 0 12px;
}

.pks-legal p,
.pks-legal li {
  color: #444;
  line-height: 1.75;
  font-size: 16px;
}

.pks-legal ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

/* ---------- Barra de compra fixa (celular) ---------- */

.pks-barra {
  display: none;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 991px) {
  .pks-hero__grade {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pks-oferta {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .pks-oferta .pks-checkout {
    max-width: none;
  }
}

/* ==========================================================================
   Celular
   ========================================================================== */

@media (max-width: 767px) {
  .pks-hero {
    padding: 36px 0 34px;
  }

  .pks-secao {
    padding: 46px 0;
  }

  .pks-secao__intro {
    margin-bottom: 30px;
    font-size: 16px;
  }

  .pks-topo__selo {
    display: none;
  }

  .pks-hero__sub {
    margin-bottom: 22px;
  }

  .pks-hero__bullets {
    margin-bottom: 26px;
  }

  .pks-hero__bullets li {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .pks-botao--hero {
    display: block;
    width: 100%;
    text-align: center;
  }

  .pks-hero__micro {
    text-align: center;
  }

  /* Amostras viram uma faixa que o dedo arrasta, sangrando até a borda. */
  .pks-hero__amostras {
    margin: 0 -15px;
  }

  .pks-mosaico {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 15px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pks-mosaico::-webkit-scrollbar {
    display: none;
  }

  /* Altura única na faixa, para o filme não ficar serrilhado. */
  .pks-mosaico .pks-amostra {
    flex: 0 0 auto;
    height: 232px;
    width: 232px;
    aspect-ratio: auto;
    scroll-snap-align: start;
  }

  .pks-mosaico .pks-amostra--alta {
    width: 131px;
  }

  .pks-comparativo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pks-coluna {
    padding: 22px 20px;
  }

  .pks-galeria {
    column-count: 2;
    column-gap: 12px;
  }

  .pks-galeria .pks-amostra {
    margin-bottom: 12px;
  }

  .pks-oferta__valor {
    padding: 24px 20px;
  }

  /* No celular a comparação vira rótulo em cima, valor embaixo. */
  .pks-ancora__linha {
    display: block;
  }

  .pks-ancora__linha strong {
    display: block;
    margin-top: 2px;
    white-space: normal;
  }

  .pks-checkout {
    padding: 26px 20px;
  }

  .pks-checkout__valor {
    font-size: 38px;
  }

  .pks-faq details {
    padding: 16px 18px;
  }

  .pks-obrigado__caixa {
    padding: 32px 22px;
  }

  /* Barra de compra fixa */
  .pks-midias {
    padding-bottom: 78px;
  }

  .pks-barra {
    display: flex;
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.22s ease;
  }

  .pks-barra.is-visivel {
    transform: translateY(0);
  }

  .pks-barra__info strong {
    display: block;
    font-family: var(--font-bold);
    font-size: 19px;
    color: #111;
    line-height: 1.2;
  }

  .pks-barra__info span {
    font-size: 12px;
    color: #888;
  }

  .pks-barra__botao {
    width: auto;
    flex: 0 0 auto;
    padding: 13px 22px;
    font-size: 16px;
    text-decoration: none;
  }

  .pks-barra__botao:hover,
  .pks-barra__botao:focus {
    color: #fff;
    text-decoration: none;
    transform: none;
  }
}

@media (max-width: 380px) {
  .pks-barra__info strong {
    font-size: 17px;
  }

  .pks-barra__botao {
    padding: 12px 16px;
    font-size: 15px;
  }
}
