/* Site de vendas · design system Sites Premium (mostruário + prova de impressão + rascunho)
   Celular primeiro: tudo é pensado a 360px e cresce a partir de 768px e 1100px. */

:root {
  --paper: #fafaf7; --paper-2: #f0f0ea; --ink: #17171b; --muted: #5c5c64; --line: #c9c9c2;
  --pencil: #2c55c9; --pencil-soft: #e8edfa; --ok: #1f7a4d; --on-color: #ffffff;
  --prod-estudio: #5b2e83; --prod-principal: #b8331a; --prod-principal-deep: #962914;
  --prod-pack: #155e63; --prod-fotos: #e3a82f; --prod-lite: #55664f; --prod-imagens: #a3245b;
  --font-display: Unbounded, "Arial Black", system-ui, sans-serif;
  --font-body: Figtree, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --radius-sm: 4px; --radius-md: 10px; --radius-pill: 999px;
  --shadow-chip: 0 1px 0 rgba(23,23,27,.08), 0 10px 24px -14px rgba(23,23,27,.45);
  --gutter: 16px; --max: 1120px;
}
[data-p="estudio"]   { --p: var(--prod-estudio);   --on-p: var(--on-color); }
[data-p="principal"] { --p: var(--prod-principal); --on-p: var(--on-color); }
[data-p="pack"]      { --p: var(--prod-pack);      --on-p: var(--on-color); }
[data-p="fotos"]     { --p: var(--prod-fotos);     --on-p: var(--ink); }
[data-p="lite"]      { --p: var(--prod-lite);      --on-p: var(--on-color); }
[data-p="imagens"]   { --p: var(--prod-imagens);   --on-p: var(--on-color); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; overflow-x: clip; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pencil); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.secao { padding: 56px 0; }
.secao--alt { background: var(--paper-2); }
.secao--tinta { background: var(--ink); color: var(--paper); }
.secao--tinta .rotulo { color: #b9b9c0; }
.secao--tinta a { color: #b8c8f5; }

.rotulo { font-family: var(--font-mono); font-size: 12px; line-height: 1.35; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-ligatures: none; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 8.6vw, 60px); line-height: 1.02; }
h2 { font-size: clamp(25px, 6.6vw, 40px); line-height: 1.06; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.2; font-weight: 500; }
.lead { font-size: 18px; line-height: 1.55; margin: 16px 0 0; max-width: 34em; }
.muted { color: var(--muted); }
p { margin: 0 0 12px; }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(250,250,247,.94);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.marca__chips { display: flex; gap: 3px; flex: none; }
.marca__chips i { width: 7px; height: 18px; border-radius: 2px; background: var(--p); }
.marca__nome { font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap; }
.topo__link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: var(--radius-md);
  padding: 8px 12px; white-space: nowrap; font-variant-ligatures: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  padding: 14px 24px; border-radius: var(--radius-md); font-family: var(--font-body); font-weight: 700;
  font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, transform .15s, color .15s; }
.btn--compra { background: var(--prod-principal); color: var(--on-color); }
.btn--compra:hover { background: var(--prod-principal-deep); }
.btn--produto { background: var(--p); color: var(--on-p); }
.btn--produto:hover { filter: brightness(.9); }
.btn--linha { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--linha:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--bloco { width: 100%; }
.seta { font-family: var(--font-mono); font-weight: 400; }

.selo { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper);
  font-variant-ligatures: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 48px; }
.hero__grade { display: grid; gap: 32px; }
.hero__acoes { display: grid; gap: 10px; margin-top: 24px; }
.hero__preco { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 4px 0 0;
  font-variant-ligatures: none; }
.hero__preco strong { color: var(--ink); font-weight: 500; }
.garantias { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 14px; color: var(--muted); }
.garantias li { display: flex; gap: 6px; align-items: baseline; }
.garantias li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* Visual do hero: rascunho → site pronto */
.prova { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr);
  gap: 12px; align-items: center; padding: 18px; }
