/* Papai Noel — protótipo de página de vendas */
:root {
  --red-deep: #5c1016;
  --red: #8f1c2a;
  --red-mid: #b01e32;
  --gold: #e8c35a;
  --gold-light: #f7e48b;
  --gold-dark: #6f5414;
  --cream: #fff6e9;
  --cream-2: #ffe9c8;
  --ink: #2a1414;
  --ink-soft: #5c3a3a;
  --white: #fffdf8;
  --shadow: 0 12px 30px rgba(40, 8, 10, 0.28);
  --radius: 22px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-ui: "Nunito", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--red-deep);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #c42b3e 0%, transparent 55%),
    linear-gradient(180deg, #9b1b2e 0%, #6a121c 45%, #4a0e14 100%);
  min-height: 100svh;
  overflow-x: hidden;
}

.snow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.snow span {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  to { transform: translateY(110vh) translateX(20px); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: 0 auto;
  min-height: 100svh;
}

.view { display: none; padding: 18px 18px 40px; }
.view.is-on { display: block; }
.view.view-screen.is-on {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.hero { text-align: center; padding-bottom: 8px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7.2vw, 2.35rem);
  font-weight: 650;
  line-height: 1.15;
  color: var(--white);
  text-wrap: balance;
  margin: 4px 0 12px;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--cream-2);
  margin-bottom: 16px;
}

.price {
  display: inline-block;
  background: rgba(255, 246, 233, 0.12);
  border: 1px solid rgba(232, 195, 90, 0.45);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-video {
  width: min(230px, 62vw);
  margin: 0 auto 22px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 3px rgba(232, 195, 90, 0.55);
  aspect-ratio: 3 / 4;
  background: #3a0c12;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 0 #8a6a14, 0 14px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:active { transform: translateY(3px); box-shadow: 0 5px 0 #8a6a14, 0 8px 16px rgba(0, 0, 0, 0.25); }
.btn:disabled, .btn[aria-disabled="true"] {
  filter: grayscale(0.2) brightness(0.85);
  cursor: not-allowed;
  box-shadow: 0 5px 0 #6a5a30;
  transform: none;
}

.btn-gold {
  background: linear-gradient(180deg, #f8e79a 0%, #e4bc45 100%);
  color: #4a2a10;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: none;
  min-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  margin-top: 36px;
  background: rgba(255, 248, 238, 0.08);
  border: 1px solid rgba(255, 246, 233, 0.14);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 18px;
  color: var(--gold-light);
}

.steps { display: grid; gap: 14px; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8e79a, #e4bc45);
  color: #4a2a10;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 2px; }
.step p { font-size: 0.98rem; color: var(--cream-2); }

.faq details {
  border-bottom: 1px solid rgba(255, 246, 233, 0.16);
  padding: 12px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--cream-2); margin-top: 8px; font-size: 1rem; }

.foot {
  text-align: center;
  margin-top: 28px;
  font-size: 0.92rem;
  color: rgba(255, 246, 233, 0.7);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.back {
  background: rgba(255, 246, 233, 0.12);
  border: 1px solid rgba(255, 246, 233, 0.2);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.progress {
  flex: 1;
  text-align: right;
  font-weight: 800;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.view h2.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  line-height: 1.2;
  margin: 4px 0 8px;
  text-wrap: balance;
}

.hint { color: var(--cream-2); margin-bottom: 16px; }

.models { display: grid; gap: 14px; margin-bottom: 18px; }

.model {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  padding: 0;
  width: 100%;
}

.model.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 195, 90, 0.45), var(--shadow);
}

.model video {
  width: 112px;
  height: 150px;
  object-fit: cover;
  object-position: center 18%;
  background: #3a0c12;
  display: block;
}

.model-body { padding: 12px 12px 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.model-body h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.model-body p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 4px; }
.pick {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--red-mid);
  min-height: 1.2em;
}

.model.is-selected .pick { color: #8a6a14; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
  outline: none;
}

input[type="text"]:focus {
  box-shadow: 0 0 0 3px var(--gold), var(--shadow);
}

.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.gender button {
  min-height: 58px;
  border-radius: 16px;
  border: 3px solid transparent;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.gender button.is-selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff8e0, #f3d98a);
}

.loading-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70svh;
  padding-bottom: 40px;
}

.spinner {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 6px solid rgba(232, 195, 90, 0.25);
  border-top-color: var(--gold-light);
  animation: spin 0.9s linear infinite;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(232, 195, 90, 0.35);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-box h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.ready-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.4vw, 1.95rem);
  text-align: center;
  line-height: 1.2;
  margin: 4px 0 16px;
  text-wrap: balance;
}

.locked {
  position: relative;
  width: min(260px, 72vw);
  margin: 0 auto 18px;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow), 0 0 0 3px rgba(232, 195, 90, 0.5);
  background: #2a0a0e;
}

