* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070907;
  --surface: #0f130f;
  --surface-2: #141914;
  --line: rgba(255,255,255,.08);
  --text: #f4f6f2;
  --muted: #98a197;
  --brand: #8cab68;
  --brand-2: #b8d38f;
  --danger: #e17f7f;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(140,171,104,.09), transparent 26%),
    var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

/* TOPO */

.checkout-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,7,.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 14px;
}

.brand b {
  color: var(--brand-2);
}

/* LOGO DO EXÉRCITO NO TOPO */

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.secure-badge {
  color: #aeb6ad;
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

/* LAYOUT */

.checkout-main {
  padding: 72px 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}

.checkout-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.02), transparent),
    var(--surface);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.checkout-card {
  padding: 38px;
}

.step-badge,
.summary-label {
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.checkout-card h1 {
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.intro {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* FORMULÁRIO */

form {
  margin-top: 34px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #d8ddd5;
}

.field-group input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0a0d0a;
  color: var(--text);
  outline: none;
  transition: .2s ease;
}

.field-group input::placeholder {
  color: #5f685f;
}

.field-group input:focus {
  border-color: rgba(184,211,143,.34);
  box-shadow: 0 0 0 3px rgba(140,171,104,.07);
}

.field-group input.invalid {
  border-color: rgba(225,127,127,.6);
}

.error {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 10px;
}

.consent-box {
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #aeb6ad;
  font-size: 12px;
  line-height: 1.55;
}

.checkbox-line input {
  margin-top: 3px;
  accent-color: var(--brand);
}

/* BOTÃO */

.btn {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #10150d;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 16px 38px rgba(140,171,104,.16);
}

.btn-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.secure-line {
  margin-top: 14px;
  text-align: center;
  color: #727b72;
  font-size: 10px;
  line-height: 1.5;
}

/* ETAPAS ESCONDIDAS */

[hidden] {
  display: none !important;
}

/* ETAPA PIX (QR CODE) */

.qr-box {
  margin-top: 24px;
  padding: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  min-height: 220px;
}

.qr-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.pix-code {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0a0d0a;
  color: var(--text);
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
}

#copyButton {
  margin-top: 16px;
}

.pix-status {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(184,211,143,.5);
  animation: pulse-dot 1.6s infinite;
}

.status-dot-error {
  background: var(--danger);
  animation: none;
  box-shadow: none;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(184,211,143,.45); }
  70% { box-shadow: 0 0 0 8px rgba(184,211,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,211,143,0); }
}

/* RESUMO DO PEDIDO */

.summary-card {
  position: sticky;
  top: 24px;
  padding: 28px;
}

.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.summary-status {
  color: #7f887f;
  font-size: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.product-box {
  margin-top: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0d0a;
}

/* LOGO DO EXÉRCITO NO RESUMO */

.product-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: transparent;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-box h2 {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.product-box p {
  margin-top: 3px;
  color: #7d867d;
  font-size: 11px;
}

.summary-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-list span {
  color: #747d74;
  font-size: 11px;
}

.summary-list strong {
  color: #cfd5cc;
  font-size: 11px;
  text-align: right;
}

/* PREÇO */

.price-box {
  margin-top: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.price-box > span {
  color: #9da59c;
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 8px;
}

.price {
  display: flex;
  align-items: flex-start;
  font-family: "Manrope", sans-serif;
}

.price small {
  margin: 7px 3px 0 0;
  color: #a4aca3;
  font-size: 15px;
}

.price strong {
  font-size: 48px;
  line-height: 1;
}

.price span {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
}

/* AVISO */

.summary-note {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid rgba(184,211,143,.1);
  border-radius: 12px;
  background: rgba(140,171,104,.04);
}

.summary-note strong {
  color: var(--brand-2);
  font-size: 11px;
}

.summary-note p {
  margin-top: 5px;
  color: #7f887f;
  font-size: 10px;
  line-height: 1.55;
}

/* RODAPÉ */

.checkout-footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.checkout-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #5f675f;
  font-size: 10px;
}

/* RESPONSIVO */

@media (max-width: 850px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .secure-badge {
    display: none;
  }

  .checkout-main {
    padding: 36px 0 50px;
  }

  .checkout-card,
  .summary-card {
    border-radius: 17px;
  }

  .checkout-card {
    padding: 24px 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .summary-card {
    padding: 22px 18px;
  }

  .checkout-footer .container {
    flex-direction: column;
  }
}