:root {
  --bg: #161c1a;
  --surface: #1f2725;
  --ink: #e3e2da;
  --muted: #8e948d;
  --accent: #9fc7b8;
  --accent-ink: #161c1a;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --secao: clamp(96px, 10vw, 160px);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-xl: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);

  --font: 'TikTok Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.pular { position: absolute; left: var(--m); top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 50; }
.pular:focus { top: 12px; }

.grade {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--m);
}

.titulo { font-size: var(--step-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.suave { color: var(--muted); }

.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.botao:hover { background: var(--ink); }
.botao:active { transform: scale(0.97); }

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px var(--m);
  overflow: hidden;
  background: var(--bg);
  z-index: 2;
}
.hero-nav { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 2; }
.marca { font-weight: 800; font-stretch: 150%; text-decoration: none; font-size: 15px; letter-spacing: 0.02em; }
.hero-nav ul { display: flex; gap: clamp(16px, 4vw, 64px); font-size: var(--step-small); }
.hero-nav a { text-decoration: none; }
.hero-nav ul a:hover { color: var(--accent); }

.nome {
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-weight: 800;
  font-stretch: 150%;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(56px, 9vw, 168px);
  white-space: nowrap;
}
.nome-parte { display: inline-block; }
.nome-janela {
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 0.72em;
  overflow: hidden;
  background: var(--surface);
  transform-origin: 50% 50%;
  z-index: 1;
}
.nome-janela img, .moldura-fotos img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.nome-janela img.ativa, .moldura-fotos img.ativa { opacity: 1; }

.hero-base {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  position: relative; z-index: 2;
}
.hero-frase { grid-column: 1 / 7; font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.hero-base .botao { grid-column: 10 / 13; justify-self: end; }

/* ---------- Problema ---------- */
.problema { padding-block: var(--secao); background: var(--bg); position: relative; z-index: 2; }
.problema .titulo { grid-column: 1 / 5; font-size: var(--step-xl); font-weight: 800; font-stretch: 130%; line-height: 0.95; letter-spacing: -0.03em; }
.problema-texto { grid-column: 6 / 13; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.25; }
.problema-texto .palavra { transition: color 0.2s; }

/* ---------- Projetos ---------- */
.projetos { position: relative; z-index: 2; background: var(--bg); }
.projetos-palco { padding-block: var(--secao) calc(var(--secao) * 0.6); }
.projetos-lista { grid-column: 1 / 9; }
.projetos-lista .titulo { margin-bottom: 48px; }
.projeto + .projeto { margin-top: 8px; }
.projeto-cel { display: none; }
.projeto a { display: block; text-decoration: none; padding-block: 10px; }
.projeto-nome {
  display: block;
  font-size: var(--step-xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.projeto-info { display: block; margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.projeto.ativo .projeto-nome { color: var(--ink); transform: translateX(0.12em); }
.projeto.ativo .projeto-info { color: var(--ink); }

.projetos-moldura { grid-column: 9 / 13; align-self: start; position: sticky; top: 14vh; }
.moldura-fotos { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.projetos-moldura figcaption { position: relative; margin-top: 16px; min-height: 5.5em; font-size: var(--step-small); }
.projetos-moldura figcaption span { position: absolute; inset: 0 0 auto; opacity: 0; transition: opacity 0.4s; }
.projetos-moldura figcaption span.ativa { opacity: 1; }

/* ---------- Como funciona ---------- */
.como { padding-block: var(--secao); background: var(--surface); position: relative; z-index: 2; }
.como-titulo { grid-column: 1 / 5; align-self: start; position: sticky; top: 14vh; font-size: var(--step-xl); font-weight: 800; font-stretch: 130%; line-height: 0.95; letter-spacing: -0.03em; }
.como-coluna { grid-column: 6 / 12; max-width: 600px; }
.etapa + .etapa { margin-top: 72px; }
.etapa > p { font-size: var(--step-body); line-height: 1.6; color: var(--muted); }
.etapa > p b { color: var(--ink); font-weight: 600; }
.etapa > :not(p) { margin-top: 20px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trio img { aspect-ratio: 13 / 20; object-fit: cover; width: 100%; }
.largo { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; width: 100%; }

.conversa { display: flex; flex-direction: column; gap: 8px; background: var(--bg); padding: 20px; border-radius: 16px; }
.balao {
  max-width: 85%;
  background: #e7f6ef; color: #12201b;
  padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  font-size: 16px; line-height: 1.4;
}
.balao.resposta { align-self: flex-end; background: var(--accent); border-radius: 14px 14px 4px 14px; }

/* ---------- Pacotes ---------- */
.pacotes { padding-block: var(--secao); background: var(--bg); position: relative; z-index: 2; }
.pacotes > .titulo { padding-inline: var(--m); margin-bottom: 40px; }
.pacotes-nomes { grid-column: 1 / 7; display: flex; flex-direction: column; align-items: flex-start; }
.pacotes-nomes button {
  position: relative;
  font-size: clamp(3rem, 1.5rem + 5vw, 6rem);
  font-weight: 800;
  font-stretch: 140%;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--muted);
  padding-left: 0.5em;
  text-align: left;
  transition: color 0.25s;
}
.pacotes-nomes button::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 0.26em; height: 0.26em; margin-top: -0.13em;
  border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform 0.35s var(--ease);
}
.pacotes-nomes button[aria-selected='true'] { color: var(--ink); }
.pacotes-nomes button[aria-selected='true']::before { transform: scale(1); }
.pacotes-nomes button:hover { color: var(--ink); }

.pacotes-palco { grid-column: 8 / 13; display: grid; align-content: start; }
.painel { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.painel[hidden] { display: none; }
.painel-numero { font-size: var(--step-lead); display: flex; align-items: baseline; gap: 0.3em; }
.painel-numero span { font-size: clamp(5rem, 2rem + 8vw, 10rem); font-weight: 800; font-stretch: 150%; line-height: 0.85; letter-spacing: -0.05em; }
.painel-numero small { font-size: inherit; }
.painel-texto { font-size: var(--step-body); line-height: 1.55; max-width: 46ch; }
.pacotes-nota { grid-area: 2 / 1; margin-top: 32px; font-size: var(--step-small); color: var(--muted); max-width: 46ch; }

/* ---------- Monte sua mensagem ---------- */
.montar { padding-block: var(--secao); background: var(--surface); position: relative; z-index: 2; }
.montar-escolhas { grid-column: 1 / 7; }
.montar-escolhas .titulo { margin-bottom: 40px; }
.montar fieldset + fieldset { margin-top: 32px; }
.montar legend { font-size: var(--step-small); color: var(--muted); margin-bottom: 12px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes button {
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 16px;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.opcoes button:hover { background: #2b3532; }
.opcoes button:active { transform: scale(0.96); }
.opcoes button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }

.montar-previa {
  grid-column: 8 / 13;
  align-self: center;
  display: flex; flex-direction: column; gap: 20px;
  background: #0f1412;
  padding: 28px;
  border-radius: 20px;
  min-height: 340px;
}
.previa-topo { font-weight: 600; font-size: 16px; padding-bottom: 14px; color: var(--ink); }
.previa-balao { align-self: flex-end; background: var(--accent); border-radius: 14px 14px 4px 14px; font-size: 17px; max-width: 92%; }
.montar-previa .botao { margin-top: auto; align-self: stretch; }

/* ---------- Sobre ---------- */
.sobre { padding-block: var(--secao); background: var(--bg); position: relative; z-index: 2; }
.sobre-fatos { grid-column: 1 / 3; font-size: var(--step-small); display: flex; flex-direction: column; gap: 12px; padding-top: 0.4em; }
.sobre-texto { grid-column: 4 / 13; }
.sobre-texto .titulo { margin-bottom: 32px; color: var(--muted); }
.sobre-texto p { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.22; }
.sobre-texto p + p { margin-top: 1em; }
.sobre-texto b { font-weight: 600; }
/* Retrato como letra capitular: ocupa as quatro primeiras linhas do parágrafo. */
.retrato {
  float: left;
  width: 4.88em; height: 4.88em;
  margin: 0.2em 0.5em 0 0;
  object-fit: cover; object-position: 50% 22%;
}

/* ---------- Dúvidas ---------- */
.duvidas { padding-block: var(--secao); background: var(--bg); position: relative; z-index: 2; }
.duvida + .duvida { margin-top: 80px; }
.pergunta { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.resposta { grid-column: 8 / 13; font-size: var(--step-body); line-height: 1.55; max-width: 42ch; padding-top: 0.35em; }

/* ---------- Chamar ---------- */
.chamar { position: relative; z-index: 2; background: var(--bg); }
.chamar-faixa {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 62svh;
  padding: 24px var(--m);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.15s, color 0.15s;
}
.chamar-faixa:hover, .chamar-faixa:focus-visible { background: var(--accent-ink); color: var(--accent); }
.chamar-frase { position: absolute; left: var(--m); top: 24px; max-width: 26ch; font-size: var(--step-lead); line-height: 1.25; }
.chamar-seta { position: absolute; right: var(--m); top: 24px; width: 48px; height: 48px; transition: transform 0.3s var(--ease); }
.chamar-faixa:hover .chamar-seta { transform: translate(6px, -6px); }
.chamar-palavra {
  display: block; width: max-content;
  font-size: 22vw; font-weight: 900; font-stretch: 150%;
  text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.78;
  white-space: nowrap;
  margin-bottom: -0.02em;
}

/* ---------- Rodapé ---------- */
.rodape {
  position: sticky; bottom: 0; z-index: 1;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: var(--ink); color: var(--bg);
  padding: 40px var(--m) 20px;
}
.rodape-colunas { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); font-size: 16px; }
.rodape-colunas p { color: #4d5450; }
.rodape-colunas .forte { color: var(--bg); font-weight: 600; margin-bottom: 6px; }
.rodape-colunas a { text-decoration: none; }
.rodape-colunas a:hover { text-decoration: underline; }
.rodape-marca {
  grid-row: 3; justify-self: start; width: max-content;
  font-size: 13vw; font-weight: 900; font-stretch: 150%;
  text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.8;
  white-space: nowrap;
}
.rodape-legal { grid-row: 4; margin-top: 20px; font-size: var(--step-small); color: #4d5450; }

/* ---------- WhatsApp fixo ---------- */
.wpp-fixo {
  position: fixed; right: var(--m); bottom: var(--m); z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(calc(100% + 48px)); transition: transform 0.4s var(--ease), background-color 0.2s;
}
.wpp-fixo svg { width: 28px; height: 28px; }
.wpp-fixo.visivel { transform: none; }
.wpp-fixo:hover { background: var(--ink); }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 18px; }
  .hero-nav ul li:not(:last-child) { display: none; }
  .nome { flex-direction: column; align-items: center; gap: 0.1em; font-size: 17vw; line-height: 0.9; }
  .nome-janela { width: calc(100vw - 2 * var(--m)); height: auto; aspect-ratio: 3 / 2; font-size: 1rem; margin-block: 8px; }
  .hero-base { grid-template-columns: 1fr; row-gap: 20px; }
  .hero-frase, .hero-base .botao { grid-column: 1; justify-self: stretch; }

  .grade > * { grid-column: 1 / -1 !important; }
  .problema .titulo { margin-bottom: 24px; }
  .problema-texto { font-size: 1.375rem; }

  .projetos-moldura { display: none; }
  .projeto-cel { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 8px; }
  .projeto + .projeto { margin-top: 40px; }
  .projeto-nome { font-size: 9.5vw; color: var(--ink); }
  .projeto-info { color: var(--ink); font-size: 14px; }
  .projeto.ativo .projeto-nome { transform: none; }

  .como-titulo { position: static; margin-bottom: 40px; }
  .etapa + .etapa { margin-top: 56px; }

  .pacotes-palco { margin-top: 32px; }
  .pacotes-nomes button { font-size: 12vw; }
  .painel-numero span { font-size: 22vw; }
  .painel .botao { align-self: stretch; }

  .montar-previa { margin-top: 40px; min-height: 0; }

  .sobre-fatos { order: 2; margin-top: 32px; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .sobre-texto p { font-size: 1.375rem; }

  .duvida + .duvida { margin-top: 56px; }
  .resposta { margin-top: 12px; padding-top: 0; }

  .chamar-faixa { min-height: 46svh; }
  .chamar-frase { font-size: 17px; max-width: 20ch; }
  .chamar-seta { width: 32px; height: 32px; }

  .rodape-colunas { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .rodape { min-height: 80svh; }
}

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