Condensed Consolidated Statements of Stockholders’ Equity (Unaudited) - USD ($) $ in Thousands | Total | Common Stock Class A | Common Stock Class B | Common Stock Common Stock Class A | Common Stock Common Stock Class B | Additional Paid-In Capital | Accumulated Other Comprehensive (Loss) Income | Accumulated Deficit |
Beginning balance (in shares) at Dec. 31, 2021 | | | | 170,625,994 | 9,842,105 | | | |
Beginning balance at Dec. 31, 2021 | $ 11,031,466 | | | $ 168 | $ 12 | $ 13,169,118 | $ (18,141) | $ (2,119,691) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (221,627) | | | | | | | (221,627) |
Exercises of vested stock options (in shares) | | | | 180,643 | 193,889 | | | |
Exercises of vested stock options | 11,727 | | | | | 11,727 | | |
Vesting of restricted stock units (in shares) | | | | 877,089 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (5,804) | | | | |
Value of equity awards withheld for tax liability | (1,065) | | | | | (1,065) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 215,389 | (215,389) | | | |
Shares of Class A common stock issued and donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock issued and donated to charity | 4,232 | | | | | 4,232 | | |
Shares returned from escrow (in shares) | | | | (152,239) | | | | |
Shares returned from escrow | (387) | | | | | (387) | | |
Unrealized gain (loss) on marketable securities | (62,826) | | | | | | (62,826) | |
Foreign currency translation | (165) | | | | | | (165) | |
Net change in market value of effective foreign currency forward exchange contracts | (3,852) | | | | | | (3,852) | |
Stock-based compensation | 159,930 | | | | | 159,930 | | |
Ending balance (in shares) at Mar. 31, 2022 | | | | 171,763,174 | 9,820,605 | | | |
Ending balance at Mar. 31, 2022 | 10,917,433 | | | $ 169 | $ 12 | 13,343,554 | (84,984) | (2,341,318) |
Beginning balance (in shares) at Dec. 31, 2021 | | | | 170,625,994 | 9,842,105 | | | |
Beginning balance at Dec. 31, 2021 | 11,031,466 | | | $ 168 | $ 12 | 13,169,118 | (18,141) | (2,119,691) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (1,026,723) | | | | | | | |
Unrealized gain (loss) on marketable securities | (103,999) | | | | | | | |
Foreign currency translation | (4,646) | | | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | (34,154) | | | | | | | |
Share of other comprehensive income (loss) from equity method investment | (4,243) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2022 | | | | 174,482,722 | 9,817,605 | | | |
Ending balance at Sep. 30, 2022 | 10,530,888 | | | $ 172 | $ 12 | 13,842,301 | (165,183) | (3,146,414) |
Beginning balance (in shares) at Mar. 31, 2022 | | | | 171,763,174 | 9,820,605 | | | |
Beginning balance at Mar. 31, 2022 | 10,917,433 | | | $ 169 | $ 12 | 13,343,554 | (84,984) | (2,341,318) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (322,769) | | | | | | | (322,769) |
Exercises of vested stock options (in shares) | | | | 98,111 | 77,732 | | | |
Exercises of vested stock options | 5,649 | | | | | 5,649 | | |
Vesting of restricted stock units (in shares) | | | | 1,049,640 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (38) | | | | |
Value of equity awards withheld for tax liability | (4) | | | | | (4) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 80,732 | (80,732) | | | |
Shares issued under ESPP (in shares) | | | | 258,221 | | | | |
Shares issued under ESPP | 24,318 | | | $ 1 | | 24,317 | | |
Shares of Class A common stock issued and donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock issued and donated to charity | 2,373 | | | | | 2,373 | | |
Unrealized gain (loss) on marketable securities | (19,022) | | | | | | (19,022) | |
Foreign currency translation | (2,289) | | | | | | (2,289) | |
Net change in market value of effective foreign currency forward exchange contracts | (11,106) | | | | | | (11,106) | |
Stock-based compensation | 247,412 | | | | | 247,412 | | |
Ending balance (in shares) at Jun. 30, 2022 | | | | 173,271,942 | 9,817,605 | | | |
Ending balance at Jun. 30, 2022 | 10,841,995 | | | $ 171 | $ 12 | 13,623,300 | (117,401) | (2,664,087) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (482,327) | | | | | | | (482,327) |
Exercises of vested stock options (in shares) | | | | 38,368 | 35,187 | | | |
Exercises of vested stock options | 2,056 | | | | | 2,056 | | |
Vesting of restricted stock units (in shares) | | | | 1,115,248 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (125) | | | | |
Value of equity awards withheld for tax liability | (11) | | | | | (11) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 35,187 | (35,187) | | | |
Shares of Class A common stock issued and donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock issued and donated to charity | 1,911 | | | | | 1,911 | | |
Unrealized gain (loss) on marketable securities | (22,151) | | | | | | (22,151) | |
Foreign currency translation | (2,192) | | | | | | (2,192) | |
Net change in market value of effective foreign currency forward exchange contracts | (19,196) | | | | | | (19,196) | |
Share of other comprehensive income (loss) from equity method investment | (4,243) | | | | | | (4,243) | |
Stock-based compensation | 199,772 | | | | | 199,772 | | |
Stock-based compensation - restructuring | 15,274 | | | | | 15,274 | | |
Ending balance (in shares) at Sep. 30, 2022 | | | | 174,482,722 | 9,817,605 | | | |
Ending balance at Sep. 30, 2022 | 10,530,888 | | | $ 172 | $ 12 | 13,842,301 | (165,183) | (3,146,414) |
Beginning balance (in shares) at Dec. 31, 2022 | | 176,358,104 | 9,617,605 | 176,358,104 | 9,617,605 | | | |
Beginning balance at Dec. 31, 2022 | 10,559,042 | | | $ 174 | $ 12 | 14,055,853 | (121,161) | (3,375,836) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (342,139) | | | | | | | (342,139) |
Exercises of vested stock options (in shares) | | | | 66,968 | 97,199 | | | |
Exercises of vested stock options | 3,264 | | | | | 3,264 | | |
Vesting of restricted stock units (in shares) | | | | 1,516,634 | | | | |
Vesting of restricted stock units | 0 | | | $ 2 | | (2) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (36,965) | | | | |
Value of equity awards withheld for tax liability | (2,456) | | | | | (2,456) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 97,199 | (97,199) | | | |
Shares of Class A common stock issued and donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock issued and donated to charity | 1,599 | | | | | 1,599 | | |
Unrealized gain (loss) on marketable securities | 30,750 | | | | | | 30,750 | |
Repurchases of shares of Class A common stock including related costs (in shares) | | | | (1,902,124) | | | | |
Repurchases of shares of Class A common stock including related costs | (124,992) | | | $ (2) | | | | (124,990) |
Foreign currency translation | 483 | | | | | | 483 | |
Net change in market value of effective foreign currency forward exchange contracts | 3,335 | | | | | | 3,335 | |
Share of other comprehensive income (loss) from equity method investment | 14,648 | | | | | | 14,648 | |
Stock-based compensation | 164,999 | | | | | 164,999 | | |
Stock-based compensation - restructuring | 10,333 | | | | | 10,333 | | |
Ending balance (in shares) at Mar. 31, 2023 | | | | 176,121,918 | 9,617,605 | | | |
Ending balance at Mar. 31, 2023 | 10,318,866 | | | $ 174 | $ 12 | 14,233,590 | (71,945) | (3,842,965) |
Beginning balance (in shares) at Dec. 31, 2022 | | 176,358,104 | 9,617,605 | 176,358,104 | 9,617,605 | | | |
Beginning balance at Dec. 31, 2022 | 10,559,042 | | | $ 174 | $ 12 | 14,055,853 | (121,161) | (3,375,836) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (650,033) | | | | | | | |
Unrealized gain (loss) on marketable securities | $ 53,276 | | | | | | | |
Repurchases of shares of Class A common stock including related costs (in shares) | (9,200,000) | | | | | | | |
Foreign currency translation | $ 5,587 | | | | | | | |
Net change in market value of effective foreign currency forward exchange contracts | (7,458) | | | | | | | |
Share of other comprehensive income (loss) from equity method investment | 17,030 | | | | | | | |
Ending balance (in shares) at Sep. 30, 2023 | | 182,066,098 | 0 | 182,066,098 | 0 | | | |
Ending balance at Sep. 30, 2023 | 9,979,381 | | | $ 182 | $ 0 | 14,610,887 | (52,726) | (4,578,962) |
Beginning balance (in shares) at Mar. 31, 2023 | | | | 176,121,918 | 9,617,605 | | | |
Beginning balance at Mar. 31, 2023 | 10,318,866 | | | $ 174 | $ 12 | 14,233,590 | (71,945) | (3,842,965) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (166,187) | | | | | | | (166,187) |
Exercises of vested stock options (in shares) | | | | 33,438 | 30,783 | | | |
Exercises of vested stock options | 1,477 | | | | | 1,477 | | |
Vesting of restricted stock units (in shares) | | | | 1,144,112 | | | | |
Vesting of restricted stock units | 0 | | | $ 1 | | (1) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (872) | | | | |
Value of equity awards withheld for tax liability | (53) | | | | | (53) | | |
Conversion of shares of Class B common stock into shares of Class A common stock (in shares) | | | | 9,648,388 | (9,648,388) | | | |
Conversion of shares of Class B common stock into shares of Class A common stock | 0 | | | $ 12 | $ (12) | | | |
Shares issued under ESPP (in shares) | | | | 579,857 | | | | |
Shares issued under ESPP | 23,337 | | | | | 23,337 | | |
Shares of Class A common stock issued and donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock issued and donated to charity | 1,047 | | | | | 1,047 | | |
Unrealized gain (loss) on marketable securities | 8,605 | | | | | | 8,605 | |
Repurchases of shares of Class A common stock including related costs (in shares) | | | | (6,374,327) | | | | |
Repurchases of shares of Class A common stock including related costs | (373,147) | | | $ (6) | | | | (373,141) |
Foreign currency translation | 86 | | | | | | 86 | |
Net change in market value of effective foreign currency forward exchange contracts | (2,167) | | | | | | (2,167) | |
Share of other comprehensive income (loss) from equity method investment | 5,146 | | | | | | 5,146 | |
Stock-based compensation | 159,253 | | | | | 159,253 | | |
Stock-based compensation - restructuring | 296 | | | | | 296 | | |
Ending balance (in shares) at Jun. 30, 2023 | | | | 181,174,616 | 0 | | | |
Ending balance at Jun. 30, 2023 | 9,976,559 | | | $ 181 | $ 0 | 14,418,946 | (60,275) | (4,382,293) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net loss | (141,707) | | | | | | | (141,707) |
Exercises of vested stock options (in shares) | | | | 100,000 | | | | |
Exercises of vested stock options | 871 | | | | | 871 | | |
Vesting of restricted stock units (in shares) | | | | 1,669,596 | | | | |
Vesting of restricted stock units | 0 | | | $ 2 | | (2) | | |
Value of equity awards withheld for tax liability (in shares) | | | | (417) | | | | |
Value of equity awards withheld for tax liability | (27) | | | | | (27) | | |
Shares of Class A common stock issued and donated to charity (in shares) | | | | 22,102 | | | | |
Shares of Class A common stock issued and donated to charity | 1,339 | | | | | 1,339 | | |
Unrealized gain (loss) on marketable securities | $ 13,921 | | | | | | 13,921 | |
Repurchases of shares of Class A common stock including related costs (in shares) | (900,000) | | | (899,799) | | | | |
Repurchases of shares of Class A common stock including related costs | $ (54,963) | | | $ (1) | | | | (54,962) |
Foreign currency translation | 5,018 | | | | | | 5,018 | |
Net change in market value of effective foreign currency forward exchange contracts | (8,626) | | | | | | (8,626) | |
Share of other comprehensive income (loss) from equity method investment | (2,764) | | | | | | (2,764) | |
Stock-based compensation | 189,293 | | | | | 189,293 | | |
Stock-based compensation - restructuring | 467 | | | | | 467 | | |
Ending balance (in shares) at Sep. 30, 2023 | | 182,066,098 | 0 | 182,066,098 | 0 | | | |
Ending balance at Sep. 30, 2023 | $ 9,979,381 | | | $ 182 | $ 0 | $ 14,610,887 | $ (52,726) | $ (4,578,962) |