Once I learned the half-life of caffeine is 5-9 hours, I started a rule where I only had caffeinated coffee before noon, and decaf after. Night and day difference (heh) in my sleep quality.
Perhaps 12pm didn't work for you because caffeine stuck around longer in your body compared to mine. Did you ever try an earlier cutoff time?