/* ============================================================
   Checkout Balaclava Ads: card único branco, tokens monocromáticos,
   accent verde só em cupom/bump. Mudou algo aqui = bump ?v=N no index.html.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1F1F1F;
  --ink-soft: #4b5563;
  --muted: #9aa1b1;
  --line: #e6e8ee;
  --line-strong: #c7ccd6;
  --navy: #1F1F1F;
  --navy-hover: #111111;
  --green: #15803d;
  --green-soft: #e7f4ec;
  --ring: rgba(31,31,31,.14);
  --ls: -0.02em;
  --shadow-card: 0 4px 6px -2px rgba(16,24,40,.04), 0 24px 48px -12px rgba(16,24,40,.12);
  --shadow-field: 0 1px 2px rgba(16,24,40,.06);
}
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 20px;
}

.checkout {
  width: 100%; max-width: 468px;
  background: var(--card);
  border-radius: 22px;
  padding: 38px 18px 26px;
  box-shadow: var(--shadow-card);
  animation: bc-enter .6s cubic-bezier(.16,1,.3,1) backwards;
}
@keyframes bc-enter {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .checkout { animation: none; } }

/* header do produto */
.co-head { display: flex; align-items: center; gap: 16px; }
.co-head .product { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-field); }
.co-head-info { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.plan-name { font-size: 25px; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
/* preço + badge na MESMA linha (faz wrap só se faltar largura) */
.plan-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.plan-price { font-size: 14px; color: var(--ink); font-weight: 600; }
/* selo de bônus incluso — preto e simples (monocromático); R$ 0,00 cinza DENTRO do pill */
.bonus-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 6px;
}
.bonus-tag .bonus-free { color: #fff; opacity: .55; font-weight: 600; }
.slogan { font-size: 13px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.5; margin: 12px 0 22px; color: var(--muted); }

/* campos */
.lbl { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin: 16px 0 7px; }
.field {
  width: 100%; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 14px; font-family: inherit; letter-spacing: inherit; font-size: 14.5px;
  box-shadow: none; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--ink); box-shadow: none; }
select.field {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%234b5563' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* métodos de pagamento */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 6px; }
.method {
  display: flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px; font-size: 16px; font-weight: 500; color: var(--ink);
  font-family: inherit; letter-spacing: inherit;
  box-shadow: var(--shadow-field); transition: .15s; cursor: pointer;
}
.method svg { width: 22px; height: 22px; }
.method:hover { border-color: var(--line-strong); }
.method.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.method:active { transform: scale(.985); }

/* sanfona do cartão (a classe .show é controlada pelo app.js) */
#bc-card {
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(-4px);
  transition: max-height .38s cubic-bezier(.4,0,.2,1), opacity .3s ease, transform .3s ease;
}
#bc-card.show { max-height: 560px; opacity: 1; transform: translateY(0); }

/* order bump */
.bump {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px dashed var(--line-strong); border-radius: 14px;
  padding: 16px; margin-top: 22px; cursor: pointer;
  box-shadow: var(--shadow-field);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.bump:hover { border-color: var(--muted); }
.bump.active { border-color: var(--green); border-style: solid; background: var(--green-soft); }
.bump input { display: none; }
.bump-check {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; transition: all .2s;
}
.bump-check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity .15s; }
.bump.active .bump-check { background: var(--green); border-color: var(--green); }
.bump.active .bump-check svg { opacity: 1; }
.bump-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bump-head { display: flex; align-items: center; gap: 8px; }
.bump-title { font-size: 15px; font-weight: 600; }
.bump-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.bump-price {
  margin-left: auto; flex-shrink: 0; white-space: nowrap;
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; padding: 2.5px 10px; border-radius: 7px;
}
.bump.active .bump-price { background: var(--green); color: #fff; }

/* cupom */
.coupon-row { display: flex; gap: 8px; align-items: stretch; }
.coupon-row .field { flex: 1; text-transform: uppercase; letter-spacing: .05em; min-width: 0; }
.coupon-btn {
  background: var(--navy); color: #fff; border: 0; border-radius: 11px;
  padding: 0 20px; min-width: 96px; font-family: inherit; font-weight: 600; font-size: 14px;
  letter-spacing: var(--ls); cursor: pointer; transition: background .15s, opacity .15s;
}
.coupon-btn:hover { background: var(--navy-hover); }
.coupon-btn:disabled { opacity: .6; cursor: default; }
.coupon-row.valid .field { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 4px rgba(26,138,79,.10); }
.bc-coupon-msg { font-size: 12.5px; margin-top: 7px; display: none; font-weight: 500; }
.bc-coupon-msg.ok { display: block; color: var(--green); }
.bc-coupon-msg.err { display: block; color: #c0392b; }
.bc-coupon-spin {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%;
  animation: bcSpin .6s linear infinite; vertical-align: middle;
}
@keyframes bcSpin { to { transform: rotate(360deg); } }

/* resumo */
.summary { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; background: #fcfcfd; }
.summary h3 { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.srow, .bc-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.bc-item { font-size: 13.5px; color: var(--ink-soft); }
.bc-item span:last-child { color: var(--ink); font-weight: 500; }
.disc { color: var(--green); font-weight: 600; }
.srow.total { font-weight: 700; font-size: 16px; border-bottom: none; }
.coupon-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-soft); border: 1.5px dashed var(--green);
  border-radius: 6px; padding: 2px 7px 2px 6px;
  font-size: 11.5px; font-weight: 700; color: var(--green);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* botão de pagar */
.pay-btn {
  width: 100%; margin-top: 24px; background: var(--navy); color: #fff;
  border: none; border-radius: 12px; padding: 16px; font-family: inherit;
  font-size: 16.5px; font-weight: 600; letter-spacing: var(--ls); cursor: pointer;
  transition: background .15s; box-shadow: 0 6px 16px -6px rgba(31,31,31,.5);
}
.pay-btn:hover { background: var(--navy-hover); }
.pay-btn:disabled { opacity: .6; cursor: default; }
.co-msg { font-size: 14px; text-align: center; margin-top: 10px; min-height: 0; color: #c0392b; display: none; }

/* rodapé */
.co-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 30px; color: var(--muted); font-size: 12px;
  white-space: nowrap;
}
.co-foot a { color: var(--muted); text-decoration: none; }
.co-foot a:hover { color: var(--ink-soft); }
.co-foot .powered { display: inline-flex; align-items: center; gap: 5px; }
.co-foot .stripe-logo { height: 14px; width: auto; color: #737373; }
.co-foot .sep { opacity: .5; }
.foot-wordmark { height: 14px; width: auto; vertical-align: middle; }
.co-copy { text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; }

@media (max-width: 520px) {
  body { padding: 16px 3px; }
  .checkout { padding: 24px 14px 24px; border-radius: 16px; }
  /* header compactado pra "R$ 197,00 + badge" caber numa linha só */
  .co-head { gap: 12px; }
  .co-head .product { width: 56px; height: 56px; border-radius: 14px; }
  .plan-name { font-size: 24px; }
  .plan-price-row { gap: 6px; margin-top: 6px; }
  .plan-price { font-size: 14px; }
  .bonus-tag { font-size: 11px; padding: 3px 7px; gap: 5px; }
}
