:root {
  --cafe: #2a170d;
  --cafe-2: #3b2214;
  --terracota: #a4532a;
  --ambar: #c8843c;
  --dourado: #d9b77e;
  --creme: #f7f0e6;
  --creme-2: #efe3d2;
  --texto: #2b1d14;
  --texto-2: #6b5646;
  --borda: #e2d2bc;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --raio: 16px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
  font-size: 17px;
  padding-bottom: 76px;
}
img, video { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }
h2 { font-size: 2.3rem; margin: .3rem 0 1.2rem; color: var(--cafe-2); }
h2 em { color: var(--terracota); }
h3 { font-size: 1.6rem; }

.kicker {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 500;
}
.kicker-dark { color: var(--terracota); }

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  color: var(--creme);
  overflow: hidden;
  background: var(--cafe);
}
.hero-img {
  width: 100%;
  height: 74svh;
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 0;
}
.hero-veil {
  position: absolute; left: 0; right: 0; top: 0;
  height: max(74svh, 420px);
  background: linear-gradient(180deg, rgba(42,23,13,0) 55%, rgba(42,23,13,.85) 88%, var(--cafe) 100%);
}
.hero-content {
  position: relative;
  margin-top: -96px;
  padding: 0 24px 48px;
  width: 100%;
  text-align: center;
}
.hero h1 {
  font-size: 3.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: .5rem 0 .4rem;
}
.hero h1 em { display: block; text-transform: none; font-size: 1.15em; color: var(--dourado); letter-spacing: 0; }
.h1-small { display: block; font-size: .32em; letter-spacing: .34em; font-family: var(--sans); font-weight: 400; margin-bottom: .4rem; }
.hero-sub { font-size: 1.05rem; opacity: .92; font-weight: 300; }
.hero-facts { margin: 1rem 0 1.2rem; font-size: 1rem; line-height: 1.5; }
.hero .btn-primary { width: 100%; max-width: 360px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(217,183,126,.55);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 0 0 rgba(200,132,60,.7);
  animation: pulso 2s infinite;
}
@keyframes pulso {
  70% { box-shadow: 0 0 0 9px rgba(200,132,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,132,60,0); }
}
.countdown { margin-top: .9rem; font-size: .85rem; opacity: .8; letter-spacing: .04em; min-height: 1.4em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--terracota); color: #fff; box-shadow: 0 8px 24px -10px rgba(164,83,42,.8); }
.btn-primary:hover { background: #8f4622; }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-ghost { border: 1px solid var(--dourado); color: var(--creme); background: transparent; }
.btn-ghost-dark { border: 1px solid var(--borda); color: var(--cafe-2); background: transparent; }
.btn-full { width: 100%; }
.btn-link { background: none; border: 0; color: var(--texto-2); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; margin-top: .9rem; width: 100%; padding: 8px; }

/* ---------- Seções ---------- */
.section { padding: 64px 24px; max-width: 640px; margin: 0 auto; }
.convite p + p { margin-top: 1rem; }
.convite p { color: var(--texto-2); font-size: 1.08rem; }

.video-wrap { margin-top: 48px; }
.destaques { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 12px; }
.destaques li { padding: 14px 16px; background: #fff; border: 1px solid var(--borda); border-radius: 12px; color: var(--texto-2); font-size: .95rem; line-height: 1.45; }
.destaques span { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--terracota); }
.so-desktop-inline { display: none; }
.video-frame {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--raio);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 78svh;
  margin-inline: auto;
  background: var(--cafe);
  box-shadow: 0 20px 50px -24px rgba(42,23,13,.6);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(42,23,13,.35), rgba(42,23,13,.1) 60%);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  color: #fff; border: 0; cursor: pointer; font: inherit; font-size: 1rem; letter-spacing: .04em;
}
.video-play svg { width: 68px; height: 68px; padding: 18px; border-radius: 50%; background: rgba(247,240,230,.92); fill: var(--terracota); }
.video-play.oculto { display: none; }

