/* Correções finais de contraste, diagramação e responsividade — 10/08/2026 */

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
svg,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

main,
main > section,
section,
header,
footer {
  min-width: 0;
}

p,
li,
dd,
summary,
button,
a {
  overflow-wrap: break-word;
}

/* Evita a repetição visual do kicker criada por pseudo-elementos legados. */
.helena-intro > .overline::before,
.helena-intro > .overline::after {
  content: none !important;
  display: none !important;
}

/* Passos da HelenIA: unidades semânticas e sem texto colado. */
.helena-proof.helenia-steps,
.steps-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(10rem, 1fr)) !important;
  gap: clamp(1.5rem, 3vw, 2.5rem) !important;
  margin-top: 2rem !important;
}

.helenia-step-item,
.step-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: .75rem !important;
  min-width: 0;
}

.helenia-step-item span,
.step-number {
  color: #8c6d58 !important;
  font-size: .85rem !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  line-height: 1.2 !important;
}

.helenia-step-item strong,
.step-text {
  color: #2c2520 !important;
  font-size: clamp(1rem, 1.5vw, 1.1rem) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  white-space: normal !important;
}

/* Tecnologias: estados ativo, inativo, hover e foco legíveis. */
.technology-stage .tech-nav .tech-tab,
.tech-tab {
  background-color: transparent !important;
  color: #594537 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  white-space: normal !important;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease !important;
}

.technology-stage .tech-nav .tech-tab.active,
.technology-stage .tech-nav .tech-tab.is-active,
.tech-tab.active,
.tech-tab.is-active,
.tech-tab[aria-selected="true"] {
  background-color: #f5f2ed !important;
  color: #2c2520 !important;
  font-weight: 700 !important;
  border-left: 4px solid #8c6d58 !important;
}

.technology-stage .tech-nav .tech-tab:hover,
.technology-stage .tech-nav .tech-tab:focus-visible,
.tech-tab:hover,
.tech-tab:focus-visible {
  background-color: rgba(140, 109, 88, .08) !important;
  color: #2c2520 !important;
  opacity: 1 !important;
}

.technology-stage .tech-nav .tech-tab span {
  color: #594537 !important;
  opacity: 1 !important;
}

/* #594537 supera 7:1 nos fundos claros usados no site. */
.section-kicker,
.kicker-text,
.helena .overline,
.journey .overline,
.technology .overline,
.cases .overline,
.faq .overline {
  color: #594537 !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
}

/* Escala tipográfica contínua entre celular, notebook e desktop. */
h1,
h2,
h3,
.heading-primary,
.heading-secondary {
  max-width: 100%;
  text-wrap: balance !important;
  overflow-wrap: normal;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 6.4rem) !important;
  line-height: 1.04 !important;
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 5rem) !important;
  line-height: 1.08 !important;
}

h3 {
  line-height: 1.18 !important;
}

/* FAQ permanece dentro do viewport em qualquer largura. */
.faq,
.faq-section-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: start !important;
  width: min(1200px, calc(100% - 3rem)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.faq-title,
.faq-list,
.faq details,
.faq summary {
  width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Faixa intermediária: notebooks e desktops estreitos. */
@media (max-width: 1180px) {
  .helena-panel,
  .story-grid,
  .technology-stage,
  .portrait,
  .contact-copy,
  .case-card,
  .case-card.reverse {
    min-width: 0 !important;
  }

  .helena-proof.helenia-steps,
  .steps-container {
    grid-template-columns: repeat(2, minmax(12rem, 1fr)) !important;
  }

  .hero-copy,
  .helena-intro,
  .technology-head,
  .cases-intro,
  .journey-head,
  .story-head,
  .portrait-copy {
    max-width: min(100%, 46rem) !important;
  }

  .hero-decision,
  .trust-ribbon,
  .journey-grid {
    gap: clamp(1rem, 2vw, 1.75rem) !important;
  }
}

@media (max-width: 980px) {
  .helena-panel,
  .story-grid,
  .technology-stage,
  .portrait,
  .faq,
  .faq-section-wrapper,
  .case-card,
  .case-card.reverse {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .helena-proof.helenia-steps,
  .steps-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .technology-stage .tech-nav {
    width: 100% !important;
    min-width: 0 !important;
  }

  .faq,
  .faq-section-wrapper {
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(2.35rem, 12vw, 4rem) !important;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.25rem) !important;
  }

  .faq,
  .faq-section-wrapper {
    width: min(100% - 2.5rem, 1200px) !important;
  }

  .hero-actions,
  .contact-actions,
  .result-actions {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  .faq,
  .faq-section-wrapper {
    width: min(100% - 2rem, 1200px) !important;
  }

  .tech-tab,
  .faq summary,
  button,
  input,
  select,
  textarea {
    max-width: 100% !important;
  }
}


/* Correção estrutural HelenIA — evita título duplicado e qualquer sobreposição. */
.helena .helena-panel {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.helena .helena-intro {
  align-self: start !important;
  min-width: 0 !important;
}

.helena .helena-intro > .overline::before,
.helena .helena-intro > .overline::after {
  content: none !important;
  display: none !important;
}

.helena .helena-intro h2 {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  margin: clamp(1rem, 2vw, 1.5rem) 0 !important;
}

.helena .helena-intro h2::after {
  content: "Converse antes da sua avaliação." !important;
  display: block !important;
  color: #241f1b !important;
  font: 400 clamp(2.65rem, 4vw, 4.6rem) / 1 var(--serif) !important;
  letter-spacing: -.035em !important;
  text-wrap: balance !important;
  max-width: 13ch !important;
}

.helena .helena-proof {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 2rem) !important;
  width: 100% !important;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 !important;
}

.helena .helena-proof span {
  display: block !important;
  margin-bottom: .4rem !important;
}

.helena .assistant-card {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  align-self: stretch !important;
  min-width: 0 !important;
  height: auto !important;
}

/* Notebook e desktop comum: texto primeiro, assistente abaixo, ambos no fluxo. */
@media (max-width: 1440px) {
  .helena .helena-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .helena .helena-intro {
    padding: clamp(2.5rem, 5vw, 5rem) !important;
    padding-bottom: clamp(2rem, 3vw, 3rem) !important;
  }

  .helena .helena-intro h2::after {
    font-size: clamp(2.75rem, 5vw, 4.75rem) !important;
    max-width: 15ch !important;
  }

  .helena .assistant-card {
    width: auto !important;
    margin: 0 clamp(1.5rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem) !important;
  }
}

@media (max-width: 760px) {
  .helena {
    padding: 2rem 0 !important;
  }

  .helena .helena-intro {
    padding: 2.5rem 1.25rem 2rem !important;
  }

  .helena .helena-intro h2::after {
    font-size: clamp(2.35rem, 11vw, 3.4rem) !important;
    max-width: 12ch !important;
  }

  .helena .helena-proof {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  .helena .assistant-card {
    margin: 0 1rem 1rem !important;
    padding: 1.5rem !important;
  }
}
