Negotiate salary: preparation

I got an offer for [ROLE] at [AMOUNT]. Help me prepare: what to research, how to frame my value, three ways to phrase my ask, and what to do if they say no.