/* Componentes compartilhados: botões, capítulos, revelação ao rolar, cartões e janelas. */

.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:fixed;top:12px;left:12px;transform:translateY(-180%);z-index:100;padding:14px 22px;background:white;border-radius:10px}
.skip-link:focus{transform:none}
.button{display:inline-flex;align-items:center;gap:16px;border:0;border-radius:100px;background:var(--blue);color:#fff;font-weight:500;position:relative;isolation:isolate;max-width:100%}
.button:hover{background:#005cff;transform:translateY(-2px)}
.button:active{transform:translateY(0)}
.arrow{display:grid;place-items:center;flex:0 0 34px;border-radius:50%;background:white;color:#004bff}
.arrow svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:700;color:#003ce4;margin-bottom:20px}
.button{min-height:44px;padding:7px 48px 7px 23px;justify-content:center;text-align:center;font-size:14px;line-height:1.35;box-shadow:0 0 0 2px #ffffff22,inset 0 1px 1px #ffffff60,0 3px 9px #0004;overflow:hidden;transform:none}
.button .arrow{position:absolute;right:7px;width:29px;height:29px;min-width:29px;flex-basis:29px;transition:transform .35s,background .35s,color .35s}
.button .arrow svg{width:18px;height:18px}
.button:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(110deg,#008aff,#0047ff);transform:translateX(-105%);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.button:hover:before{transform:translateX(0)}
.button:hover{background:#0055ff;box-shadow:0 0 0 2px #7abbff60,0 4px 20px #006aff55}
.button:hover .arrow{transform:rotate(-45deg);background:#d9efff}
.button:active{transform:scale(.98)}

@media(prefers-reduced-motion:reduce){
  .button:before{transition:none}
}

.content-section{padding:clamp(42px,6.5vh,90px) 0;background:var(--paper)}
.content-section .wrap,.footer .wrap{width:calc(100% - var(--gutter)*2);max-width:1440px;margin:auto}
.content-section h2{font-size:calc(clamp(30px,3vw,52px) - 2px);max-width:28ch}

@media(min-width:1001px) and (max-height:780px){
  .content-section{padding:42px 0}
  .content-section h2{font-size:calc(34px - 2px)}
}

@media(max-width:760px){
  .content-section{padding:44px 0}
  .content-section h2{font-size:calc(32px - 2px)}
  .content-section .wrap,.footer .wrap{width:calc(100% - 40px)}
}

.light-chapter{position:relative;z-index:2;background:var(--chapter);border-radius:clamp(28px,5vw,72px);margin-top:-38px;overflow:clip;transform-origin:top center}
.technology-chapter{color:white}
.motion-ready .light-chapter.reveal{transform:translateY(46px);opacity:1}
.motion-ready .light-chapter.is-visible{transform:none}

@media(max-width:760px){
  .light-chapter{border-radius:32px;margin-top:-32px}
}

@media(prefers-reduced-motion:reduce){
  .motion-ready .reveal,.motion-ready .light-chapter.reveal{opacity:1;transform:none;transition:none}
}

/* Leave room for the fixed header without wasting the top of each fold. */
.content-section{scroll-margin-top:-40px}
/* Latest review: light headlines and compact paired profiles. */
h1,h2,.content-section h2{font-weight:400}
.motion-ready .light-chapter,.motion-ready .light-chapter.reveal,.light-chapter.reveal.is-visible{transform:none !important;opacity:1 !important;transition:none !important;animation:none !important}
@keyframes hive-phone-emerge{0%{opacity:0;transform:translate(var(--phone-x,150px),var(--phone-y,100px)) scale(.08)}18%{opacity:1}100%{opacity:1;transform:translate(0,0) scale(1)}}
@keyframes hive-network-node{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@keyframes hive-branch-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

@media (max-width:47.5rem){
  main #hero-title,main h2[id$="-title"]{text-align:center !important;margin-inline:auto !important;text-wrap:balance}
  main .eyebrow,main .hive-process-eyebrow{display:flex !important;justify-content:center !important;text-align:center !important;margin-inline:auto !important}
  main .eyebrow,main .hive-process-eyebrow{flex-wrap:wrap}
}

/* Botões em pílula com a seta num círculo (hero e navbar) */
.hv-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4rem;padding:.6875rem .6875rem .6875rem 1.6875rem;border:.0625rem solid transparent;border-radius:62.5rem;font-family:var(--font);font-size:1rem;font-weight:700;line-height:1.2;letter-spacing:-.01em;white-space:nowrap;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hv-btn--primario{color:#fff}
.hv-btn--primario:hover{background:var(--hv-cta-hover);color:#fff}
.hv-btn--primario:active{background:var(--hv-cta-ativo);transform:translateY(.0625rem)}
.hv-btn:focus-visible{outline:.1875rem solid var(--hv-foco);outline-offset:.1875rem}
.hv-ico{display:inline-grid;place-items:center;flex:none;width:2.5rem;height:2.5rem;border-radius:50%}
.hv-ico svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hv-btn:hover .hv-ico{transform:translateX(.1875rem)}

@media (prefers-reduced-motion:reduce){
  .hv-btn:hover .hv-ico{transform:none}
}

/* Estado ativo como número (0 ou 1): cada peça lê esse número, então cada regra existe uma vez só.
O foco por teclado vale sempre; o hover só com mouse (no toque o :hover gruda depois do toque). */
.hv-btn,.button{--hv-fx-ativo:0}
.hv-btn:focus-visible,.button:not(:disabled):focus-visible{--hv-fx-ativo:1}

@media (hover:hover) and (pointer:fine){
  .hv-btn:hover,.button:not(:disabled):hover{--hv-fx-ativo:1}
}

/* ---------- Preenchimento (os dois tipos de botão) ----------
Entrada: a borda da esquerda pula para 0 e a da direita anda até 0 (o azul nasce na esquerda, com a frente redonda).
Saída: a borda da esquerda anda até 100% (o azul recua para a direita) e a da direita só volta no fim, sem aparecer.
No .button, o transform:none desliga a varredura antiga (translateX), e o overflow:hidden dele não muda. */
.hv-btn::before,.button::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--hv-fx-fill);transform:none;--hv-fx-esq:calc((1 - var(--hv-fx-ativo)) * 100%);--hv-fx-dir:calc((1 - var(--hv-fx-ativo)) * 100%);clip-path:inset(0 var(--hv-fx-dir) 0 var(--hv-fx-esq) round 62.5rem);transition:--hv-fx-esq calc((1 - var(--hv-fx-ativo)) * var(--hv-fx-dur-fill)) var(--hv-fx-ease),
    --hv-fx-dir calc(var(--hv-fx-ativo) * var(--hv-fx-dur-fill)) var(--hv-fx-ease) calc((1 - var(--hv-fx-ativo)) * var(--hv-fx-dur-fill))}
/* Sobe 2 px (o :active de cada botão continua mandando quando ele é apertado) */
.hv-btn:not(:active),.button:not(:active){transform:translateY(calc(var(--hv-fx-ativo) * var(--hv-fx-lift)))}
/* ---------- .hv-btn (cabeçalho e abertura) ---------- */
/* A transição de fundo e de borda já existia; o transform passa a usar a curva do efeito. */
.hv-btn{position:relative;isolation:isolate;transition:background-color .2s ease,border-color .2s ease,transform var(--hv-fx-dur-brilho) var(--hv-fx-ease)}
/* O fundo de hover do site (#2b72ff) some: quem pinta o hover agora é o preenchimento. */
.hv-btn--primario,.hv-btn--primario:hover{background:var(--hv-fx-base)}
/* Brilho (aro + sombra difusa) numa camada própria, que só acende e apaga */
.hv-btn::after{content:"";position:absolute;inset:-.0625rem;border-radius:inherit;pointer-events:none;box-shadow:var(--hv-fx-brilho);opacity:var(--hv-fx-ativo);transition:opacity var(--hv-fx-dur-brilho) ease}
/* Círculo branco com a seta azul; o véu azul-gelo (::before) acende no hover */
.hv-btn .hv-ico{position:relative;isolation:isolate;background:var(--hv-fx-circulo);color:var(--hv-fx-seta);transition:none}
.hv-btn:hover .hv-ico{transform:none}
/* anula o translateX(.1875rem) do site */
.hv-btn .hv-ico::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:50%;background:var(--hv-fx-circulo-hover);opacity:var(--hv-fx-ativo);transition:opacity var(--hv-fx-dur-seta) ease}
/* A seta do site aponta para a direita; em repouso fica a 45° (↘) e gira para → */
.hv-btn .hv-ico svg{transform:rotate(calc((1 - var(--hv-fx-ativo)) * 45deg));transition:transform var(--hv-fx-dur-seta) var(--hv-fx-ease)}
/* ---------- .button (CTA do processo, envio do formulário, janelas) ----------
O site já acende o fundo, o brilho e a seta no hover; aqui entram a subida com transição e o mesmo estado no foco por teclado.
Só o transform é novo na lista de transição. */
.button{transition:color .3s,background .3s,box-shadow .3s,transform var(--hv-fx-dur-brilho) var(--hv-fx-ease)}
.button:not(:disabled):focus-visible{background:#0055ff;box-shadow:var(--hv-fx-brilho)}
.button:not(:disabled):focus-visible .arrow{transform:rotate(-45deg);background:var(--hv-fx-circulo-hover)}

@media (prefers-reduced-motion:reduce){
  .hv-btn,.hv-btn::before,.hv-btn::after,.hv-btn .hv-ico::before,.hv-btn .hv-ico svg,.button,.button::before,.button .arrow{transition:none}
  .hv-btn:not(:active),.button:not(:active){transform:none}
}

.d6n-team *,.d6n-team *::before,.d6n-team *::after{box-sizing:border-box}
/* ---------- Ajustes do dono (27/11) ---------- */
/* Dobra 4: os cantos de baixo do capítulo claro mostravam o fundo escuro; o capítulo seguinte é claro */
.technology-chapter{background:#f7faff}
.light-chapter{border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}
/* ---------- Regra geral (28/11): animação CSS só roda quando a seção chega na tela ---------- */
.hv-cena-js main section:not(.hv-na-tela),.hv-cena-js main section:not(.hv-na-tela) *{animation-play-state:paused !important}
