pH-balanced foam