/* Camada final de experiência responsiva — aplicada depois dos estilos de cada seção. */
:root { --mobile-gutter: 16px; }

html { overflow-x: clip; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; }

/* Impede que textos, gráficos e cartões alarguem colunas em telas estreitas. */
.hero > *,
.products-showcase__grid > *,
.method-hero__grid > *,
.about-hero > *,
.about-origin > *,
.about-section__heading > *,
.about-founders > *,
.partners-grid > *,
.article-layout > *,
.blog-featured > *,
.product-hero > *,
.product-intro__grid > *,
.product-proof > *,
.diagnostic-layout > *,
.challenge-layout > * { min-width: 0; }
button, input, select, textarea { font: inherit; }

/* O menu compacto é exclusivo de telas menores. */
.menu-toggle { display: none; }

:focus-visible { outline: 3px solid rgba(255, 98, 21, .65); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* On small screens, give the fixed message its own row and let the logo rail
   use the full viewport width instead of sharing the space with it. */
@media (max-width: 850px) {
  .logo-strip {
    min-height: auto !important;
    overflow: hidden;
  }

  .logo-inner {
    width: 100% !important;
    min-height: auto !important;
    padding: 10px 0 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .logo-inner > .logo-partners-link {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    display: block !important;
    padding: 0 16px 9px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    letter-spacing: .14em !important;
  }

  .moving-logos {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    overflow: hidden !important;
    margin: 0 16px !important;
    padding: 0 !important;
  }

  .moving-logos__track {
    gap: 24px !important;
    padding-right: 48px !important;
  }

  .client-logo,
  .client-logo--square {
    width: 70px !important;
    height: 50px !important;
  }
}

@media (max-width: 1100px) {
  .section-shell, .site-header { width: min(100% - 48px, 1440px); }
  .hero { gap: clamp(28px, 4vw, 48px); }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero h1 { font-size: clamp(54px, 6.1vw, 78px); }
  .hero-visual--courses { height: 440px !important; }
  .hero-visual--courses .course-insight { display: none !important; }
  .hero-visual--courses .courses-dashboard { inset: 6% !important; padding: 22px !important; }
}

@media (max-width: 900px) {
  .site-header, .product-header .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: calc(100% - 32px);
    height: 72px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line, #dbe1ea);
    backdrop-filter: blur(16px);
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line, #dbe1ea);
    border-radius: 12px;
    color: var(--ink, #243044);
    background: #fff;
    font-size: 20px;
    line-height: 1;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: 16px;
    left: 16px;
    z-index: 99;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line, #dbe1ea);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 45px rgba(28, 39, 58, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; }
  .nav-links a:hover, .nav-links a:focus-visible { background: #f4f6f9; }
  .nav-links .nav-cta { justify-content: center; margin-top: 6px; color: #fff; background: var(--ink, #243044); }
  body.nav-open { overflow: hidden; }

  .section-shell { width: calc(100% - 32px); }
  .hero, .product-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 34px !important;
    padding-top: 52px !important;
    padding-bottom: 64px !important;
  }
  .hero h1, .product-hero h1 { font-size: clamp(46px, 12vw, 72px) !important; line-height: .94 !important; letter-spacing: -.055em; }
  .hero h1 br, .product-hero h1 br { display: none; }
  .hero-copy > p, .product-hero__copy > p { max-width: 38rem; font-size: clamp(17px, 2.4vw, 20px); }
  .hero-actions, .product-actions { align-items: stretch; gap: 14px; }
  .hero-actions .button, .product-actions .button { justify-content: center; min-height: 50px; }
  .hero-proof { margin-top: 20px; }

  .hero-visual, .product-visual { width: 100%; min-height: 360px; margin-top: 0 !important; border-radius: 20px; }
  .product-panel { left: 16px; right: 16px; bottom: 16px; padding: 20px; border-radius: 16px; }
  .product-panel h2 { font-size: clamp(23px, 6vw, 31px); }
  .product-badge { top: 16px; right: 16px; padding: 10px 12px; font-size: 10px; }
  .product-badge--lower { display: none; }

  .products-explorer { width: calc(100% - 32px) !important; padding: clamp(28px, 6vw, 48px) !important; border-radius: 24px !important; }
  .products-explorer__intro { grid-template-columns: 1fr !important; gap: 22px !important; }
  .products-explorer__intro h2 { font-size: clamp(38px, 9vw, 62px) !important; line-height: .98 !important; }
  .products-explorer__layout { grid-template-columns: 1fr !important; gap: 22px !important; }
  .products-explorer__panel { min-height: 0 !important; padding: clamp(26px, 6vw, 42px) !important; }
  .products-explorer__panel h3 { font-size: clamp(31px, 8vw, 48px) !important; }
  .products-explorer__panel ul { grid-template-columns: 1fr !important; gap: 10px !important; }

  .challenge-section, .diagnostic-risks, .about-section, .partners-section { padding-block: 74px !important; }
  .challenge-section__intro, .diagnostic-risks__intro { grid-template-columns: 1fr !important; gap: 24px !important; }
  .challenge-section__intro h2, .diagnostic-risks__intro h2 { font-size: clamp(38px, 9.5vw, 60px) !important; }
  .challenge-accordion, .diagnostic-risk-list { width: 100% !important; }

  .product-grid, .diff-grid, .data-points, .results-layout { grid-template-columns: 1fr !important; }
  .product-grid > *, .diff-grid > *, .data-points > * { min-height: auto !important; }
  .logo-strip { overflow: hidden; }

  /* Páginas institucionais: mesma largura útil da home, sem “coluna” estreita. */
  .about-shell, .method-wrap, .method-header, .method-marquee,
  .page-wrap, .partners-header {
    width: var(--page-shell-width) !important;
    max-width: none !important;
    margin-left: var(--page-gutter) !important;
    margin-right: var(--page-gutter-end) !important;
  }

  .about-header {
    position: sticky; top: 0; z-index: 100; min-height: 72px; padding: 14px 0 !important;
    background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  }
  .about-header nav { gap: 18px !important; }
  .about-header nav a:not(.about-cta) { display: none; }
  .about-header .about-cta { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; }

  .about-hero { grid-template-columns: 1fr !important; min-height: auto !important; gap: 36px !important; padding: 58px 0 64px !important; }
  .about-hero h1 { max-width: 13ch; font-size: clamp(48px, 12.4vw, 78px) !important; line-height: .94 !important; }
  .about-hero__quote { max-width: 100% !important; padding: 28px 0 28px 28px !important; }
  .about-hero__quote blockquote { font-size: clamp(23px, 5.8vw, 34px) !important; line-height: 1.06 !important; }
  .about-band, .about-origin, .about-section__heading, .about-final { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-band { padding: 28px 0 !important; }
  .about-origin { margin-top: 40px !important; padding: 32px !important; border-radius: 22px !important; }
  .about-origin h2, .about-section h2, .about-final h2 { font-size: clamp(38px, 10.3vw, 64px) !important; line-height: .96 !important; }
  .about-section { padding: 78px 0 !important; }
  .about-founders, .about-story { grid-template-columns: 1fr !important; gap: 18px !important; margin-top: 36px !important; }
  .about-founder { grid-template-columns: 150px 1fr !important; gap: 22px !important; min-height: 0 !important; padding: 22px !important; border-radius: 22px !important; }
  .about-founder__photo { width: 150px !important; height: 200px !important; }
  .about-story__card { min-height: 0 !important; padding: 30px !important; border-radius: 22px !important; }

  /* Método PREPARA: trocar colunas rígidas por uma leitura vertical clara. */
  .method-hero { padding: 48px 0 24px !important; }
  .method-hero__grid, .method-intro, .method-section-heading, .cycle-layout, .method-application { grid-template-columns: 1fr !important; gap: 28px !important; }
  .method-hero__copy { padding-left: 0 !important; }
  .method-hero h1 { font-size: clamp(48px, 12vw, 76px) !important; line-height: .93 !important; }
  .method-hero h1 br, .method-intro h2 br { display: none; }
  .method-hero__system { width: min(100%, 560px) !important; min-height: 360px !important; margin: 0 auto; }
  .method-marquee { margin-top: 22px !important; overflow-x: auto; scrollbar-width: none; justify-content: flex-start !important; padding: 18px 10px !important; }
  .method-marquee::-webkit-scrollbar { display: none; }
  .method-marquee span { white-space: nowrap; }
  .method-intro { padding: 72px 0 !important; }
  .method-intro h2, .method-chain h2, .method-application h2 { font-size: clamp(36px, 9.5vw, 60px) !important; line-height: .98 !important; }
  .method-cycle { padding: 66px 0 !important; }
  .cycle-nav { width: 100% !important; }
  .cycle-step { min-height: 62px !important; padding: 0 18px !important; }
  .cycle-step i { padding-right: 8px !important; }
  .cycle-panel { min-height: 0 !important; padding: 30px !important; border-radius: 22px !important; }
  .cycle-panel h3 { font-size: clamp(38px, 10vw, 58px) !important; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .pillar { min-height: 210px !important; padding: 24px !important; }
  .method-application { padding: 54px 0 76px !important; }

  .partners-hero, .partners-overview, .directory-head, .directory-tools { grid-template-columns: 1fr !important; gap: 24px !important; }
  .partners-hero { padding-top: 58px !important; }
  .partners-hero h1, .directory-head h2 { font-size: clamp(42px, 11vw, 68px) !important; line-height: .94 !important; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 560px) {
  .site-header, .product-header .site-header { width: calc(100% - 24px); height: 68px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links { top: 76px; right: 12px; left: 12px; }
  .section-shell { width: calc(100% - 24px); }
  .hero, .product-hero { padding-top: 38px !important; padding-bottom: 48px !important; }
  .hero h1, .product-hero h1 { font-size: clamp(42px, 13vw, 56px) !important; }
  .hero-actions, .product-actions { flex-direction: column; }
  .hero-visual, .product-visual { min-height: 330px; }
  .hero-visual--courses { height: 340px !important; }
  .hero-visual--courses .courses-dashboard { inset: 6% 4% !important; padding: 14px !important; }
  .hero-visual--courses .courses-dashboard h3 { font-size: 18px !important; }
  .hero-visual--courses .course-row { grid-template-columns: 78px minmax(46px, 1fr) 24px !important; gap: 7px !important; font-size: 8px !important; }
  .hero-visual--courses .course-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-panel { padding: 18px; }
  .product-panel__stats { gap: 12px; flex-wrap: wrap; }
  .products-explorer { width: calc(100% - 24px) !important; padding: 24px !important; }
  .products-explorer__nav button { min-height: 54px !important; padding-inline: 12px !important; font-size: 15px !important; }
  .products-explorer__panel { padding: 24px !important; border-radius: 18px !important; }
  .products-explorer__description { font-size: 16px !important; }
  .logo-partners-link { min-width: 110px; }
  .moving-logos__track { gap: 32px !important; }

  .about-shell, .method-wrap, .method-header, .method-marquee, .page-wrap, .partners-header {
    width: var(--page-shell-width) !important;
    margin-left: var(--page-gutter) !important;
    margin-right: var(--page-gutter-end) !important;
  }
  .about-header { min-height: 68px; }
  .about-header .about-cta { min-height: 40px; padding: 0 11px; font-size: 12px; }
  .about-hero { padding-top: 42px !important; }
  .about-hero h1 { font-size: clamp(43px, 13vw, 56px) !important; }
  .about-hero__quote { padding-left: 20px !important; }
  .about-origin { padding: 24px !important; }
  .about-founder { grid-template-columns: 1fr !important; }
  .about-founder__photo { width: 150px !important; height: 190px !important; }
  .about-founder h3 { font-size: 27px !important; }
  .method-hero__system { min-height: 320px !important; transform: scale(.92); transform-origin: center; margin: -12px auto !important; }
  .method-hero__actions { flex-direction: column; align-items: flex-start !important; }
  .pillar-grid, .partner-grid { grid-template-columns: 1fr !important; }
  .method-map, .system-orbit { max-width: 100%; }
}

/* O painel de produtos deve revelar rapidamente, mesmo quando a frente possui muitos itens. */
.products-explorer__panel li:nth-child(1) { animation-delay: .03s !important; }
.products-explorer__panel li:nth-child(2) { animation-delay: .08s !important; }
.products-explorer__panel li:nth-child(3) { animation-delay: .13s !important; }
.products-explorer__panel li:nth-child(4) { animation-delay: .18s !important; }
.products-explorer__panel li:nth-child(5) { animation-delay: .23s !important; }
.products-explorer__panel li:nth-child(6) { animation-delay: .28s !important; }
.products-explorer__panel li:nth-child(7) { animation-delay: .33s !important; }
.products-explorer__panel li:nth-child(8) { animation-delay: .38s !important; }
.products-explorer__panel li:nth-child(n+9) { animation-delay: .43s !important; }

/* Cabeçalhos e leitura: o mesmo comportamento em todas as páginas públicas. */
@media (max-width: 900px) {
  .blog-header, .article-header, .partners-header, .about-header, .method-header {
    position: sticky !important;
    top: 0;
    z-index: 80;
    width: calc(100% - 32px) !important;
    min-height: 72px !important;
    margin-inline: auto !important;
    padding: 14px 0 !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(14px);
  }

  .blog-header .nav-links, .article-header .nav-links, .partners-header .nav-links,
  .about-header .nav-links, .method-header .nav-links {
    display: none !important;
  }

  .blog-header .nav-links.open, .article-header .nav-links.open, .partners-header .nav-links.open,
  .about-header .nav-links.open, .method-header .nav-links.open {
    display: grid !important;
  }

  .about-header .nav-links a:not(.about-cta),
  .partners-header .nav-links a:not(.partners-header__cta),
  .blog-header .nav-links a:not(.blog-button),
  .article-header .nav-links a:not(.article-button) {
    display: flex !important;
  }

  .article-intro, .article-body, .article-related, .blog-hero, .blog-featured,
  .partners-hero, .partners-directory, .about-hero, .about-story, .about-team {
    width: min(100% - 32px, 100%) !important;
    margin-inline: auto !important;
  }

  .article-layout, .blog-featured, .partners-hero__grid, .about-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .article-toc { position: static !important; order: 2; }
  .article-content { min-width: 0; }
  .article-content p, .article-content li { font-size: 1.05rem !important; line-height: 1.75 !important; }
  .article-title { font-size: clamp(2.5rem, 12vw, 4.5rem) !important; }
  .partners-directory__toolbar { grid-template-columns: 1fr !important; align-items: stretch !important; }
}

@media (max-width: 560px) {
  .blog-header, .article-header, .partners-header, .about-header, .method-header {
    width: var(--page-shell-width) !important;
    margin-left: var(--page-gutter) !important;
    margin-right: var(--page-gutter-end) !important;
  }
  .article-content p, .article-content li { font-size: 1rem !important; }
  .article-hero, .blog-hero, .partners-hero, .about-hero { padding-block: 56px !important; }
}

/* Leitura de artigos: prioridade para conforto, sem cortes no sumário. */
@media (max-width: 600px) {
  .article-intro {
    width: calc(100% - 40px) !important;
    padding: 42px 0 30px !important;
    text-align: left !important;
  }

  .article-intro h1 {
    max-width: 100%;
    margin: 22px 0 14px !important;
    font-size: clamp(2.25rem, 10.4vw, 2.7rem) !important;
    line-height: .98 !important;
    letter-spacing: -2.25px !important;
    overflow-wrap: anywhere;
  }

  .article-intro .article-lead {
    max-width: 31rem;
    font-size: .98rem !important;
    line-height: 1.58 !important;
  }

  .article-intro .byline {
    justify-content: flex-start !important;
    gap: 9px;
    margin-top: 24px !important;
  }

  .article-layout {
    width: calc(100% - 40px) !important;
  }

  .article-sidebar {
    margin-bottom: 30px !important;
    padding: 18px 0 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .article-sidebar nav {
    display: grid !important;
    gap: 0 !important;
    overflow: visible !important;
    border: 0 !important;
  }

  .article-sidebar nav a {
    white-space: normal !important;
    overflow-wrap: anywhere;
    padding: 9px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e7ebf0 !important;
    font-size: .75rem !important;
    line-height: 1.42 !important;
  }

  .article-sidebar nav a:last-child { border-bottom: 0 !important; }
  .article-sidebar nav.toc-expanded a.toc-extra { display: block !important; }
  .article-sidebar .toc-toggle { padding-top: 12px; }
  /* O compartilhamento permanece no fim do artigo para não interromper a leitura. */
  .article-sidebar .share-button { display: none !important; }
  .share-button { margin-top: 14px !important; }

  .article-content > p:first-child {
    font-size: 1.16rem !important;
    line-height: 1.52 !important;
  }

  .article-content h2 {
    margin: 42px 0 14px !important;
    font-size: 1.72rem !important;
    line-height: 1.08 !important;
    letter-spacing: -.9px !important;
  }

  .article-content p { margin-bottom: 22px; }
  .article-content blockquote { margin: 30px 0 !important; font-size: 1.28rem !important; }
}

@media (max-width: 380px) {
  .article-intro, .article-layout { width: calc(100% - 32px) !important; }
  .article-intro h1 { font-size: 2.15rem !important; letter-spacing: -2.1px !important; }
}

/* Home — Método PREPARA: composição dedicada ao celular, sem corte ou aperto. */
@media (max-width: 600px) {
  .solution {
    display: block !important;
    min-height: 0 !important;
    padding: 28px 20px 0 !important;
    overflow: hidden;
  }

  .solution .solution-intro { min-width: 0; }

  .solution .solution-intro h2 {
    max-width: 10.8ch;
    margin: 0 !important;
    font-size: clamp(2.15rem, 10.4vw, 2.65rem) !important;
    line-height: .98 !important;
    letter-spacing: -.062em !important;
  }

  .solution .solution-intro h2 br { display: none; }

  .solution .solution-intro p {
    max-width: 34ch;
    margin: 16px 0 0 !important;
    font-size: .9rem !important;
    line-height: 1.5 !important;
  }

  .solution .solution-intro .button {
    min-height: 44px;
    margin-top: 18px !important;
    padding: 0 16px !important;
    font-size: .71rem !important;
  }

  .solution .solution-art {
    height: auto !important;
    min-width: 0;
    margin: 26px 0 0 !important;
    background: transparent !important;
    overflow: hidden;
  }

  .solution .method-map--clean {
    width: 100%;
    min-height: 252px !important;
    padding: 0 !important;
  }

  .solution .method-map--clean .method-kicker {
    top: 8px !important;
    left: 4px !important;
    font-size: 7px !important;
    letter-spacing: 1.2px !important;
  }

  .solution .method-map--clean .method-kicker::after { width: 27px; }

  .solution .method-map--clean::before { width: 220px; height: 220px; }
  .solution .method-map--clean::after { width: 312px; height: 184px; }

  .solution .method-map--clean .method-orbit {
    width: min(100%, 300px) !important;
    height: 210px !important;
    margin: 19px auto 0 !important;
    transform: none !important;
  }

  .solution .method-map--clean .method-orbit::before { inset: 16px !important; }
  .solution .method-map--clean .method-orbit::after { inset: 38px !important; }

  .solution .method-map--clean .method-core {
    width: 106px !important;
    height: 106px !important;
    font-size: 14px !important;
    letter-spacing: -.55px !important;
    box-shadow: 0 0 0 11px rgba(255,98,21,.09), 0 0 30px rgba(255,98,21,.16), inset 0 1px 0 rgba(255,255,255,.3);
  }

  .solution .method-map--clean .method-core em {
    margin-top: 4px !important;
    font-size: 7px !important;
    letter-spacing: .18px !important;
  }

  .solution .method-map--clean .method-pillar {
    max-width: 92px;
    font-size: 0 !important;
  }

  .solution .method-map--clean .method-pillar b {
    font-size: 9px !important;
    line-height: 1.1 !important;
    letter-spacing: -.25px !important;
  }

  .solution .method-map--clean .method-pillar::before {
    width: 6px !important;
    height: 6px !important;
    box-shadow: 0 0 0 4px rgba(255,98,21,.12), 0 0 11px rgba(255,98,21,.42) !important;
  }

  .solution .method-map--clean .method-pillar--governance { left: 0 !important; top: 18px !important; }
  .solution .method-map--clean .method-pillar--evidence { right: 0 !important; top: 18px !important; }
  .solution .method-map--clean .method-pillar--improvement { left: 0 !important; bottom: 16px !important; }
  .solution .method-map--clean .method-pillar--intelligence { right: 0 !important; bottom: 16px !important; }
}

/* Instituições parceiras: todas as instituições ficam disponíveis em uma grade vertical no mobile. */
@media (max-width: 560px) {
  .partner-grid {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, calc((100% - 14px) / 2)) !important;
    grid-template-rows: none !important;
    grid-auto-columns: auto !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    overflow-x: visible !important;
    padding-inline: 0 !important;
    padding-bottom: 0 !important;
    margin-inline: 0 !important;
  }
  .partner-card__visual {
    display: grid !important;
    place-items: center !important;
    height: 86px !important;
    flex: 0 0 86px !important;
    padding: 0 !important;
  }
  .partner-card__visual img {
    width: 126px !important;
    height: 58px !important;
    max-width: 100% !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }
  .partner-load-more { display: none !important; }
}
