* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #fefdf8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 22px 60px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
}
.brand svg { width: 26px; height: 26px; }
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ============ RESUMO DO PLANO ============ */
.plan-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.plan-card .plan-info { flex: 1; min-width: 0; }
.plan-card .plan-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 4px;
}
.plan-card .plan-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.plan-card .plan-sub {
  font-size: 13px;
  color: #6b7280;
}
.plan-card .plan-price {
  text-align: right;
  flex-shrink: 0;
}
.plan-card .plan-price .strike {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  margin-bottom: 2px;
  line-height: 1;
}
.plan-card .plan-price .num {
  font-size: 28px;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-card .plan-price .cur {
  font-size: 14px;
  font-weight: 700;
  color: #047857;
}
.plan-card .plan-price .off-pill {
  display: inline-block;
  margin-top: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ============ STAGE 1: FORM ============ */
.stage h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stage .stage-sub {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

form .field {
  margin-bottom: 14px;
}
form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
form label .opt {
  color: #9ca3af;
  font-weight: 500;
  margin-left: 4px;
}
form input {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  transition: border 0.15s, box-shadow 0.15s;
}
form input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
form input.error {
  border-color: #dc2626;
}
form .err-msg {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

.submit-btn {
  display: block;
  width: 100%;
  background: #059669;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  margin-top: 18px;
  transition: transform 0.15s, background 0.2s;
}
.submit-btn:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.trust-row {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}

/* ============ STAGE 2: BRICK ============ */
#brickStage {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  margin-top: 8px;
}
#brickLoading {
  text-align: center;
  padding: 36px 0;
  color: #6b7280;
  font-size: 14px;
}
.brick-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #059669;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ ALERT INLINE ============ */
.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
}
.alert.show { display: block; }

footer.foot {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #9ca3af;
}
footer.foot a { color: #6b7280; text-decoration: underline; }
