/* ZERTH · estilos
   Coluna de celular (até 440px) centralizada, branca, tipografia Inter em negrito apertado. */

@font-face {
  font-family: 'Inter';
  src: url('inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --btn: #121212;
  --grey: #8a8a8a;
  --grey-2: #9f9f9f;
  --line: #ebebeb;
  --line-2: #e5e5e5;
  --photo: #fafafa;
  --red: #d6181f;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --col: 440px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f1f1f1;
  color: var(--ink);
  font: 500 16px/1.3 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* aviso de modo demonstração (some quando o banco está conectado) */
.demo { padding: 6px 12px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.35; }

.app {
  position: relative;
  width: 100%;
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  display: flow-root;
  margin: 0 auto;
  background: #fff;
  overflow-x: clip;
}

/* barra preta com a contagem */
.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 12px;
  background: #000;
  color: #fff;
  padding-bottom: 1px;
  font-size: 10.2px;
  font-weight: 600;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.head {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.logo { display: block; width: 70px; height: auto; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 60px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15.2px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.985); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid, .btn-like { border-color: var(--btn); background: var(--btn); color: #fff; }
.btn-wide { width: 100%; font-size: 15.7px; letter-spacing: -.04em; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- 1 · votação ---------- */
.card { will-change: transform; }
.panel, .stage { display: block; }
.photo {
  position: relative;
  aspect-ratio: 367 / 424;
  overflow: hidden;
  background: var(--photo);
  user-select: none;
  -webkit-user-select: none;
}
.slides {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -3px;
}
.slides::-webkit-scrollbar { display: none; }
.slides.drag { scroll-snap-type: none; cursor: grabbing; }
.slide { position: relative; flex: 0 0 100%; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130.5%;
  max-width: none;
  height: auto;
  transform: translate(-50%, calc(-50% + 3.5px));
  pointer-events: none;
  -webkit-user-drag: none;
}
.slide img.corpo, .slide img.zoom { left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none; }
.slide img.zoom {
  transform-origin: calc(var(--x) * 100%) calc(var(--y) * 100%);
  transform: translate(calc((.5 - var(--x)) * 100%), calc((.5 - var(--y)) * 100%)) scale(var(--s));
}
.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  transform: translateX(-50%);
  pointer-events: none;
}
.dots i { display: block; width: 6px; height: 6px; border-radius: 999px; background: #d4d4d4; transition: width .3s ease, background .3s ease; }
.dots i.on { width: 18px; background: #000; }
.nav { display: none; }
.count {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: #6b6b6b;
  font-size: 11.4px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.track { height: 3px; background: #cfcfcf; }
.track i { display: block; height: 100%; width: 0; background: #000; transition: width .75s cubic-bezier(.65, 0, .25, 1); }

.info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 16px 0;
}
.p-name { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -.045em; }
.p-fit { flex: none; color: var(--grey-2); font-size: 13.3px; font-weight: 600; letter-spacing: -.037em; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 16px 0; }
.hint { padding: 16px 16px 20px; text-align: center; font-size: 11.8px; font-weight: 600; letter-spacing: -.048em; }

/* ---------- 2 · resultado ---------- */
.results { padding: 24px 12px 28px; }
.r-title { text-align: center; font-size: 25.3px; line-height: 1.1; font-weight: 700; letter-spacing: -.042em; }
.r-sub { margin-top: 7.5px; text-align: center; color: var(--grey); font-size: 13.3px; font-weight: 500; letter-spacing: -.026em; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 19.5px; }
.tile-photo {
  position: relative;
  aspect-ratio: 167 / 176;
  overflow: hidden;
  border-radius: 8px;
  background: #f9f9f9;
}
.tile-photo img { position: absolute; left: 50%; top: 50%; width: 106%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 11.4px;
  font-weight: 600;
  letter-spacing: -.033em;
}
.tick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}
.tick svg { width: 12px; height: 12px; }
.pct {
  position: absolute;
  left: 12px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.tile-name { margin-top: 10px; font-size: 13.3px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.tile-fit { margin-top: 5.5px; color: var(--grey-2); font-size: 11.2px; font-weight: 600; letter-spacing: -.034em; }
.r-note { margin-top: 14px; text-align: center; color: var(--grey); font-size: 12.5px; }
.results .btn { margin-top: 37px; }

/* ---------- 3 · cupom e grupo ---------- */
.final { padding: 74px 11px 32px; }
.rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -11px;
  padding: 0 11px;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item {
  position: relative;
  flex: none;
  width: 129px;
  height: 165px;
  overflow: hidden;
  border-radius: 8px;
  background: #f9f9f9;
}
.rail-item img { position: absolute; left: 50%; top: 50%; width: 129%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.f-title { max-width: 14em; margin: 38px auto 0; text-align: center; font-size: 27.4px; line-height: 1.14; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.f-sub { max-width: 262px; margin: 7.5px auto 0; text-align: center; color: var(--grey); font-size: 13.5px; line-height: 1.3; font-weight: 500; letter-spacing: -.036em; }
.final .btn-wide { margin-top: 19.5px; }
.final .btn-line { margin-top: 10px; }
.coupon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: 59px;
  margin-top: 6px;
  padding: 0 9px 0 16.5px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fafafa;
}
.c-off { color: var(--grey); font-size: 12.5px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.c-code { min-width: 0; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: -.06em; white-space: nowrap; user-select: all; -webkit-user-select: all; }
.c-copy { height: 37px; padding: 0 24px; border: 0; border-radius: 4px; background: #000; color: #fff; font-size: 14.2px; font-weight: 700; letter-spacing: -.05em; }

/* ---------- formulário (bottom sheet) ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 100px;
  background: rgba(0, 0, 0, .04);
}
.sheet {
  position: relative;
  width: 100%;
  max-width: var(--col);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 12px 20px calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 var(--line);
  animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
.grab { display: block; width: 96px; height: 4px; margin: 0 auto 22px; border-radius: 2px; background: #e5e5e5; }
.sheet h2 { margin-top: 1.5px; max-width: 275px; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.037em; }
.g-sub { margin-top: 12px; color: var(--grey); font-size: 13.7px; line-height: 1.25; font-weight: 500; letter-spacing: -.045em; }
.g-sub strong { font-weight: 700; }
.field { margin-top: 26.5px; }
.field + .field { margin-top: 14px; }
.field label { display: block; margin-bottom: 8px; color: var(--grey); font-size: 11.8px; font-weight: 600; letter-spacing: -.055em; }
.field input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 15.3px;
  font-weight: 600;
  letter-spacing: -.039em;
}
.field input::placeholder { color: #b5b5b5; font-weight: 500; }
.field input:focus { border: 1.5px solid #000; padding: 0 17.5px; outline: none; }
.field:focus-within label { color: #000; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.err { display: block; min-height: 0; margin-top: 5px; color: var(--red); font-size: 12.5px; font-weight: 500; }
.err:empty { display: none; }
.perks { margin: 26.5px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 7px; padding: 12.9px 0; border-top: 1px solid #efefef; font-size: 13.4px; font-weight: 600; letter-spacing: -.045em; }
.perks li:first-child { border-top: 0; padding-top: 0; }
.perks i { display: flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #000; color: #fff; }
.perks svg { width: 11px; height: 11px; }
.sheet .btn-wide { flex: none; margin-top: auto; }
.sheet .perks { margin-bottom: 26px; }
.sheet > * { flex: none; }
.err-form { text-align: center; }
.safe { margin-top: 14px; text-align: center; font-size: 12.1px; font-weight: 600; letter-spacing: -.058em; }
.legal { margin-top: 4px; text-align: center; color: #a3a3a3; font-size: 10.5px; font-weight: 500; letter-spacing: -.03em; }

@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
  .track i, .btn { transition: none; }
}

/* telas maiores: o formulário vira cartão no centro da coluna */
@media (min-width: 441px) {
  body { background: #f1f1f1; }
}


/* ---------- primeira tela: miniaturas e cupom travado ---------- */
.locker {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: 59px;
  margin: 14px 16px 28px;
  padding: 0 14px 0 16px;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  background: #fafafa;
}
.lk-ico { display: grid; place-items: center; color: var(--grey); }
.lk-ico svg { width: 18px; height: 18px; }
.lk-off { color: var(--grey); font-size: 12.5px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.lk-code { min-width: 0; overflow: hidden; text-align: center; color: #c4c4c4; font-size: 15px; letter-spacing: .1em; white-space: nowrap; }
.lk-n { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--grey); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- última tela ---------- */
.final .btn-share { height: 52px; margin-top: 14px; }

/* botão de fechar do formulário */
.x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f3f3; color: #444; }
.x svg { width: 14px; height: 14px; }

/* ---------- animações simples ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wIn { from { opacity: 0; transform: translateY(.55em); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes secIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes shine { from { left: -90px; } to { left: 115%; } }

.w { display: inline-block; opacity: 0; transform: translateY(.55em); animation: wIn .6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0ms) + var(--i) * 65ms); }
.bar { animation: barIn .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.logo { animation: fadeUp .6s .1s cubic-bezier(.2, .7, .2, 1) backwards; }
.card.in { animation: cardIn .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.p-fit { animation: fadeUp .5s .3s cubic-bezier(.2, .7, .2, 1) backwards; }
.actions .btn { animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.actions .btn-nope { animation-delay: .35s; }
.actions .btn-like { animation-delay: .42s; }
.hint { animation: fadeUp .5s .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.locker { animation: fadeUp .5s .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.enter { animation: secIn .4s ease backwards; }
.r-sub { animation: fadeUp .5s .35s cubic-bezier(.2, .7, .2, 1) backwards; }
.tile { animation: fadeUp .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.2s + var(--i) * .09s); }
.badge { animation: pop .45s 1s backwards; }
.tick { animation: pop .4s .7s backwards; }
.results .btn { animation: fadeUp .5s .75s cubic-bezier(.2, .7, .2, 1) backwards; }
.rail-item { animation: slideIn .65s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i) * .08s); }
.f-sub { animation: fadeUp .5s .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.final .btn-wide { animation: fadeUp .5s .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.coupon { position: relative; overflow: hidden; animation: pop .55s .65s backwards; }
.coupon::after { content: ""; position: absolute; top: 0; bottom: 0; left: -90px; width: 70px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent); animation: shine 1.3s 1.1s ease-out 1 backwards; pointer-events: none; }
.final .btn-share { animation-delay: 1.05s; }
.scrim { animation: secIn .25s ease backwards; }
@media (hover: hover) {
  .btn { transition: transform .12s ease, opacity .12s ease, box-shadow .2s ease; }
  .btn-solid:hover, .btn-like:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transform: translateY(-1px); }
  .btn-nope:hover, .btn-line:hover { border-color: #bdbdbd; }
  .c-copy:hover { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .w { opacity: 1; transform: none; }
}


/* ---------- no computador: o site vira um celular com moldura ---------- */
.phone, .screen { display: contents; }
.nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .94); color: #000; opacity: 0; transition: opacity .25s ease, transform .2s ease; }
  .nav svg { width: 16px; height: 16px; }
  .nav-prev { left: 10px; } .nav-next { right: 10px; }
  .photo:hover .nav, .nav:focus-visible { opacity: 1; }
  .nav:disabled { opacity: 0 !important; pointer-events: none; }
  .nav:hover { transform: scale(1.06); }
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  body { min-height: 100vh; background: radial-gradient(1100px 700px at 50% 0%, #f7f7f5, #e6e6e3); }
  .demo { position: relative; z-index: 5; }
  .phone {
    position: relative;
    display: block;
    width: 412px;
    height: min(860px, calc(100vh - 48px));
    height: min(860px, calc(100dvh - 48px));
    margin: 24px auto;
    padding: 11px;
    border-radius: 58px;
    background: #121212;
    box-shadow: 0 0 0 2px #2b2b2b, 0 0 0 3px #0a0a0a, 0 40px 90px rgba(0, 0, 0, .28), 0 12px 28px rgba(0, 0, 0, .18);
  }
  /* botões laterais */
  .phone::before { content: ""; position: absolute; left: -5px; top: 150px; width: 3px; height: 62px; border-radius: 2px 0 0 2px; background: #1c1c1c; box-shadow: 0 78px 0 #1c1c1c, 0 -52px 0 -0px #1c1c1c; }
  .phone::after { content: ""; position: absolute; right: -5px; top: 210px; width: 3px; height: 92px; border-radius: 0 2px 2px 0; background: #1c1c1c; }
  .screen {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 47px;
    background: #fff;
    isolation: isolate;
  }
  /* ilha do celular */
  .screen::after { content: ""; position: absolute; z-index: 60; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #050505; pointer-events: none; }
  .app { width: 100%; max-width: none; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
  .app::-webkit-scrollbar { display: none; }
  /* a barra preta fica abaixo da ilha do celular */
  .bar { height: 54px; padding-top: 25px; }
  .locked .app { overflow: hidden; }
  .scrim { position: absolute; z-index: 50; padding-top: 112px; }
  .sheet { border-radius: 24px 24px 0 0; }
  .sheet .btn-wide { margin-bottom: 4px; }
}
