Text this: Gravitational waves and dark matter in the gauged two-Higgs doublet model