/* =============================================================
   Matheus Castro — Pacote de Presets (Lightroom)
   presets.css

   Estilos das páginas presets.html e presets-upsell.html.
   Carregado DEPOIS do style.css, então as sobrescritas de token
   abaixo valem só nestas duas páginas.

   Identidade própria destas páginas (pedido do cliente, 13/08):
   layout inspirado no template "Focus" — fundo escuro quente,
   composição centralizada, títulos em serifa com filete verde,
   cards com imagem no topo, faixa full-bleed e rodapé central.
   O filete verde é DECORATIVO (nunca texto essencial).
   ============================================================= */

/* =============================================================
   00 · TOKENS DESTAS PÁGINAS
   ============================================================= */
:root {
  --bg: #1b1a17;            /* escuro quente do template */
  --surface: #121110;        /* cards quase pretos */
  --surface-2: #171613;
  --border: #2b2a26;
  --border-strong: #403e38;
  --text-secondary: #b6b3ad;
  --text-muted: #918e87;

  --verde: #4e8757;          /* filete de título do template */
  --nav-bg: #131210;
}

/* =============================================================
   01 · TOPO
   ============================================================= */
.pre-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pre-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 72px;
  padding-block: var(--s3);
}

.pre-top__brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.pre-top__brand img { width: 158px; height: auto; }

/* separador e slot do segundo logo: aparecem quando o arquivo
   do parceiro chegar (PRESETS_CONFIG.parceiroLogo) */
.pre-top__sep {
  width: 1px;
  height: 24px;
  background: var(--border-strong);
}
.pre-top__parceiro img { width: 120px; height: auto; }

.pre-top__acoes {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.pre-top__volta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--t-fast) ease;
}
.pre-top__volta:hover { color: var(--text); }

.pre-top__sacola {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color var(--t-fast) ease;
}
.pre-top__sacola:hover { color: var(--text); }
.pre-top__sacola svg { width: 20px; height: 20px; }

/* =============================================================
   02 · SEÇÕES CENTRALIZADAS + FILETE VERDE
   ============================================================= */
.pre-secao { padding-block: var(--s8); }

.pre-secao__head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.pre-secao__titulo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.pre-secao__titulo-b {
  display: block;
  font-style: italic;
  color: var(--text-secondary);
}

/* o filete do template */
.filete {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--verde);
  border: 0;
  margin: var(--s4) auto 0;
}

.pre-secao__sub {
  margin-top: var(--s4);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.pre-secao__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s5);
}

/* =============================================================
   04 · CARDS DE ITEM (imagem em cima, texto centralizado)
   ============================================================= */
.itens {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-top: var(--s6);
}
@media (min-width: 768px) {
  .itens { grid-template-columns: repeat(3, 1fr); }
}

.item { background: var(--surface); }

.item__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.item__media .caixa {
  width: 100%;
  height: 100%;
  display: block;
}
.item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.item:hover .item__media img { transform: scale(1.04); }

.item__corpo {
  padding: var(--s5) var(--s4) var(--s6);
  text-align: center;
}

.item__titulo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.item__corpo .filete { margin-top: var(--s3); }

.item__texto {
  margin-top: var(--s4);
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* =============================================================
   05 · GRADE E COMPARADOR ANTES/DEPOIS
   ============================================================= */
.presets-grade {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7) var(--s5);
  margin-top: var(--s7);
}
@media (min-width: 768px) {
  .presets-grade { grid-template-columns: repeat(2, 1fr); }
}

.pcard__info {
  margin-top: var(--s4);
  text-align: center;
}

.pcard__info .micro-label { display: block; }

.pcard__nome {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  letter-spacing: -0.01em;
  margin-top: var(--s2);
}

.pcard__info .filete { margin-top: var(--s3); }

/* --- comparador --- */
.ba {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.ba__depois,
.ba__antes img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__antes {
  position: absolute;
  inset: 0;
  /* recorte controlado pelo cursor */
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

/* "antes" simulado enquanto não existem os pares reais:
   look chapado de material sem tratamento */
.ba__flat {
  filter: saturate(0.42) contrast(0.78) brightness(1.14);
}

.ba__divisor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 1px;
  background: #ffffff;
  pointer-events: none;
}

.ba__punho {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: rgba(18, 17, 16, 0.55);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1;
}

.ba__tag {
  position: absolute;
  top: var(--s3);
  z-index: 2;
  padding: var(--s1) var(--s2);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(18, 17, 16, 0.7);
  color: var(--text-secondary);
  pointer-events: none;
}
.ba__tag--antes { left: var(--s3); }
.ba__tag--depois { right: var(--s3); }

/* o range cobre o quadro inteiro e é o controle real */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
}
.ba:focus-within .ba__punho {
  background: #ffffff;
  color: #121110;
}

/* =============================================================
   05b · A ORIGEM DO PACOTE
   Bloco de respiro: a história por trás dos presets.
   ============================================================= */
