* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid rgba(46, 107, 79, 0.45);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .nav-shell {
    padding: 14px 20px !important;
  }

  .nav-links {
    gap: 12px !important;
  }

  .nav-links > a:not([data-location="navigation"]) {
    display: none !important;
  }

  .nav-links > a[data-location="navigation"] {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .hero-section {
    padding: 78px 22px 58px !important;
  }

  .hero-title {
    font-size: clamp(54px, 14vw, 72px) !important;
    line-height: 1 !important;
    margin-bottom: 26px !important;
  }

  .problem-section > div,
  #abilities > div,
  #trust > div,
  #faq > div,
  .cta-section > div {
    padding: 72px 20px !important;
  }

  #how,
  #change {
    padding: 72px 20px 36px !important;
  }

  #change {
    padding-top: 36px !important;
    padding-bottom: 72px !important;
  }

  .problem-section h2,
  #how h2,
  #change h2,
  #abilities h2,
  #faq h2 {
    font-size: 36px !important;
  }

  #trust h2,
  .cta-section h2 {
    font-size: 40px !important;
  }

  .problem-desk:not(:has(.problem-sticky)) {
    height: 650px !important;
  }

  .problem-desk:has(.problem-sticky) {
    height: 1280px !important;
  }

  .problem-today,
  .problem-desk:has(.problem-sticky) .problem-today {
    left: 5% !important;
    top: 3% !important;
    width: 90% !important;
    transform: rotate(-0.5deg) !important;
  }

  .problem-vote {
    left: 6% !important;
    right: 6% !important;
    top: 44% !important;
  }

  .problem-vote > div:first-child {
    font-size: 27px !important;
    margin-bottom: 18px !important;
  }

  .problem-options {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .problem-option {
    width: 100% !important;
  }

  .problem-sticky {
    left: 6% !important;
    right: auto !important;
    top: 220px !important;
    bottom: auto !important;
    width: 86% !important;
  }

  .problem-scrap {
    left: 6% !important;
    width: 88% !important;
  }

  .problem-scrap-1 {
    top: 325px !important;
  }

  .problem-scrap-2 {
    top: 505px !important;
  }

  .problem-scrap-3 {
    top: 705px !important;
  }

  .problem-scrap-4 {
    top: 900px !important;
  }

  .problem-searching {
    left: 6% !important;
    right: 6% !important;
    bottom: 18px !important;
    font-size: 10px !important;
  }

  .problem-verdict {
    left: 6% !important;
    top: 1040px !important;
    width: 88% !important;
    padding: 20px !important;
    transform: rotate(-0.3deg) !important;
  }

  .memory-panel {
    height: 500px !important;
  }

  .memory-panel > div:first-child {
    left: 3% !important;
    width: 94% !important;
  }

  .patterns-panel {
    height: 750px !important;
  }

  .patterns-brain {
    left: 5% !important;
    top: 5% !important;
    width: 90% !important;
  }

  .patterns-card {
    left: 5% !important;
    right: 5% !important;
    top: 390px !important;
    width: auto !important;
    transform: none !important;
  }

  .abilities-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-shell {
    flex-direction: column !important;
    text-align: center !important;
    padding: 34px 20px !important;
  }
}

@media (max-width: 430px) {
  .nav-links > a[data-location="navigation"] {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-title {
    font-size: 52px !important;
  }

  .hero-section p,
  .problem-section p,
  #how p,
  #change p,
  #abilities > div > div p,
  .cta-section p {
    font-size: 16px !important;
  }

  .patterns-panel {
    height: 720px !important;
  }

  .patterns-card {
    top: 345px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
