Transform your iPhone into a focus phone.
Using Apple's MDM system to create restrictions that are genuinely hard to undo on impulse.
Supervised MDM restrictions can't be removed without your server or Apple Configurator.
Changes require a cooling-off period. No impulsive undoing at 2am.
Optionally require a trusted person to approve changes to your restrictions.