/* ====== TOKENS (idênticos à landing) ====== */
:root {
  --green:    #0A6B3A;
  --green-d:  #053c20;
  --neon:     #00FF94;
  --gold:     #F4C430;
  --gold-d:   #d4a513;
  --red:      #E63946;
  --ink:      #0E1117;
  --ink-2:    #161b22;
  --ink-3:    #1d242e;
  --paper:    #F5F1E8;
  --paper-2:  #ece5d3;
  --line:     rgba(255,255,255,.08);
  --line-ink: rgba(14,17,23,.14);
  --shadow:   6px 6px 0 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--ink);
  color: #e8ecf1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Grain ── */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Tipografia ── */
.font-display { font-family: "Bebas Neue", "Anton", sans-serif; letter-spacing: .02em; line-height: .95; }
.font-num     { font-family: "Archivo Black", sans-serif; letter-spacing: -.02em; }

/* ── Utils ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ====== ANNOUNCEMENT BAR ====== */
.announce {
  background: var(--red);
  text-align: center;
  padding: 10px 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 17px;
  letter-spacing: .06em;
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.announce .hl { color: var(--neon); }

/* ====== LAYOUT ====== */
.checkout-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  padding: 36px 0 60px;
  align-items: start;
}
.sidebar { position: sticky; top: 56px; }

/* ====== RESUMO (sidebar) ====== */
.order-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
}
.order-card .tag {
  position: absolute; top: -14px; left: 20px;
  background: var(--red); color: #fff;
  font-family: "Caveat", cursive;
  font-size: 18px; font-weight: 700;
  padding: 4px 14px; border-radius: 4px;
  transform: rotate(-2deg);
  border: 2px dashed rgba(255,255,255,.5);
}
.order-album-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 10px;
  background: linear-gradient(135deg, rgba(10,107,58,.12), rgba(0,255,148,.06));
  border-radius: 12px;
  margin-bottom: 16px;
}
.order-album-img {
  width: 160px;
  height: auto;
  display: block;
  transform: perspective(800px) rotateY(-8deg) rotateX(3deg) rotate(-2deg);
  filter:
    drop-shadow(0 16px 20px rgba(0,0,0,.3))
    drop-shadow(0 4px 8px rgba(0,0,0,.2));
  animation: orderAlbumFloat 6s ease-in-out infinite;
}
@keyframes orderAlbumFloat {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-album-img { animation: none; }
}

.product-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px; line-height: 1; margin: 12px 0 4px;
  color: var(--ink);
}
.product-sub { font-size: 13px; color: rgba(14,17,23,.6); margin: 0 0 16px; }
.order-benefits { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.order-benefits li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.order-benefits .tick {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--green); color: var(--neon);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  flex: 0 0 auto; box-shadow: 2px 2px 0 0 var(--ink);
}
.price-block {
  border-top: 2px dashed var(--line-ink);
  padding-top: 16px; text-align: center;
}
.price-old { font-size: 13px; color: rgba(14,17,23,.5); text-decoration: line-through; }
.price-main {
  font-family: "Archivo Black", sans-serif;
  font-size: 52px; line-height: .9; letter-spacing: -.03em;
  color: var(--gold-d);
}
.price-main sup { font-size: .38em; vertical-align: top; margin-right: 2px; }
.price-method { font-size: 13px; color: rgba(14,17,23,.65); margin-top: 4px; }
.seal-row {
  display: flex; gap: 10px; margin-top: 16px;
  flex-wrap: wrap;
}
.seal {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--green);
  background: rgba(10,107,58,.08);
  border: 1px solid rgba(10,107,58,.2);
  border-radius: 999px; padding: 6px 12px;
}

