/* Ajustes da Hosti sobre o layout original */

.rdc-header-grid .header-container .header-nav .logo-wrapper .logo {
  width: 176px;
  height: 28px;
}

.rdc-header-grid .header-container .header-nav .logo-wrapper .logo span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 1280px) and (max-width: 1365px) {
  .rdc-header-grid .header-container .header-nav .logo-wrapper .logo {
    width: 128px;
    overflow: visible;
  }

  .rdc-header-grid .header-container .header-nav .logo-wrapper .logo span img {
    width: 100%;
  }
}

.bsc-footer .logos-wrapper .rd img {
  width: 176px;
  height: auto;
}

.hosti-link-rodape {
  color: inherit;
  text-decoration: none;
}

.hosti-segmentos .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hosti-segmento {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #e1e4e8;
  border-radius: 999px;
  background: #fff;
  color: #212429;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.hosti-preco-tabela {
  display: block;
  font-size: 13px;
  color: #3a4149;
}

.bsl-comparative-table ul.table-header li.rdsm picture img {
  width: 150px !important;
  max-width: 100%;
  height: auto !important;
}

.rdl-banner-integrations .hosti-integracoes {
  background: #f1f3f5;
}

/* Botões de destaque no azul da Hosti (na cópia eram verde-limão com texto preto) */
.bsc-button.highlight:not(:disabled) {
  background-color: #0d62d4;
  border-color: #0d62d4;
  color: #fff;
}

.bsc-button.highlight:not(:disabled):hover,
.bsc-button.highlight:not(:disabled):active {
  background-color: #0a4fad;
  border-color: #0a4fad;
  color: #fff;
}

.bsc-button.highlight-secondary:not(:disabled) {
  background-color: #fff;
  border-color: #0d62d4;
  color: #0d62d4;
}

.bsc-button.highlight-secondary:not(:disabled):hover,
.bsc-button.highlight-secondary:not(:disabled):active {
  background-color: #eef4fe;
  border-color: #0a4fad;
  color: #0a4fad;
}

.bsc-button.highlight svg path,
.bsc-button.highlight .right-icon svg path {
  fill: currentColor;
}

.page-home .rds-journey-marketing-sales-service .rdc-jr-research .content .content-wrapper-input .input-wrapper .bsc-button:not(:disabled) {
  background-color: #0d62d4;
  color: #fff;
}

.bsl-logos.dark .highlight-text p {
  color: #fff;
}

/* Cartões relacionados: no celular rolam para o lado dentro da faixa, sem alargar a página */
.bsl-cards-collection {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .bsl-cards-collection .cards-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .bsl-cards-collection .cards-wrapper > * {
    scroll-snap-align: start;
  }
}

/* Cabeçalho: links do menu centralizados na página */
@media (min-width: 1280px) {
  .rdc-header-grid .header-container {
    position: relative;
  }

  .rdc-header-grid .header-container .header-nav .menu ul.list {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: auto;
  }
}

/* Cabeçalho: logo e botões afastados da borda da tela */
@media (min-width: 768px) {
  .rdc-header-grid .header-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1280px) {
  .rdc-header-grid .header-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Botões em pílula, como no painel (frontend/src/utils/botoesArredondados.js) */
.bsc-button {
  border-radius: 999px !important;
}

/* Formulário de desafios: campo e botão "Ver solução" formam uma pílula só */
.rdc-jr-input .bsc-input,
.rdc-jr-input input.bsc-input {
  border-radius: 999px 0 0 999px !important;
}

.rdc-jr-input button.bsc-button {
  border-radius: 0 999px 999px 0 !important;
}

/* Cartões de plano: o botão ocupa a largura do cartão, contando o padding (o link que substituiu o formulário estourava a borda) */
[data-plan] .button-wrapper > a.main-button {
  box-sizing: border-box;
  width: 100%;
}

/* Barra de rolagem igual à do painel (frontend/src/utils/barraDeRolagem.js): 8 px, cor principal da Hosti */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #0d62d4;
}

/* Só no Firefox: no Chrome, scrollbar-color desliga o ::-webkit-scrollbar */
@supports (-moz-appearance: none) {
  html {
    scrollbar-color: #0d62d4 transparent;
    scrollbar-width: thin;
  }
}

