Consolidated Statements of Convertible Preferred Stock and Stockholders' Equity (Deficit) - USD ($) $ in Thousands | Total | Common Stock | Common StockClass A | Common StockClass B | Treasury Stock | Additional Paid-In Capital | Accumulated Deficit | Accumulated Other Comprehensive Income (Loss) |
Beginning balance (in shares) at Dec. 31, 2019 | 335,625,349 | | | | | | | |
Beginning balance at Dec. 31, 2019 | $ 1,295,744 | | | | | | | |
Ending balance (in shares) at Mar. 31, 2020 | 335,625,349 | | | | | | | |
Ending balance at Mar. 31, 2020 | $ 1,295,744 | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2019 | | 28,840,849 | | | | | | |
Beginning balance at Dec. 31, 2019 | (945,138) | $ 2 | | | $ (2,923) | $ 70,673 | $ (1,012,863) | $ (27) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of options (in shares) | | 55,226 | | | | | | |
Issuance of common stock upon exercise of options | 443 | | | | | 443 | | |
Stock-based compensation expense | 8,096 | | | | | 8,096 | | |
Net unrealized gains (losses) on securities available for sale | 1,529 | | | | | | | 1,529 |
Net loss | (96,879) | | | | | | (96,879) | |
Ending balance (in shares) at Mar. 31, 2020 | | 28,896,075 | | | | | | |
Ending balance at Mar. 31, 2020 | $ (1,031,949) | $ 2 | | | (2,923) | 79,212 | (1,109,742) | 1,502 |
Beginning balance (in shares) at Dec. 31, 2019 | 335,625,349 | | | | | | | |
Beginning balance at Dec. 31, 2019 | $ 1,295,744 | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | 372,912,630 | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 1,506,687 | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2019 | | 28,840,849 | | | | | | |
Beginning balance at Dec. 31, 2019 | (945,138) | $ 2 | | | (2,923) | 70,673 | (1,012,863) | (27) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Net unrealized gains (losses) on securities available for sale | 1,219 | | | | | | | |
Net loss | (216,955) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | | 29,232,999 | | | | | | |
Ending balance at Sep. 30, 2020 | $ (1,136,887) | $ 2 | | | (2,923) | 94,660 | (1,229,818) | 1,192 |
Beginning balance (in shares) at Mar. 31, 2020 | 335,625,349 | | | | | | | |
Beginning balance at Mar. 31, 2020 | $ 1,295,744 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Stock issued (in shares) | 37,287,281 | | | | | | | |
Stock Issued | $ 210,943 | | | | | | | |
Ending balance (in shares) at Jun. 30, 2020 | 372,912,630 | | | | | | | |
Ending balance at Jun. 30, 2020 | $ 1,506,687 | | | | | | | |
Beginning balance (in shares) at Mar. 31, 2020 | | 28,896,075 | | | | | | |
Beginning balance at Mar. 31, 2020 | (1,031,949) | $ 2 | | | (2,923) | 79,212 | (1,109,742) | 1,502 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of options (in shares) | | 41,972 | | | | | | |
Issuance of common stock upon exercise of options | 322 | | | | | 322 | | |
Stock-based compensation expense | 6,601 | | | | | 6,601 | | |
Net unrealized gains (losses) on securities available for sale | 692 | | | | | | | 692 |
Net loss | (40,944) | | | | | | (40,944) | |
Ending balance (in shares) at Jun. 30, 2020 | | 28,938,047 | | | | | | |
Ending balance at Jun. 30, 2020 | $ (1,065,278) | $ 2 | | | (2,923) | 86,135 | (1,150,686) | 2,194 |
Ending balance (in shares) at Sep. 30, 2020 | 372,912,630 | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 1,506,687 | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of options (in shares) | | 294,952 | | | | | | |
Issuance of common stock upon exercise of options | 1,238 | | | | | 1,238 | | |
Stock-based compensation expense | 7,287 | | | | | 7,287 | | |
Net unrealized gains (losses) on securities available for sale | (1,002) | | | | | | | (1,002) |
Net loss | (79,132) | | | | | | (79,132) | |
Ending balance (in shares) at Sep. 30, 2020 | | 29,232,999 | | | | | | |
Ending balance at Sep. 30, 2020 | $ (1,136,887) | $ 2 | | | (2,923) | 94,660 | (1,229,818) | 1,192 |
Beginning balance (in shares) at Dec. 31, 2020 | 400,904,302 | | | | | | | |
Beginning balance at Dec. 31, 2020 | $ 1,744,911 | | | | | | | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Conversion of pre-IPO shares to Class A and Class B common stock (in shares) | (400,904,302) | | | | | | | |
Conversion of pre-IPO shares to Class A and Class B common stock | $ (1,744,911) | | | | | | | |
Ending balance (in shares) at Mar. 31, 2021 | 0 | | | | | | | |
Ending balance at Mar. 31, 2021 | $ 0 | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2020 | | 31,409,202 | 0 | 0 | | | | |
Beginning balance at Dec. 31, 2020 | (1,295,893) | $ 2 | $ 0 | $ 0 | (2,923) | 133,255 | (1,427,106) | 879 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Conversion of pre-IPO shares to Class A and Class B common stock (in shares) | | (31,409,202) | 130,280,651 | 35,115,807 | | | | |
Conversion of pre-IPO shares to Class A and Class B common stock | 1,744,910 | $ (2) | $ 1 | | | 1,744,911 | | |
Issuance of common stock upon IPO, net of underwriting discount (in shares) | | | 36,391,946 | | | | | |
Issuance of common stock upon IPO, net of underwriting discount | 1,338,875 | | $ 1 | | | 1,338,874 | | |
Issuance of common stock upon exercise of warrants and call options (in shares) | | | 1,115,973 | | | | | |
Issuance of common stock upon exercise of warrants and call options | 37,071 | | | | | 37,071 | | |
Issuance of common stock upon exercise of options (in shares) | | | 4,272,060 | | | | | |
Issuance of common stock upon exercise of options | 29,805 | | | | | 29,805 | | |
Stock-based compensation expense | 19,115 | | | | | 19,115 | | |
Net unrealized gains (losses) on securities available for sale | (275) | | | | | | | (275) |
Net loss | (87,371) | | | | | | (87,371) | |
Ending balance (in shares) at Mar. 31, 2021 | | 0 | 172,060,630 | 35,115,807 | | | | |
Ending balance at Mar. 31, 2021 | $ 1,786,237 | $ 0 | $ 2 | $ 0 | (2,923) | 3,303,031 | (1,514,477) | 604 |
Beginning balance (in shares) at Dec. 31, 2020 | 400,904,302 | | | | | | | |
Beginning balance at Dec. 31, 2020 | $ 1,744,911 | | | | | | | |
Ending balance (in shares) at Sep. 30, 2021 | 0 | | | | | | | |
Ending balance at Sep. 30, 2021 | $ 0 | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2020 | | 31,409,202 | 0 | 0 | | | | |
Beginning balance at Dec. 31, 2020 | $ (1,295,893) | $ 2 | $ 0 | $ 0 | (2,923) | 133,255 | (1,427,106) | 879 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of options (in shares) | 5,990,310 | | | | | | | |
Net unrealized gains (losses) on securities available for sale | $ (862) | | | | | | | |
Net loss | (373,184) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2021 | | 0 | 174,056,898 | 35,115,807 | | | | |
Ending balance at Sep. 30, 2021 | $ 1,553,212 | $ 0 | $ 2 | $ 0 | (2,923) | 3,356,406 | (1,800,290) | 17 |
Beginning balance (in shares) at Mar. 31, 2021 | 0 | | | | | | | |
Beginning balance at Mar. 31, 2021 | $ 0 | | | | | | | |
Ending balance (in shares) at Jun. 30, 2021 | 0 | | | | | | | |
Ending balance at Jun. 30, 2021 | $ 0 | | | | | | | |
Beginning balance (in shares) at Mar. 31, 2021 | | 0 | 172,060,630 | 35,115,807 | | | | |
Beginning balance at Mar. 31, 2021 | 1,786,237 | $ 0 | $ 2 | $ 0 | (2,923) | 3,303,031 | (1,514,477) | 604 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of options (in shares) | | | 393,581 | | | | | |
Issuance of common stock upon exercise of options | 3,033 | | | | | 3,033 | | |
Stock-based compensation expense | 18,273 | | | | | 18,273 | | |
Net unrealized gains (losses) on securities available for sale | (644) | | | | | | | (644) |
Net loss | (73,068) | | | | | | (73,068) | |
Ending balance (in shares) at Jun. 30, 2021 | | 0 | 172,454,211 | 35,115,807 | | | | |
Ending balance at Jun. 30, 2021 | $ 1,733,831 | $ 0 | $ 2 | $ 0 | (2,923) | 3,324,337 | (1,587,545) | (40) |
Ending balance (in shares) at Sep. 30, 2021 | 0 | | | | | | | |
Ending balance at Sep. 30, 2021 | $ 0 | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Issuance of common stock upon exercise of options (in shares) | | | 1,602,687 | | | | | |
Issuance of common stock upon exercise of options | 11,429 | | | | | 11,429 | | |
Stock-based compensation expense | 20,640 | | | | | 20,640 | | |
Net unrealized gains (losses) on securities available for sale | 57 | | | | | | | 57 |
Net loss | (212,745) | | | | | | (212,745) | |
Ending balance (in shares) at Sep. 30, 2021 | | 0 | 174,056,898 | 35,115,807 | | | | |
Ending balance at Sep. 30, 2021 | $ 1,553,212 | $ 0 | $ 2 | $ 0 | $ (2,923) | $ 3,356,406 | $ (1,800,290) | $ 17 |