/* Página "Quanto custa a API Oficial do WhatsApp": usa o kit das páginas de segmento (segmento.css)
   e acrescenta a tabela de preços do topo, o quadro do que muda e a calculadora. */

/* tabela resumida no topo (o "palco" do hero) */
.ap-tabela-mini { margin: 0; padding: 26px 28px 22px; border-radius: 22px; background: #F6FAFB; color: #16211F; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.ap-tabela-mini figcaption { font-family: var(--mono); font-size: 12.5px; color: #0C8695; margin-bottom: 14px; }
.ap-tabela-mini dl { margin: 0; display: flex; flex-direction: column; }
.ap-tabela-mini dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid #E1E9EC; }
.ap-tabela-mini dt { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ap-tabela-mini dd { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ap-tabela-mini .ap-novo dd { color: #0C8695; }
.ap-tabela-mini dt span, .ap-selo { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 20px; background: #FFE9C7; color: #8A5300; }
.ap-tabela-mini p { margin: 8px 0 0; font-size: 13px; color: #586A71; }

/* o que muda */
.ap-muda { border-radius: 22px; background: #fff; border: 1px solid #E1E9EC; overflow: hidden; }
.ap-muda-cab, .ap-muda-l { display: grid; grid-template-columns: minmax(0, 1fr) 150px 190px; align-items: center; }
.ap-muda-cab span { padding: 14px 24px; font-family: var(--mono); font-size: 13px; color: #586A71; background: #F6FAFB; border-bottom: 1px solid #E1E9EC; }
.ap-muda-l + .ap-muda-l { border-top: 1px solid #E1E9EC; }
.ap-muda-l p { margin: 0; padding: 16px 24px; font-size: 15.5px; line-height: 1.5; color: #16211F; font-variant-numeric: tabular-nums; }
.ap-muda-l p small { display: block; margin-top: 2px; font-size: 13.5px; color: #586A71; }
.ap-muda-l p:nth-child(2) { color: #586A71; }
.ap-muda-l p:nth-child(3) { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-muda-novo { background: linear-gradient(90deg, rgba(255,233,199,.35), transparent 70%); }

/* calculadora */
.ap-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ap-campos { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #E1E9EC; }
.ap-campo { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 16px; align-items: center; }
.ap-rot { font-size: 15.5px; font-weight: 600; color: #16211F; line-height: 1.35; }
.ap-rot small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: #586A71; }
.ap-campo input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #CDD8DC; background: #F6FAFB; font: inherit; font-size: 17px; font-weight: 600; color: #16211F; text-align: right; font-variant-numeric: tabular-nums; }
.ap-campo input:focus { outline: 2px solid #15B5C6; outline-offset: 1px; background: #fff; }
.ap-res { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: #0F2830; color: #fff; }
.ap-res > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rot valor" "rot sub"; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ap-res > div:last-child { border-bottom: 0; }
.ap-res small { grid-area: rot; align-self: center; font-family: var(--mono); font-size: 13px; color: #9FB0B6; }
.ap-res strong { grid-area: valor; justify-self: end; font-size: 26px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.ap-res span { grid-area: sub; justify-self: end; font-size: 13px; color: #9FB0B6; }
.ap-res .ap-dif strong { color: #FFC56B; font-size: 30px; }
.ap-nota { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.6; color: #586A71; }

/* dicas */
.ap-dicas { counter-reset: dica; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 900px; }
.ap-dicas li { counter-increment: dica; position: relative; padding: 18px 0 18px 56px; border-top: 1px solid #E1E9EC; font-size: 16px; line-height: 1.65; color: #3F4E54; }
.ap-dicas li:last-child { border-bottom: 1px solid #E1E9EC; }
.ap-dicas li::before { content: counter(dica, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #0C8695; }
.ap-dicas strong { color: #16211F; }

.sg-rec p a { color: #0C8695; }

/* fontes */
.ap-fontes { max-width: 900px; padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px dashed #CDD8DC; font-size: 14.5px; line-height: 1.6; color: #3F4E54; }
.ap-fontes strong { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: #0C8695; }
.ap-fontes p { margin: 6px 0 8px; }
.ap-fontes ul { margin: 0; padding-left: 18px; }
.ap-fontes a { color: #0C8695; word-break: break-word; }

@media (max-width: 900px) {
  .ap-calc { grid-template-columns: minmax(0, 1fr); }
  .ap-tabela-mini { max-width: 460px; }
}
@media (max-width: 560px) {
  .ap-muda-cab { display: none; }
  .ap-muda-l { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ap-muda-l p:first-child { grid-column: 1 / -1; padding-bottom: 6px; }
  .ap-muda-l p:nth-child(2), .ap-muda-l p:nth-child(3) { padding-top: 0; font-size: 15px; }
  .ap-muda-l p:nth-child(2)::before, .ap-muda-l p:nth-child(3)::before { content: attr(data-rot); display: block; width: 100%; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #586A71; }
  .ap-muda-l p { padding-left: 18px; padding-right: 18px; }
  .ap-campos, .ap-res { padding: 18px; }
  .ap-campo { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; }
  .ap-res strong { font-size: 22px; }
  .ap-res .ap-dif strong { font-size: 25px; }
  .ap-dicas li { padding-left: 40px; font-size: 15.5px; }
}
