:root {
  --creme: #F4EDE0;
  --creme-escuro: #E9DFC9;
  --tinta: #241F1B;
  --vermelho-lab: #8B2E2E;
  --vermelho-lab-escuro: #6E2222;
  --latao: #B08D57;
  --teal: #3B6E71;
  --branco: #FFFDF9;

  --fonte-display: 'Fraunces', serif;
  --fonte-corpo: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--fonte-corpo);
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- Topo ---------- */
.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}
.marca { display: flex; align-items: center; gap: 8px; font-family: var(--fonte-display); font-weight: 600; font-size: 1.3rem; }
.marca-icone { color: var(--vermelho-lab); font-size: 1.4rem; }
.preco-pill {
  background: var(--tinta);
  color: var(--creme);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.preco-pill span { font-weight: 400; opacity: 0.7; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 24px auto 80px;
  padding: 0 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--vermelho-lab);
  font-weight: 600;
  margin: 0 0 12px;
}
.hero-texto h1 {
  font-family: var(--fonte-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 600;
}
.hero-texto h1 em { color: var(--vermelho-lab); font-style: normal; }
.hero-descricao {
  font-size: 1.05rem;
  max-width: 46ch;
  color: #4a433c;
  margin-bottom: 28px;
}

.botao-primario {
  display: inline-block;
  background: var(--vermelho-lab);
  color: var(--branco);
  border: none;
  padding: 15px 28px;
  border-radius: 10px;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.botao-primario:hover { background: var(--vermelho-lab-escuro); transform: translateY(-1px); }
.botao-primario:focus-visible { outline: 3px solid var(--latao); outline-offset: 2px; }

.botao-secundario {
  background: var(--branco);
  border: 1.5px solid var(--tinta);
  color: var(--tinta);
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--fonte-corpo);
  font-weight: 500;
  cursor: pointer;
}
.botao-secundario:focus-visible { outline: 3px solid var(--latao); outline-offset: 2px; }

.botao-texto {
  background: none;
  border: none;
  text-decoration: underline;
  color: #4a433c;
  cursor: pointer;
  font-family: var(--fonte-corpo);
  margin-top: 10px;
}

/* ---------- Slider antes/depois (elemento assinatura) ---------- */
.hero-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(36, 31, 27, 0.18);
  border: 6px solid var(--branco);
}
.hero-slider .cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slider-antes {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
}
#slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.slider-linha {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--branco);
  pointer-events: none;
  transform: translateX(-50%);
}
.slider-linha::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--branco);
  color: var(--tinta);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.slider-label {
  position: absolute;
  bottom: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: rgba(36,31,27,0.7);
  color: var(--branco);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.label-antes { left: 16px; }
.label-depois { right: 16px; }

/* ---------- Envio ---------- */
.secao-envio {
  max-width: 720px;
  margin: 0 auto 90px;
  padding: 0 32px;
  text-align: center;
}
.secao-envio h2 {
  font-family: var(--fonte-display);
  font-size: 2rem;
  margin-bottom: 8px;
}
.secao-descricao { color: #4a433c; margin-bottom: 32px; }

.area-upload {
  background: var(--branco);
  border: 2px dashed var(--latao);
  border-radius: 20px;
  padding: 48px 32px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.area-upload.arrastando { border-color: var(--vermelho-lab); background: var(--creme-escuro); }

.estado-upload { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.oculto { display: none !important; }

.icone-upload {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--creme);
  color: var(--vermelho-lab);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.botoes-upload { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--creme-escuro);
  border-top-color: var(--vermelho-lab);
  border-radius: 50%;
  animation: girar 0.9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

#imagem-preview {
  max-width: 100%;
  max-height: 420px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(36,31,27,0.15);
}
.aviso-marca { font-size: 0.85rem; color: #6a6259; }
.check { color: var(--teal); font-weight: 600; font-size: 1.1rem; }
.erro-texto { color: var(--vermelho-lab); font-weight: 500; }

/* ---------- Info / passos ---------- */
.secao-info {
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.info-numero {
  font-family: var(--fonte-display);
  color: var(--latao);
  font-size: 1.6rem;
  font-weight: 600;
}
.info-item h3 { margin: 8px 0 6px; font-family: var(--fonte-display); }
.info-item p { color: #4a433c; margin: 0; }

/* ---------- Rodapé ---------- */
.rodape {
  text-align: center;
  padding: 28px 32px 48px;
  color: #6a6259;
  font-size: 0.85rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .secao-info { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .botao-primario, .botao-primario:hover { transition: none; transform: none; }
}
