/*
 * Seções do meio da página de parceiros (contabilidades.html): cenário, o que é, como funciona, white label, vantagens,
 * antes e depois, segurança e implantação. Tokens (--tinta, --regua, --sec-pad, --marca, --fundo-escuro) vêm de
 * parceiros.css; cartões, palcos e mini telas, de parceiros-palcos.css.
 */

/* ================= PEÇAS COMUNS ================= */

.fatos {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  font-size: 1.0625rem;
  color: var(--tinta);
}
.fatos--claro {
  color: #fff;
}
.fatos--claro svg {
  color: var(--lime);
}
.bolha {
  justify-self: end;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--wa-out);
  box-shadow: 0 1px 1px rgb(17 27 33 / 8%);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--wa-ink);
}

/* ================= CENÁRIO ================= */

.cenario {
  padding-block: var(--sec-pad);
}
.cenario__lista {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

/* ================= O QUE É ================= */

.oque {
  padding-block: var(--sec-pad);
}
.oque__grade {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.oque .rotulo,
.como .rotulo {
  margin-bottom: 18px;
}
.pedidos {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--wa-bg);
  box-shadow: var(--shadow-2);
}
.pedidos figcaption {
  justify-self: start;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 80%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wa-muted);
}
.pedidos .bolha:nth-of-type(1) { transform: rotate(-1deg); }
.pedidos .bolha:nth-of-type(4) { transform: rotate(1deg) translateX(-10px); }
.bolha--audio {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #54656f;
}
.bolha--audio .onda {
  color: #6b8f78;
}
.bolha--audio span {
  font-size: 0.8125rem;
  color: var(--wa-muted);
}
.bolha--foto {
  display: grid;
  gap: 8px;
}
.bolha__anexo {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 70%);
  font-size: 0.875rem;
  color: var(--wa-muted);
}

/* ================= COMO FUNCIONA ================= */

.como {
  padding-block: var(--sec-pad);
}
.como__grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.como__passos {
  display: grid;
  margin-top: 36px;
}
.como__passos li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--regua);
}
.como__passos li:last-child {
  border-bottom: 0;
}
.como__passos p {
  font-size: 1.0625rem;
  line-height: 1.5;
}
.como__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--green-deep);
}
.nota-ex {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--bg);
}
.nota-ex__cartao {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-2);
}
.nota-ex__tipo {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--f-display);
  font-weight: 600;
}
.nota-ex__tipo svg {
  color: var(--green);
}
.nota-ex dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-2);
}
.nota-ex dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.nota-ex dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.nota-ex dd {
  display: grid;
  gap: 2px;
  margin: 0;
  font-weight: 700;
}
.nota-ex dd small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--green-2);
}
.nota-ex figcaption {
  font-size: 0.8125rem;
  color: var(--tinta-2);
}

/* ================= WHITE LABEL (escura) ================= */

.wl {
  padding-block: var(--sec-pad);
}
.wl__lados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.wl__lado {
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: var(--r-xl);
}
.wl__lado--marca {
  border-top: 6px solid var(--marca);
  background: var(--paper);
  color: var(--tinta);
  transition: border-color var(--t-med);
}
.wl__lado--zap {
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 6%);
  color: #e9f1ec;
}
.wl__quem {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.wl__quem strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.wl__quem small {
  display: block;
  font-size: 0.875rem;
  color: var(--tinta-2);
}
.wl__lado--zap .wl__quem strong {
  color: #fff;
}
.wl__lado--zap .wl__quem small {
  color: rgb(219 230 223 / 70%);
}
.wl__lado ul {
  display: grid;
}
.wl__lado li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}
.wl__lado li svg {
  flex: none;
  color: var(--marca);
}
.wl__lado--zap li {
  border-top-color: rgb(255 255 255 / 12%);
}
.wl__lado--zap li svg {
  color: var(--lime);
}

/* ================= VANTAGENS (bento) ================= */

.vantagens {
  padding-block: var(--sec-pad);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.cartao--verde {
  background: var(--green);
}
.cartao--verde .palco {
  background: rgb(255 255 255 / 8%);
}
.cartao--verde h3 {
  color: #fff;
}
.cartao--verde > p:last-child {
  color: rgb(233 241 236 / 75%);
}

/* ================= ANTES E DEPOIS ================= */

.ad {
  padding-block: var(--sec-pad);
}
.ad__grade {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.ad .t-sec {
  max-width: 12ch;
}
.ad__tabela {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 0.9375rem;
}
.ad__tabela th,
.ad__tabela td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.ad__tabela tr:last-child > * {
  border-bottom: 0;
}
.ad__tabela thead th {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tinta);
}
.ad__tabela thead th:last-child {
  background: var(--green);
  color: #fff;
}
.ad__tabela tbody th {
  width: 24%;
  font-weight: 700;
  color: var(--tinta);
}
.ad__tabela td {
  color: var(--tinta-2);
}
.ad__tabela td:last-child {
  width: 40%;
  background: var(--green-tint);
  font-weight: 700;
  color: var(--tinta);
}
.ad__tabela td svg {
  display: inline-block;
  margin-right: 6px;
  vertical-align: -3px;
  color: var(--green);
}

/* ================= SEGURANÇA ================= */

.seg {
  padding-block: var(--sec-pad);
}
.seg__lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.seg__lista li {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.seg__icone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--green-deep);
}

/* ================= IMPLANTAÇÃO ================= */

.impl {
  padding-block: var(--sec-pad);
}
.impl__passos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.impl__passos li {
  position: relative;
  padding: 4px 24px 28px;
  border-radius: var(--r-lg);
  background: var(--bg);
}
.impl__passos .cartao__num {
  display: inline-block;
  margin: 24px 0 14px;
}
/* Seta entre os passos. */
.impl__passos li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -13px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  transform: rotate(45deg);
}

/* ================= RESPONSIVO ================= */

@media (max-width: 1000px) {
  .oque__grade,
  .como__grade,
  .ad__grade {
    grid-template-columns: minmax(0, 1fr);
  }
  .cenario__lista,
  .bento,
  .seg__lista,
  .impl__passos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .impl__passos li::after {
    display: none;
  }
}
@media (max-width: 720px) {
  .cenario__lista,
  .bento,
  .seg__lista,
  .impl__passos,
  .wl__lados {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Tabela vira uma lista: cada situação com o antes e o depois embaixo. */
  .ad__tabela thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .ad__tabela tr {
    display: grid;
  }
  .ad__tabela tbody th,
  .ad__tabela td,
  .ad__tabela td:last-child {
    width: auto;
    border-bottom: 0;
  }
  .ad__tabela tbody th {
    padding-bottom: 4px;
  }
  .ad__tabela td {
    padding-top: 8px;
  }
  .ad__tabela tr + tr th {
    border-top: 1px solid var(--line-2);
  }
  .ad__tabela td::before {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tinta-2);
  }
  .ad__tabela td:nth-child(2)::before {
    content: "Hoje";
  }
  .ad__tabela td:nth-child(3)::before {
    content: "Com o ZapNotei";
    color: var(--green);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wl__lado--marca {
    transition: none;
  }
}
