/* Homepage layout overrides for tablet and phone viewports. */
@media (max-width: 900px) {
  html { scroll-snap-type: none !important; }
  body { overflow-x: hidden; }

  .sn {
    min-height: auto !important;
    padding: 88px 24px 64px !important;
  }

  #home {
    min-height: 100svh !important;
    padding-top: 112px !important;
  }

  #home .home-inner { width: 100%; }
  #home h1 { font-size: clamp(48px, 9.2vw, 70px) !important; line-height: 1 !important; }
  #home .hero-proof { gap: 18px !important; flex-wrap: wrap; }

  #evolution .evolution-steps { grid-template-columns: repeat(2, 1fr) !important; gap: 34px 0 !important; }
  #evolution .evolution-rail > div:first-child,
  #evolution [data-evolution-line] { display: none !important; }
  #evolution .evolution-step { padding: 0 14px !important; }
  #evolution .evolution-pillars { grid-template-columns: 1fr !important; }

  #products .home-products-grid { grid-template-columns: 1fr !important; border-radius: 14px !important; }
  #products .home-products-grid > article { border-right: 0 !important; border-bottom: 1px solid rgba(244, 244, 245, .1); }
  #products .home-products-grid > article:last-child { border-bottom: 0; }
  #products .home-products-grid a { min-height: 44px; }

  #users .users-panel { grid-template-columns: 1fr !important; }
  #users .users-primary { min-height: 250px !important; border-right: 0 !important; border-bottom: 1px solid rgba(244, 244, 245, .1); }
  #users .users-primary strong { font-size: clamp(58px, 13vw, 82px) !important; }

  #method .method-grid { grid-template-columns: repeat(2, 1fr) !important; }

  #contact { padding-bottom: 0 !important; }
  #contact h2 { font-size: clamp(48px, 9vw, 66px) !important; }
  #contact .contact-grid { grid-template-columns: 170px minmax(0, 1fr) !important; max-width: 100% !important; }
  #contact .contact-details { gap: 14px !important; }
  #contact .contact-details > a:first-child strong { font-size: clamp(32px, 5.2vw, 38px) !important; line-height: 1.15 !important; }
  #contact .contact-details > a:not(:first-child) strong,
  #contact .contact-details > p strong { max-width: 62%; font-size: 14px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
  #contact .home-footer { grid-template-columns: 1fr auto !important; }
}

@media (max-width: 620px) {
  .sn { padding: 72px 16px 54px !important; }
  .sn h2 { font-size: 34px !important; line-height: 1.12 !important; }

  #home { min-height: 100svh !important; padding-top: 118px !important; padding-bottom: 70px !important; }
  #home h1 { margin-top: 14px !important; font-size: clamp(42px, 12.4vw, 54px) !important; letter-spacing: -.055em !important; }
  #home p { font-size: 14px !important; }
  #home .hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  #home .hero-actions a { min-width: 0; min-height: 48px; height: auto !important; justify-content: center; padding: 0 16px !important; }
  #home .hero-proof { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 16px !important; margin-top: 24px !important; }
  #home .hero-proof > span:nth-child(even) { display: none; }
  #home [data-scrollhint] { display: none !important; }

  #evolution .evolution-steps { grid-template-columns: 1fr !important; gap: 0 !important; }
  #evolution .evolution-step { position: relative; padding: 0 0 28px 46px !important; text-align: left !important; }
  #evolution .evolution-step:not(:last-child)::after { content: ""; position: absolute; top: 22px; bottom: 0; left: 10px; width: 1px; background: rgba(192, 233, 55, .2); }
  #evolution .evolution-step [data-evolution-dot] { position: absolute; top: 0; left: 0; margin: 0 !important; }
  #evolution .evolution-step > div { margin-top: 0 !important; }
  #evolution .evolution-step h3 { margin-top: 8px !important; }
  #evolution .evolution-pillars { margin-top: 10px !important; }
  #evolution .evolution-pillars > div { padding: 22px !important; }

  #products .home-products-grid { margin-top: 26px !important; }
  #products .home-products-grid figure { aspect-ratio: 16 / 10 !important; }
  #products .home-products-grid article > div { align-items: flex-start !important; padding: 16px !important; }
  #products .home-products-grid article p { white-space: normal !important; }
  #products > div > p:last-child { text-align: left !important; line-height: 1.5; }

  #users .users-panel { margin-top: 26px !important; border-radius: 16px !important; }
  #users .users-primary { min-height: 225px !important; padding: 24px !important; }
  #users .users-secondary { grid-template-columns: 1fr !important; }
  #users .users-secondary > article { min-height: 128px; border-right: 0 !important; padding: 20px !important; }
  #users .users-secondary > article strong { margin-top: 16px !important; font-size: 42px !important; }
  #users .users-progress-grid { padding: 20px !important; }
  #users .users-progress-grid > div:not(:last-child) { grid-template-columns: 72px 1fr 48px !important; gap: 8px !important; }
  #users .users-progress-grid > div:last-child { align-items: flex-start !important; flex-direction: column; gap: 6px; }

  #cases { padding-inline: 16px !important; }
  #cases .case-controls button { min-width: 76px; min-height: 44px; padding-inline: 12px; }

  #method .method-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  #method .method-grid article { min-height: 220px !important; }

  #contact h2 { font-size: 44px !important; }
  #contact .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  #contact .contact-grid > div:first-child { width: min(210px, 70vw); }
  #contact .contact-details a:first-child strong { font-size: clamp(28px, 9vw, 36px) !important; white-space: nowrap; }
  #contact .contact-details a:not(:first-child),
  #contact .contact-details p { min-height: 44px; }
  #contact .contact-details a:not(:first-child) strong,
  #contact .contact-details p strong { max-width: 68%; margin-left: auto !important; font-size: 13px !important; text-align: right; }
  #contact .home-footer { grid-template-columns: 1fr auto !important; gap: 12px !important; margin-top: 42px !important; }
  #contact .home-footer span:first-child { text-align: left !important; }
  #contact .home-footer span:last-child { text-align: right !important; }
}
