@media (max-width: 1024px) {
  .hero-shell {
    padding: 64px 32px 28px;
  }
}

@media (max-width: 900px) {
  .header-content {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    background: var(--surface-ivory);
  }

  .button.nav-mobile-only {
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }

  .header-actions {
    display: none;
  }

  .screen-description {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .capability-grid article {
    grid-column: span 3;
  }

  .capability-grid article:last-child {
    grid-column: span 6;
  }

  .benefit-table,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .benefit-table article,
  .workflow-list li {
    min-height: 0;
  }

  .audience,
  .workflow-list li > span {
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 88px;
  }

  .container {
    width: min(100% - 32px, 1200px);
  }

  .header-content {
    min-height: 58px;
    gap: 8px;
    padding-inline: 16px;
  }

  .brand img {
    width: 112px;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero-shell {
    padding: 48px 16px 16px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 36px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    align-items: center;
    gap: 8px;
  }

  .hero-frame {
    margin-top: 36px;
    padding: 6px;
    border-radius: 16px;
  }

  .hero-frame img {
    border-radius: 0 0 10px 10px;
  }

  .frame-bar {
    min-height: 30px;
    padding-bottom: 6px;
  }

  .frame-bar strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .integration-strip {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .integration-strip ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  section:not(.hero) {
    padding: 48px 0;
  }

  h2 {
    font-size: 30px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header > p {
    font-size: 15px;
  }

  .screen-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screen-tabs::-webkit-scrollbar {
    display: none;
  }

  .screen-tabs button {
    flex: 0 0 auto;
  }

  .screen-description {
    padding: 20px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article,
  .capability-grid article:first-child,
  .capability-grid article:nth-child(2),
  .capability-grid article:last-child {
    min-height: 0;
    grid-column: auto;
    padding: 20px;
  }

  .capability-grid h3 {
    margin-top: 20px;
  }

  .benefit-table article,
  .workflow-list li {
    padding: 20px;
  }

  .pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .pricing-scroll-hint,
  .pricing-table-wrap,
  .pricing-actions {
    display: none;
  }

  .contact-section {
    padding: 48px 0 !important;
  }

  .contact-card .button {
    width: 100%;
  }

  .footer-content {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-content nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .footer-content > span {
    margin-left: auto;
  }
}

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

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