/* ============================================================
   PÁGINA PORTAL DE RENEGOCIAÇÃO
   Reaproveita css/produto.css (hero, sintomas, passos, recursos,
   faq, selos flutuantes .cd-badge). Aqui só o que é próprio
   desta página: a demo do celular e o bloco de prova.
   ============================================================ */

/* ---------- negociação que acontece sozinha ---------- */

.neg-demo {
  position: relative;
  padding-block: clamp(10px, 3vh, 26px);
  padding-right: clamp(0px, 3vw, 40px);
}
/* brilho atrás do aparelho, mesma lógica da página de atendimento */
.neg-demo::before {
  content: '';
  position: absolute;
  inset: 6% 4%;
  background: radial-gradient(ellipse at 50% 42%, rgba(11, 214, 146, 0.14), transparent 64%);
  filter: blur(6px);
  pointer-events: none;
}

.neg-phone {
  position: relative;
  z-index: 1;
  max-width: 336px;
  margin-inline: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0f1512;
  overflow: hidden;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.045),
    0 44px 96px -36px rgba(0, 0, 0, 0.95);
}

.neg-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}
.neg-clock {
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.neg-status-icons { display: flex; align-items: center; gap: 7px; }

/* barra do navegador: reforça que é um endereço seguro, não um app */
.neg-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 13px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.neg-lock { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.neg-lock svg { width: 100%; height: 100%; }
.neg-url {
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.neg-screen {
  padding: 16px 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background:
    radial-gradient(circle at 20% 0%, rgba(11, 214, 146, 0.07), transparent 60%),
    #0a0f0d;
}

.neg-hello {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* cartão do débito */
.neg-card--debt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 17px;
  margin-bottom: 4px;
}
.neg-label {
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.neg-value {
  font-size: 1.85rem;
  font-weight: 830;
  font-variation-settings: 'wdth' 112;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--white);
}
.neg-sub { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); }

.neg-section {
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 4px;
}

/* opções de parcelamento */
.neg-opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px 14px;
  transition: border-color 0.3s, background-color 0.3s;
}
.neg-opt__radio {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  position: relative;
}
.neg-opt__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.neg-opt__body b {
  font-size: 0.86rem;
  font-weight: 740;
  color: var(--white);
  letter-spacing: -0.01em;
}
.neg-opt__body i {
  font-size: 0.7rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}
.neg-opt__price {
  font-size: 0.88rem;
  font-weight: 780;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* opção escolhida pelo devedor */
.neg-opt--on {
  border-color: rgba(11, 214, 146, 0.55);
  background: rgba(11, 214, 146, 0.12);
}
.neg-opt--on .neg-opt__radio { border-color: var(--green); }
.neg-opt--on .neg-opt__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
}
.neg-opt--on .neg-opt__price { color: var(--green); }

.neg-cta {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 780;
  letter-spacing: 0.01em;
  color: #04281d;
  background: var(--green);
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  margin-top: 6px;
  cursor: default;
}

/* área que troca de estado: escolha dá lugar à confirmação */
.neg-flow { position: relative; }
.neg-flow__pick {
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: opacity 0.4s ease;
}
/* quando o acordo fecha, a lista de opções sai de cena */
.neg-flow.is-done .neg-flow__pick { opacity: 0; }

.neg-flow__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  border: 1px solid rgba(11, 214, 146, 0.4);
  border-radius: 12px;
  background: rgba(11, 214, 146, 0.1);
  padding: 18px 16px;
}
.neg-done__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #04281d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.neg-done__mark svg { width: 19px; height: 19px; }
.neg-flow__done b {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.015em;
}
.neg-flow__done i {
  font-size: 0.76rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}
.neg-pix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 720;
  color: var(--green);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(11, 214, 146, 0.3);
  border-radius: 999px;
  padding: 8px 15px;
  margin-top: 8px;
}
.neg-pix svg { width: 14px; height: 14px; }

.neg-home {
  display: block;
  width: 116px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 10px auto 12px;
}

/* entrada de cada passo da simulação */
.neg-demo [data-step] {
  opacity: 0;
  transform: translateY(10px);
}
.neg-demo [data-step].is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* legendas dos bastidores.
   Diferente da página de atendimento, aqui cada elemento da tela ocupa
   a largura inteira do aparelho, então não existe área vazia para um
   selo flutuar sem cobrir informação. Por isso ficam abaixo do celular. */
.neg-notes {
  position: relative;
  z-index: 1;
  margin-top: clamp(14px, 2vh, 20px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 336px;
  margin-inline: auto;
}
.neg-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  padding: 9px 11px;
}
.neg-note b { color: var(--white); font-weight: 760; }
.neg-note__icon {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: rgba(11, 214, 146, 0.13);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.neg-note__icon svg { width: 14px; height: 14px; }

/* ---------- bloco de prova (case real) ---------- */

.proof {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(30px, 4.5vh, 54px);
  margin-top: clamp(28px, 4.5vh, 48px);
}
.proof__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 10px;
  align-items: baseline;
  margin-bottom: clamp(22px, 3.2vh, 38px);
}
.proof__idx {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.9rem;
  font-weight: 820;
  font-variation-settings: 'wdth' 118;
  letter-spacing: 0.04em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.proof__client {
  grid-column: 2;
  grid-row: 1;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
}
.proof__deliver {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-300);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px 15px;
}
.proof__result {
  font-size: clamp(1.9rem, 4.35vw, 3.95rem);
  font-weight: 830;
  font-variation-settings: 'wdth' 114;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--green);
  text-wrap: balance;
}
.proof__result-b {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -0.018em;
}
.proof__split {
  margin-top: clamp(30px, 4.5vh, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 60px);
  align-items: start;
}
.proof__flow {
  align-self: stretch;
  position: relative;
  width: 1px;
  background: var(--line-dark);
}
.proof__flow::after {
  content: '→';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  padding: 4px 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--green);
}
.proof__label {
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.proof__col--before .proof__label {
  color: var(--grey-300);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.proof__col--after .proof__label {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 9px;
}
.proof__col--after .proof__label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.proof__col p:not(.proof__label) { max-width: 46ch; }
.proof__col--before p:not(.proof__label) { color: var(--grey-300); }

/* ---------- antes/depois sem diagrama ao lado ---------- */

.turn__cols--solo { grid-column: 1 / -1; }

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .proof__split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .proof__flow { align-self: auto; width: 100%; height: 1px; }
  .proof__flow::after {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(90deg);
    padding: 0 6px;
  }
  .proof__deliver { margin-left: 0; }
}

@media (max-width: 820px) {
  .neg-demo { padding-right: 0; }
}

@media (max-width: 420px) {
  /* duas colunas de legenda ficam apertadas demais em tela pequena */
  .neg-notes { grid-template-columns: minmax(0, 1fr); }
}
