/* Approved light intersection and mobile corrections, September 2026. */

/* Keep the tour footer in its own row: its height follows its actual copy. */
#plataforma .workspace-tour-footer {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  margin-top: 24px;
}
.workspace-tour-status > [data-tour-status] { min-width: 0; }

/* The reduced-motion/no-script carousel must receive swipe and keyboard input. */
.prch.is-static .prch__rows { pointer-events: auto; }
.prch.is-static .prch__copy { pointer-events: auto !important; }
.prch.is-static .prch__track {
  min-width: 0;
  padding-inline: var(--edge) !important;
  scroll-padding-inline: var(--edge);
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.prch.is-static .prch__track:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

@media (max-width: 720px) {
  /* Restore the V2 portrait ratio; width and height must share one scale. */
  .merge-partners .prch {
    --card-h: clamp(160px, 24svh, 200px);
    --card-w: calc(var(--card-h) * .764);
  }
  .merge-partners .prch:not(.is-static) .prch__stage {
    height: auto;
    min-height: 100svh;
    padding-block: 100px 32px;
  }
  .merge-partners .prch__copy { flex: none; }
  .merge-partners .prch__name { font-size: 12px; line-height: 1.2; }
  .merge-partners .prch__handle, .merge-partners .prch__foll { font-size: 10px; line-height: 1.3; }
  .merge-partners .prch__cap { padding: 10px; }
  .merge-partners .parceiros__title > span,
  .merge-partners .parceiros__sub > span { white-space: normal; }
}

@media (max-width: 860px) {
  #plataforma .workspace-tour-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
  }
  #plataforma .workspace-tour-count { padding-top: 3px; font-size: 10px; }
  #plataforma .workspace-tour-next {
    grid-column: 2;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    text-wrap: pretty;
    text-align: left;
  }
  #plataforma .workspace-tour-next > span { white-space: nowrap; margin-left: 4px; }
}

@media (max-width: 600px) {
  body.cinematic-home #conteudo :is(h2.display, h2.parceiros__title, h2.tg__title, .comparison-heading h3) {
    font-size: clamp(30px, 8.6vw, 34px);
    line-height: 1.15;
    text-wrap: balance;
  }
  body.cinematic-home #conteudo :is(.intro, .parceiros__sub, .tg__sub, .chapter-copy > p, .integration-copy > p, .brand-path p, .comparison-heading p) {
    text-wrap: pretty;
  }
  body.cinematic-home #conteudo :is(.audience-item h3, .plan-name h3, .integration-copy h3, .brand-path h3, .faq-item summary) {
    text-wrap: balance;
  }
  #plataforma .workspace-content { padding: 24px 16px; }
  #plataforma .workspace-nav [role="tab"] { min-width: 0; font-size: 12px; }
  #plataforma .workspace-tab-label {
    max-width: 100%;
    min-height: 2.8em;
    white-space: normal;
    text-wrap: balance;
    text-align: center;
    line-height: 1.4;
  }
  #plataforma .product-heading h3 { font-size: 25px; line-height: 1.2; text-wrap: balance; }
  #plataforma .product-heading p { font-size: 14px; line-height: 1.65; text-wrap: pretty; }
  #plataforma .milestone strong { line-height: 1.45; }
  #plataforma .milestone small { line-height: 1.5; }
  #burocracia .chapter-header { padding: 22px 18px; gap: 12px; }
  #burocracia .chapter-stage { padding: 20px 12px; }
  #burocracia .process-deck .chapter-copy > h3 { text-wrap: balance; }
}

@media (prefers-reduced-motion: reduce) {
  .prch__rows { pointer-events: auto; }
}
