:root {
  --branco: #fff;
  --nevoa: #faf8f4;
  --linha: #ece7dd;
  --tinta: #1e1a15;
  --tinta-2: #6a6358;
  --ouro: #c79a3e;
  --ouro-forte: #8f6518;
  --ouro-claro: #fbf3df;
  --degrade: linear-gradient(115deg, #f3d98f 0%, #e0b95f 60%, #cf9f43 100%);
  --sombra: 0 8px 28px rgba(30, 26, 21, .07);
  --fonte: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font: 400 16px/1.65 var(--fonte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.travado { overflow: hidden; }
main { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ouro-forte); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.pular:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ouro { background: var(--degrade); color: var(--tinta); box-shadow: 0 8px 22px rgba(199, 154, 62, .3); }
.btn-ouro:hover { box-shadow: 0 12px 28px rgba(199, 154, 62, .42); }
.btn-linha { border: 1.5px solid var(--linha); color: var(--tinta); background: #fff; }
.btn-linha:hover { border-color: var(--ouro); }
.btn-escuro { background: var(--tinta); color: #fff; }
.btn-peq { min-height: 44px; padding: 0 20px; font-size: 14.5px; }

.chapeu { font-size: 14px; font-weight: 600; color: var(--ouro-forte); margin-bottom: 10px; }
.link-zap {
  display: inline-block; margin-top: 12px; color: var(--ouro-forte); font-weight: 600; font-size: 15px;
  text-decoration: none;
}
.link-zap::after { content: ' →'; }
.link-zap:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { border-radius: 50%; }
.marca span { display: flex; flex-direction: column; line-height: 1.15; }
.marca b { font-size: 18px; font-weight: 600; }
.marca small { font-size: 12px; color: var(--tinta-2); }
.menu { display: flex; gap: 24px; }
.menu a { text-decoration: none; font-size: 14.5px; color: var(--tinta-2); }
.menu a:hover { color: var(--tinta); }

/* ---------- abertura ---------- */
.abertura {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 28px;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(28px, 4vh, 56px) clamp(16px, 4vw, 44px) clamp(40px, 6vh, 72px);
}
h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--ouro); white-space: nowrap; }
.lead { margin-top: 18px; max-width: 32em; font-size: clamp(16.5px, 1.5vw, 18px); color: var(--tinta-2); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.centro-flex { justify-content: center; }

.abertura-cel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.anel {
  position: absolute; z-index: -1; top: 50%; left: 50%; width: min(112%, 540px); aspect-ratio: 1;
  transform: translate(-50%, -52%); border-radius: 50%;
  background: radial-gradient(circle, var(--ouro-claro) 0%, #fdf9ef 52%, #fff 72%);
}
.trocar { display: flex; justify-content: center; gap: 10px; }
.trocar button {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; background: #fff;
  border: 2px solid var(--linha); transition: transform .2s ease, border-color .2s ease;
}
.trocar button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.trocar button:hover { transform: translateY(-2px); }
.trocar button[aria-pressed="true"] { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(199, 154, 62, .22); }

/* ---------- iPhone ---------- */
.iphone {
  --l: min(316px, 74vw, calc((100svh - 190px) * .47));
  position: relative; width: var(--l); aspect-ratio: 402 / 874;
  padding: calc(var(--l) * .026);
  border-radius: calc(var(--l) * .165);
  background: linear-gradient(135deg, #a8a297 0%, #e6e1d8 16%, #8e887c 40%, #77726a 62%, #cfc9bd 86%, #8d877b 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 26px 56px rgba(30, 26, 21, .24);
}
.iphone::before {
  content: ''; position: absolute; inset: calc(var(--l) * .009); border-radius: calc(var(--l) * .157);
  background: #050505;
}
.ip-bt { position: absolute; width: 3px; background: linear-gradient(180deg, #b6b0a4, #7c766b); }
.ip-acao { left: -2.5px; top: 17%; height: 4.5%; border-radius: 2px 0 0 2px; }
.ip-vol1 { left: -2.5px; top: 24.5%; height: 8.5%; border-radius: 2px 0 0 2px; }
.ip-vol2 { left: -2.5px; top: 35%; height: 8.5%; border-radius: 2px 0 0 2px; }
.ip-power { right: -2.5px; top: 29%; height: 13.5%; border-radius: 0 2px 2px 0; }
.ip-tela {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--l) * .135); background: #000; color: #fff;
  font-size: calc(var(--l) * .038);
  -webkit-user-select: none; user-select: none;
}
.ip-fundo {
  position: absolute; inset: -12%; background-size: cover; background-position: center;
  filter: blur(16px) saturate(1.2) brightness(.78); transform: scale(1.08);
}
.ip-palco { position: absolute; inset: 0; }
.ip-status {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 8.3%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 9%; pointer-events: none;
  font-size: calc(var(--l) * .041); font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.ip-ilha {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  width: 31%; height: 42%; border-radius: 999px; background: #000;
}
.ip-icones { display: flex; align-items: center; gap: 3px; }
.ip-home {
  position: absolute; z-index: 5; bottom: 1%; left: 50%; transform: translateX(-50%);
  width: 35%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .8); pointer-events: none;
}

.arte {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; aspect-ratio: var(--ar);
  box-shadow: 0 0 40px rgba(0, 0, 0, .3);
}
.arte.entrar { animation: entrar .4s ease both; }
@keyframes entrar { from { opacity: 0; } to { opacity: 1; } }
.arte img, .arte video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.toque {
  position: absolute; border-radius: 999px; -webkit-tap-highlight-color: transparent;
  animation: pulso 2.4s ease-in-out infinite;
}
.toque:nth-of-type(2) { animation-delay: .35s; }
.toque:nth-of-type(3) { animation-delay: .7s; }
.toque:nth-of-type(4) { animation-delay: 1.05s; }
.toque-inteiro { border-radius: 0; animation: none; }
@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 18px rgba(255, 255, 255, .55); }
}
.dica {
  position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); white-space: nowrap;
  padding: .3em 1em; border-radius: 999px; pointer-events: none;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: .9em; line-height: 1.5;
  animation: entrar .5s ease .9s both;
}
.pilula {
  position: absolute; z-index: 6; top: 9.5%; padding: .28em .8em; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .86em; line-height: 1.5;
}
.pilula-esq { left: 4%; }
.pilula-dir { right: 4%; }
.pilula-meio { left: 50%; transform: translateX(-50%); }
.barra-video {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ouro);
  transform: scaleX(0); transform-origin: left;
}
.carregando {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  opacity: 0; transition: opacity .2s; animation: gira .9s linear infinite; pointer-events: none;
}
.carregando.ativo { opacity: 1; }
@keyframes gira { to { transform: rotate(360deg); } }

/* folha de demonstração dentro do iPhone */
.folha {
  position: absolute; z-index: 7; inset: 0; display: flex; align-items: flex-end;
  background: rgba(0, 0, 0, 0); transition: background .25s ease;
}
.folha.aberta { background: rgba(0, 0, 0, .45); }
.folha-caixa {
  width: 100%; padding: 1.1em 1.1em 1.9em; border-radius: 1.4em 1.4em 0 0;
  background: #fff; color: var(--tinta); text-align: center;
  transform: translateY(100%); transition: transform .26s ease;
  line-height: 1.4;
}
.folha.aberta .folha-caixa { transform: none; }
.folha h4 { font-size: 1.2em; font-weight: 600; margin-bottom: .55em; }
.folha p { font-size: .92em; color: var(--tinta-2); }
.folha button {
  margin-top: .75em; padding: .45em 1.5em; border-radius: 999px; background: var(--tinta); color: #fff;
  font-size: .96em;
}
.zap-demo { background: #efe9e0; border-radius: .8em; padding: .7em; margin-bottom: .7em; text-align: left; }
.zap-msg {
  margin-left: auto; width: fit-content; max-width: 92%; padding: .45em .6em .3em;
  border-radius: .6em .1em .6em .6em; background: #d6f7c0 !important; color: #1b2a14 !important; font-size: .92em;
}
.zap-msg time { display: block; text-align: right; font-size: .75em; opacity: .6; }
.mapa-demo {
  position: relative; height: 5.5em; border-radius: .8em; margin-bottom: .7em; overflow: hidden;
  background:
    linear-gradient(28deg, transparent 46%, #fff 46%, #fff 50%, transparent 50%),
    linear-gradient(112deg, transparent 58%, #fff 58%, #fff 62%, transparent 62%),
    linear-gradient(0deg, #dcebd2, #e9f1dd);
}
.mapa-demo i {
  position: absolute; left: 50%; top: 50%; width: 1.3em; height: 1.3em; margin: -1em -.65em;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #d13438; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.mapa-demo i::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.presente-demo { display: flex; justify-content: center; gap: .4em; flex-wrap: wrap; margin-bottom: .7em; }
.presente-demo li { padding: .2em .7em; border-radius: 999px; background: var(--ouro-claro); font-size: .92em; }

/* ---------- seções ---------- */
.secao { padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 44px); }
.secao-clara { background: var(--nevoa); }
.cabeca { max-width: 620px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.cabeca p:not(.chapeu) { margin-top: 10px; color: var(--tinta-2); }
h3 { font-size: 18.5px; font-weight: 600; line-height: 1.3; }
.centro { text-align: center; margin-top: 30px; }

.revelar { transition: opacity .6s ease, transform .6s ease; }
.js .revelar { opacity: 0; transform: translateY(16px); }
.js .revelar.visto { opacity: 1; transform: none; }

/* modelos */
.grade-modelos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  max-width: 1160px; margin: 0 auto;
}
.modelo {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--linha); border-radius: 20px; overflow: hidden;
  box-shadow: var(--sombra);
}
.modelo-capa { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.2; overflow: hidden; background: var(--nevoa); }
.modelo-capa img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.modelo-capa span {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 16px; border-radius: 999px; background: #fff; color: var(--tinta); font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 14px rgba(30, 26, 21, .18);
}
.modelo-capa:hover img { transform: scale(1.04); }
.modelo-info { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.modelo-info p { font-size: 14.5px; line-height: 1.55; color: var(--tinta-2); margin-bottom: auto; }
.selos { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 10px; }
.selos li { padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--ouro-claro); color: var(--ouro-forte); }

/* filtro */
.filtro {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 70px); align-items: center;
  max-width: 1000px; margin: 0 auto;
}
.filtro-cel { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.filtro-tela { position: absolute; inset: 0; background: #bfe0f7; }
.filtro-tela > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.filtro-sua { position: absolute; left: 4%; right: 4%; top: 15%; bottom: 13%; }
.filtro-sua img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.filtro-foto { position: relative; overflow: hidden; }
.filtro-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.filtro-foto:focus-within { outline: 2px solid var(--ouro-forte); outline-offset: 3px; }
.filtro-nota { max-width: 240px; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--tinta-2); }
.filtro-txt > p:not(.chapeu) { margin-top: 10px; color: var(--tinta-2); }
.lista { margin: 14px 0 18px; }
.lista li { position: relative; padding-left: 24px; margin-bottom: 5px; }
.lista li::before {
  content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ouro);
}
.preco { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.preco span { color: var(--tinta-2); }
.preco strong { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.filtro-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ver-promo { color: var(--ouro-forte); font-weight: 600; font-size: 15px; }
.ver-promo:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ensaio */
.ensaios {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px);
  max-width: 820px; margin: 0 auto;
}
.ensaio { position: relative; display: block; border-radius: 20px; overflow: hidden; text-align: left; }
.ensaio img { width: 100%; height: auto; transition: transform .6s ease; }
.ensaio:hover img { transform: scale(1.03); }
.ensaio span {
  position: absolute; left: 12px; bottom: 12px; padding: 3px 13px; border-radius: 999px;
  background: #fff; color: var(--tinta); font-size: 13.5px; font-weight: 500;
}

/* save + contagem */
.dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 40px); max-width: 980px; margin: 0 auto; }
.extra {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px; background: #fff; border: 1px solid var(--linha); border-radius: 20px; box-shadow: var(--sombra);
}
.extra p { color: var(--tinta-2); margin-top: 4px; font-size: 15px; line-height: 1.55; }
.extra-img, .save-arte { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; }
.extra-img img { width: 100%; height: 100%; object-fit: cover; }
.save-arte {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 12px; background: var(--ouro-claro);
  border: 1px solid var(--ouro); outline: 1px solid rgba(199, 154, 62, .4); outline-offset: -7px;
}
.save-topo { font-size: 10px; color: var(--tinta-2); }
.save-titulo { font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--ouro-forte); }
.save-linha { width: 44px; height: 1px; background: var(--ouro); }
.save-data { font-size: 14px; font-weight: 500; color: var(--tinta); }
.save-nome { font-size: 11px; color: var(--tinta-2); }

/* passos */
.passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.passos li { padding: 22px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--linha); }
.passos b {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 50%; background: var(--degrade); font-weight: 600;
}
.passos p { color: var(--tinta-2); margin-top: 2px; font-size: 15px; }

/* final */
.final { text-align: center; padding: clamp(50px, 8vw, 84px) 16px; }
.final img { margin: 0 auto 18px; width: 110px; height: 110px; border-radius: 50%; }
.rodape { text-align: center; padding: 22px 16px 34px; color: var(--tinta-2); font-size: 14px; border-top: 1px solid var(--linha); }
.rodape-nota { font-size: 12.5px; }

.zap-flutuante {
  position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: none; width: 56px; height: 56px; align-items: center; justify-content: center;
  border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(30, 26, 21, .25);
}

/* janelas */
.janela {
  position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 14px; background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: entrar .2s ease both;
}
.janela .iphone { --l: min(330px, 80vw, calc((100svh - 104px) * .46)); }
.janela-fechar {
  position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: #f1eee8; color: var(--tinta); font-size: 26px; line-height: 1;
}
.janela-img img { max-width: 100%; max-height: calc(100svh - 28px); border-radius: 14px; box-shadow: var(--sombra); }

/* ---------- celular e tablet ---------- */
@media (max-width: 1060px) {
  .grade-modelos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
  .menu { display: none; }
}
@media (max-width: 860px) {
  .abertura { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 34px; }
  .lead { margin-inline: auto; }
  .acoes { justify-content: center; }
  .anel { width: min(112vw, 480px); }
  .iphone { --l: min(286px, 74vw); }
  .janela .iphone { --l: min(330px, 84vw, calc((100svh - 104px) * .46)); }
  .filtro { grid-template-columns: minmax(0, 1fr); }
  .filtro-txt { order: -1; text-align: center; }
  .lista { display: inline-block; text-align: left; }
  .preco, .filtro-acoes { justify-content: center; }
  .dupla { grid-template-columns: minmax(0, 1fr); }
  .passos { grid-template-columns: minmax(0, 1fr); }
  .zap-flutuante { display: flex; }
  .topo .btn { display: none; }
  .rodape { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .grade-modelos {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 4px 16px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .grade-modelos::-webkit-scrollbar { display: none; }
  .modelo { flex: 0 0 74vw; scroll-snap-align: center; }
  .extra { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .save-titulo { font-size: 16px; }
  .save-data { font-size: 11px; }
  .save-topo, .save-nome { font-size: 9px; }
  .acoes .btn { width: 100%; }
  .abertura .btn-linha { display: none; }
  .abertura { gap: 26px; padding-top: 24px; }
  .lead { margin-top: 12px; }
  .acoes { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