.origem__texto {
  max-width: 62ch;
  margin: var(--s6) auto 0;
  text-align: center;
}

.origem__texto p {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text-secondary);
}
.origem__texto p + p { margin-top: var(--s4); }

.origem__fecho {
  margin-top: var(--s6);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* =============================================================
   06 · FAIXA FULL-BLEED
   ============================================================= */
.faixa {
  height: clamp(280px, 46vh, 560px);
  overflow: hidden;
}
.faixa img,
.faixa svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
   07 · AULA (passos numerados, centralizados)
   ============================================================= */
.aula {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-top: var(--s6);
}
@media (min-width: 768px) {
  .aula { grid-template-columns: repeat(3, 1fr); }
}

.aula__passo {
  padding: var(--s6) var(--s4);
  background: var(--surface);
  text-align: center;
}

.aula__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--text-faint);
  margin-bottom: var(--s3);
}

.aula__passo h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
}

.aula__passo .filete { margin-top: var(--s3); }

.aula__passo p {
  margin-top: var(--s4);
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* =============================================================
   08 · OFERTA (centralizada)
   ============================================================= */
.oferta {
  max-width: 520px;
  margin: var(--s6) auto 0;
  padding: var(--s6) var(--s5);
  background: var(--surface);
  text-align: center;
}

.oferta__preco-antigo {
  display: block;
  margin-top: var(--s4);
  color: var(--text-muted);
  text-decoration: line-through;
}

.oferta__preco {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-top: var(--s2);
}

.oferta__nota {
  margin-top: var(--s3);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.oferta__timer { margin-top: var(--s5); }

.oferta__timer-rotulo {
  color: #c4544a; /* o vermelho dos alfinetes do mural */
}

.timer {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s3);
}

.timer__bloco {
  min-width: 68px;
  padding: 12px 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.timer__bloco b {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.timer__bloco span {
  display: block;
  margin-top: 8px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.oferta .btn { width: 100%; margin-top: var(--s5); }

.oferta__compat {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.oferta__aviso {
  display: block;
  max-width: 34ch;
  margin: var(--s2) auto 0;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* =============================================================
   09 · UPSELL
   ============================================================= */
.up-shell {
  max-width: 860px;
  margin-inline: auto;
  padding-block: var(--s7) var(--s8);
}

.up-head { text-align: center; max-width: 640px; margin-inline: auto; }

.up-caixa {
  margin-top: var(--s6);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.up-caixa .caixa {
  width: 100%;
  height: 100%;
  display: block;
}

.sfx {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--surface);
}

.sfx .micro-label { display: block; text-align: center; }

.sfx__lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}
@media (min-width: 640px) {
  .sfx__lista { grid-template-columns: repeat(3, 1fr); }
}

.sfx__grupo {
  padding: var(--s5) var(--s3);
  text-align: center;
  border: 1px solid var(--border);
}

.sfx__grupo b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--verde);
}

.sfx__grupo span {
  display: block;
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--text);
}

.sfx__desc {
  max-width: 46ch;
  margin: var(--s5) auto 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.up-oferta { text-align: center; margin-top: var(--s6); }

.up-oferta__preco {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
  margin-top: var(--s2);
}

.up-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}

.up-ctas .btn--primary { min-width: min(100%, 380px); }

.up-recusa {
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.up-recusa:hover { color: var(--text); border-color: var(--text); }

/* =============================================================
   09b · AULA — PÁGINA DE MÓDULOS (aula.html)
   ============================================================= */
.aula-shell {
  max-width: 860px;
  margin-inline: auto;
  padding-block: var(--s7) var(--s8);
}

.aula-head { text-align: center; max-width: 640px; margin-inline: auto; }

.aula-modulos {
  display: grid;
  gap: var(--s7);
  margin-top: var(--s7);
}

.modulo { background: var(--surface); }

.modulo__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c0b0a;
}
.modulo__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modulo__media--breve {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.modulo__corpo {
  padding: var(--s5) var(--s4) var(--s6);
  text-align: center;
}

.modulo__titulo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin-top: var(--s2);
}

.modulo__texto {
  max-width: 52ch;
  margin: var(--s4) auto 0;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* =============================================================
   10 · RODAPÉ CENTRALIZADO (como no template)
   ============================================================= */
.pre-rodape {
  background: var(--nav-bg);
  padding-block: var(--s6);
  text-align: center;
}

.pre-rodape__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s4);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pre-rodape__links a { transition: color var(--t-fast) ease; }
.pre-rodape__links a:hover { color: var(--text); }

.pre-rodape__copy {
  margin-top: var(--s4);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =============================================================
   11 · MOVIMENTO
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   12 · RESPONSIVO FINO
   ============================================================= */
@media (max-width: 639px) {
  .pre-secao__ctas .btn { width: 100%; }
  .pre-top__brand img { width: 122px; }
  .pre-top__parceiro img { width: 96px; }
  .pre-top__volta { display: none; }
}
