/* Agente Fechador — animação ao vivo (home) e simulador (demonstração) */
.phone-head .avatar,.af-demo-phone header>span{font-size:0!important;color:transparent!important;background:url('/favicon.svg') center/contain no-repeat!important;border:2px solid rgba(255,255,255,.95)!important;border-radius:13px!important;box-shadow:0 6px 14px rgba(4,44,83,.25)}
.hero .messages .msg{text-align:left}
.messages.af-live{overflow:hidden}
.messages.af-live .msg{animation:afMsgIn .35s ease-out both}
.messages .msg.af-out{animation:afMsgOut .3s ease-in forwards}
.msg.af-typing{display:inline-flex;gap:5px;align-items:center;padding:13px 15px!important;background:#fff!important}
.msg.af-typing i,.sim-typing i{width:7px;height:7px;border-radius:50%;background:#1268e8;opacity:.35;animation:afDot 1.1s infinite}
.msg.af-typing i:nth-child(2),.sim-typing i:nth-child(2){animation-delay:.15s}
.msg.af-typing i:nth-child(3),.sim-typing i:nth-child(3){animation-delay:.3s}
.result-card.af-pop{animation:afPop .6s ease-out}
@keyframes afMsgIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes afMsgOut{to{opacity:0;transform:translateY(-8px);height:0;padding-top:0;padding-bottom:0;margin:0}}
@keyframes afDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
@keyframes afPop{0%{transform:scale(1)}40%{transform:scale(1.07)}100%{transform:scale(1)}}

/* Demonstração: cabeçalho com o logo oficial */
.af-demo-brand{display:inline-flex;align-items:center;font-family:"Baloo 2",Inter,system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;color:#12304f}
.af-demo-brand:before{content:"";flex:0 0 36px;width:36px;height:36px;margin-right:10px;background:url('/favicon.svg') center/contain no-repeat}
.af-demo-brand b{color:#ff8a25;margin-left:.2em}

/* Reprodução dos exemplos */
.af-demo-bubble.af-hide{display:none}
.af-demo-bubble.af-show{animation:afMsgIn .35s ease-out both}
.af-replay{margin-top:14px;background:#fff;border:1px solid #dce8f5;color:#1268e8;font:800 14px Inter,system-ui,sans-serif;padding:10px 16px;border-radius:12px;cursor:pointer}
.af-replay:hover{border-color:#1268e8}
.af-demo-typing{align-self:flex-start;display:inline-flex;gap:5px;padding:13px 15px;background:#fff;border-radius:15px;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.af-demo-typing i{width:7px;height:7px;border-radius:50%;background:#1268e8;opacity:.35;animation:afDot 1.1s infinite}
.af-demo-typing i:nth-child(2){animation-delay:.15s}.af-demo-typing i:nth-child(3){animation-delay:.3s}

/* Simulador "Experimente" */
.sim{margin:34px 0 10px;padding:30px;background:#fff;border:1px solid #dce8f5;border-radius:28px;box-shadow:0 18px 48px rgba(26,80,140,.10);font-family:Inter,system-ui,sans-serif;color:#12304f}
.sim .sim-kicker{display:inline-block;background:#fff0df;color:#db6500;font-weight:800;font-size:12px;letter-spacing:.12em;padding:7px 13px;border-radius:999px}
.sim h2{font-family:"Baloo 2",Inter,sans-serif;font-size:clamp(28px,4vw,38px);line-height:1.1;margin:14px 0 8px;color:#103d72}
.sim>p{color:#61758a;font-size:17px;line-height:1.55;margin:0 0 18px;max-width:720px}
.sim-biz{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.sim-biz button{border:1px solid #dce8f5;background:#fff;color:#12304f;font:800 15px Inter,system-ui,sans-serif;padding:11px 16px;border-radius:14px;cursor:pointer;transition:.15s}
.sim-biz button:hover{border-color:#1268e8}
.sim-biz button[aria-pressed="true"]{background:#1268e8;border-color:#1268e8;color:#fff;box-shadow:0 8px 18px rgba(18,104,232,.22)}
.sim-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:22px;align-items:start}
.sim-phone{border:9px solid #12304f;border-radius:34px;overflow:hidden;background:#f0f5fb;box-shadow:0 24px 60px rgba(26,80,140,.18)}
.sim-phone header{display:flex;align-items:center;gap:12px;background:#1268e8;color:#fff;padding:16px 18px}
.sim-phone header span{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#fff url('/favicon.svg') center/contain no-repeat}
.sim-phone header b{display:block;font-size:17px}.sim-phone header small{color:#c9f7da;font-size:13px}
.sim-msgs{height:340px;overflow-y:auto;padding:18px 14px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.sim-msg{max-width:84%;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.45;box-shadow:0 4px 12px rgba(0,0,0,.06);animation:afMsgIn .35s ease-out both}
.sim-msg.agent{align-self:flex-start;background:#fff;border-bottom-left-radius:5px}
.sim-msg.client{align-self:flex-end;background:#d8f9c9;border-bottom-right-radius:5px}
.sim-typing{align-self:flex-start;display:inline-flex;gap:5px;padding:13px 15px;background:#fff;border-radius:16px;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.sim-chips{display:flex;flex-wrap:wrap;gap:8px;padding:12px 12px 14px;background:#fff;border-top:1px solid #e3ecf7}
.sim-chips button{border:1px solid #cfe0f5;background:#eaf3ff;color:#1268e8;font:700 14px Inter,system-ui,sans-serif;padding:9px 13px;border-radius:999px;cursor:pointer}
.sim-chips button:hover{background:#dbeaff}
.sim-chips button:disabled{opacity:.45;cursor:default}
.sim-panel{background:#f7faff;border:1px solid #dce8f5;border-radius:22px;padding:20px}
.sim-panel h3{margin:0;font-family:"Baloo 2",Inter,sans-serif;font-size:22px;color:#103d72}
.sim-panel>p{margin:4px 0 14px;color:#61758a;font-size:14px}
.sim-events{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sim-events li{background:#fff;border:1px solid #dce8f5;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.4;animation:afMsgIn .35s ease-out both}
.sim-events li small{display:block;color:#61758a;font-size:12px;margin-top:3px}
.sim-events li.hot{border-color:#ffc58f;background:#fff6ec}
.sim-events li.human{border-color:#a7e3c3;background:#effbf4}
.sim-events .empty{color:#61758a;background:transparent;border-style:dashed}
.sim-note{margin:16px 0 0;color:#61758a;font-size:13px}
.sim-cta{display:inline-flex;margin-top:18px;background:#ff8a25;color:#fff!important;text-decoration:none;font:800 16px Inter,system-ui,sans-serif;padding:15px 22px;border-radius:14px;box-shadow:0 10px 22px rgba(255,138,37,.25)}
.sim-cta:hover{background:#f77a0e}
@media(max-width:820px){.sim{padding:20px;border-radius:22px}.sim-grid{grid-template-columns:1fr}.sim-msgs{height:300px}}
@media(prefers-reduced-motion:reduce){.messages.af-live .msg,.sim-msg,.sim-events li,.af-demo-bubble.af-show{animation:none}.msg.af-typing i,.sim-typing i,.af-demo-typing i{animation:none;opacity:.7}}

/* Ilustração "Ele atende. Você decide." */
.benefit-illustration.af-scene{display:flex;flex-direction:column;justify-content:center;position:relative;height:auto;min-height:420px;padding:58px 32px 32px;background:#fff3df;overflow:hidden;font-family:Inter,system-ui,sans-serif;color:#12304f;gap:0}
.af-scene,.af-scene *{box-sizing:border-box}
.af-scene .sc-dec{position:absolute;border-radius:50%;pointer-events:none}
.af-scene .sc-dec.d1{width:300px;height:300px;left:-110px;bottom:-140px;background:#ffe6c4}
.af-scene .sc-dec.d2{width:200px;height:200px;right:-70px;top:-80px;background:#ffeacc}
.af-scene .sc-badge{position:absolute;right:24px;top:18px;display:inline-flex;align-items:center;gap:8px;background:#fff;color:#20ae65;font-weight:800;font-size:13px;padding:8px 14px;border-radius:999px;box-shadow:0 10px 24px rgba(160,100,20,.14);z-index:3}
.af-scene .sc-badge i{width:9px;height:9px;border-radius:50%;background:#20ae65;box-shadow:0 0 0 4px #e6f8ee}
.af-scene .sc-chat{position:relative;z-index:1;width:min(100%,430px);background:#fff;border-radius:24px;padding:14px 14px 16px;box-shadow:0 22px 50px rgba(120,80,20,.16);text-align:left}
.af-scene .sc-head{display:flex;align-items:center;gap:10px;padding:2px 4px 12px;border-bottom:1px solid #f0e6d6;margin-bottom:6px}
.af-scene .sc-logo{flex:0 0 36px;width:36px;height:36px;background:url('/favicon.svg') center/contain no-repeat}
.af-scene .sc-head b{display:block;font-size:15px}
.af-scene .sc-head small{display:block;color:#20ae65;font-size:12px;font-weight:700}
.af-scene .sc-msg{width:fit-content;max-width:86%;font-size:14px;line-height:1.4;padding:9px 13px;border-radius:15px;margin-top:8px}
.af-scene .sc-msg.c{margin-left:auto;background:#d8f9c9;border-bottom-right-radius:5px}
.af-scene .sc-msg.a{background:#eaf3ff;border-bottom-left-radius:5px}
.af-scene .sc-alert{position:relative;z-index:3;align-self:center;margin:-13px 0 -13px;display:inline-flex;align-items:center;gap:6px;background:#1268e8;color:#fff;font-weight:800;font-size:12.5px;padding:8px 14px;border-radius:999px;box-shadow:0 10px 22px rgba(18,104,232,.3)}
.af-scene .sc-owner{position:relative;z-index:2;align-self:flex-end;width:min(94%,410px);background:#fff;border-radius:22px;padding:22px 16px 16px;box-shadow:0 24px 54px rgba(120,80,20,.2);border:2px solid #ffd2a8;text-align:left}
.af-scene .sc-owner-top{display:flex;align-items:center;gap:11px}
.af-scene .sc-avatar{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#fff0df;display:grid;place-items:center;overflow:hidden}
.af-scene .sc-avatar svg{width:44px;height:44px}
.af-scene .sc-owner b{display:block;font-size:15px;line-height:1.25}
.af-scene .sc-owner small{display:block;color:#61758a;font-size:12.5px;margin-top:2px}
.af-scene .sc-actions{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}
.af-scene .sc-btn{font-weight:800;font-size:13px;padding:9px 12px;border-radius:11px;background:#eaf3ff;color:#1268e8}
.af-scene .sc-btn.main{background:#ff8a25;color:#fff;box-shadow:0 8px 16px rgba(255,138,37,.28)}
@media(max-width:560px){.benefit-illustration.af-scene{padding:56px 16px 20px}.af-scene .sc-owner{width:100%}.af-scene .sc-badge{right:16px;top:16px}}
@media(prefers-reduced-motion:no-preference){
 .af-scene.play .sc-chat,.af-scene.play .sc-msg,.af-scene.play .sc-alert,.af-scene.play .sc-owner,.af-scene.play .sc-badge{animation:afMsgIn .45s ease-out both}
 .af-scene.play .sc-badge{animation-delay:.1s}
 .af-scene.play .sc-msg:nth-of-type(2){animation-delay:.45s}
 .af-scene.play .sc-msg:nth-of-type(3){animation-delay:1.1s}
 .af-scene.play .sc-msg:nth-of-type(4){animation-delay:1.8s}
 .af-scene.play .sc-alert{animation-delay:2.4s}
 .af-scene.play .sc-owner{animation-delay:2.8s}
 .af-scene.play .sc-btn.main{animation:afPop .6s ease-out 3.6s both}
}
