/* Componente "Resultado do orçamento" (comum às três versões). Autossuficiente: define os próprios tokens. */
.res{--rv:#05401a;--rv2:#0a5a27;--rf:#2e9a3f;--rf100:#e3f2e6;--rf50:#f1f8f2;--rt:#13231a;--rs:#4a5c50;--rl:#d3dfd5;--rw:#17803a;--rw2:#0f6a2d;--rz:#0b5f95;--rease:cubic-bezier(.2,.7,.2,1);color:var(--rt);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:.8125rem;line-height:1.45;text-align:left}
.res *{box-sizing:border-box}
.res[hidden]{display:none}
.res .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.res .selo{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--rv);background:var(--rf100);border-radius:10px;padding:3px 12px;margin-bottom:8px}
.res .selo svg,.res .confianca svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.res .selo svg{width:13px;height:13px}
.res h2{font-size:1.25rem;font-weight:600;line-height:1.2;margin:0;color:var(--rv);outline:0;text-wrap:balance}
.res .r-sub{margin:2px 0 0;font-size:.75rem;color:var(--rs)}
.res .r-resumo{margin:10px 0 8px;padding:10px 14px;border-radius:8px;background:linear-gradient(135deg,var(--rv),#0a5a3c);color:#fff;box-shadow:0 8px 24px rgba(5,64,26,.18)}
.res .r-k{display:block;font-size:.75rem;font-weight:500;color:#c4ecca}
.res .r-val{display:grid;grid-template-columns:auto auto 1fr;align-items:start;gap:0 14px;margin-top:6px;font-variant-numeric:tabular-nums}
.res .r-val b{display:block;font-size:1.5rem;font-weight:700;letter-spacing:-.015em;line-height:1.1;white-space:nowrap}
.res .r-val i{font-style:normal;font-size:.9375rem;font-weight:600;opacity:.85;margin-left:2px}
.res .r-val small{display:block;margin-top:3px;font-size:.75rem;color:#c4ecca}
.res .r-mais{position:relative;width:18px;height:18px;margin-top:6px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:linear-gradient(#fff,#fff) center/8px 1.5px no-repeat,linear-gradient(#fff,#fff) center/1.5px 8px no-repeat}
.res .r-set{margin:14px 0 12px}
.res .fases{list-style:none;margin:0;padding:0;display:grid;gap:0;border:1px solid var(--rl);border-radius:8px;overflow:hidden}
.res .fases li{display:flex;align-items:center;gap:10px;padding:8px 12px;font-size:.8125rem;font-weight:500}
.res .fases li+li{border-top:1px solid var(--rl)}
.res .fases .nn{width:20px;height:20px;flex:none;border-radius:50%;background:var(--rf100);color:var(--rv);font-weight:600;font-size:.6875rem;display:grid;place-items:center}
.res .r-nota{margin:6px 0 0;font-size:.75rem;color:var(--rs)}
.res .r-big{margin:2px 0 0;font-size:1.4rem;font-weight:700;letter-spacing:-.015em;line-height:1.15;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;font-variant-numeric:tabular-nums}
.res .r-big i{font-style:normal;font-weight:500;opacity:.75}
.res .r-big small{font-size:.9375rem;font-weight:600;opacity:.92;letter-spacing:0}
.res .r-ex{margin:4px 0 0;font-size:.75rem;color:#dff1e3}
.res .r-h{margin:0 0 4px;font-size:.75rem;font-weight:500;color:var(--rs)}
.res .confianca{display:flex;align-items:center;gap:6px;margin:0;font-size:.75rem;color:var(--rs);line-height:1.35}
.res .confianca svg{width:16px;height:16px;flex:none;fill:currentColor;stroke:none;color:var(--rv)}
.res .nota{margin:8px 0 0;font-size:.75rem;color:var(--rs)}
.res .nota:empty{display:none}
.res .r-acoes{position:sticky;bottom:0;z-index:6;display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:8px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 12px)}
.res .r-wa{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 20px;border-radius:10px;background:var(--rw);color:#fff;font-weight:700;font-size:.9375rem;text-decoration:none;box-shadow:0 8px 20px rgba(23,128,58,.35);transition:background .2s,transform .1s}
.res .r-wa:hover{background:var(--rw2)}
.res .r-wa:active{transform:scale(.985)}
.res .r-wa svg{width:24px;height:24px;fill:currentColor;stroke:none;flex:none}
.res .r-refazer{flex:none;min-height:44px;padding:0 8px;background:none;border:0;font:500 .8125rem system-ui,sans-serif;color:var(--rz);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.res .r-refazer:hover{color:var(--rv)}
.res a:focus-visible,.res button:focus-visible{outline:3px solid var(--rz);outline-offset:2px}
.res h2:focus-visible{outline:0}
@media (max-width:479px){
  .res .r-acoes{flex-wrap:wrap}
  .res .r-refazer{width:100%}
}
/* entrada em cascata, contador e brilho */
.res.anima > *{animation:r-subir .6s var(--rease) both;animation-delay:calc(var(--i,0) * 60ms)}
.res.anima .selo{animation:r-selo .6s var(--rease) both;animation-delay:0s}
.res.anima .r-resumo{position:relative;overflow:hidden}
.res.anima .r-resumo::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.28) 50%,transparent 65%);transform:translateX(-120%);animation:r-varre 1.3s .75s var(--rease) both;pointer-events:none}
.res.anima .confianca svg{animation:r-escudo .8s .55s cubic-bezier(.3,1.6,.5,1) both}
@keyframes r-subir{from{opacity:0;transform:translateY(12px)}}
@keyframes r-selo{from{opacity:0;transform:translateY(-8px) scale(.88)}}
@keyframes r-escudo{from{opacity:0;transform:scale(.4) rotate(-14deg)}}
@keyframes r-varre{to{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.res *,.res *::before,.res *::after{animation:none!important;transition:none!important}}
