v3.25.2
Net Income (Loss) Per Share - Calculation of Basic and Diluted Net Income Per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2025
Jun. 30, 2024
Numerator:        
Net income (loss) $ 28,840 $ 53,005 $ (23,256) $ 116,009
Add back interest expense, net of tax attributable to assumed conversion of convertible senior notes 1,873 1,585   3,170
Net income (loss) attributable to common stockholders—diluted $ 30,713 $ 54,590 $ (23,256) $ 119,179
Denominator:        
Weighted average common shares outstanding—basic (in shares) 103,212 116,432 105,246 117,445
Dilutive effect of outstanding stock-based compensation awards (in shares) 2,243 1,972 0 2,104
Weighted average common shares outstanding - diluted (in shares) 121,514 133,118 105,246 134,263
Net income (loss) per share attributable to common stockholders—basic (in dollars per share) $ 0.28 $ 0.46 $ (0.22) $ 0.99
Net income (loss) per share attributable to common stockholders—diluted (in dollars per share) $ 0.25 $ 0.41 $ (0.22) $ 0.89
Convertible senior notes        
Denominator:        
Dilutive effect of assumed conversion of convertible senior notes (in shares) 16,059 14,714 0 14,714