Exchangeable shares and redeemable convertible preferred stock - Schedule of Exchangeable and redeemable Convertible Preferred Stock (Details) - USD ($) $ / shares in Units, $ in Thousands | Jan. 18, 2022 | Mar. 31, 2022 | Jan. 17, 2022 | Dec. 31, 2021 | Mar. 31, 2021 | Dec. 31, 2020 |
Temporary Equity [Line Items] | | | | | | |
Shares authorized (in shares) | | 40,000,000 | | | | |
Shares outstanding (in shares) | | 32,297,000 | | | | |
Net carrying value | | $ 0 | | $ 568,483 | | |
Total exchangeable shares | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 35,193,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 21,991,000 | | |
Net carrying value | | | | $ 49,733 | | |
Aggregate liquidation preference | | | | $ 49,733 | | |
Series Seed 1 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 2,589,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 2,589,000 | | |
Issuance price per share (in dollars per share) | | | | $ 0.53 | | |
Net carrying value | | | | $ 1,359 | | |
Aggregate liquidation preference | | | | $ 1,372 | | |
Series Seed 2 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 1,209,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 1,209,000 | | |
Issuance price per share (in dollars per share) | | | | $ 0.50 | | |
Net carrying value | | | | $ 606 | | |
Aggregate liquidation preference | | | | $ 605 | | |
Series Seed 3 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 704,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 704,000 | | |
Issuance price per share (in dollars per share) | | | | $ 1.09 | | |
Net carrying value | | | | $ 787 | | |
Aggregate liquidation preference | | | | $ 768 | | |
Series A | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 183,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 183,000 | | |
Issuance price per share (in dollars per share) | | | | $ 1.36 | | |
Net carrying value | | | | $ 250 | | |
Aggregate liquidation preference | | | | $ 250 | | |
Series B | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 2,336,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 2,336,000 | | |
Issuance price per share (in dollars per share) | | | | $ 2.40 | | |
Net carrying value | | | | $ 5,610 | | |
Aggregate liquidation preference | | | | $ 5,605 | | |
Series C | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 3,175,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 3,175,000 | | |
Issuance price per share (in dollars per share) | | | | $ 5.04 | | |
Net carrying value | | | | $ 15,991 | | |
Aggregate liquidation preference | | | | $ 16,003 | | |
Series D | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 2,058,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 1,953,000 | | |
Issuance price per share (in dollars per share) | | | | $ 10.50 | | |
Net carrying value | | | | $ 20,600 | | |
Aggregate liquidation preference | | | | $ 20,600 | | |
Series E | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 421,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 421,000 | | |
Issuance price per share (in dollars per share) | | | | $ 10.77 | | |
Net carrying value | | | | $ 4,530 | | |
Aggregate liquidation preference | | | | $ 4,530 | | |
Total redeemable convertible preferred stock | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 173,803,000 | | |
Mezzanine equity, shares outstanding (in shares) | | 0 | 75,757,555 | 75,767,000 | 111,257,435 | 111,121,045 |
Net carrying value | | $ 0 | | $ 518,750 | $ 518,750 | $ 517,730 |
Aggregate liquidation preference | | | | $ 529,938 | | |
Series Seed 1 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 3,703,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 785,000 | | |
Issuance price per share (in dollars per share) | | | | $ 0.53 | | |
Net carrying value | | | | $ 269 | | |
Aggregate liquidation preference | | | | $ 416 | | |
Series Seed 1-A | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 3,703,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 328,000 | | |
Issuance price per share (in dollars per share) | | | | $ 0.53 | | |
Net carrying value | | | | $ 174 | | |
Aggregate liquidation preference | | | | $ 174 | | |
Series Seed 2 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 1,720,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 471,000 | | |
Issuance price per share (in dollars per share) | | | | $ 0.50 | | |
Net carrying value | | | | $ 222 | | |
Aggregate liquidation preference | | | | $ 235 | | |
Series Seed 2-A | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 1,720,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 39,000 | | |
Issuance price per share (in dollars per share) | | | | $ 0.50 | | |
Net carrying value | | | | $ 20 | | |
Aggregate liquidation preference | | | | $ 20 | | |
Series Seed 3 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 704,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 0 | | |
Issuance price per share (in dollars per share) | | | | $ 1.09 | | |
Net carrying value | | | | $ 0 | | |
Aggregate liquidation preference | | | | $ 0 | | |
Series Seed 3-A | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 704,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 0 | | |
Issuance price per share (in dollars per share) | | | | $ 1.09 | | |
Net carrying value | | | | $ 0 | | |
Aggregate liquidation preference | | | | $ 0 | | |
Series A | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 7,023,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 6,780,000 | | |
Issuance price per share (in dollars per share) | | | | $ 1.36 | | |
Net carrying value | | | | $ 9,241 | | |
Aggregate liquidation preference | | | | $ 9,221 | | |
Series A-1 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 7,023,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 0 | | |
Issuance price per share (in dollars per share) | | | | $ 1.36 | | |
Net carrying value | | | | $ 0 | | |
Aggregate liquidation preference | | | | $ 0 | | |
Series B | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 15,611,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 13,218,000 | | |
Issuance price per share (in dollars per share) | | | | $ 2.40 | | |
Net carrying value | | | | $ 27,105 | | |
Aggregate liquidation preference | | | | $ 31,723 | | |
Series B-1 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 15,611,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 0 | | |
Issuance price per share (in dollars per share) | | | | $ 2.40 | | |
Net carrying value | | | | $ 0 | | |
Aggregate liquidation preference | | | | $ 0 | | |
Series C | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 19,071,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 12,144,000 | | |
Issuance price per share (in dollars per share) | | | | $ 5.04 | | |
Net carrying value | | | | $ 56,496 | | |
Aggregate liquidation preference | | | | $ 61,204 | | |
Series C-1 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 19,071,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 3,514,000 | | |
Issuance price per share (in dollars per share) | | | | $ 5.04 | | |
Net carrying value | | | | $ 17,708 | | |
Aggregate liquidation preference | | | | $ 17,708 | | |
Series D | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 21,603,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 3,482,000 | | |
Issuance price per share (in dollars per share) | | | | $ 10.50 | | |
Net carrying value | | | | $ 35,808 | | |
Aggregate liquidation preference | | | | $ 36,560 | | |
Series D-1 | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 21,603,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 16,049,000 | | |
Issuance price per share (in dollars per share) | | | | $ 10.50 | | |
Net carrying value | | | | $ 168,518 | | |
Aggregate liquidation preference | | | | $ 168,518 | | |
Series E | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Mezzanine equity, shares authorized (in shares) | | | | 34,933,000 | | |
Mezzanine equity, shares outstanding (in shares) | | | | 18,956,000 | | |
Issuance price per share (in dollars per share) | | | | $ 10.77 | | |
Net carrying value | | | | $ 203,189 | | |
Aggregate liquidation preference | | | | $ 204,159 | | |
Common Stock | | | | | | |
Temporary Equity [Line Items] | | | | | | |
Shares authorized (in shares) | 400,000,000 | | | | | |
Shares issued upon conversion (in shares) | 111,271,424 | | | | | |
Issuance of common stock upon conversion | $ 518,800 | | | | | |