/* Ajustes de tablet e celular (todas as seções). */
@media (width<=980px) {
  .manifesto-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cards,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(4n) {
    border-right: 1px solid var(--line);
  }
  .stat:nth-child(2n) {
    border-right: none;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar:last-child {
    border-bottom: none;
  }
  .portrait {
    max-width: 420px;
  }
}
@media (width<=760px) {
  .nav-links {
    z-index: 1090;
    padding: 104px 32px calc(34px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.5s var(--ease),
      opacity 0.4s var(--ease),
      visibility 0s linear 0.5s;
    counter-reset: navi;
    overscroll-behavior: contain;
    background: #080808fb;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    display: flex;
    position: fixed;
    inset: 0;
    overflow-y: auto;
    transform: translate(100%);
  }
  .nav-links:before {
    content: "";
    pointer-events: none;
    background: radial-gradient(85% 100% at 82% 0, #d81f2c29, #0000 70%);
    height: 42%;
    position: absolute;
    inset: 0 0 auto;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.5s var(--ease),
      opacity 0.4s var(--ease),
      visibility 0s;
    transform: translate(0);
  }
  .nav-links > a {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--white);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
    align-items: baseline;
    gap: 16px;
    padding: 20px 2px;
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1;
    display: flex;
    transform: translate(26px);
  }
  .nav-links > a:before {
    counter-increment: navi;
    content: counter(navi, decimal-leading-zero);
    font-family: var(--tech);
    letter-spacing: 0.1em;
    color: var(--accent);
    flex: none;
    font-size: 0.7rem;
    font-weight: 600;
    transform: translateY(-0.4em);
  }
  .nav-links > a:after {
    display: none;
  }
  .nav-links > a:active {
    color: var(--accent);
  }
  .nav-links.open > a {
    animation: menuItemIn 0.55s var(--ease) forwards;
  }
  .nav-links.open > a:first-child {
    animation-delay: 0.1s;
  }
  .nav-links.open > a:nth-child(2) {
    animation-delay: 0.16s;
  }
  .nav-links.open > a:nth-child(3) {
    animation-delay: 0.22s;
  }
  .nav-links.open > a:nth-child(4) {
    animation-delay: 0.28s;
  }
  .menu-foot {
    opacity: 0;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    transform: translateY(18px);
  }
  .nav-links.open .menu-foot {
    animation: menuItemIn 0.55s var(--ease) 0.36s forwards;
  }
  .menu-cta-btn {
    letter-spacing: 0.2em;
    color: #0a0a0a;
    width: 100%;
    transition:
      transform 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
    background: linear-gradient(120deg, #e0212f 0%, #d11a2a 60%, #ff6e22 118%);
    border: none;
    padding: 19px 26px;
    font-size: 0.92rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow:
      0 14px 36px -12px #d81f2cb3,
      inset 0 1px #ffffff6b;
  }
  .menu-cta-btn .cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease);
    flex: none;
  }
  .menu-cta-btn:before {
    content: "";
    pointer-events: none;
    background: linear-gradient(100deg, #0000, #ffffff80, #0000);
    width: 48%;
    height: 100%;
    position: absolute;
    top: 0;
    left: -65%;
    transform: skew(-18deg);
  }
  .nav-links.open .menu-cta-btn:before {
    animation: ctaShine 1.15s var(--ease) 1s 1;
  }
  .menu-cta-btn:active {
    transform: translateY(1px);
    box-shadow:
      0 7px 18px -10px #d81f2ccc,
      inset 0 1px #ffffff6b;
  }
  .menu-cta-btn:active .cta-arrow {
    transform: translate(5px);
  }
  .menu-wa {
    font-family: var(--tech);
    letter-spacing: 0.05em;
    color: var(--muted);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.8rem;
    text-decoration: none;
  }
  .menu-wa:active {
    color: var(--white);
  }
  .hamburger {
    z-index: 1101;
    display: flex;
    position: relative;
  }
  .nav-cta > .btn-primary,
  .corner.tl {
    display: none;
  }
  .corner.bl,
  .corner.br {
    font-size: 0.58rem;
  }
  .block {
    padding: 84px 0;
  }
  .container {
    padding: 0 20px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .foot-trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-cols {
    justify-content: flex-start;
    gap: 48px;
  }
  .foot-cta {
    margin-bottom: 40px;
    padding-bottom: 38px;
  }
  .foot-cta-btn {
    justify-content: center;
    width: 100%;
  }
  .foot-bottom {
    text-align: center;
    justify-content: center;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
  .marquee-track {
    animation: none;
  }
  .qe-stage .char {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .qe-echo {
    display: none !important;
  }
  .big-question {
    text-shadow: 0 0 24px #d81f2c2e !important;
  }
  .flyin .l-char,
  .about-photo {
    opacity: 1 !important;
    transform: none !important;
  }
  .ap-float {
    animation: none !important;
  }
  .cz-track {
    transition: none !important;
  }
}
