v3.24.0.1
Net Income (Loss) Per Share - Summary of Calculation of Basic and Diluted Net Loss Per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Numerator:      
Net Income (Loss) $ (709,561) $ (498,005) $ 242,385
Denominator:      
Weighted-average common shares outstanding —basic (in shares) 141,572 137,668 132,710
Net income (loss) per share - basic (in dollars per share) $ (5.01) $ (3.62) $ 1.83
Weighted-average common shares outstanding — diluted (in shares) 141,572 137,668 141,668
Net income (loss) per share - diluted (in dollars per share) $ (5.01) $ (3.62) $ 1.71
Restricted stock units      
Denominator:      
Common stock equivalents (in shares) 0 0 2,744
Stock options      
Denominator:      
Common stock equivalents (in shares) 0 0 6,214