/* Habite-se DF — CTA contextual da comissão (v6)
 * Escopo local: somente página de comissão e componentes da simulação.
 * Hierarquia cromática: menta para orientação, âmbar para documentação,
 * verde mais vivo exclusivamente na ação principal.
 */
.calc-page .calc-results .calc-next-panel{
  gap:0;
  padding-top:22px;
  border-top:1px solid rgba(128,214,168,.3);
  margin-top:25px;
  background:radial-gradient(ellipse at 95% 8%,rgba(23,174,115,.1),transparent 68%);
}
.calc-page .calc-next-stage{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:8px;
  width:fit-content;
  padding:7px 10px;
  margin:0 0 16px;
  border-radius:999px;
  color:#a1f6c5;
  background:rgba(23,121,84,.32);
  border:1px solid rgba(94,219,159,.3);
  font-size:.65rem;
  letter-spacing:.13em;
  font-weight:870;
  line-height:1.15;
}
.calc-page .calc-next-stage-dot{
  display:block;
  width:7px;height:7px;border-radius:50%;
  background:#63e4a2;box-shadow:0 0 0 4px rgba(99,228,162,.16);
}
.calc-page .calc-results .calc-next-panel h3{
  max-width:30ch;
  margin:0 0 13px;
  color:#f9fffc;
  font-size:clamp(1.18rem,1.75vw,1.55rem);
  letter-spacing:-.033em;
  font-weight:840;
  line-height:1.25;
  text-wrap:balance;
}
.calc-page .calc-next-panel h3 [data-calc-next-prefix],
.calc-page .calc-next-panel h3 [data-calc-next-title-highlight]{
  display:inline;
  line-height:inherit;
  white-space:normal;
  vertical-align:baseline;
}
.calc-page .calc-next-headline-accent{color:#7befb0}
.calc-page .calc-next-panel[data-calc-context="documents"] .calc-next-headline-accent{color:#ffcc85}
.calc-page .calc-next-panel[data-calc-context="negative"] .calc-next-headline-accent{color:#ffbc9e}
.calc-page .calc-results .calc-next-panel p[data-calc-next-description]{
  max-width:52ch;
  margin:0 0 19px;
  color:#cfe7dc;
  line-height:1.65;
  font-size:.86rem;
  font-weight:420;
}
.calc-page .calc-next-strong{color:#f7fffa;font-weight:790}
.calc-page .calc-next-copy-green{color:#a5f5c4;font-weight:760}
.calc-page .calc-next-copy-amber{color:#ffce86;font-weight:760}
.calc-page .calc-next-benefits{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:0 0 20px;
  padding:0;
}
.calc-page .calc-next-benefits li{
  display:flex;
  align-items:flex-start;
  gap:7px;
  min-width:0;
  border-top:1px solid #3b746579;
  padding:10px 0 0;
  color:#e0f3e9;
  font-size:.72rem;
  line-height:1.42;
  font-weight:660;
}
.calc-page .calc-next-benefits li svg{
  flex:none;width:16px;height:16px;
  color:#70e9a5;
  stroke:currentColor;
  stroke-width:2.2;
}
.calc-page .calc-results .calc-next-panel a.calc-next-cta{
  display:flex!important;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height:55px;
  margin:0;
  padding:13px 18px;
  width:100%;
  background:linear-gradient(125deg,#119659,#0b814b);
  color:#fff!important;
  border:1px solid #5bd391;
  border-radius:13px;
  box-shadow:0 10px 27px rgba(7,149,83,.3),0 0 0 2px rgba(64,210,136,.1);
  text-decoration:none;
  text-align:center;
  font-size:clamp(.8rem,.97vw,.94rem);
  font-weight:840;
  letter-spacing:-.01em;
  line-height:1.35;
  transition:transform .19s,box-shadow .19s,background .19s;
}
.calc-page .calc-results .calc-next-panel a.calc-next-cta:hover{
  transform:translateY(-2px);
  background:linear-gradient(125deg,#0b8a51,#086f41);
  box-shadow:0 14px 30px rgba(9,165,96,.35);
}
.calc-page .calc-results .calc-next-panel a.calc-next-cta:focus-visible{
  outline:3px solid #a6ffcf;
  outline-offset:4px;
}
.calc-page .calc-next-cta svg{
  flex:none;
  width:21px;height:21px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
}
.calc-page .calc-results .calc-next-panel p.calc-next-trust{
  display:flex;align-items:flex-start;gap:8px;
  margin:12px 0 0;
  color:#acccba;
  font-size:.7rem;
  line-height:1.5;
}
.calc-page .calc-next-trust svg{
  width:15px;height:15px;flex:none;
  stroke:currentColor;stroke-width:1.7;
  color:#9fdaba;
}
.calc-page .calc-assist-nudge[hidden],
.calc-page .calc-mobile-sticky[hidden]{
  display:none!important;
}
/* Popup estilo documentos: vidro claro, vermelho para ação e âmbar para o tema.
 * Aparece após o resultado real. Não bloqueia a leitura nem a navegação.
 */
.calc-page .calc-assist-nudge{
  position:fixed;
  right:clamp(18px,3.5vw,48px);
  bottom:clamp(18px,3vw,35px);
  z-index:1100;
  display:flex;flex-direction:column;align-items:stretch;
  width:min(420px,calc(100vw - 42px));
  padding:25px 24px 19px;
  border:1px solid rgba(127,174,148,.55);
  border-radius:24px;
  background:linear-gradient(146deg,rgba(252,255,252,.98),rgba(237,247,240,.98));
  box-shadow:0 20px 65px #123f2c33,0 2px 0 #fff9 inset;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  color:#234938;
  opacity:0;
  transform:translate3d(0,22px,0) scale(.985);
  pointer-events:none;
  transition:opacity .32s ease,transform .4s cubic-bezier(.2,.78,.25,1);
  isolation:isolate;
  animation:none;
}
.calc-page .calc-assist-nudge[hidden]{display:none!important}
.calc-page .calc-assist-nudge.is-visible{
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  pointer-events:auto;
}
.calc-page .calc-assist-nudge:before{
  content:"";
  position:absolute;z-index:-1;inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 90% 0%,#ccebd444,transparent 55%);
  pointer-events:none;
}
.calc-page .calc-assist-nudge-close{
  position:absolute;right:13px;top:13px;
  display:grid;place-items:center;
  width:33px;height:33px;
  border:1px solid #d5e5da;
  border-radius:50%;
  background:#ffffffb8;
  color:#48705b;cursor:pointer;
  transition:background .18s,transform .18s;
}
.calc-page .calc-assist-nudge-close svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.9}
.calc-page .calc-assist-nudge-close:hover{background:#dceee2;transform:rotate(90deg)}
.calc-page .calc-assist-nudge-eyebrow{
  display:flex;align-items:center;
  gap:8px;
  margin:0 30px 12px 0;
  font-size:.69rem;
  font-weight:820;
  text-transform:uppercase;
  letter-spacing:.105em;
  line-height:1.45;
  color:#278454;
}
.calc-page .calc-assist-nudge-dot{
  display:block;flex:none;
  width:8px;height:8px;border-radius:50%;
  background:#27945d;
  box-shadow:0 0 0 5px #3aa46d1a;
}
.calc-page .calc-assist-nudge h3{
  margin:0 18px 11px 0;
  max-width:23ch;
  color:#1a5133;
  font-size:clamp(1.18rem,1.6vw,1.42rem);
  font-weight:810;
  line-height:1.22;
  letter-spacing:-.033em;
  text-wrap:balance;
}
.calc-page .calc-assist-nudge h3 .calc-assist-nudge-stop{
  display:inline;
  color:#b32331;
  font-weight:900;
  text-shadow:0 1px 0 #fff8;
  line-height:inherit;
}
.calc-page .calc-assist-nudge h3 .calc-assist-nudge-topic{
  display:inline;
  color:#ae4e0d;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:-.023em;
  text-decoration:underline;
  text-decoration-color:#f2ad6e;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
  line-height:inherit;
}
.calc-page .calc-assist-nudge p{
  max-width:unset;
  margin:0 0 15px;
  font-size:.81rem;
  line-height:1.55;
  font-weight:450;
  color:#52715d;
}
.calc-page .calc-assist-nudge a.calc-assist-nudge-whatsapp{
  position:relative;
  display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;width:100%;
  padding:13px 15px;
  border:1px solid #08683e;
  border-radius:14px;
  background:linear-gradient(140deg,#11934f,#0c7d42);
  box-shadow:0 10px 22px #146c3d2e;
  text-align:center;
  color:#fff!important;
  font-size:.88rem;
  line-height:1.35;
  font-weight:810;
  text-decoration:none!important;
  transform-origin:center;
  animation:calc-popup-nudge 1.55s ease-in-out 2 1.15s;
  transition:background .2s,box-shadow .2s,transform .2s;
}
.calc-page .calc-assist-nudge-whatsapp svg{
  width:20px;height:20px;flex:none;
  stroke:currentColor;stroke-width:1.8;fill:none;
}
.calc-page .calc-assist-nudge a.calc-assist-nudge-whatsapp:hover{
  background:#075f38;
  transform:translateY(-2px);
  box-shadow:0 13px 24px #146c3d49;
}
.calc-page .calc-assist-nudge a:focus-visible,
.calc-page .calc-assist-nudge button:focus-visible{
  outline:3px solid #4d9973;outline-offset:3px;
}
.calc-page .calc-assist-nudge-later{
  display:block;align-self:center;
  margin:13px auto 0;
  padding:8px 9px;
  border:0;
  background:transparent;
  color:#446b54;
  font-family:inherit;
  font-size:.76rem;
  font-weight:680;
  line-height:1.45;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.calc-page .calc-assist-nudge-later:hover{color:#105d36}
.calc-page .calc-assist-nudge p.calc-assist-nudge-note{
  margin:10px 0 0;
  text-align:center;
  color:#698071;
  font-size:.66rem;
  line-height:1.4;
}
@keyframes calc-popup-nudge{
  0%,100%{transform:translateY(0)}
  19%{transform:translateY(-6px)}
  36%{transform:translateY(0)}
  48%{transform:translateY(-3px)}
  61%{transform:translateY(0)}
}

/* O site já possui dock fixo mobile. A faixa se posiciona acima dele. */
.calc-page .calc-mobile-sticky{display:none!important}
@media(max-width:979px){
  .calc-page .calc-next-benefits{
    grid-template-columns:1fr;
    gap:3px;
    margin:0 0 19px;
  }
  .calc-page .calc-next-benefits li{
    border-top:0;
    padding:5px 0 0;
    font-size:.76rem;
    align-items:center;
  }
  .calc-page .calc-results .calc-next-panel h3{font-size:1.3rem}
  .calc-page .calc-results .calc-next-panel p[data-calc-next-description]{
    font-size:.82rem;line-height:1.6;
  }
  .calc-page .calc-assist-nudge{display:none!important}
  .calc-page .calc-mobile-sticky:not([hidden]){
    position:fixed;
    left:10px;right:10px;
    bottom:calc(76px + env(safe-area-inset-bottom,0px));
    z-index:96;
    display:flex!important;
    align-items:center;
    gap:10px;
    width:auto;
    max-width:630px;
    margin-inline:auto;
    padding:9px 9px 9px 15px;
    border:1px solid #bce2c9;
    border-radius:17px;
    background:rgba(248,253,249,.98);
    box-shadow:0 7px 25px rgba(12,55,37,.22);
    -webkit-backdrop-filter:blur(16px);
    backdrop-filter:blur(16px);
    color:#163f33;
    animation:calc-mobile-cta-entrance .3s ease-out both;
  }
  .calc-page .calc-mobile-sticky-copy{
    display:flex;flex-direction:column;gap:2px;
    flex:1;min-width:0;
  }
  .calc-page .calc-mobile-sticky-copy strong{
    font-size:.79rem;color:#164a35;
    line-height:1.3;letter-spacing:-.015em;
  }
  .calc-page .calc-mobile-sticky-copy>span{
    font-size:.66rem;color:#537467;line-height:1.35;
  }
  .calc-page .calc-mobile-sticky a{
    display:flex;align-items:center;justify-content:center;gap:6px;
    flex:none;min-height:42px;padding:9px 11px;
    border-radius:11px;border:1px solid #138652;
    background:#0c8750;color:#fff!important;text-decoration:none;
    font-size:.74rem;font-weight:800;line-height:1.2;
  }
  .calc-page .calc-mobile-sticky a svg{
    width:18px;height:18px;stroke:currentColor;
    stroke-width:1.7;fill:none;
  }
  .calc-page .calc-mobile-sticky-close{
    width:28px;height:32px;flex:none;display:grid;place-items:center;
    padding:0;background:transparent;border:0;border-radius:8px;
    color:#628275;cursor:pointer;
  }
  .calc-page .calc-mobile-sticky-close svg{
    width:16px;height:16px;stroke:currentColor;stroke-width:1.9;
  }
  .calc-page .calc-mobile-sticky a:focus-visible,
  .calc-page .calc-mobile-sticky button:focus-visible{
    outline:3px solid #24875c;outline-offset:2px;
  }
  body.menu-open .calc-mobile-sticky,
  html.intro-eligible .calc-mobile-sticky,
  body:has(.cookie-notice:not([hidden])) .calc-mobile-sticky{
    display:none!important;
  }
}
@media(min-width:980px){
  .calc-page .calc-assist-nudge[hidden]{display:none!important}
  /* Não sobrepõe o WhatsApp flutuante já existente no desktop. */
  body:has(main.calc-page .calc-assist-nudge:not([hidden])) .desktop-contact{
    visibility:hidden;
    pointer-events:none;
  }
}
@media(max-width:420px){
  .calc-page .calc-mobile-sticky:not([hidden]){gap:6px;padding:8px 6px 8px 12px}
  .calc-page .calc-mobile-sticky-copy strong{font-size:.74rem}
  .calc-page .calc-mobile-sticky-copy>span{font-size:.61rem}
  .calc-page .calc-mobile-sticky a{padding:8px 9px;font-size:.71rem}
}
@keyframes calc-nudge-enter{
  from{opacity:0;transform:translateY(16px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes calc-mobile-cta-entrance{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .calc-page .calc-assist-nudge,.calc-page .calc-mobile-sticky{
    animation:none!important;transition:none!important;
  }
  .calc-page .calc-assist-nudge{
    transform:none!important;
  }
  .calc-page .calc-results .calc-next-panel a.calc-next-cta:hover{
    transform:none!important;
  }
}
@media print{
  .calc-page .calc-assist-nudge,.calc-page .calc-mobile-sticky{display:none!important}
}
