/* =========================================================
   Seção Pix: celular com QR Code + benefícios
   ========================================================= */

.pix {
  position: relative;
  padding-block: clamp(80px, 9.5vw, 136px);
  /* off-white levemente esverdeado no miolo, branco nas pontas
     para emendar com as seções vizinhas */
  background: linear-gradient(180deg, var(--white) 0%, #F4F8F6 16%, #F4F8F6 84%, var(--white) 100%);
  overflow: hidden;
}

.pix__grid {
  position: relative;
  display: grid;
  gap: 72px;
  align-items: center;
}

@media (min-width: 1024px) {
  .pix__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
  }
}

/* ---------- Visual ---------- */

.pix__visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding-block: 8px 28px;
}

/* Glow verde difuso atrás do aparelho */
.pix__visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(440px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brand-200), var(--brand-500) 75%);
  filter: blur(64px);
  opacity: 0.5;
  transform: translate(-50%, -50%);
}

/* Anéis finos concêntricos: profundidade sem poluir */
.pix__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 63px, rgba(0, 155, 112, 0.16) 63px 64px);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 66%);
  mask-image: radial-gradient(circle, #000 28%, transparent 66%);
  transform: translate(-50%, -50%);
}

/* ---------- Aparelho ---------- */

.phone {
  position: relative;
  width: min(292px, 84%);
  padding: 10px;
  border-radius: 50px;
  /* corpo em grafite com leve brilho de metal na borda */
  background: linear-gradient(145deg, #3A3A40 0%, #0E0E10 22%, #0A0A0B 60%, #2A2A2F 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 4px #0A0A0B,
    0 2px 4px rgba(10, 10, 11, 0.1),
    0 32px 64px -24px rgba(10, 10, 11, 0.45),
    0 64px 110px -48px rgba(0, 105, 76, 0.5);
}

/* Botões laterais */
.phone__button {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #1C1C20;
}

.phone__button--left {
  top: 22%;
  left: -2.5px;
  height: 9%;
}

.phone__button--right {
  top: 28%;
  right: -2.5px;
  height: 14%;
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 8px;
  border-radius: 40px;
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--white) 26%);
  text-align: center;
  overflow: hidden;
}

/* Reflexo diagonal bem leve no vidro */
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.55) 0%, transparent 22%);
  opacity: 0.5;
  pointer-events: none;
}

.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 10px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.phone__statusbar svg {
  width: 40px;
  height: auto;
}

.phone__island {
  width: 78px;
  height: 23px;
  border-radius: 14px;
  background: var(--black);
}

.phone__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.phone__head .logo__symbol {
  height: 20px;
}

.phone__merchant {
  margin-top: 16px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.phone__amount {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

/* QR Code em um cartão, com cantos de leitura em verde e o símbolo no centro */
.phone__qr {
  position: relative;
  width: 76%;
  aspect-ratio: 1;
  margin: 16px auto 0;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(10, 10, 11, 0.06), 0 10px 24px -14px rgba(10, 10, 11, 0.22);
}

.phone__qr-code svg {
  width: 100%;
  height: 100%;
}

.phone__qr i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--brand-500);
}

.phone__qr i:nth-child(1) { top: 5px; left: 5px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 14px; }
.phone__qr i:nth-child(2) { top: 5px; right: 5px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 14px; }
.phone__qr i:nth-child(3) { bottom: 5px; left: 5px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 14px; }
.phone__qr i:nth-child(4) { bottom: 5px; right: 5px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 14px; }

.phone__qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: auto;
  padding: 3px;
  border-radius: 9px;
  background: var(--white);
  transform: translate(-50%, -50%);
}

.phone__label {
  margin-top: 16px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--gray-500);
}

.phone__copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray-600);
}

.phone__copy > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--brand-100);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand-800);
}

.phone__copy-btn .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

/* Status em pílula: bolinha pulsando + contagem */
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--amber-100);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--amber-700);
}

.phone__status-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.phone__status-label::before {
  flex-shrink: 0;
}

.phone__status-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(224, 161, 0, 0.22);
  animation: pulse 1.6s ease-in-out infinite;
}

.phone__timer {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.phone__home {
  width: 34%;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--black);
}

/* ---------- Cartões flutuantes ---------- */

.pix__float {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border: 1px solid rgba(10, 10, 11, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(10, 10, 11, 0.05),
    0 18px 36px -14px rgba(10, 10, 11, 0.24);
  text-align: left;
  white-space: nowrap; /* o texto nunca quebra, mesmo com o cartão saindo da coluna */
  animation: float 5s ease-in-out infinite;
}

/* Segundo cartão por baixo: sensação de pilha de notificações */
.pix__float::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px 12px -6px;
  border: 1px solid rgba(10, 10, 11, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

/* Mobile: um cartão só, sobre a base do aparelho, sem cobrir conteúdo.
   A partir do tablet: dois cartões nos cantos, para fora do aparelho. */
.pix__float--confirm {
  right: -4px;
  bottom: 2px;
}

.pix__float--webhook {
  display: none;
  animation-delay: -2.5s;
}

@media (min-width: 640px) {
  /* sobre o canto superior direito do aparelho, começando depois da "ilha" */
  .pix__float--confirm {
    top: -14px;
    right: auto;
    bottom: auto;
    left: calc(50% + 46px);
  }

  .pix__float--webhook {
    display: flex;
    left: -6px;
    bottom: 6px;
  }
}

/* Com mais largura, o cartão desce para a altura do valor e fica
   quase todo fora do aparelho, sem cobrir nada da tela */
@media (min-width: 1200px) {
  .pix__float--confirm {
    top: 104px;
    left: calc(50% + 90px);
  }
}

.pix__float-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2A2A2F, var(--black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--brand-500);
  font-size: 0.9375rem;
}

.pix__float-icon--ok {
  background: linear-gradient(145deg, var(--brand-300), var(--brand-500));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 16px -8px rgba(0, 223, 162, 0.8);
  color: var(--on-primary);
}

.pix__float-icon--ok .icon {
  stroke-width: 3;
}

.pix__float strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.pix__float small {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.35;
}

/* ---------- Conteúdo ---------- */

.pix__head {
  margin-bottom: clamp(36px, 4vw, 48px);
}

.pix__head .eyebrow {
  margin-bottom: 24px;
}

.pix__head .section-head__title {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.pix__list {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(36px, 4vw, 48px);
}

@media (min-width: 640px) {
  .pix__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Cada benefício é um bloco: no celular, ícone ao lado do texto;
   a partir do tablet, ícone em cima */
.pix__item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(10, 10, 11, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.03), 0 10px 24px -18px rgba(10, 10, 11, 0.1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s, background-color 0.35s;
}

@media (min-width: 640px) {
  .pix__item {
    flex-direction: column;
    gap: 18px;
    padding: 22px;
  }
}

.pix__item:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  background: var(--white);
  box-shadow: 0 2px 4px rgba(10, 10, 11, 0.03), 0 22px 44px -22px rgba(0, 105, 76, 0.24);
}

.pix__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brand-200);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--white), var(--brand-100));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px -10px rgba(0, 223, 162, 0.55);
  color: var(--brand-800);
  font-size: 1.0625rem;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.pix__item:hover .pix__icon {
  transform: scale(1.05);
  border-color: var(--brand-300);
  background: linear-gradient(145deg, var(--brand-100), var(--brand-300));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 22px -10px rgba(0, 223, 162, 0.75);
}

.pix__item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.pix__item p {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
}

@media (max-width: 479px) {
  .pix__content > .btn {
    width: 100%;
  }
}
