Net Income (Loss) Per Share - Schedule of Shares Excluded from the Calculation of Diluted Net Income (Loss) Per Share (Details) - shares shares in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 1,201 | 5,391 | 2,486 | 28,277 |
| Stock-based compensation awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 1,201 | 5,391 | 2,486 | 5,404 |
| Convertible senior notes | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Total anti-dilutive securities (in shares) | 0 | 0 | 0 | 22,873 |