/* ===== Conformidade (2026-10-21): teclado, links legais, portal da API, aviso de cookies e contraste ===== */
.hosti-pular {
  position: absolute; left: 16px; top: -60px; z-index: 2147483647;
  background: #0d62d4; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.hosti-pular:focus { top: 12px; outline: 3px solid #0a1f44; outline-offset: 2px; }

header nav.menu ul.list > li.hosti-link-direto { display: flex; align-items: center; }
@media (max-width: 1279px) {
  header nav.menu ul.list > li.hosti-link-direto { padding: 0 0 16px; border-bottom: 1px solid #f1f3f5; }
}

footer .footer-info .right { row-gap: 24px; }
/* Por último no rodapé: o bloco de contatos tem order: 1 no computador */
footer .hosti-faixa-legal { order: 99; margin-top: 24px; }
footer .hosti-links-legais { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .hosti-links-legais a,
footer .hosti-links-legais button {
  font: inherit; font-size: 13px; color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer;
}
footer .hosti-privacidade p a { text-decoration: underline; }

.hosti-cookies {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; max-width: 640px; width: calc(100% - 112px);
  background: #fff; color: #212429; border: 1px solid #d0d5dd; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.18); font-size: 14px; line-height: 1.5;
}
.hosti-cookies p { margin: 0 0 12px; }
.hosti-cookies a { color: #0a4fad; text-decoration: underline; }
.hosti-cookies__opcoes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.hosti-cookies__opcoes label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hosti-cookies__botoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hosti-cookies__botoes button {
  font: inherit; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  border: 1px solid #0d62d4; background: #fff; color: #0a4fad;
}
.hosti-cookies__botoes button.hosti-cookies__principal { background: #0d62d4; color: #fff; }
.hosti-cookies__botoes button:focus-visible { outline: 3px solid #0a1f44; outline-offset: 2px; }
@media (max-width: 767px) {
  /* Acima do botão do chat, que fica no canto de baixo */
  .hosti-cookies { left: 12px; right: 12px; width: auto; bottom: 88px; }
}

/* Contraste mínimo de 4,5:1 (WCAG AA) */
.rdl-bento-home .bento-card a.cta.primary { color: #0a1f44; }
div[data-plan="pro"] .disclaimer { color: #c5cedb; }
main a[href="https://developers.hostibr.com.br"]:not(.bsc-button):not(.bsc-link) { color: #0a4fad; }

/* Topo da página inicial */
.hosti-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 40px;
  background: radial-gradient(1200px 600px at 85% 20%, #e3edfd 0%, rgba(227, 237, 253, 0) 70%), linear-gradient(180deg, #f6f9ff 0%, #f1f6ff 70%, #fff 100%);
  font-family: var(--font-base), sans-serif;
}

.hosti-hero__grade {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.hosti-hero__selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e5eefc;
  color: #0d62d4;
  font-weight: 600;
  font-size: 14px;
}

.hosti-hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-highlight), sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #0a1f44;
}

.hosti-hero h1 span {
  display: block;
}

.hosti-hero h1 .hosti-hero__l2 {
  color: #0d62d4;
}

@media (min-width: 1101px) {
  .hosti-hero h1 .hosti-hero__l1 { white-space: nowrap; }
}

.hosti-hero__texto > p {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #3a4149;
}

.hosti-hero__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.hosti-hero__botao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: #0d62d4;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(13, 98, 212, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.hosti-hero__botao:hover {
  background: #0a4fad;
  transform: translateY(-1px);
}

.hosti-hero__demo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0a1f44;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.hosti-hero__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0d62d4;
  box-shadow: 0 8px 22px rgba(13, 62, 140, 0.16);
}

.hosti-hero__visual {
  position: relative;
  min-height: 560px;
}

.hosti-hero__bola {
  position: absolute;
  right: -40px;
  top: 30px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #dbe8fd 0%, #b9d3f8 55%, rgba(185, 211, 248, 0.15) 100%);
}

.hosti-hero__aro {
  position: absolute;
  right: 40px;
  top: -40px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 46px solid rgba(143, 184, 243, 0.22);
}

.hosti-hero__painel {
  position: absolute;
  left: 30px;
  right: 10px;
  top: 50px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px rgba(13, 62, 140, 0.18);
}

.hosti-hero__lateral {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.hosti-hero__lateral img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.hosti-hero__lateral span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fe;
  color: #5b95ea;
}

.hosti-hero__conteudo strong {
  display: block;
  font-family: var(--font-highlight), sans-serif;
  font-size: 20px;
  color: #0a1f44;
}

.hosti-hero__conteudo small {
  display: block;
  margin: 4px 0 14px;
  font-size: 13px;
  color: #636e7c;
}

.hosti-hero__conteudo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e3e9f3;
  box-shadow: 0 12px 30px rgba(13, 62, 140, 0.1);
}

.hosti-hero__cartao {
  position: absolute;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(13, 62, 140, 0.18);
  animation: hostiFlutua 6s ease-in-out infinite;
}

.hosti-hero__cartao--ia {
  left: -10px;
  bottom: 20px;
  width: 300px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hosti-hero__cartao--ia strong {
  display: block;
  font-size: 16px;
  color: #0a1f44;
}

.hosti-hero__cartao--ia small {
  display: block;
  margin: 2px 0 12px;
  font-size: 13px;
  color: #636e7c;
}

.hosti-hero__quadro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e5eefc;
  color: #0d62d4;
}

.hosti-hero__barra {
  display: block;
  width: 190px;
  height: 7px;
  border-radius: 99px;
  background: #e3e9f3;
  overflow: hidden;
}

.hosti-hero__barra b {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0a4fad, #2f7ae5);
  animation: hostiCarrega 3.2s ease-in-out infinite;
}

.hosti-hero__cartao--fluxo {
  right: -14px;
  bottom: 70px;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation-delay: 1.5s;
}

.hosti-hero__cartao--fluxo > strong {
  align-self: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  color: #0a1f44;
}

.hosti-hero__no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe5f4;
  font-size: 12px;
  font-weight: 600;
  color: #0a1f44;
  white-space: nowrap;
}

.hosti-hero__no svg {
  color: #0d62d4;
}

.hosti-hero__no--ia {
  background: #0d62d4;
  border-color: #0d62d4;
  color: #fff;
}

.hosti-hero__no--ia svg {
  color: #fff;
}

.hosti-hero__linha {
  display: block;
  width: 2px;
  height: 16px;
  background: #8fb8f3;
}

.hosti-hero__linha--dupla {
  width: 110px;
  height: 14px;
  background: none;
  border: 2px solid #8fb8f3;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  margin-top: 0;
  position: relative;
}

.hosti-hero__linha--dupla::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 2px;
  height: 14px;
  background: #8fb8f3;
}

.hosti-hero__ramos {
  display: flex;
  gap: 14px;
}

.hosti-hero__icone {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(13, 62, 140, 0.16);
  animation: hostiFlutua 7s ease-in-out infinite;
}

.hosti-hero__icone img {
  width: 32px;
  height: 32px;
}

.hosti-hero__icone--brilho {
  left: 34%;
  top: -18px;
  border-radius: 50%;
  color: #0d62d4;
  animation-delay: 0.8s;
}

.hosti-hero__icone--whatsapp {
  right: 30px;
  top: -14px;
  animation-delay: 2s;
}

.hosti-hero__icone--instagram {
  left: -24px;
  top: 52%;
  animation-delay: 3s;
}

.hosti-hero__icone--facebook {
  right: 70px;
  bottom: -30px;
  animation-delay: 1s;
}

.hosti-hero__icone--google {
  left: 44%;
  bottom: -36px;
  animation-delay: 2.6s;
}

.hosti-hero__integra {
  max-width: 1240px;
  margin: 72px auto 0;
  text-align: center;
}

.hosti-hero__integra p {
  margin: 0 0 18px;
  font-size: 15px;
  color: #636e7c;
}

.hosti-hero__integra ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hosti-hero__integra li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-highlight), sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #3a4149;
}

