Condensed Statement of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) (Unaudited) - USD ($) shares in Thousands, $ in Thousands | Total | Redeemable Convertible Preferred Stock | Common Stock | Additional Paid-in Capital | Accumulated Other Comprehensive Income (Loss) | Accumulated Deficit |
Beginning Balance at Dec. 31, 2019 | $ (372,187) | | $ 1 | $ 357 | $ 22 | $ (372,567) |
Temporary Equity, Beginning Balance (shares) at Dec. 31, 2019 | | 147,214 | | | | |
Temporary Equity, Beginning Balance at Dec. 31, 2019 | | $ 409,446 | | | | |
Beginning Balance (shares) at Dec. 31, 2019 | | | 922 | | | |
Temporary Equity, Issuance of Series E redeemable convertible preferred stock, net of issuance costs | | $ 126,758 | | | | |
Temporary Equity, Issuance of Series E redeemable convertible preferred stock, net of issuance costs (shares) | | 57,782 | | | | |
Temporary Equity, Issuance of common stock on settlement of accrued dividend | | $ (41,763) | | | | |
Issuance of common stock on settlement of accrued dividend | 41,763 | | $ 5 | 41,758 | | |
Issuance of common stock on settlement of accrued dividend (shares) | | | 4,850 | | | |
Deemed dividend on settlement of accrued dividend | 42,530 | | | 42,530 | | |
Temporary Equity, Deemed dividend on settlement of accrued dividend | | (42,530) | | | | |
Stock option exercises | 14 | | | 14 | | |
Stock option exercises (shares) | | | 4 | | | |
Stock-based compensation expense | 580 | | | 580 | | |
Unrealized gain (loss) on available-for-sale securities | (35) | | | | (35) | |
Adjustment to redemption value on redeemable convertible preferred stock | (362) | | | (362) | | |
Temporary equity, Adjustment to redemption value on redeemable convertible preferred stock | | $ 362 | | | | |
Net loss | (20,650) | | | | | (20,650) |
Ending Balance at Mar. 31, 2020 | (308,347) | | $ 6 | 84,877 | (13) | (393,217) |
Temporary Equity, Ending Balance (shares) at Mar. 31, 2020 | | 204,996 | | | | |
Temporary Equity, Ending Balance at Mar. 31, 2020 | | $ 452,273 | | | | |
Ending Balance (shares) at Mar. 31, 2020 | | | 5,776 | | | |
Beginning Balance at Dec. 31, 2019 | (372,187) | | $ 1 | 357 | 22 | (372,567) |
Temporary Equity, Beginning Balance (shares) at Dec. 31, 2019 | | 147,214 | | | | |
Temporary Equity, Beginning Balance at Dec. 31, 2019 | | $ 409,446 | | | | |
Beginning Balance (shares) at Dec. 31, 2019 | | | 922 | | | |
Deemed dividend on settlement of accrued dividend | 42,530 | | | | | |
Unrealized gain (loss) on available-for-sale securities | (21) | | | | | |
Net loss | (89,449) | | | | | |
Ending Balance at Sep. 30, 2020 | 354,333 | | $ 42 | 816,306 | 1 | (462,016) |
Temporary Equity, Ending Balance (shares) at Sep. 30, 2020 | | 0 | | | | |
Temporary Equity, Ending Balance at Sep. 30, 2020 | | $ 0 | | | | |
Ending Balance (shares) at Sep. 30, 2020 | | | 42,701 | | | |
Beginning Balance at Mar. 31, 2020 | (308,347) | | $ 6 | 84,877 | (13) | (393,217) |
Temporary Equity, Beginning Balance (shares) at Mar. 31, 2020 | | 204,996 | | | | |
Temporary Equity, Beginning Balance at Mar. 31, 2020 | | $ 452,273 | | | | |
Beginning Balance (shares) at Mar. 31, 2020 | | | 5,776 | | | |
Stock option exercises | 80 | | | 80 | | |
Stock option exercises (shares) | | | 26 | | | |
Stock-based compensation expense | 683 | | | 683 | | |
Unrealized gain (loss) on available-for-sale securities | 13 | | | | 13 | |
Net loss | (26,505) | | | | | (26,505) |
Ending Balance at Jun. 30, 2020 | (334,076) | | $ 6 | 85,640 | | (419,722) |
Temporary Equity, Ending Balance (shares) at Jun. 30, 2020 | | 204,996 | | | | |
Temporary Equity, Ending Balance at Jun. 30, 2020 | | $ 452,273 | | | | |
Ending Balance (shares) at Jun. 30, 2020 | | | 5,802 | | | |
Temporary Equity Cash Exercises Of Redeemable Convertible Preferred Stock Warrants Value | | $ 4,288 | | | | |
Temporary Equity Cash Exercises Of Redeemable Convertible Preferred Stock Warrants Shares | | 1,655 | | | | |
Temporary Equity Shares Conversion Of Convertible Redeemable Preferred Stock In to Common Stock | | (206,651) | | | | |
Temporary Equity Conversion Of Convertible Redeemable Preferred Stock In to Common Stock | | $ (456,561) | | | | |
Issuance of common stock upon initial public offering, net of issuance costs | 254,805 | | $ 10 | 254,795 | | |
Issuance of common stock upon initial public offering, net of issuance costs (shares) | | | 10,294 | | | |
Issuance of common stock upon net exercises of Series B redeemable convertible preferred stock warrants | | | 65 | | | |
Conversion of Series A redeemable convertible preferred stock warrants to common stock warrants | 1,252 | | | 1,252 | | |
Stock Issued During Period, Value, Conversion of Convertible Securities | 456,561 | | $ 26 | 456,535 | | |
Stock Issued During Period, Shares, Conversion of Convertible Securities | | | 26,167 | | | |
Reclassifications of Temporary to Permanent Equity | 3,126 | | | 3,126 | | |
Stock option exercises | 1,050 | | | 1,050 | | |
Stock option exercises (shares) | | | 373 | | | |
Stock-based compensation expense | 13,908 | | | 13,908 | | |
Unrealized gain (loss) on available-for-sale securities | 1 | | | | 1 | |
Net loss | (42,294) | | | | | (42,294) |
Ending Balance at Sep. 30, 2020 | 354,333 | | $ 42 | 816,306 | 1 | (462,016) |
Temporary Equity, Ending Balance (shares) at Sep. 30, 2020 | | 0 | | | | |
Temporary Equity, Ending Balance at Sep. 30, 2020 | | $ 0 | | | | |
Ending Balance (shares) at Sep. 30, 2020 | | | 42,701 | | | |
Beginning Balance at Dec. 31, 2020 | 328,609 | | $ 43 | 822,624 | 1 | (494,059) |
Beginning Balance (shares) at Dec. 31, 2020 | | | 42,722 | | | |
Issuance of common stock through employee stock purchase plan | 1,838 | | | 1,838 | | |
Issuance of common stock through employee stock purchase plan (shares) | | | 80 | | | |
Stock option exercises | 380 | | | 380 | | |
Stock option exercises (shares) | | | 86 | | | |
Stock-based compensation expense | 5,852 | | | 5,852 | | |
Unrealized gain (loss) on available-for-sale securities | (9) | | | | (9) | |
Net loss | (30,025) | | | | | (30,025) |
Ending Balance at Mar. 31, 2021 | 306,645 | | $ 43 | 830,694 | (8) | (524,084) |
Ending Balance (shares) at Mar. 31, 2021 | | | 42,888 | | | |
Beginning Balance at Dec. 31, 2020 | 328,609 | | $ 43 | 822,624 | 1 | (494,059) |
Beginning Balance (shares) at Dec. 31, 2020 | | | 42,722 | | | |
Deemed dividend on settlement of accrued dividend | | | | | | |
Unrealized gain (loss) on available-for-sale securities | (21) | | | | | |
Net loss | (90,703) | | | | | |
Ending Balance at Sep. 30, 2021 | 409,751 | | $ 47 | 994,486 | (20) | (584,762) |
Ending Balance (shares) at Sep. 30, 2021 | | | 47,018 | | | |
Beginning Balance at Mar. 31, 2021 | 306,645 | | $ 43 | 830,694 | (8) | (524,084) |
Beginning Balance (shares) at Mar. 31, 2021 | | | 42,888 | | | |
Issuance of common stock upon initial public offering, net of issuance costs | 149,085 | | $ 3 | 149,082 | | |
Issuance of common stock upon initial public offering, net of issuance costs (shares) | | | 2,946 | | | |
Issuance of common stock for settlement of RSUs (shares) | | | 1 | | | |
Stock option exercises | 1,723 | | | 1,723 | | |
Stock option exercises (shares) | | | 390 | | | |
Stock-based compensation expense | 3,937 | | | 3,937 | | |
Unrealized gain (loss) on available-for-sale securities | (20) | | | | (20) | |
Net loss | (30,208) | | | | | (30,208) |
Ending Balance at Jun. 30, 2021 | 431,162 | | $ 46 | 985,436 | (28) | (554,292) |
Ending Balance (shares) at Jun. 30, 2021 | | | 46,225 | | | |
Issuance of common stock through employee stock purchase plan | 1,596 | | | 1,596 | | |
Issuance of common stock through employee stock purchase plan (shares) | | | 36 | | | |
Issuance of common stock for settlement of RSUs (shares) | | | 1 | | | |
Stock option exercises | 4,591 | | $ 1 | 4,590 | | |
Stock option exercises (shares) | | | 756 | | | |
Stock-based compensation expense | 2,864 | | | 2,864 | | |
Unrealized gain (loss) on available-for-sale securities | 8 | | | | 8 | |
Net loss | (30,470) | | | | | (30,470) |
Ending Balance at Sep. 30, 2021 | $ 409,751 | | $ 47 | $ 994,486 | $ (20) | $ (584,762) |
Ending Balance (shares) at Sep. 30, 2021 | | | 47,018 | | | |