/* Seção "Biblioteca do autor" (rolagem com as features). Fica fora do modelo <x-dc> para não interferir no montador. */
.kb-intro{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}
.kb-intro .in{display:flex;flex-direction:column;gap:20px}
.kb-scrolly{max-width:1240px;margin:clamp(40px,6vw,72px) auto 0;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:minmax(250px,330px) 1fr;gap:clamp(24px,4vw,56px)}
.kb-text{position:relative}
.kb-step{min-height:78vh;display:flex;flex-direction:column;justify-content:center;gap:12px}
.kb-step .k{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#a24a26;font-weight:600;display:flex;gap:10px;align-items:center}
.kb-step .k i{font-style:normal;color:#9a9087;letter-spacing:.08em}
.kb-step h3{margin:0;font-family:Fraunces,serif;font-weight:400;font-size:clamp(26px,2.8vw,36px);line-height:1.1;letter-spacing:-.015em;text-wrap:balance;color:#1c1a18}
.kb-step p{margin:0;font-size:16px;line-height:1.62;color:#5b554e;text-wrap:pretty}
.kb-stage{position:sticky;top:96px;height:calc(100vh - 140px);align-self:start;display:flex;flex-direction:column;justify-content:center;gap:14px}
.kb-win{position:relative;width:100%;aspect-ratio:1280/770;border-radius:12px;overflow:hidden;border:1px solid #2a2724;background:#1e1d1b;box-shadow:0 40px 80px -36px rgba(0,0,0,.55)}
.kb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.kb-dots{display:flex;gap:7px;justify-content:center}
.kb-dots b{width:7px;height:7px;border-radius:50%;background:#cfc6b8}
.kb-dots b.on{background:#a24a26;width:22px;border-radius:4px}
/* sem JavaScript: a primeira tela aparece e todos os textos ficam legíveis */
html:not(.kb-js) .kb-img:first-child{opacity:1}
html:not(.kb-js) .kb-dots{display:none}
.kb-js .kb-step{opacity:.26;transition:opacity .45s}
.kb-js .kb-step.on{opacity:1}
.kb-js .kb-img{transition:opacity .5s}
.kb-js .kb-img.on{opacity:1}
.kb-js .kb-dots b{transition:all .3s}
@media(max-width:860px){
  .kb-scrolly{grid-template-columns:1fr}
  .kb-stage{order:-1;top:68px;height:auto;z-index:2;background:#f2eee6;padding:8px 0}
  .kb-step{min-height:60vh}
}
@media(prefers-reduced-motion:reduce){.kb-js .kb-step,.kb-js .kb-img,.kb-js .kb-dots b{transition:none}}
/* Seção "Assistente": os mesmos passos, sobre o fundo escuro */
.kb-ink .kb-step .k{color:#d98a63}
.kb-ink .kb-step .k i{color:#8f8780}
.kb-ink .kb-step h3{color:#ecebea}
.kb-ink .kb-step p{color:#b5aea7}
.kb-ink .kb-win{border-color:#3a3532}
.kb-ink .kb-dots b{background:#4a443f}
.kb-ink .kb-dots b.on{background:#d98a63}
@media(max-width:860px){.kb-ink .kb-stage{background:#1e1d1b}}
/* Menu do topo: até 1000 px os itens não cabem na linha e vão para um painel, aberto pelo botão */
.kb-menu-btn{display:none;width:44px;height:44px;flex:none;margin-left:auto;padding:0;border:1px solid #d8cfc2;border-radius:10px;background:transparent;color:#1c1a18;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:4px}
.kb-menu-btn span{display:block;width:18px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s,opacity .2s}
.kb-menu-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.kb-menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
.kb-menu-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.kb-menu-btn:focus-visible{outline:2px solid #a24a26;outline-offset:2px}
@media(max-width:1000px){
  .kb-cab{gap:14px!important}
  .kb-menu-btn{display:inline-flex}
  .kb-topnav{display:none!important}
  .kb-topnav.kb-aberto{display:flex!important;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0!important;overflow:visible!important;padding:6px clamp(20px,4vw,48px) 14px;background:#f2eee6;border-bottom:1px solid #e2dbcf;box-shadow:0 18px 30px -22px rgba(0,0,0,.4);font-size:16px!important;max-height:calc(100vh - 67px);overflow-y:auto!important}
  .kb-topnav.kb-aberto a{display:flex;align-items:center;min-height:44px;color:#1c1a18!important;border-top:1px solid #e9e2d6}
  .kb-topnav.kb-aberto a:first-child{border-top:0}
}
@media(max-width:380px){.kb-cab>a:first-child span{display:none}}
@media(prefers-reduced-motion:reduce){.kb-menu-btn span{transition:none}}
