Parenting is one of those jobs in which the goal is to eliminate the need for your job. If you don't want your teen doing something, make sure you are not doing it yourself. Teens have very strong and sensitive hyopocrisy meters and are eager to use them. One clear example of this is school. For parents, the view is we work all day, kids don't.
School is their job.
Therefore, they should get good grades. The view of teenagers can be that school is right in the middle of their important social world. Punishment breeds resentment and a desire for revenge. Teens have many creative ways to retaliate. In general, consequences need to be reasonable, respectful, swift and strong enough to get the attention of teens.