*, *::before, *::after { box-sizing: border-box; }

:root { color-scheme: light; }

body {
  margin: 0;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1f36;
  line-height: 1.5;
}

/* Banner */
.banner { text-align: center; }
.banner img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* Contador */
.countdown {
  width: 100%;
  background: #d90429;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
}
.countdown strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}

/* Layout */
.checkout {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 28px;
  align-items: start;
}
.col-left, .col-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.card {
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 20px;
  margin: 0;
}
h2 { margin: 0 0 16px; font-size: 1.15rem; }
h3 { margin: 4px 0; font-size: 1rem; }

/* Formulário */
label { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 6px; }
input[type="text"], input[type="email"], .stripe-field {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd3dc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}
input[type="text"]:focus, input[type="email"]:focus { outline: 2px solid #635bff; border-color: transparent; }
.stripe-field.StripeElement--focus { outline: 2px solid #635bff; border-color: transparent; }
.stripe-field.StripeElement--invalid { border-color: #d90429; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.error { color: #d90429; font-size: .9rem; margin: 10px 0 0; min-height: 1.2em; }
.success { color: #1a7f37; font-weight: 600; margin: 10px 0 0; }

/* Order bumps */
.bump {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 2px dashed #f0b429;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
}
.bump input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.bump p { margin: 0 0 6px; color: #4f566b; font-size: .95rem; }
.bump-yes { font-size: .85rem; font-weight: 700; color: #b7791f; }
.bump-price { font-size: 1.05rem; }
.bump:has(input:checked) { border-style: solid; }

/* Resumo */
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.summary-list li[hidden] { display: none; }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; padding: 14px 0 18px; }

.pay {
  width: 100%;
  padding: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: #635bff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.pay:hover:not(:disabled) { background: #5249e6; }
.pay:disabled { opacity: .6; cursor: not-allowed; }
.pay.loading::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Segurança */
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: #4f566b; }

/* Depoimentos */
.testimonials { display: flex; flex-direction: column; gap: 14px; }
.stars { color: #f5a623; letter-spacing: 2px; }
blockquote { margin: 6px 0; }
figcaption { font-size: .9rem; font-weight: 600; color: #4f566b; }

.demo-input { width: 100%; border: 0; padding: 0; font-size: 1rem; background: transparent; }

body { -webkit-text-size-adjust: 100%; }
.pay, .bump, input[type="checkbox"] { touch-action: manipulation; }

/* Mobile */
@media (max-width: 800px) {
  .checkout { grid-template-columns: 1fr; margin: 14px auto 32px; gap: 16px; padding: 0 12px; }
  .col-left, .col-right { display: contents; }   /* permite ordenar tudo numa coluna única */
  .col-left, .col-right { gap: 16px; }
  #customer-info { order: 1; }
  #stripe-form { order: 2; }
  .bump:nth-of-type(1) { order: 3; }
  .bump:nth-of-type(2) { order: 4; }
  #summary { order: 5; }
  .trust { order: 6; }
  .testimonials { order: 7; }
  .checkout { display: flex; flex-direction: column; align-items: stretch; }

  .countdown { font-size: .95rem; padding: 7px 12px; position: sticky; top: 0; z-index: 10; }
  .countdown strong { font-size: 1.15rem; }
  .card { padding: 16px; }
  input[type="text"], input[type="email"], .stripe-field { padding: 14px 12px; font-size: 16px; } /* 16px evita zoom no iOS */
  .row { gap: 10px; }
  .pay { padding: 18px; font-size: 1.2rem; min-height: 56px; }
  .bump input { width: 26px; height: 26px; }
}

/* Pessoas online */
.online { margin: 0; padding: 10px 16px 0; text-align: center; font-size: .85rem; color: #4f566b; }
.dot {
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: 0;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
