/* 4. perguntas — a conversa (prefixo pe-) */
.pe-m1 { width: 70vmax; height: 70vmax; left: -24vmax; top: -24vmax; background: radial-gradient(closest-side in oklab, rgb(107 34 54 / 1), rgb(107 34 54 / 0)); animation-duration: 34s; }
.pe-m2 { width: 56vmax; height: 56vmax; right: -18vmax; top: 30%; background: radial-gradient(closest-side in oklab, rgb(209 70 107 / .2), rgb(209 70 107 / 0)); animation-duration: 29s; animation-delay: -10s; }
.pe-m3 { width: 60vmax; height: 60vmax; left: 20vw; bottom: -34vmax; background: radial-gradient(closest-side in oklab, rgb(146 100 64 / .3), rgb(146 100 64 / 0)); animation-duration: 37s; animation-delay: -16s; }

.pe-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.pe-esq { position: sticky; top: 2rem; }
.pe-h2 { font-size: clamp(3rem, 1.2rem + 5vw, 6.4rem); line-height: .92; }
.pe-lead { color: var(--creme-2); margin-bottom: 2.2rem; }

.pe-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: pe; }
.pe-indice li { counter-increment: pe; }
.pe-indice a { display: flex; gap: .8rem; align-items: baseline; padding: .45rem 0; min-height: 44px; color: var(--creme-2); text-decoration: none; font-size: 1rem; border-bottom: 1px solid rgb(233 214 204 / .14); }
.pe-indice a::before { content: counter(pe, decimal-leading-zero); font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-mini); color: var(--pele); }
.pe-indice a:hover { color: var(--creme); }
.pe-indice a:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

/* a conversa */
.pe-conversa { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); }
.pe-par { display: grid; gap: 1rem; scroll-margin-top: 2rem; }
.pe-quem { display: block; font-family: var(--f-texto); font-size: var(--t-mini); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem; }

.pe-p {
  justify-self: end; max-width: min(30rem, 88%); margin: 0;
  font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.75rem); line-height: 1.15;
  background: var(--creme); color: var(--vinho); padding: .8rem 1.15rem .9rem;
  border-radius: 22px 22px 6px 22px; box-shadow: 5px 5px 0 var(--magenta);
  rotate: 1deg;
}
.pe-p .pe-quem { color: var(--vinho-2); }