.locked video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: blur(14px) brightness(0.72);
  transform: scale(1.08);
  display: block;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(40, 8, 12, 0.28);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-weight: 800;
}

.lock-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid var(--gold);
}

.trust {
  margin-top: 16px;
  background: rgba(255, 248, 238, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.trust li {
  list-style: none;
  padding-left: 28px;
  position: relative;
  color: var(--cream);
  font-size: 0.98rem;
  font-weight: 700;
}

.trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 900;
}

.err {
  color: #ffd0d0;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 1.2em;
  margin: 0 0 10px;
}

@media (max-width: 359px) {
  html { font-size: 16px; }
  .model { grid-template-columns: 96px 1fr; }
  .model video { width: 96px; height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .snow span, .spinner, .dots::after { animation: none; }
}

.locked-sm {
  width: min(88px, 24vw);
  margin-bottom: 6px;
}

.locked-sm .lock-overlay { font-size: 0; padding: 0; }
.locked-sm .lock-overlay > div:not(.lock-icon) { display: none; }
.locked-sm .lock-icon { width: 36px; height: 36px; font-size: 1.1rem; }

#view-pronto .ready-title {
  font-size: clamp(1.28rem, 5.2vw, 1.55rem);
  margin-bottom: 8px;
}
#view-pronto { padding-bottom: 24px; }
#erro-pronto:empty { display: none; }

.bumps-wrap { margin: 2px 0 10px; }

.bumps-title {
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 0.98rem;
  color: var(--gold-light);
}

.bump {
  background: var(--cream);
  color: var(--ink);
  border-radius: 14px;
  margin-bottom: 6px;
  border: 2px solid transparent;
  overflow: hidden;
}

.bump.is-on {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff8e0, #fff1c8);
}

.bump-main {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  cursor: pointer;
}

.bump-main input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #9b1b2e;
  flex-shrink: 0;
}

.bump-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.bump-head strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.bump-price {
  color: #7a5a10;
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.92rem;
}

.benefit {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 1px;
  line-height: 1.25;
}

.bump-extra {
  padding: 0 10px 8px 44px;
}

.bump-extra[hidden] { display: none !important; }

.extra-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.bump-extra input[type="text"] {
  min-height: 42px;
  font-size: 1rem;
  box-shadow: none;
  border: 2px solid rgba(90, 40, 20, 0.12);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  border: 2px solid rgba(90, 40, 20, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-ui);
  color: var(--ink);
}

.chip.is-selected {
  border-color: var(--gold-dark);
  background: #f3d98a;
}

.btn-outline {
  margin-top: 10px;
  background: transparent;
  color: var(--cream);
  box-shadow: none;
  border: 2px solid rgba(247, 228, 139, 0.7);
}

.btn-outline:active { box-shadow: none; transform: translateY(1px); }

.char-count {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream-2);
  margin-top: 4px;
}

textarea {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
  outline: none;
  resize: none;
  line-height: 1.4;
}

textarea:focus { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }

.upsell-box { padding-bottom: 20px; }
.upsell-box .price { margin: 8px 0 10px; }

.thanks {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 70svh;
  padding-bottom: 24px;
}

.thanks-icon { font-size: 3rem; margin-bottom: 8px; }

.resumo {
  text-align: left;
  background: rgba(255, 248, 238, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 16px 0 8px;
  display: grid;
  gap: 8px;
}

.resumo li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.resumo-total {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

#view-pronto { padding-top: 12px; padding-bottom: 20px; }
#view-pronto .topbar { margin-bottom: 6px; }
#view-pronto #btn-pagar {
  font-size: 1.05rem;
  min-height: 52px;
  padding: 10px 16px;
  line-height: 1.2;
}

.produto-texto {
  color: var(--cream);
  margin-bottom: 14px;
  font-size: 1rem;
}

.produto-texto a,
.site-footer a,
.legal-page a {
  color: var(--gold-light);
  font-weight: 800;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 8px 8px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--cream-2);
  border-top: 1px solid rgba(255, 246, 233, 0.16);
}

.site-footer p { margin-bottom: 12px; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.legal-nav a { text-underline-offset: 3px; }

.legal-page {
  padding-bottom: 48px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.4vw, 2.1rem);
  font-weight: 650;
  color: var(--white);
  text-align: center;
  margin: 8px 0 18px;
  line-height: 1.2;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin: 22px 0 10px;
}

.legal-page .lead,
.legal-page p,
.legal-page li {
  color: var(--cream);
  font-size: 1rem;
}

.legal-page .lead {
  text-align: center;
  color: var(--cream-2);
  margin-bottom: 16px;
}

.legal-page .section p + p { margin-top: 10px; }

.legal-page ul {
  margin: 10px 0 0 18px;
  display: grid;
  gap: 8px;
}

.legal-page .back-home { margin-top: 8px; }

.entrega-passos { margin-top: 8px; }
