Condensed Consolidated Statements of Redeemable Noncontrolling Interest, Series A Redeemable Convertible Preferred Stock, and Stockholders’ Equity - USD ($) shares in Thousands, $ in Thousands | Total | Redeemable Noncontrolling Interest | Common Stock | Additional Paid-In Capital | Accumulated Other Comprehensive Income | Accumulated Deficit |
Beginning balance at Dec. 31, 2022 | $ 123,172 | $ 40,749 | $ 2 | $ 1,286,815 | $ (708) | $ (1,162,937) |
Beginning balance (in shares) at Dec. 31, 2022 | | | 240,931 | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Issuance of common stock upon exercise of stock options, net of repurchases (in shares) | | | 17 | | | |
Issuance of common stock upon exercise of stock options, net of repurchases | 134 | | | 134 | | |
Vesting of early exercised stock options | 758 | | | 758 | | |
Vesting of restricted stock units (in shares) | | | 4,228 | | | |
Shares withheld related to net share settlement of equity awards (in shares) | | | (1,568) | | | |
Shares withheld related to net share settlement of equity awards | (2,440) | | | (2,440) | | |
Stock-based compensation | 16,392 | | | 16,392 | | |
Unrealized loss on investments in marketable securities | 821 | | | | 821 | |
Foreign currency translation gain | (18) | | | | (18) | |
Accretion of redeemable noncontrolling interest to redemption value | (2,056) | 2,056 | | (2,056) | | |
Net income (loss) | (65,417) | (777) | | | | (65,417) |
Ending balance (in shares) at Mar. 31, 2023 | | | 243,608 | | | |
Ending balance at Mar. 31, 2023 | 71,346 | 42,028 | $ 2 | 1,299,603 | 95 | (1,228,354) |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | |
Accretion of redeemable noncontrolling interest to redemption value | 0 | | | | | |
Beginning balance at Dec. 31, 2022 | 123,172 | 40,749 | $ 2 | 1,286,815 | (708) | (1,162,937) |
Beginning balance (in shares) at Dec. 31, 2022 | | | 240,931 | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Accretion of redeemable noncontrolling interest to redemption value | (3,648) | | | | | |
Net income (loss) | (106,648) | | | | | |
Ending balance (in shares) at Jun. 30, 2023 | | | 245,775 | | | |
Ending balance at Jun. 30, 2023 | 41,267 | 43,362 | $ 2 | 1,311,539 | (689) | (1,269,585) |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | |
Accretion of redeemable noncontrolling interest to redemption value | 0 | | | | | |
Beginning balance at Mar. 31, 2023 | 71,346 | 42,028 | $ 2 | 1,299,603 | 95 | (1,228,354) |
Beginning balance (in shares) at Mar. 31, 2023 | | | 243,608 | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Vesting of early exercised stock options | 256 | | | 256 | | |
Vesting of restricted stock units (in shares) | | | 3,304 | | | |
Shares withheld related to net share settlement of equity awards (in shares) | | | (1,137) | | | |
Shares withheld related to net share settlement of equity awards | (1,092) | | | (1,092) | | |
Stock-based compensation | 14,364 | | | 14,364 | | |
Unrealized loss on investments in marketable securities | (773) | | | | (773) | |
Foreign currency translation gain | (11) | | | | (11) | |
Accretion of redeemable noncontrolling interest to redemption value | (1,592) | 1,592 | | (1,592) | | |
Net income (loss) | (41,231) | (258) | | | | (41,231) |
Ending balance (in shares) at Jun. 30, 2023 | | | 245,775 | | | |
Ending balance at Jun. 30, 2023 | $ 41,267 | 43,362 | $ 2 | 1,311,539 | (689) | (1,269,585) |
Beginning temporary equity (in shares) at Dec. 31, 2023 | 0 | | | | | |
Beginning temporary equity at Dec. 31, 2023 | $ 0 | | | | | |
Ending temporary equity (in shares) at Mar. 31, 2024 | 0 | | | | | |
Ending temporary equity at Mar. 31, 2024 | $ 0 | | | | | |
Beginning balance at Dec. 31, 2023 | $ (19,243) | 46,190 | $ 2 | 1,321,944 | 441 | (1,341,630) |
Beginning balance (in shares) at Dec. 31, 2023 | 249,910 | | 249,910 | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Issuance of common stock upon exercise of stock options, net of repurchases (in shares) | | | 410 | | | |
Issuance of common stock upon exercise of stock options, net of repurchases | $ 619 | | | 619 | | |
Vesting of early exercised stock options | 184 | | | 184 | | |
Vesting of restricted stock units (in shares) | | | 3,257 | | | |
Shares withheld related to net share settlement of equity awards (in shares) | | | (1,258) | | | |
Shares withheld related to net share settlement of equity awards | (3,806) | | | (3,806) | | |
Stock-based compensation | 8,707 | | | 8,707 | | |
Unrealized loss on investments in marketable securities | (104) | | | | (104) | |
Foreign currency translation gain | 9 | | | | 9 | |
Accretion of redeemable noncontrolling interest to redemption value | (1,461) | 1,461 | | (1,461) | | |
Net income (loss) | (20,668) | 5 | | | | (20,668) |
Ending balance (in shares) at Mar. 31, 2024 | | | 252,319 | | | |
Ending balance at Mar. 31, 2024 | $ (35,763) | 47,656 | $ 2 | 1,326,187 | 346 | (1,362,298) |
Beginning temporary equity (in shares) at Dec. 31, 2023 | 0 | | | | | |
Beginning temporary equity at Dec. 31, 2023 | $ 0 | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | |
Accretion of redeemable noncontrolling interest to redemption value | $ (2,661) | | | | | |
Ending temporary equity (in shares) at Jun. 30, 2024 | 150 | | | | | |
Ending temporary equity at Jun. 30, 2024 | $ 133,445 | | | | | |
Beginning balance at Dec. 31, 2023 | $ (19,243) | 46,190 | $ 2 | 1,321,944 | 441 | (1,341,630) |
Beginning balance (in shares) at Dec. 31, 2023 | 249,910 | | 249,910 | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Accretion of redeemable noncontrolling interest to redemption value | $ (2,988) | | | | | |
Net income (loss) | $ (40,075) | | | | | |
Ending balance (in shares) at Jun. 30, 2024 | 254,207 | | 254,207 | | | |
Ending balance at Jun. 30, 2024 | $ (45,471) | 49,169 | $ 2 | 1,335,928 | 304 | (1,381,705) |
Beginning temporary equity (in shares) at Mar. 31, 2024 | 0 | | | | | |
Beginning temporary equity at Mar. 31, 2024 | $ 0 | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | |
Issuance of Series A Preferred Stock, net of issuance costs (in shares) | 150 | | | | | |
Issuance of Series A redeemable convertible preferred stock, net of issuance costs | $ 130,784 | | | | | |
Accretion of redeemable noncontrolling interest to redemption value | $ (2,661) | | | | | |
Ending temporary equity (in shares) at Jun. 30, 2024 | 150 | | | | | |
Ending temporary equity at Jun. 30, 2024 | $ 133,445 | | | | | |
Beginning balance at Mar. 31, 2024 | (35,763) | 47,656 | $ 2 | 1,326,187 | 346 | (1,362,298) |
Beginning balance (in shares) at Mar. 31, 2024 | | | 252,319 | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Issuance of common stock upon exercise of stock options, net of repurchases (in shares) | | | 62 | | | |
Issuance of common stock upon exercise of stock options, net of repurchases | 95 | | | 95 | | |
Vesting of early exercised stock options | 172 | | | 172 | | |
Vesting of restricted stock units (in shares) | | | 2,887 | | | |
Shares withheld related to net share settlement of equity awards (in shares) | | | (1,061) | | | |
Shares withheld related to net share settlement of equity awards | (3,213) | | | (3,213) | | |
Stock-based compensation | 7,764 | | | 7,764 | | |
Unrealized loss on investments in marketable securities | (42) | | | | (42) | |
Accretion of redeemable noncontrolling interest to redemption value | (1,527) | 1,527 | | (1,527) | | |
Issuance of the Warrant in connection with the Series A redeemable convertible preferred stock | 9,111 | | | 9,111 | | |
Net income (loss) | $ (19,407) | (14) | | | | (19,407) |
Ending balance (in shares) at Jun. 30, 2024 | 254,207 | | 254,207 | | | |
Ending balance at Jun. 30, 2024 | $ (45,471) | $ 49,169 | $ 2 | $ 1,335,928 | $ 304 | $ (1,381,705) |