/* ── Mini depoimentos rotativos ── */
.mini-testi { margin-top: 20px; min-height: 64px; }
.mini-testi-item {
  display: none;
  background: var(--ink); color: rgba(255,255,255,.85);
  border-radius: 12px; padding: 12px 14px;
  font-size: 13px; line-height: 1.45;
  border-left: 3px solid var(--neon);
}
.mini-testi-item.active { display: block; }
.mini-testi-item strong { color: #fff; }

/* ====== MAIN (form + pix) ====== */
.main-card {
  background: var(--ink-2);
  border-radius: 18px;
  border: 2px solid var(--line);
  padding: 36px 32px;
  position: relative;
}

/* ── Steps ── */
.steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.step .dot {
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  flex: 0 0 auto;
}
.step.active { color: var(--neon); }
.step.active .dot { background: var(--neon); color: var(--ink); border-color: var(--neon); box-shadow: 0 0 10px rgba(0,255,148,.4); }
.step.done .dot { background: var(--green); color: var(--neon); border-color: var(--neon); }
.step.done { color: rgba(255,255,255,.5); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,.12); margin: 0 8px; }
.step-line.done { background: var(--neon); }

/* ── Heading ── */
.form-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  color: #fff; margin: 0 0 24px; line-height: 1;
}
.form-heading span { color: var(--neon); }

/* ── Campos ── */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 7px;
}
.field input {
  width: 100%; padding: 14px 16px;
  background: var(--ink-3); border: 2px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff;
  font-family: "DM Sans", sans-serif; font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.3); }
.field input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,255,148,.15); }
.field input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,.15); }
.field input.valid { border-color: var(--neon); }
.field-error { display: none; font-size: 12px; color: var(--red); margin-top: 5px; font-weight: 600; }
.field-error.show { display: block; }

/* ── Checkbox ── */
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 22px; cursor: pointer;
  font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.4;
}
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--neon); }
.checkbox-row a { color: var(--neon); }

/* ── Alert API ── */
.alert-error {
  display: none; background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.35);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
  color: #ffd1d6; font-size: 14px; position: relative;
}
.alert-error.show { display: flex; align-items: flex-start; gap: 10px; }
.alert-error .close { position: absolute; right: 12px; top: 10px; cursor: pointer; opacity: .6; font-size: 18px; }