.prova__marcas { position: absolute; inset: 0; pointer-events: none; }
.prova__marcas i { position: absolute; width: 12px; height: 12px; border: 0 solid var(--ink); }
.prova__marcas i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.prova__marcas i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.prova__marcas i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.prova__marcas i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.rascunho { border: 1.5px dashed var(--pencil); border-radius: var(--radius-md); padding: 12px; color: var(--pencil);
  aspect-ratio: 390 / 700; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rascunho__l { height: 9px; border: 1.5px dashed var(--pencil); border-radius: 3px; }
.rascunho__bloco { flex: 1; border: 1.5px dashed var(--pencil); border-radius: 6px; min-height: 40px; }
.rascunho__nota { font-style: italic; font-size: 13px; line-height: 1.3; margin: 0; }
.prova__seta { font-family: var(--font-mono); color: var(--muted); font-size: 18px; }
.celular { border-radius: 22px; padding: 7px; background: var(--ink); box-shadow: var(--shadow-chip); min-width: 0; }
.celular img { border-radius: 16px; width: 100%; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
.prova__legenda { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.prova__legenda span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-variant-ligatures: none; }

/* ---------- Faixa de IAs ---------- */
.faixa { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.faixa p { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-align: center; font-variant-ligatures: none; }
.faixa strong { color: var(--ink); font-weight: 500; }

/* ---------- Antes x depois ---------- */
.versus { display: grid; gap: 16px; margin-top: 24px; }
.versus__lado { border-radius: var(--radius-md); padding: 20px; }
.versus__lado--ia { border: 1.5px dashed var(--pencil); color: var(--ink); }
.versus__lado--ia .rotulo { color: var(--pencil); }
.versus__lado--metodo { background: var(--prod-principal); color: var(--on-color); box-shadow: var(--shadow-chip); }
.versus__lado--metodo .rotulo { color: #ffe1d8; }
.versus ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Passos ---------- */
.passos { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: passo; }
.passo { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; border-radius: var(--radius-md);
  background: var(--paper); border: 1px solid var(--line); }
.passo__n { grid-row: span 2; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  background: var(--prod-principal); color: var(--on-color); border-radius: var(--radius-sm); padding: 3px 7px;
  height: fit-content; font-variant-ligatures: none; }
.passo h3 { font-size: 17px; }
.passo p { margin: 0; color: var(--muted); font-size: 15px; }
.frase { display: inline-block; font-family: var(--font-mono); font-size: 13px; background: var(--pencil-soft);
  color: var(--ink); border-radius: var(--radius-sm); padding: 2px 6px; font-variant-ligatures: none; }

/* ---------- Vitrine ---------- */
.vitrine { margin-top: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px;
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); scrollbar-width: thin; }
.vitrine__item { scroll-snap-align: start; margin: 0; min-width: 0; }
.vitrine__item .celular { border-radius: 20px; }
.vitrine__item figcaption { margin-top: 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vitrine__item figcaption b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em;
  background: var(--prod-pack); color: var(--on-color); border-radius: var(--radius-sm); padding: 2px 6px;
  font-variant-ligatures: none; }
.vitrine__item figcaption span { font-size: 14px; line-height: 1.35; }
.vitrine__nota { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Números ---------- */
.numeros { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.numero { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; }
.numero__cor { background: var(--p); color: var(--on-p); padding: 12px 14px 10px; font-family: var(--font-display);
  font-weight: 600; font-size: 30px; line-height: 1; }
.numero__txt { padding: 10px 14px 12px; font-size: 14px; line-height: 1.35; }

/* ---------- Preços ---------- */
.precos { display: grid; gap: 16px; margin-top: 28px; align-items: start; }
.preco { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.preco--destaque { border: 2px solid var(--p); box-shadow: var(--shadow-chip); }
.preco__faixa { height: 8px; border-radius: var(--radius-sm); background: var(--p); }
.preco__topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.preco__topo .rotulo { margin: 0; }
.preco__nome { font-size: 22px; line-height: 1.15; font-weight: 500; }
.preco__para { margin: 0; color: var(--muted); font-size: 15px; }
.preco__valor { font-family: var(--font-display); font-weight: 600; font-size: 38px; line-height: 1; margin: 0; }
.preco__valor small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.preco ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preco li { padding-left: 24px; position: relative; font-size: 15px; line-height: 1.45; }
.preco li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.preco__nota { font-size: 14px; color: var(--muted); margin: 0; }
.extras { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 8px; }
.extra { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.extra i { width: 10px; height: 22px; border-radius: 2px; background: var(--p); flex: none; }
.lite-linha { margin-top: 18px; font-size: 15px; text-align: center; color: var(--muted); }

/* ---------- Para quem ---------- */
.para-quem { display: grid; gap: 16px; margin-top: 24px; }
.para-quem > div { padding: 20px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); }
.para-quem ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Garantia ---------- */
.garantia { display: grid; gap: 20px; align-items: center; }
.garantia__selo { width: 116px; height: 116px; border-radius: 50%; border: 1.5px dashed #b9b9c0; display: grid;
  place-items: center; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: .95; }
.garantia__selo small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 400; margin-top: 4px; }

/* ---------- Perguntas ---------- */
.faq { margin-top: 20px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700;
  font-size: 17px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--font-mono);
  font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Chamada final e rodapé ---------- */
.final { text-align: left; }
.final .btn { margin-top: 20px; }
.rodape { padding: 32px 0 120px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; }
.rodape p { margin: 0 0 6px; }

/* ---------- Barra fixa de compra (celular) ---------- */
.barra-compra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(23,23,27,.4);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center;
  justify-content: space-between; transform: translateY(110%); transition: transform .25s ease; }
.barra-compra.visivel { transform: none; }
.barra-compra__txt { min-width: 0; line-height: 1.25; }
.barra-compra__txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-compra__txt span { font-size: 13px; color: var(--muted); }
.barra-compra .btn { min-height: 48px; padding: 10px 18px; font-size: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) { .barra-compra { transition: none; } }

/* ---------- Consentimento ---------- */
.consentimento { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--ink);
  color: var(--paper); border-radius: var(--radius-md); padding: 16px; font-size: 14px; line-height: 1.45;
  box-shadow: var(--shadow-chip); max-width: 520px; margin: 0 auto; }
.consentimento p { margin: 0 0 12px; }
.consentimento a { color: #b8c8f5; }
.consentimento__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.consentimento .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.consentimento .btn--linha { color: var(--paper); border-color: var(--paper); }
.consentimento .btn--linha:hover { background: var(--paper); color: var(--ink); }

/* ---------- Clique com resposta (aperto + onda) ---------- */
.btn, .download, .faq summary { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.btn:active, .download:active { transform: scale(.97); }
.onda { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0);
  animation: onda .6s cubic-bezier(.16,1,.3,1) forwards; pointer-events: none; }
@keyframes onda { to { transform: scale(4); opacity: 0; } }

/* ---------- Seção que sobe como uma folha e imagem que se abre (só CSS) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .folha { animation: folha linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes folha { from { clip-path: inset(8% 3% 0 3% round 40px 40px 0 0); } to { clip-path: inset(0 0 0 0 round 0); } }
    .prova { animation: abre linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes abre { from { transform: scale(.94); opacity: .6; } to { transform: none; opacity: 1; } }
  }
}

/* ---------- Aparecer ao rolar ---------- */
.js .surge { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .surge.dentro { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .surge { opacity: 1; transform: none; transition: none; } }

/* ---------- Páginas internas (obrigado, termos) ---------- */
.pagina { padding: 32px 0 64px; }
.pagina h1 { font-size: clamp(28px, 7.4vw, 48px); }
.texto { max-width: 42em; }
.texto h2 { font-size: 22px; margin: 32px 0 10px; }
.texto ul, .texto ol { padding-left: 22px; }
.downloads { display: grid; gap: 12px; margin: 24px 0; }
.download { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); min-width: 0; }
.download:hover { border-color: var(--ink); }
.download i { width: 12px; align-self: stretch; border-radius: 3px; background: var(--p); flex: none; }
.download b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.download span { font-size: 14px; color: var(--muted); }
.download em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--pencil); flex: none; font-variant-ligatures: none; }
.copiar { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin: 8px 0 0; }
.copiar code { flex: 1 1 220px; font-family: var(--font-mono); font-size: 14px; background: var(--pencil-soft);
  border-radius: var(--radius-sm); padding: 12px; font-variant-ligatures: none; }
.copiar button { min-height: 46px; }
.oferta { margin-top: 32px; padding: 22px; border-radius: var(--radius-md); border: 2px solid var(--prod-estudio);
  box-shadow: var(--shadow-chip); display: grid; gap: 12px; }

/* ---------- Telas maiores ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .secao { padding: 88px 0; }
  .hero { padding: 64px 0 80px; }
  .hero__grade { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 56px; }
  .hero__acoes { grid-auto-flow: column; justify-content: start; }
  .versus { grid-template-columns: 1fr 1fr; }
  .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vitrine { grid-auto-columns: 30%; }
  .numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .precos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .para-quem { grid-template-columns: 1fr 1fr; }
  .garantia { grid-template-columns: auto 1fr; gap: 32px; }
  .downloads { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .vitrine { grid-auto-columns: calc((100% - 4 * 14px - 2 * var(--gutter)) / 5); }
  .barra-compra { display: none; }
  .rodape { padding-bottom: 40px; }
}
