The 49ers stopped the Seahawks at the goal line on fourth down late in the fourth quarter to win 26-21.