Գրեք սա: Macroscopic entanglement and phase transitions