.temas { padding-top: 24px; }
.tema {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--borda);
}
.tema-icone { width: 52px; height: 52px; border-radius: 50%; background: var(--creme-2); color: var(--terracota); display: grid; place-items: center; }
.tema-icone svg { width: 28px; height: 28px; }
.tema-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracota); font-weight: 500; }
.tema h3 { margin-top: .2rem; color: var(--cafe-2); }
.tema-quem { font-size: .9rem; color: var(--texto-2); margin-bottom: .6rem; }
.tema p:last-child { color: var(--texto-2); }
.frase {
  font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.3;
  color: var(--cafe-2); text-align: center;
  padding: 32px 8px 0; border-top: 1px solid var(--borda);
}

.detalhes {
  max-width: none;
  background: var(--cafe-2);
  color: var(--creme);
  text-align: center;
}
.info { max-width: 420px; margin: 1.4rem auto 1.8rem; display: grid; gap: 18px; }
.info dt { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dourado); }
.info dd { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }

/* ---------- Inscrição ---------- */
.vagas-linha { display: flex; align-items: center; gap: 10px; color: var(--terracota); font-weight: 500; margin: -.4rem 0 1.4rem; }
.passos { list-style: none; padding: 0; display: flex; gap: 8px; margin-bottom: 16px; counter-reset: p; }
.passos li {
  flex: 1; font-size: .74rem; letter-spacing: .06em; text-align: center;
  color: var(--texto-2); padding-top: 10px; border-top: 3px solid var(--borda);
}
.passos li.ativo { color: var(--terracota); border-color: var(--terracota); font-weight: 500; }
.passos li.feito { border-color: var(--ambar); }

