.mobile-menu-toggle,.mobile-only,.tax-mobile-intro { display: none; }
/* Keep both solutions visible on arrival; the animated rails follow the heading
   in normal flow instead of intersecting text at particular viewport heights. */
@media (min-width: 641px) {
  .connections-stage { min-height: 540px; }
  .connections-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding-top: 28px; padding-bottom: 28px;
  }
  .connections .section-heading { width: 100%; flex: 0 0 auto; }
  .connections .section-heading h2 { font-size: clamp(32px, 6.2svh, 62px); }
  .connections .signal-runway {
    position: relative; top: auto; left: auto; transform: none;
    width: min(869px, 111svh, 69.4%); height: clamp(40px, 9svh, 95px);
    flex: 0 0 auto; margin: 18px auto 8px;
  }
  .connections .scene-choice-grid {
    position: relative; top: auto; left: auto; transform: none;
    width: min(1250px, 160svh, 100%); margin: 0 auto; flex: 0 0 auto;
  }
  .connections .scene-choice { opacity: 1; transform: none; }
}
.iris-contact-action { display: inline-flex; margin-top: 18px; padding: 12px 18px; border: 1px solid #51ef9b; border-radius: 10px; background: #042d20; color: #fff; font-size: 13px; font-weight: 700; }
.iris-contact-action:hover { background: #0b4931; }
a:focus-visible,button:focus-visible { outline: 2px solid #ffdc87; outline-offset: 4px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .site-header.shell { z-index: 50; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 1px solid #648674; border-radius: 9px; background: #05271c; color: #fff; padding: 10px 14px; font-weight: 700; cursor: pointer; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: 14px 20px 20px; flex-direction: column; align-items: stretch; gap: 4px; background: #01120b; border-bottom: 1px solid #8b7946; box-shadow: 0 18px 25px #00150b66; }
  .site-header nav.is-open { display: flex; }
  .site-header nav > a:not(.login),.site-header nav > a.login { display: flex; min-height: 44px; padding: 10px 14px; font-size: 15px; border-radius: 8px; }
  .site-header .brand img { width: 160px; }
  .harvest .hero-copy { padding-top: 135px; }
  .scene-rail { display: none; }
  .tax-story,.tax-scene { height: auto; min-height: 0; }
  .tax-stage { position: relative; height: auto; min-height: 0; padding: 36px 16px; overflow: visible; }
  .tax-reference { width: 100%; aspect-ratio: auto; overflow: visible; display: flex; flex-direction: column; gap: 16px; }
  .tax-reference-image,.tax-brand--panel,.tax-reference-hit,.tax-demo-producer,.tax-demo-nav { display: none; }
  .tax-brand--scene { position: static; width: 180px; height: auto; order: -2; border-radius: 10px; }
  .tax-mobile-intro { display: block; order: -1; }
  .tax-mobile-intro h2 { font-size: 36px; margin: 0 0 12px; }
  .tax-mobile-intro h2 em { color: #ffdc87; }
  .tax-mobile-intro p { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
  .tax-mobile-intro small { color: #ffdc87; font-size: 12px; }
  .tax-live-values { position: static; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; opacity: 1; }
  .tax-live-values > * { position: static; width: auto; height: auto; min-width: 0; min-height: 0; border-radius: 12px; }
  .tax-live-number { flex-direction: column; align-items: flex-start; gap: 6px; padding: 15px 12px; font-size: 23px; white-space: normal; border: 1px solid #338563; }
  .tax-live-number::before { color: #e7fff0; font: 600 11px/1.4 Sora,Arial,sans-serif; letter-spacing: 0; }
  .tax-live-number--credits::before { content: 'Créditos ilustrativos'; }
  .tax-live-number--impact::before { content: 'Impacto ilustrativo'; }
  .tax-live-number--regular::before { content: 'Com opção'; }
  .tax-live-number--without::before { content: 'Sem opção'; }
  .tax-live-number--regular::after,.tax-live-number--without::after { font-size: 10px; content: 'Acumulado no exemplo'; }
  .tax-live-number--difference,.tax-live-credit-note,.tax-live-detail,.tax-live-callout { display: none; }
  .tax-live-chart,.tax-live-mix,.tax-live-context,.tax-live-monthly,.tax-live-proof { grid-column: 1 / -1; padding: 15px; }
  .tax-live-chart { grid-template-rows: auto 170px auto; gap: 10px; }
  .tax-live-chart-heading,.tax-live-monthly-heading { flex-wrap: wrap; gap: 10px; white-space: normal; }
  .tax-live-chart-heading strong,.tax-live-monthly-heading strong,.tax-live-mix > strong,.tax-live-context > strong { font-size: 14px; line-height: 1.4; }
  .tax-live-chart-heading select { font-size: 12px; padding: 10px; min-height: 44px; max-width: 100%; border-radius: 7px; }
  .tax-live-chart-legend { font-size: 10px; gap: 12px; }
  .tax-live-chart-legend i { width: 6px; height: 6px; margin-right: 4px; }
  .tax-live-mix { gap: 15px; grid-template-columns: 44% 56%; }
  .tax-live-donut { width: 120px; height: 120px; }
  .tax-live-donut::before { width: 82px; height: 82px; }
  .tax-live-donut span { font-size: 14px; }
  .tax-live-mix-list { font-size: 12px; gap: 10px; }
  .tax-live-mix-list span { grid-template-columns: 7px 1fr; gap: 4px; }
  .tax-live-mix-list i { width: 5px; height: 5px; }
  .tax-live-mix-list b { font-size: 12px; }
  .tax-live-context { gap: 12px; }
  .tax-live-context span,.tax-live-context p { font-size: 11px; line-height: 1.5; padding-bottom: 8px; }
  .tax-live-context p { margin: 0; padding: 10px; border-radius: 6px; }
  .tax-live-monthly { gap: 12px; order: -1; }
  .tax-live-monthly-heading small { font-size: 9px; line-height: 1.5; }
  .tax-demo-export { min-height: 44px; font-size: 12px; padding: 9px 12px; border-radius: 7px; }
  .tax-live-months { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .tax-live-months button { min-height: 44px; font-size: 11px; border-radius: 7px; }
  .tax-live-month-data { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .tax-live-month-data span { padding: 12px 8px; gap: 5px; font-size: 13px; border-radius: 8px; }
  .tax-live-month-data span::before { font-size: 9px; }
  .tax-live-proof { font-size: 12px; line-height: 1.5; }
  .tax-reference-open { position: static; width: 100%; min-height: 48px; padding: 15px; background: #ffdc87; border-radius: 10px; color: #05251a; text-align: center; font-weight: 800; }
  .tax-reference-open:hover { background: #ffe7a9; }
  .mobile-only { display: inline; }
  .iris,.iris-stage { height: auto; min-height: 820px; }
  .iris-stage { position: relative; }
  .iris-layout { display: flex; align-items: center; min-height: 820px; height: auto; padding-top: 70px; padding-bottom: 90px; }
  .iris-interface { opacity: 1 !important; transform: none !important; }
  .iris-copy h2 { font-size: clamp(30px,8.5vw,43px); }
  .iris-copy > p:not(.eyebrow) { font-size: 14px; }
  .iris-prompt { font-size: 14px; line-height: 1.5; }
  .iris-response { font-size: 13px; line-height: 1.5; }
  .iris-interface .example-label { font-size: 9px; }
  .iris-question > span,.iris-answer > span { font-size: 10px; }
  .tax-demo-nav--legal,.tax-demo-nav--method { display: block; position: static; width: 100%; min-height: 44px; border: 1px solid #41845f; border-radius: 9px; padding: 12px; background: #062c22; color: #fff; font-size: 14px; }
  .tax-demo-nav--legal::before,.tax-demo-nav--method::before { content: attr(aria-label); }
  .tax-demo-popover { position: fixed; left: 16px; right: 16px; top: 25%; width: auto; min-height: 0; padding: 24px; border-radius: 12px; z-index: 70; }
  .tax-demo-popover strong { font-size: 18px; padding-right: 30px; }
  .tax-demo-popover p { font-size: 14px; line-height: 1.6; }
  .tax-demo-close { right: 5px; top: 5px; width: 44px; height: 44px; font-size: 25px; }
}
