Geno Smith scrambled for a 13-yard touchdown with 12 seconds remaining to lift the Seattle Seahawks to a 20-17 win over the San Francisco 49ers on Sunday.