Text this: Compound electron acceleration at planetary foreshocks