@keyframes hostiFlutua {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes hostiCarrega {
  0% { width: 12%; }
  60% { width: 88%; }
  100% { width: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  .hosti-hero__cartao, .hosti-hero__icone, .hosti-hero__barra b { animation: none; }
}

@media (max-width: 1100px) {
  .hosti-hero__grade { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hosti-hero__visual { min-height: 520px; max-width: 720px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hosti-hero { padding: 36px 16px 32px; }
  .hosti-hero__texto > p { font-size: 16px; }
  .hosti-hero__visual { min-height: 380px; }
  .hosti-hero__painel { left: 0; right: 0; top: 30px; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 20px; }
  .hosti-hero__lateral img { width: 30px; height: 30px; }
  .hosti-hero__lateral span { width: 28px; height: 28px; }
  .hosti-hero__lateral span svg { width: 14px; height: 14px; }
  .hosti-hero__conteudo strong { font-size: 15px; }
  .hosti-hero__cartao--fluxo, .hosti-hero__icone--google, .hosti-hero__aro { display: none; }
  .hosti-hero__cartao--ia { left: 8px; bottom: -6px; width: 240px; padding: 12px 14px; }
  .hosti-hero__barra { width: 150px; }
  .hosti-hero__icone { width: 52px; height: 52px; border-radius: 16px; }
  .hosti-hero__icone img { width: 26px; height: 26px; }
  .hosti-hero__icone--instagram { left: -6px; }
  .hosti-hero__icone--whatsapp { right: 6px; }
  .hosti-hero__icone--facebook { right: 16px; bottom: -20px; }
  .hosti-hero__bola { width: 320px; height: 320px; right: -60px; }
  .hosti-hero__integra { margin-top: 56px; }
  .hosti-hero__integra ul { gap: 14px 26px; }
  .hosti-hero__integra li { font-size: 16px; }
}