/* ── Botão CTA ── */
.btn-cta {
  width: 100%; padding: 20px 28px;
  font-family: "Bebas Neue", sans-serif; font-size: clamp(20px, 3.5vw, 28px);
  letter-spacing: .04em;
  background: var(--neon); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(0,255,148,.5);
  animation: pulseRing 2.4s cubic-bezier(.22,.61,.36,1) infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0    rgba(0,255,148,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(0,255,148,0); }
  100% { box-shadow: 0 0 0 0    rgba(0,255,148,0); }
}
.btn-cta:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 0 var(--ink); }
.btn-cta:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 0 var(--ink); }
.btn-cta:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-cta .spinner {
  width: 20px; height: 20px; border-radius: 999px;
  border: 3px solid rgba(14,17,23,.3); border-top-color: var(--ink);
  animation: spin .8s linear infinite; display: none; flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-cta.loading .spinner { display: block; }
.btn-cta.loading .btn-label::after { content: "..."; }
.btn-microcopy {
  text-align: center; font-size: 12px; color: rgba(255,255,255,.45);
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── Social proof ── */
.social-proof {
  text-align: center; font-size: 13px; color: rgba(255,255,255,.55);
  margin-top: 16px;
}
.social-proof .n { color: var(--neon); font-weight: 700; }

/* ====== SEÇÃO PIX (etapa 2) ====== */
#pix-section { display: none; }
#pix-section.show { display: block; }
#form-section.hide { display: none; }

.pix-timer {
  text-align: center; margin-bottom: 20px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(18px, 4vw, 26px);
  color: rgba(255,255,255,.7);
}
.pix-timer .time { color: var(--gold); }
.pix-timer.urgent .time { color: var(--red); animation: timerPulse .8s ease-in-out infinite; }
@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.qr-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin-bottom: 24px;
}
.qr-frame {
  border: 4px solid var(--gold); border-radius: 14px;
  padding: 12px; background: #fff;
  box-shadow: var(--shadow);
}
.qr-frame img { display: block; width: 260px; height: 260px; border-radius: 6px; }

.copy-block { width: 100%; margin-bottom: 24px; }
.copy-block label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 7px; display: block;
}
.copy-row { display: flex; gap: 8px; }
.copy-input {
  flex: 1; background: var(--ink-3); border: 2px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 12px 14px; color: rgba(255,255,255,.7);
  font-family: monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; outline: none; cursor: default;
}
.btn-copy {
  flex: 0 0 auto; padding: 12px 18px;
  background: var(--ink-3); color: #fff;
  font-family: "Bebas Neue", sans-serif; font-size: 16px; letter-spacing: .04em;
  border: 2px solid rgba(255,255,255,.15); border-radius: 10px;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.btn-copy:hover { background: var(--green); border-color: var(--neon); }
.btn-copy.copied { background: var(--green); border-color: var(--neon); color: var(--neon); }

/* ── Passos PIX ── */
.pix-steps { display: grid; gap: 12px; margin-bottom: 24px; }
.pix-step {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--ink-3); border-radius: 12px; padding: 14px 16px;
  border: 1px solid var(--line);
}
.pix-step .n {
  width: 30px; height: 30px; border-radius: 999px; flex: 0 0 auto;
  background: var(--green); color: var(--neon);
  font-family: "Archivo Black", sans-serif; font-size: 14px;
  display: grid; place-items: center; box-shadow: 2px 2px 0 0 var(--ink);
}
.pix-step .txt { font-size: 14px; line-height: 1.45; }
.pix-step .txt > strong:first-child { color: #fff; display: block; margin-bottom: 2px; }
.pix-step .txt strong[style] { display: inline; }

/* ── Status bar ── */
.status-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  margin-bottom: 18px;
  border: 2px solid transparent;
  transition: all .3s ease;
}
.status-bar.waiting  { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.status-bar.processing { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); color: #93c5fd; }
.status-bar.paid     { background: rgba(0,255,148,.12);  border-color: var(--neon); color: var(--neon); }
.status-bar.expired  { background: rgba(230,57,70,.12);  border-color: var(--red);  color: #fca5a5; }
.status-dot {
  width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto;
  background: currentColor; animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.status-bar.paid .status-dot, .status-bar.expired .status-dot { animation: none; }
.status-note { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }

/* ── Botão retentar ── */
.btn-retry {
  display: none; width: 100%; padding: 16px;
  background: transparent; color: var(--red);
  font-family: "Bebas Neue", sans-serif; font-size: 20px; letter-spacing: .04em;
  border: 2px solid var(--red); border-radius: 12px; cursor: pointer;
  transition: background .2s;
}
.btn-retry:hover { background: rgba(230,57,70,.12); }
.btn-retry.show { display: block; }

/* ====== STICKY MOBILE BAR ====== */
.sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--ink-2); border-top: 2px solid var(--line);
  padding: 12px 16px;
  align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-bar .price { font-family: "Archivo Black", sans-serif; font-size: 22px; color: var(--gold); }
.sticky-bar .price small { font-family: "DM Sans", sans-serif; font-size: 11px; color: rgba(255,255,255,.5); display: block; }
.sticky-bar .btn-sticky {
  flex: 1; padding: 14px;
  background: var(--neon); color: var(--ink);
  font-family: "Bebas Neue", sans-serif; font-size: 18px; letter-spacing: .04em;
  border: 2px solid var(--ink); border-radius: 10px; cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--ink);
}

/* ====== RESPONSIVO ====== */
@media (max-width: 900px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; } /* sidebar vai depois do main no mobile */
  .main-card { order: 1; }
  .order-card { display: block; } /* mostra o card completo abaixo do form */
  .order-collapse { display: none; } /* esconde o collapse — não é mais necessário */
  .sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .main-card { padding: 24px 18px; }
  .qr-frame img { width: 220px; height: 220px; }
  .copy-row { flex-direction: column; }
  .btn-copy { width: 100%; text-align: center; }
  .steps { gap: 0; }
  .step span { display: none; }
}

/* ====== COLAPSO MOBILE DO RESUMO ====== */
.order-collapse {
  display: none;
  background: var(--ink-2); border-radius: 14px;
  border: 2px solid var(--line); margin-bottom: 16px; overflow: hidden;
}
.order-collapse-trigger {
  width: 100%; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: #fff; cursor: pointer;
  font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 700;
}
.order-collapse-trigger .arrow { transition: transform .3s ease; font-size: 12px; }
.order-collapse-trigger.open .arrow { transform: rotate(180deg); }
.order-collapse-body { display: none; padding: 0 18px 18px; }
.order-collapse-body.open { display: block; }

/* .order-collapse é ocultado no breakpoint acima — regra removida */
