/* playchat: ajustes da revisão v3, carregados depois de site.css */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.faq-body a, .form-grid a, .page-hero a { color: var(--accent); text-decoration: underline; }
.v3-gap { margin-top: 3.5rem; }
.h3 { font-size: 1.25rem; }

/* topo com a demonstração */
.v3-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; align-items: center; }
.v3-hero-grid > * { min-width: 0; }
.v3-hero-copy .display { text-wrap: balance; }
.v3-demo { width: 100%; max-width: 420px; justify-self: end; }
.v3-demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-bottom: .75rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.v3-demo-tabs button { min-height: 40px; padding: 0 .3rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-soft); font: 600 .82rem/1 var(--font-body); cursor: pointer; }
.v3-demo-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.v3-phone { overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; background: #0e1014; box-shadow: var(--shadow-lg); }
.v3-phone-top { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; background: #181b22; border-bottom: 1px solid var(--border); }
.v3-phone-top b { display: block; font-size: .92rem; color: var(--text); }
.v3-phone-top small { color: var(--success); font-size: .74rem; }
.v3-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.v3-phone-body { display: flex; flex-direction: column; gap: .5rem; height: 400px; padding: .9rem; overflow-y: auto; scrollbar-width: none; background: radial-gradient(circle at 20% 10%, rgba(107, 76, 255, .1), transparent 55%); }
.v3-phone-body::-webkit-scrollbar { display: none; }
.v3-msg { max-width: 86%; padding: .55rem .75rem; border-radius: 13px; font-size: .88rem; line-height: 1.4; color: var(--text); animation: v3-up .22s ease-out both; }
.v3-msg.in { align-self: flex-start; background: #23262f; border-bottom-left-radius: 4px; }
.v3-msg.out { align-self: flex-end; background: #4a35c8; border-bottom-right-radius: 4px; }
.v3-msg.human { background: #0f6b57; }
.v3-sys { align-self: center; padding: .2rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--text-soft); font-size: .74rem; }
.v3-charge { display: grid; gap: .4rem; width: 86%; }
.v3-charge-top { display: flex; justify-content: space-between; gap: .5rem; }
.v3-btn { display: block; padding: .42rem; border-radius: 8px; background: rgba(255, 255, 255, .15); text-align: center; font-weight: 600; font-size: .82rem; }
.v3-typing { display: flex; gap: 4px; padding: .7rem .8rem; }
.v3-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .75); animation: v3-dot 1s infinite; }
.v3-typing i:nth-child(2) { animation-delay: .15s; }
.v3-typing i:nth-child(3) { animation-delay: .3s; }
.v3-demo-note { display: flex; align-items: flex-start; gap: .55rem; min-height: 3.1rem; margin: .8rem 0 0; font-size: .86rem; line-height: 1.4; color: var(--text-soft); }
.v3-pulse { flex: none; width: 8px; height: 8px; margin-top: .36rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 240, 255, .14); }
.v3-demo-foot { margin: .15rem 0 0; font-size: .74rem; color: var(--text-mute); }
@keyframes v3-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes v3-dot { 40% { opacity: .25; transform: translateY(-2px); } }

/* faixa de fatos */
.v3-facts { border-block: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.v3-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.7rem; }
.v3-facts b { display: block; font: 700 1.9rem/1.1 var(--font-display); color: var(--text); }
.v3-facts span { font-size: .88rem; color: var(--text-soft); }

/* segmentos */
.v3-seg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.v3-seg { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.v3-seg h3 { margin: 1rem 0 .35rem; }
.v3-seg p { margin: 0 0 .9rem; color: var(--text-soft); }
.v3-seg .checklist { margin: 0; }

/* lista da IA */
.v3-ai-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.3rem; margin-top: 1.3rem; }
.v3-ai-list > div { display: flex; gap: .6rem; font-size: .92rem; line-height: 1.4; color: var(--text-soft); }
.v3-ai-list svg { flex: none; width: 21px; height: 21px; color: var(--accent); }
.v3-ai-list b { color: var(--text); }

/* planos */
.v3-plan-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 780px; margin-inline: auto; }
.v3-plan-mini a { display: block; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.v3-plan-mini a:hover { border-color: var(--primary); }
.v3-plan-mini span { color: var(--text-soft); font-weight: 600; }
.v3-plan-mini b { display: block; margin: .3rem 0; font: 700 2.1rem/1.1 var(--font-display); }
.v3-plan-mini small { font-size: .95rem; color: var(--text-soft); font-weight: 500; }
.v3-plan-mini em { font-style: normal; font-size: .9rem; color: var(--text-soft); }
.plan-price .per { margin-left: .2rem; color: var(--text-soft); }
.v3-table-wrap { overflow-x: auto; max-width: 860px; margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.v3-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; }
.v3-table th, .v3-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.v3-table thead th { background: rgba(255, 255, 255, .05); font-family: var(--font-display); }
.v3-table tbody th { font-weight: 500; color: var(--text); }
.v3-table tr:last-child th, .v3-table tr:last-child td { border-bottom: 0; }
.v3-table .yes { color: var(--success); font-weight: 600; }
.v3-table .no { color: var(--text-mute); }
.v3-addons { max-width: 860px; margin: 2rem auto 0; }
.v3-addons p { color: var(--text-soft); }

/* passos */
.v3-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.v3-steps li { counter-increment: passo; padding-top: 1rem; border-top: 2px solid var(--primary); }
.v3-steps li::before { content: counter(passo); display: block; font: 700 1.6rem/1 var(--font-display); color: var(--primary); margin-bottom: .6rem; }
.v3-steps b { display: block; margin-bottom: .25rem; }
.v3-steps span { font-size: .92rem; color: var(--text-soft); }

.form-erro { padding: .7rem .9rem; border-radius: 10px; background: rgba(239, 68, 68, .13); color: #fca5a5; font-size: .9rem; }
.footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }

@media (max-width: 960px) {
  .v3-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .v3-demo { justify-self: center; }
  .v3-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .v3-seg-grid, .v3-plan-mini, .v3-ai-list { grid-template-columns: minmax(0, 1fr); }
  .v3-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-phone-body { height: 360px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .v3-steps { grid-template-columns: minmax(0, 1fr); }
  .v3-demo-tabs button { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-msg, .v3-typing i { animation: none; }
}

/* ajustes da conferência visual */
.v3-seg .checklist { padding-left: 0; list-style: none; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 420px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-accent { padding-inline: .8rem; }
  .logo img { max-width: 104px; height: auto; }
}
