how do I get the trim off around the stereo so that I can remove the stereo?
Not sure specifically on the Pilot, but usually you push a screwdriver (flathead) gently behind the plastic covering around the radio and pull back to release clips. You may want to check with a Honda dealer before attempting anything.
Search Honda Pilot Questions
Honda Pilot Experts
Patrick Jay R