/* LP Site Profissional M7 — M7 Commercial Editorial, versão escura.
   Hero: grafite no tom do fundo das artes (#111214), com a arte como protagonista.
   Oferta: grafite um tom acima, com filete de separação, em eixo central único.
   Rodapé: um tom abaixo. Vermelho apenas em logo, marcações, ícones, condição e CTA. Mobile first. */

:root {
  --cream: #f1eee8;
  --paper: #fffdf8;
  --ink: #080808;
  --dark: #111214; /* tom medido no fundo das artes: hero */
  --dark-2: #17181b; /* oferta: um tom acima */
  --dark-0: #0b0c0d; /* rodapé: um tom abaixo */
  --red: #e31b23;
  --red-dark: #a81219;
  --text: #3b3935;
  --muted: #6b6863;
  --line: #d6d0c8;
  --on-dark: rgba(255, 253, 248, 0.78);
  --on-dark-soft: rgba(255, 253, 248, 0.56);
  --line-dark: rgba(255, 253, 248, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: 20px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Faixa de público (acima do topo) ---------- */
.strip {
  padding: 8px var(--gutter);
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance; /* no máximo 2 linhas no celular, sem palavra sozinha na última */
}

/* ---------- Topo ---------- */
.top { border-bottom: 1px solid var(--line-dark); }
.top__inner { display: flex; align-items: center; height: 60px; }
/* Logo oficial embutido no HTML; a cor vem de currentColor. */
.top__logo {
  display: block;
  width: 64px;
  height: auto;
  aspect-ratio: 1774 / 887;
  color: var(--red);
}

/* ---------- Hero ---------- */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "stage";
}
.intro { grid-area: intro; padding: 26px 0 26px; container-type: inline-size; }
.stage { grid-area: stage; }

/* 1. Selo: traço vermelho + duas linhas limpas (produto · preço / prazo) */
.kicker {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  flex: none;
  width: 22px;
  height: 3px;
  margin-top: calc(0.725em - 1.5px); /* centro da primeira linha */
  background: var(--red);
}
.kicker__text > span { display: block; }
/* O separador entre as linhas fica para leitores de tela, invisível na tela. */
.kicker__text > .kicker__sep {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Título em dois tempos: a situação (branca, menor) e a pergunta (maior, só "envia" em vermelho). */
.title {
  margin-top: 16px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* Cada frase do título em sua própria linha; o balanceamento vale dentro de cada frase. */
.title__line { display: block; }
.title__line--setup {
  font-size: clamp(1.6rem, 7.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
/* "O que você envia?" mede ~8,6em: o tamanho acompanha a largura da coluna do texto (cqi)
   para a pergunta caber sempre em uma linha, sem apertar as letras. */
.title__line--punch {
  margin-top: 10px;
  font-size: clamp(2rem, 10vw, 3.1rem);
  font-size: min(3.1rem, 100cqi / 8.8);
  letter-spacing: -0.04em;
}
.title__accent {
  font-style: normal;
  color: var(--red);
}

.lead {
  margin-top: 16px;
  max-width: 30em;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--on-dark);
  text-wrap: pretty;
}

/* 2. Exemplo — palco escuro no mesmo tom do fundo das artes */
.stage {
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 0 14px;
  background: var(--dark);
}
/* Identificação discreta, abaixo da arte, próxima da seção seguinte */
.stage__cap {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* Arte com os aparelhos inteiros (WebP recortada só no fundo vazio e no reflexo),
   sem ampliar além do tamanho natural, sem sobreposição. */
.stage__art { display: block; }
.stage__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1122px; /* largura natural da arte vertical */
  margin: 0 auto;
  object-fit: contain;
  /* Funde só a margem vazia da arte com o palco; o conteúdo fica intacto. */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent),
    linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent),
    linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-composite: intersect;
}

/* ---------- 3. Oferta: um tom acima, filete no topo, eixo central único ---------- */
.deal {
  background: var(--dark-2);
  border-top: 1px solid var(--line-dark);
  color: var(--paper);
  padding: 30px 0 40px;
  text-align: center;
}
.deal__grid { display: grid; gap: 26px; max-width: 420px; margin: 0 auto; }

.deal__head {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--paper);
}
/* Coluna de largura controlada, centralizada; itens alinhados à esquerda dentro dela */
.deal__list {
  display: grid;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.deal__list li { display: flex; align-items: flex-start; gap: 12px; }
.deal__list li .ico { margin-top: -1px; } /* ícone alinhado à primeira linha quando o item quebra */
.ico {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deal__note {
  margin-top: 18px;
  text-wrap: balance;
  font-size: 13px;
  line-height: 1.45;
  color: #b9b6b0; /* ≥ 4.5:1 sobre o grafite da oferta */
}

/* 4. Bloco de preço: rótulo → R$697 → prazo → condição → CTA */
.deal__buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.deal__price { display: flex; flex-direction: column; align-items: center; }
.deal__product {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.deal__price strong {
  margin-top: 6px;
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--paper);
}
.deal__time {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper);
}
.deal__cond {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  text-wrap: balance;
  color: #b9b6b0; /* cinza claro neutro, ≥ 4.5:1 */
}

/* Garantia de prazo, logo abaixo do CTA de preço: discreta, mas legível (≥ 4.5:1). */
.deal__guarantee {
  max-width: 30em;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: balance;
  color: #b9b6b0;
}
.deal__guarantee-ico {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
  stroke-width: 1.8;
}

/* CTA principal e botão fixo: mesma pílula vermelha, ícone do WhatsApp à esquerda.
   O principal (bloco de preço) pulsa de forma contínua e suave: até 2% maior e um brilho vermelho
   difuso, em ciclos de 3s com pausa. transform/box-shadow não mexem no layout ao redor. */
.cta,
.sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
}
.cta {
  width: 100%;
  margin-top: 22px;
  box-shadow: 0 0 0 0 rgba(227, 27, 35, 0);
  animation: cta-pulse 3s ease-in-out infinite;
  transition: background-color 0.2s var(--ease);
}
.cta:hover, .sticky:hover { background: var(--red-dark); }
.cta:focus-visible, .sticky:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; animation: none; }
.cta__icon { width: 22px; height: 22px; flex: none; }
/* CTA do hero: só no desktop (≥1000px). No celular e no tablet ficam o botão fixo e o CTA de preço.
   Mesma pílula, sem o brilho (o brilho fica só no CTA do bloco de preço). */
