What do you mean by "our AC units require fresh air ventilation"? Fresh air doesn't come from the attic. If there's an atmospheric combustion appliance in the attic, such as an 80 AFUE furnace, then you shouldn't be encapsulating the attic anyway. If that's the case, you don't want spray foam on the roofline at all. You can either change out the furnace to a sealed combustion unit or do your insulating and air-sealing at the flat-ceiling level.
Spray foam insulation is typically priced by volume, meaning your cost will depend on how much material you need to use to insulate your space, although other factors may influence price as well. In most cases, the cost of spray foam insulation is more than worth it, as it's a once and done upgrade that will not only provide energy savings in your home, but also improve your home's overall comfort.