:root {
  --green: #0a9d4f;
  --green-dark: #067a3c;
  --pix-teal: #00b7a8;
  --bg: #f6f7f9;
  --text: #1c1f24;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --danger: #e0293e;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

.topbar {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 10px 12px;
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo { height: 68px; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: linear-gradient(135deg, var(--pix-teal), var(--green)); color: #fff; box-shadow: 0 8px 20px rgba(10,157,79,.28); }
.btn--primary:hover { opacity: .95; }
.btn--secondary { background: #eef2f5; color: var(--text); }
.btn--full { width: 100%; }
.btn--large { padding: 18px 24px; font-size: 18px; }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.section { padding: 56px 0; }
.section--alt { background: #fff; }

/* HERO */
.hero { padding: 32px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.hero__mainImage { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.hero__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: .7; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--green); }

.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.badge--sold { background: #fff1e0; color: #b45309; }

.hero__subtitle { font-size: 17px; color: var(--muted); }
.rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { color: #f5a623; letter-spacing: 2px; }

.price-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.price-old { text-decoration: line-through; color: var(--muted); margin-right: 8px; }
.price-tag { background: #ffe3e3; color: var(--danger); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.price-main { font-size: 36px; font-weight: 800; margin: 6px 0; }
.price-pix { background: #e6f9f3; color: var(--green-dark); padding: 8px 12px; border-radius: 8px; font-size: 14px; display: inline-block; }

.hero__bullets { list-style: none; padding: 0; margin: 0 0 20px; }
.hero__bullets li { padding: 6px 0; }

.secure-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* GRIDS */
.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.chip { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; font-weight: 600; font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card__icon { font-size: 28px; }
.card h3 { margin-top: 10px; font-size: 17px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

.kit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.kit-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 15px; }

.rating-summary { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 20px 0 0; }
.rating-summary__num { font-size: 40px; font-weight: 800; }

.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.review__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.review p { font-style: italic; }
.verified { color: var(--green-dark); font-size: 12px; font-weight: 700; }

/* OFERTA */
.offer { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.countdown { text-align: center; margin: 8px 0 24px; }
.countdown__timer { display: flex; justify-content: center; gap: 10px; font-weight: 800; font-size: 22px; margin-top: 6px; }
.countdown__timer div { display: flex; flex-direction: column; align-items: center; background: var(--text); color: #fff; border-radius: 8px; padding: 8px 12px; min-width: 52px; }
.countdown__timer small { font-size: 10px; font-weight: 500; opacity: .8; }

.kits-label { font-weight: 700; font-size: 14px; margin: 4px 0 0; }
.kits { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 20px; }
.kit-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.kit-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,157,79,.12); }
.kit-option input { width: 18px; height: 18px; accent-color: var(--green); }
.kit-option__body { flex: 1; display: flex; flex-direction: column; }
.kit-option__price { text-align: right; }
.kit-option__price .old { display: block; text-decoration: line-through; color: var(--muted); font-size: 12px; }
.kit-option__price .new { display: block; font-weight: 800; font-size: 18px; color: var(--green-dark); }
.kit-option--best { border-color: #f5a623; }
.tag { position: absolute; top: -10px; left: 16px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag--alt { background: #f5a623; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* VIDEOS */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--green-dark);
  border: none; font-size: 20px; display: flex; align-items: center; justify-content: center;
  padding-left: 3px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 10px; text-align: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  pointer-events: none;
}
.video-card.is-playing .video-play, .video-card.is-playing .video-caption { display: none; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 10px; color: var(--muted); }

.footer { padding: 30px 0 90px; text-align: center; font-size: 13px; }

/* STICKY MOBILE CTA */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
.sticky-cta strong { display: block; font-size: 18px; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal__panel {
  position: relative;
  background: #fff;
  max-width: 480px;
  margin: 40px auto;
  border-radius: var(--radius);
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); z-index: 2; }

/* Indicador de etapas */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
.checkout-step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.checkout-step span {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eef2f5; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease;
}
.checkout-step.is-active span, .checkout-step.is-done span { background: var(--green); color: #fff; }
.checkout-step.is-active, .checkout-step.is-done { color: var(--text); }
.checkout-step:not(:last-child)::after {
  content: ''; width: 20px; height: 2px; background: var(--border); margin-left: 6px;
}
.checkout-step.is-done:not(:last-child)::after { background: var(--green); }

/* Resumo do pedido, fixo no topo do modal */
.order-summary {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 18px;
}
.order-summary img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.order-summary__info { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.order-summary strong:last-child { color: var(--green-dark); font-size: 16px; }

/* Formulários do checkout */
#formContact, #formAddress { display: flex; flex-direction: column; gap: 14px; }
.modal__step[hidden] { display: none !important; }
#formContact label, #formAddress label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; }
#formContact input, #formAddress input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
}
#formContact input:focus, #formAddress input:focus { outline: none; border-color: var(--green); }
#formContact input.invalid, #formAddress input.invalid { border-color: var(--danger); }
#formContact input.valid, #formAddress input.valid { border-color: var(--green); }
.field-error { color: var(--danger); font-size: 12px; font-weight: 500; min-height: 14px; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.field-hint.found { color: var(--green-dark); }
.field-hint.error { color: var(--danger); }
.optional { font-weight: 400; text-transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step-trust { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 0; }

.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn--secondary { flex: 0 0 auto; }
.modal__actions .btn--primary { flex: 1; }

.error-msg { color: var(--danger); font-size: 13px; text-align: center; min-height: 18px; margin: 8px 0 0; }

/* PIX */
.pix-box { text-align: center; }
.pix-timer { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pix-timer strong { color: var(--danger); }
.pix-value { font-size: 15px; margin-bottom: 14px; }

#copyPixBtn { margin-bottom: 8px; }
.pix-copy-input {
  width: 100%; text-align: center;
  padding: 8px 10px; margin-bottom: 16px;
  border: 1px dashed var(--border); border-radius: 8px;
  font-size: 11px; color: var(--muted); background: var(--bg);
}

.pix-qr-toggle { margin-bottom: 16px; }
.pix-qr-toggle summary {
  cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600;
  padding: 6px 0;
}
.pix-qr-toggle img { width: 180px; height: 180px; margin: 10px auto 0; border-radius: 10px; border: 1px solid var(--border); }

.pix-instructions { text-align: left; background: var(--bg); border-radius: 10px; padding: 14px 14px 14px 30px; font-size: 13px; color: var(--text); margin: 0 0 16px; }
.pix-instructions li { padding: 3px 0; }

.pix-status { font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.pix-status.paid { color: var(--green-dark); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #f5a623; animation: pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
.pix-status.paid .pulse-dot { background: var(--green); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.3); } }

.success { text-align: center; padding: 10px 0; }
.success__icon { font-size: 48px; display: inline-block; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .kit-list { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-step span { width: 20px; height: 20px; }
  .checkout-step { font-size: 0; }
  .checkout-step span { font-size: 11px; }
}