.cta.cta--hero { display: none; }
.cta--hero {
  animation: none;
  box-shadow: none;
}
/* 0–70%: sobe e desce (~2,1s); 70–100%: pausa em repouso (~0,9s). */
@keyframes cta-pulse {
  0%, 70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 27, 35, 0); }
  35% { transform: scale(1.02); box-shadow: 0 0 26px 2px rgba(227, 27, 35, 0.45); }
}

/* ---------- Rodapé ---------- */
.foot {
  background: var(--dark-0);
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--on-dark-soft);
}

/* ---------- Entrada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.intro > *, .stage__art { animation: rise 0.6s var(--ease) both; }
.title { animation-delay: 60ms; }
.lead { animation-delay: 120ms; }
.cta--hero { animation: rise 0.6s var(--ease) 140ms both; }
.stage__art { animation-delay: 160ms; }

/* ---------- Botão fixo (celular e tablet, ≤768px) ---------- */
.sticky { display: none; }
@media (max-width: 768px) {
  :root { --sticky-h: 56px; --sticky-gap: 14px; }
  .sticky {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--sticky-gap) + env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    min-height: var(--sticky-h);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0s;
  }
  /* Oculto desde o HTML inicial (classe is-hidden no markup); o script só remove a classe
     quando headline e subtítulo saíram da tela e o CTA principal não está visível.
     visibility: hidden entra depois da animação de saída e impede toque/leitura enquanto oculto. */
  .sticky.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + var(--sticky-gap) + 16px));
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .sticky:active { background: var(--red-dark); }
  /* Sem reserva para o botão fixo: ele some quando o CTA principal (último elemento da oferta)
     entra na tela. 38px entre o CTA e o rodapé; a área segura do iPhone fica no rodapé. */
  .deal { padding-bottom: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cta { transform: none; box-shadow: none; } /* CTA de preço parado, sem pulsação */
}

/* Subtítulo em no máximo 3 linhas no celular */
@media (max-width: 430px) {
  .lead { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .lead { font-size: 14px; letter-spacing: -0.01em; }
}

/* ---------- Telas estreitas ---------- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .kicker { font-size: 12px; letter-spacing: 0.05em; gap: 10px; } /* mínimo 12px */
  .kicker::before { width: 16px; }
  .lead { font-size: 14px; letter-spacing: -0.01em; }
  .deal__list { font-size: 15px; }
  .deal__price strong { font-size: 2.6rem; }
  .cta, .sticky { font-size: 15px; letter-spacing: 0.06em; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 36px; }
  .title__line--setup { font-size: 2.3rem; }
  .title__line--punch { font-size: 3.6rem; font-size: min(3.6rem, 100cqi / 8.8); }
  .lead { font-size: 17px; }
  .stage { padding: 20px var(--gutter) 16px; }
  .stage__img { max-width: 1374px; } /* largura natural da arte horizontal */
  .cta { display: inline-flex; width: auto; min-width: 300px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 40px; --bleed: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter)); }
  .top__inner { height: 72px; }
  .top__logo { width: 76px; }

  .hero__grid {
    grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
    grid-template-areas: "intro stage";
    column-gap: clamp(48px, 5vw, 80px);
  }
  .intro { align-self: center; padding: 44px 0; }
  .title { margin-top: 22px; }
  .title__line--setup { font-size: clamp(1.9rem, 2.35vw, 2.3rem); }
  .title__line--punch { margin-top: 12px; font-size: clamp(3rem, 4.2vw, 4rem); font-size: min(4rem, 100cqi / 8.8); }
  .lead { margin-top: 20px; max-width: 29em; font-size: 17px; }
  .cta.cta--hero { display: inline-flex; margin-top: 28px; }

  .stage {
    margin: 0 calc(-1 * var(--bleed)) 0 0;
    padding: 28px clamp(24px, 2.5vw, 40px) 20px;
  }

  /* Oferta em duas colunas: incluídos à esquerda, decisão (preço → CTA) à direita,
     separadas por um filete vertical e alinhadas pelo topo. */
  .deal { padding: 56px 0 60px; text-align: left; }
  .deal__grid {
    max-width: 1000px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }
  .deal__scope { padding-right: clamp(40px, 5vw, 72px); }
  .deal__list { margin: 22px 0 0; width: auto; }
  .deal__note { margin-top: 20px; text-wrap: pretty; }
  .deal__buy {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 0 clamp(40px, 5vw, 72px);
    border-top: 0;
    border-left: 1px solid var(--line-dark);
  }
  .deal__price { align-items: flex-start; }
  .deal__product { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.3; color: var(--paper); }
  .deal__price strong { margin-top: 18px; font-size: 3.6rem; }
  .deal__time { margin-top: 14px; }
  .cta { min-height: 62px; }
  .deal__buy .cta { margin-top: 26px; }
}
