
/* GRUPO AERO — Central de Pagamentos */

:root {
  color-scheme: dark;
  --bg: #202124;
  --panel: #292b30;
  --panel-soft: #303238;
  --text: #f4f5f7;
  --muted: #b6b9c0;
  --border: rgba(255,255,255,.12);
  --accent: #dbe7ff;
  --success: #a5e8c1;
  --warning: #ffd09a;
  --max-width: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.06), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #9dbdff;
  outline-offset: 4px;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* CABEÇALHO */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(32,33,36,.96);
}

.header-inner,
.footer-inner {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 58px;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .12em;
}

.brand-fallback strong {
  font-weight: 800;
}

.brand-fallback small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .2em;
}

.home-link,
.help-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-link span,
.help-link span {
  margin-left: 4px;
  color: var(--muted);
}

.home-link:hover,
.help-link:hover,
.footer-inner a:hover {
  opacity: .75;
}

/* INTRODUÇÃO */

.page-main {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 46px;
}

.intro {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9dce2;
  box-shadow: 0 0 0 4px rgba(217,220,226,.1);
}

h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 800;
}

h1 span {
  color: var(--muted);
}

.intro > p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

/* CARTÕES DE PAGAMENTO */

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.payment-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%),
    var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.payment-card:hover {
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 22px 52px rgba(0,0,0,.2);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.method-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.method-icon svg {
  width: 31px;
  height: 31px;
}

.pix-icon {
  color: #a9e8ca;
}

.credit-icon {
  color: #d6d8dd;
}

.method-tag {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.payment-card h2 {
  margin: 0 0 9px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.card-description {
  min-height: 76px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* QR CODE PIX */

.pix-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  text-align: center;
}

.pix-qr-area .qr-image {
  display: block;
  width: min(100%, 240px);
  height: auto;
  aspect-ratio: 1;
  padding: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pix-qr-area .qr-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.qr-caption {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* CÓDIGO PIX */

.pix-code-area {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0,0,0,.12);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pix-code {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  user-select: all;
}

/* BOTÕES */

.button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

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

.button:active {
  transform: translateY(0);
}

.button-primary {
  margin-top: 12px;
  background: var(--text);
  color: #202124;
}

.button-primary:hover {
  background: #e0e2e5;
  box-shadow: 0 6px 18px rgba(255,255,255,.08);
}

.button-primary.is-copied {
  background: #c7f1d9;
  color: #163b28;
}

.copy-symbol {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* NOTIFICAÇÃO ANIMADA DE CÓPIA */

.copy-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  max-height: 0;
  margin: 0 auto;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #163d30;
  color: #d6ffea;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  pointer-events: none;
  transition:
    opacity .25s ease,
    transform .25s ease,
    padding .25s ease,
    max-height .25s ease,
    margin .25s ease;
}

.copy-toast.show {
  max-height: 60px;
  margin-top: 14px;
  padding: 10px 18px;
  border-color: rgba(165,232,193,.2);
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pixToastGlow 1.2s ease-in-out;
}

.toast-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #48d69a;
  color: #103526;
  font-size: 13px;
  font-weight: 800;
}

@keyframes pixToastGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(72,214,154,0);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(72,214,154,.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(72,214,154,0);
  }
}

/* OBSERVAÇÃO DE SEGURANÇA */

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 21px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.security-note span,
.benefit-check {
  color: var(--success);
  font-weight: 800;
}

/* CARTÃO ILUSTRATIVO DO MERCADO PAGO */

.card-illustration {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 23px;
}

.credit-card-art {
  min-height: 158px;
  padding: 21px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 15px;
  background: linear-gradient(125deg, #42454c, #292b30 58%, #202124);
  box-shadow: 0 18px 28px rgba(0,0,0,.18);
  transform: rotate(-1deg);
}

.credit-card-art-top,
.credit-card-art-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.credit-card-art-top {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.card-chip {
  width: 28px;
  height: 21px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
}

.card-number-art {
  margin: 25px 0 22px;
  font-size: 15px;
  letter-spacing: .06em;
}

.credit-card-art-bottom {
  color: #c1c3c8;
  font-size: 8px;
  letter-spacing: .12em;
}

.card-circles {
  display: flex;
}

.card-circles i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}

.card-circles i + i {
  margin-left: -7px;
  background: rgba(180,184,193,.65);
}

.secure-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.secure-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--success);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* BOTÃO MERCADO PAGO */

.button-mercado-pago {
  margin-top: 10px;
  background: #d8e6ff;
  color: #18365e;
}

.button-mercado-pago:hover {
  background: #c4d9ff;
  box-shadow: 0 7px 20px rgba(140,177,255,.12);
}

.button-mercado-pago span {
  font-size: 17px;
}

.external-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

.card-benefits {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.card-benefits > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ÁREA DE AJUDA */

.help-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.help-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
}

.help-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-copy {
  flex: 1;
  min-width: 0;
}

.help-copy h2 {
  margin: 0 0 3px;
  font-size: 13px;
}

.help-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.help-link {
  padding: 10px 0 10px 12px;
}

.payment-reminder {
  margin: 22px 0 0;
  color: #92959c;
  font-size: 10px;
  text-align: center;
}

/* RODAPÉ */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 76px;
  color: var(--muted);
  font-size: 10px;
}

.footer-inner a {
  text-decoration: none;
}

/* RESPONSIVIDADE */

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .page-main {
    width: min(calc(100% - 32px), 540px);
  }

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

  .brand-logo {
    max-width: 160px;
    max-height: 46px;
  }

  .brand-fallback {
    font-size: 14px;
  }

  .brand-fallback small {
    font-size: 8px;
  }

  .home-link {
    font-size: 11px;
  }

  .page-main {
    padding: 46px 0 34px;
  }

  .intro {
    margin-bottom: 27px;
  }

  .intro > p {
    font-size: 13px;
  }

  .payment-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .payment-card {
    padding: 22px;
    border-radius: 16px;
  }

  .card-description {
    min-height: 0;
    margin-bottom: 19px;
  }

  .pix-qr-area .qr-image {
    width: min(100%, 240px);
  }

  .card-illustration {
    padding: 7px 0 19px;
  }

  .credit-card-art {
    min-height: 148px;
  }

  .security-note {
    margin-top: 19px;
  }

  .help-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
  }

  .help-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .help-copy {
    flex-basis: calc(100% - 54px);
  }

  .help-link {
    margin-left: 50px;
    padding: 5px 0;
  }

  .footer-inner {
    min-height: 70px;
    gap: 10px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .header-inner,
  .footer-inner,
  .page-main {
    width: calc(100% - 24px);
  }

  .brand-logo {
    max-width: 125px;
  }

  .home-link {
    font-size: 10px;
  }

  .payment-card {
    padding: 17px;
  }

  .pix-code-area {
    padding: 12px;
  }

  .footer-inner {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 13px 0;
  }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
