Net Loss per Share - Net Loss per Share (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2021
Sep. 30, 2021
Jun. 30, 2021
Mar. 31, 2021
Dec. 31, 2020
Sep. 30, 2020
Jun. 30, 2020
Mar. 31, 2020
Dec. 31, 2019
Sep. 30, 2019
Jun. 30, 2019
Mar. 31, 2019
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Numerator:                              
Net loss - basic and diluted         $ 27,347 $ (9,796) $ (10,611) $ (12,935)         $ (43,241) $ (5,995) $ (46,672)
Denominator:                              
Weighted average common shares outstanding                         41,854,110 29,478,878 29,364,535
Less: weighted average common shares subject to repurchase                             (14,725)
Weighted average common shares outstanding used to compute basic net loss per share                         41,854,110 29,478,878 29,349,810
Weighted average common shares outstanding used to compute diluted net loss per share                         41,854,110 29,478,878 29,349,810
Net income (loss) per share, basic $ (0.20) $ (0.24) $ (0.28) $ (0.34) $ 0.92 $ (0.33) $ (0.36) $ (0.44)         $ (1.03) $ (0.20) $ (1.59)
Net income (loss) per share, diluted $ (0.20) $ (0.24) $ (0.28) $ (0.34)         $ 0.92 $ (0.33) $ (0.36) $ (0.44) $ (1.03) $ (0.20) $ (1.59)