Condensed Consolidated Statements of Stockholders' Equity - USD ($) shares in Thousands, $ in Millions | Total | Cumulative Effect, Period of Adoption, Adjustment | Common Stock | Additional Paid-in Capital | Additional Paid-in Capital Cumulative Effect, Period of Adoption, Adjustment | Accumulated Deficit | Accumulated Deficit Cumulative Effect, Period of Adoption, Adjustment | Accumulated Other Comprehensive Loss |
Beginning balance (in shares) at Dec. 31, 2021 | | | 67,534 | | | | | |
Beginning balance at Dec. 31, 2021 | $ 403 | $ (111) | $ 0 | $ 599 | $ (177) | $ (190) | $ 66 | $ (6) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units (in shares) | | | 434 | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units | (14) | | | (14) | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan (in shares) | | | 160 | | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan | 5 | | | 5 | | | | |
Stock-based compensation | 53 | | | 53 | | | | |
Cumulative translation adjustment | 2 | | | | | | | 2 |
Unrealized gain (loss) on investments, net of tax | (2) | | | | | | | (2) |
Net loss | (105) | | | | | (105) | | |
Ending balance (in shares) at Mar. 31, 2022 | | | 68,128 | | | | | |
Ending balance at Mar. 31, 2022 | 231 | | $ 0 | 466 | | (229) | | (6) |
Beginning balance (in shares) at Dec. 31, 2021 | | | 67,534 | | | | | |
Beginning balance at Dec. 31, 2021 | 403 | $ (111) | $ 0 | 599 | $ (177) | (190) | $ 66 | (6) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Cumulative translation adjustment | 9 | | | | | | | |
Unrealized gain (loss) on investments, net of tax | (3) | | | | | | | |
Net loss | (287) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2022 | | | 68,910 | | | | | |
Ending balance at Sep. 30, 2022 | 157 | | $ 0 | 568 | | (411) | | 0 |
Beginning balance (in shares) at Mar. 31, 2022 | | | 68,128 | | | | | |
Beginning balance at Mar. 31, 2022 | 231 | | $ 0 | 466 | | (229) | | (6) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units (in shares) | | | 329 | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units | (12) | | | (12) | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan (in shares) | | | 4 | | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan | 0 | | | | | | | |
Stock-based compensation | 58 | | | 58 | | | | |
Cumulative translation adjustment | 3 | | | | | | | 3 |
Unrealized gain (loss) on investments, net of tax | (1) | | | | | | | (1) |
Net loss | (107) | | | | | (107) | | |
Ending balance (in shares) at Jun. 30, 2022 | | | 68,461 | | | | | |
Ending balance at Jun. 30, 2022 | 172 | | $ 0 | 512 | | (336) | | (4) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units (in shares) | | | 325 | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units | (11) | | | (11) | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan (in shares) | | | 124 | | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan | 5 | | | 5 | | | | |
Stock-based compensation | 62 | | | 62 | | | | |
Cumulative translation adjustment | 4 | | | | | | | 4 |
Unrealized gain (loss) on investments, net of tax | 0 | | | | | | | |
Net loss | (75) | | | | | (75) | | |
Ending balance (in shares) at Sep. 30, 2022 | | | 68,910 | | | | | |
Ending balance at Sep. 30, 2022 | 157 | | $ 0 | 568 | | (411) | | 0 |
Beginning balance (in shares) at Dec. 31, 2022 | | | 69,502 | | | | | |
Beginning balance at Dec. 31, 2022 | 174 | | $ 0 | 623 | | (443) | | (6) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units (in shares) | | | 767 | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units | (27) | | | (27) | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan (in shares) | | | 159 | | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan | 9 | | | 9 | | | | |
Stock-based compensation | 60 | | | 60 | | | | |
Extinguishment of capped calls (in shares) | | | (10) | | | | | |
Conversion on 2023 Notes, net of tax (in shares) | | | 9 | | | | | |
Conversion of 2023 Notes, net of tax | 0 | | | | | | | 0 |
Cumulative translation adjustment | (4) | | | | | | | (4) |
Unrealized gain (loss) on investments, net of tax | 2 | | | | | | | 2 |
Net loss | (89) | | | | | (89) | | |
Ending balance (in shares) at Mar. 31, 2023 | | | 70,427 | | | | | |
Ending balance at Mar. 31, 2023 | 125 | | $ 0 | 665 | | (532) | | (8) |
Beginning balance (in shares) at Dec. 31, 2022 | | | 69,502 | | | | | |
Beginning balance at Dec. 31, 2022 | 174 | | $ 0 | 623 | | (443) | | (6) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Cumulative translation adjustment | (2) | | | | | | | |
Unrealized gain (loss) on investments, net of tax | 3 | | | | | | | |
Net loss | (259) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2023 | | | 71,723 | | | | | |
Ending balance at Sep. 30, 2023 | 67 | | $ 0 | 774 | | (702) | | (5) |
Beginning balance (in shares) at Mar. 31, 2023 | | | 70,427 | | | | | |
Beginning balance at Mar. 31, 2023 | 125 | | $ 0 | 665 | | (532) | | (8) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units (in shares) | | | 573 | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units | (13) | | | (13) | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan (in shares) | | | 29 | | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan | 0 | | | | | | | |
Stock-based compensation | 64 | | | 64 | | | | |
Cumulative translation adjustment | (4) | | | | | | | (4) |
Net loss | (120) | | | | | (120) | | |
Ending balance (in shares) at Jun. 30, 2023 | | | 71,029 | | | | | |
Ending balance at Jun. 30, 2023 | 52 | | $ 0 | 716 | | (652) | | (12) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units (in shares) | | | 500 | | | | | |
Shares issued pursuant to restricted stock unit awards, net of tax withholdings related to vesting of restricted stock units | (8) | | | (8) | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan (in shares) | | | 194 | | | | | |
Exercise of stock options and issuance of shares in connection with employee stock purchase plan | 4 | | | 4 | | | | |
Stock-based compensation | 62 | | | 62 | | | | |
Cumulative translation adjustment | 6 | | | | | | | 6 |
Unrealized gain (loss) on investments, net of tax | 1 | | | | | | | 1 |
Net loss | (50) | | | | | (50) | | |
Ending balance (in shares) at Sep. 30, 2023 | | | 71,723 | | | | | |
Ending balance at Sep. 30, 2023 | $ 67 | | $ 0 | $ 774 | | $ (702) | | $ (5) |