.card {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 24px 20px;
  box-shadow: 0 16px 40px -28px rgba(42,23,13,.45);
}
.card label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 16px; color: var(--cafe-2); }
.opcional { font-weight: 400; color: var(--texto-2); font-size: .8rem; }
.card input:not([type=file]) {
  display: block; width: 100%; margin-top: 6px;
  min-height: 52px; padding: 0 16px;
  border: 1px solid var(--borda); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--texto); background: var(--creme);
}
.card input:focus { outline: 2px solid var(--ambar); outline-offset: 1px; border-color: transparent; }
.card input[aria-invalid=true] { border-color: #b3372b; }
.card input[type=file] { display: block; margin-top: 8px; font-size: .85rem; width: 100%; color: var(--texto-2); }
.card input[type=file]::file-selector-button {
  font: inherit; font-weight: 500; color: var(--cafe-2);
  background: var(--creme-2); border: 1px solid var(--borda); border-radius: 999px;
  padding: 8px 16px; margin-right: 10px; cursor: pointer;
}
.nota { font-size: .85rem; color: var(--texto-2); text-align: center; margin-top: 12px; }
.erro { color: #b3372b; font-size: .9rem; margin-bottom: 12px; }

.valor { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; text-align: center; color: var(--cafe-2); line-height: 1; }
.valor-sub { text-align: center; color: var(--texto-2); margin: .4rem 0 1.4rem; }

.copiar {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px; border: 1.5px dashed var(--ambar); border-radius: 14px;
  background: var(--creme); cursor: pointer; font: inherit; color: var(--cafe-2);
}
.copiar-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: .02em; }
.copiar-acao { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracota); font-weight: 600; }
.copiar.copiado { border-style: solid; border-color: #4d7a4d; }
.copiar.copiado .copiar-acao { color: #4d7a4d; }

.como-pagar { margin: 1.4rem 0 1rem; padding-left: 1.3rem; display: grid; gap: 8px; color: var(--texto-2); font-size: .98rem; }
.como-pagar strong { color: var(--cafe-2); }
.alerta { font-size: .85rem; background: #fbf1e4; border-left: 3px solid var(--ambar); padding: 10px 12px; border-radius: 6px; margin-bottom: 1.2rem; color: var(--texto-2); }

.qr { width: 220px; height: 220px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--borda); padding: 10px; position: relative; display: grid; place-items: center; background: #fff; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-aviso { display: none; }
.qr.qr-pendente img { display: none; }
.qr.qr-pendente { background: repeating-linear-gradient(45deg, var(--creme), var(--creme) 10px, var(--creme-2) 10px, var(--creme-2) 20px); }
.qr.qr-pendente .qr-aviso { display: block; font-size: .85rem; color: var(--texto-2); }

.so-desktop { display: none; }
.so-mobile { display: block; }
body.desktop .so-desktop { display: block; }
body.desktop .so-mobile, body.desktop .so-mobile-item { display: none; }

.obrigado { text-align: center; }
.obrigado-icone { font-size: 2.6rem; }
.obrigado h3 { color: var(--cafe-2); margin: .4rem 0 .8rem; }
.obrigado p { color: var(--texto-2); margin-bottom: 1.4rem; }
.obrigado .btn + .btn { margin-top: 10px; }

.esgotado-aviso { margin-bottom: 1rem; background: #fbf1e4; padding: 14px 16px; border-radius: 12px; color: var(--texto-2); }

/* ---------- Rodapé e CTA fixo ---------- */
.rodape { text-align: center; padding: 56px 24px 40px; background: var(--cafe); color: var(--creme); }
.assinatura { font-size: 1.05rem; margin-bottom: 1rem; }
.assinatura em { font-size: 1.6rem; color: var(--dourado); }

.cta-fixo {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  min-height: 54px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--terracota); color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(42,23,13,.6);
  transform: translateY(140%); transition: transform .3s;
  z-index: 10;
}
.cta-fixo.visivel { transform: none; }

.demo-faixa {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: #1d1d1d; color: #f0db4f; text-align: center;
  font-size: .72rem; letter-spacing: .08em; padding: 6px;
}

/* ---------- Telas maiores ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .cta-fixo { display: none; }
  .hero { min-height: 100vh; display: flex; align-items: center; }
  .hero-img { position: absolute; top: 0; right: 0; width: 52%; height: 100%; min-height: 0; object-position: 50% 15%; }
  .hero-veil { inset: 0; height: auto; background: linear-gradient(90deg, var(--cafe) 46%, rgba(42,23,13,.4) 60%, rgba(42,23,13,0) 75%); }
  .hero-content { max-width: 560px; margin: 0 0 0 7vw; text-align: left; padding: 48px 0; }
  .hero h1 { font-size: 4.6rem; }
  .section { padding: 96px 24px; }
  .convite-bloco {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr;
    gap: 72px;
    align-items: center;
  }
  .convite-bloco .video-wrap { order: -1; margin-top: 0; }
  .convite-bloco .video-frame { max-height: 82vh; margin-inline: 0; }
  .convite h2 { font-size: 3rem; }
  .destaques { grid-template-columns: repeat(3, 1fr); }
  .so-desktop-inline { display: inline-flex; margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Comprovante, WhatsApp e retomada */
.upload-dica { display: block; font-size: .85rem; color: var(--texto-2); font-weight: 400; margin: 2px 0 8px; }
.btn-whats { margin-top: 10px; }
.btn-whats::before { content: ""; width: 18px; height: 18px; margin-right: 8px; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2s-1 .3-3.4-.7c-2.9-1.1-4.7-4.1-4.8-4.3-.1-.2-1.1-1.5-1.1-2.9s.7-2.1 1-2.4c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .6l-.4.6-.4.5c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2s-1 .3-3.4-.7c-2.9-1.1-4.7-4.1-4.8-4.3-.1-.2-1.1-1.5-1.1-2.9s.7-2.1 1-2.4c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .6l-.4.6-.4.5c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.retomar { margin-bottom: 18px; border-color: var(--ambar); }
.retomar p { margin-bottom: 14px; }