.pe-r { display: flex; align-items: flex-end; gap: .75rem; max-width: 44rem; }
.pe-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--creme); color: var(--ouro-rose); border: 2px solid var(--pele); }
.pe-av svg { width: 26px; height: 24px; }
.pe-rb {
  background: var(--vinho-2); color: var(--creme); border: 2px solid rgb(233 214 204 / .22);
  border-radius: 22px 22px 22px 6px; padding: 1rem 1.25rem 1.1rem; min-width: 0;
}
.pe-rb .pe-quem { color: var(--pele); }
.pe-rb p { margin: 0 0 .7rem; }
.pe-rb p:last-child { margin-bottom: 0; }
.pe-rb b { color: #fff; font-weight: 600; }
.pe-link { color: var(--creme); font-weight: 600; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pe-link:focus-visible, .pe-btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.pe-acoes { display: flex; flex-wrap: wrap; gap: .8rem; }
.pe-btn { font-size: 1rem; padding: .8rem 1.25rem; }
.pe-ico { width: 1.25em; height: 1.25em; flex: none; }
.pe-planos { list-style: none; margin: .2rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem .5rem; }
.pe-planos li { font-family: var(--f-titulo); font-weight: 600; font-size: 1.02rem; padding: .3rem .7rem; border-radius: 10px; background: var(--creme); color: var(--vinho); box-shadow: 3px 3px 0 var(--magenta); }
.pe-planos li:nth-child(odd) { rotate: -1.5deg; }
.pe-planos li:nth-child(even) { rotate: 1.2deg; }
.pe-planos li:last-child { background: var(--pele); }
.pe-cita { margin: .2rem 0 .8rem; padding: .6rem .9rem; border-left: 4px solid var(--magenta); font-family: var(--f-titulo); font-weight: 600; font-size: 1.25rem; line-height: 1.2; background: rgb(74 22 38 / .45); border-radius: 0 10px 10px 0; }

/* objetos das respostas-chave */
.pe-selo { display: inline-flex; flex-direction: column; margin: .3rem 0 1rem !important; padding: .5rem .95rem .6rem; border-radius: 14px; border: 2px solid var(--vinho); background: var(--creme); color: var(--vinho); box-shadow: 5px 5px 0 var(--magenta); rotate: -2deg; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1; }
.pe-selo span { font-family: var(--f-texto); font-weight: 600; font-size: var(--t-mini); letter-spacing: .1em; text-transform: uppercase; color: var(--vinho-2); margin-bottom: .3rem; }
.pe-anos { flex-direction: row; align-items: baseline; gap: .35rem; float: right; margin: -.2rem 0 .6rem 1rem !important; rotate: 3deg; background: var(--pele); font-size: 1.4rem; }
.pe-anos b { color: var(--vinho); font-size: 3rem; line-height: .9; }
.pe-datas { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 1rem !important; }
.pe-datas span { font-family: var(--f-titulo); font-weight: 700; font-size: 1.5rem; padding: .25rem .7rem; border-radius: 12px; background: var(--creme); color: var(--vinho); box-shadow: 4px 4px 0 var(--magenta); rotate: -2deg; }
.pe-datas span + svg + span { rotate: 2deg; background: var(--pele); }
.pe-datas svg { width: 40px; height: 12px; color: var(--pele); }
.pe-rb::after { content: ""; display: block; clear: both; }
#pe-outra .pe-p { background: var(--pele); }

/* índice acompanha a leitura */
.pe-indice a { position: relative; transition: color .3s, padding-left .3s; }
.pe-indice a.pe-aqui { color: var(--creme); padding-left: .9rem; }
.pe-indice a.pe-aqui::after { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; border-radius: 2px; background: var(--magenta); }

/* rodada 2: rótulos só na primeira troca (como num chat de verdade) */
.pe-par:not(:first-child) .pe-quem { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* caudas dos balões */
.pe-p { position: relative; }
.pe-p::after { content: ""; position: absolute; right: -2px; bottom: -11px; width: 22px; height: 14px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pe-rb { position: relative; }
.pe-rb::before { content: ""; position: absolute; left: -12px; bottom: 10px; width: 14px; height: 16px; background: var(--vinho-2); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
/* o "?" gigante atrás do título */
.pe-esq { isolation: isolate; }
.pe-esq::before { content: "?"; position: absolute; z-index: -1; right: 4%; top: -3rem; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(14rem, 8rem + 14vw, 26rem); line-height: 1; color: var(--magenta); opacity: .16; rotate: 12deg; pointer-events: none; }
@media (max-height: 940px) and (min-width: 901px) {
  .pe-indice a { min-height: 38px; padding: .3rem 0; font-size: .95rem; }
  .pe-lead { margin-bottom: 1.4rem; }
}
@media (max-width: 900px) { .pe-esq::before { top: -4rem; right: -1rem; font-size: 13rem; } }

/* chegada das mensagens (só com JS) */
.pe-digita { display: none; }
.js .pe-par:not(.pe-on) .pe-p { opacity: 0; translate: 0 18px; scale: .96; }
.js .pe-par:not(.pe-chegou) .pe-r { opacity: 0; translate: 0 14px; }
.js .pe-p, .js .pe-r { transition: opacity .45s cubic-bezier(.2,.7,.2,1), translate .55s cubic-bezier(.34,1.4,.64,1), scale .55s cubic-bezier(.34,1.4,.64,1); }
.js .pe-par { position: relative; }
.js .pe-digita { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: .75rem; opacity: 0; pointer-events: none; transition: opacity .25s; }
.js .pe-par.pe-on:not(.pe-chegou) .pe-digita { opacity: 1; }
.pe-digita .pe-pts { display: inline-flex; gap: 5px; padding: .85rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--vinho-2); border: 2px solid rgb(233 214 204 / .22); }
.pe-digita i { width: 8px; height: 8px; border-radius: 50%; background: var(--pele); animation: pe-pt 1s ease-in-out infinite; }
.pe-digita i:nth-child(2) { animation-delay: .15s; } .pe-digita i:nth-child(3) { animation-delay: .3s; }
@keyframes pe-pt { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -5px; opacity: 1; } }

@media (max-width: 900px) {
  .pe-in { grid-template-columns: minmax(0, 1fr); }
  .pe-esq { position: relative; top: auto; }
  .pe-indice { display: none; }
}
@media (max-width: 520px) {
  .pe-p { max-width: 92%; }
  .pe-av { width: 38px; height: 38px; }
  .pe-av svg { width: 22px; height: 20px; }
  .pe-r { gap: .5rem; }
  .pe-rb { padding: .9rem 1rem 1rem; }
  .pe-acoes .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pe-par .pe-p, .js .pe-par .pe-r { opacity: 1 !important; translate: none !important; scale: none !important; }
  .js .pe-digita { display: none; }
}
.pe-tel { white-space: nowrap; }
@media (max-width: 420px) { .pe-tel { font-size: 1.5rem; } .pe-tel span { white-space: normal; letter-spacing: .06em; } }
