| Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net income (loss) | -487 | -275 | -246 | 19 |
|---|
| Depreciation and amortization | 21 | 24 | 32 | 46 |
|---|
| Stock-based compensation expense | 140 | 228 | 277 | 253 |
|---|
| Capitalized Contract Cost, Amortization | - | - | 62 | 82 |
|---|
| Fair Value Adjustment of Warrants | 97 | -95 | -3 | 49 |
|---|
| Credit loss expense | 4 | 34 | 64 | 70 |
|---|
| Noncash Contribution Expense | 19 | 10 | 10 | 5 |
|---|
| Asset impairments | - | - | 15 | 5 |
|---|
| Gain on warrant extinguishment | - | - | - | 14 |
|---|
| Other non-cash items | -2 | -5 | 17 | 7 |
|---|
| Accounts receivable, net | 23 | 35 | 3 | 72 |
|---|
| Other current assets | - | - | 12 | 15 |
|---|
| Deferred contract acquisition costs | 56 | 71 | 107 | 130 |
|---|
| Inventories, net | 23 | 68 | 7 | - |
|---|
| Accounts payable | 15 | -11 | 1 | 5 |
|---|
| Accrued expenses and other current liabilities | 145 | 116 | 81 | 48 |
|---|
| Deferred revenue | -2 | -11 | -5 | 23 |
|---|
| Operating lease right-of-use assets and operating lease liabilities, net | - | - | 1 | -4 |
|---|
| Other assets and liabilities | 1 | 13 | 8 | 3 |
|---|
| Net cash provided by (used in) operating activities | 2 | -156 | 135 | 360 |
|---|
| Cash paid for acquisition, net of cash acquired | 26 | 46 | 9 | - |
|---|
| Capital expenditures | - | - | 42 | 54 |
|---|
| Purchases of marketable securities | 469 | 434 | 623 | 473 |
|---|
| Proceeds from the sale of marketable securities | 5 | 46 | 35 | 126 |
|---|
| Maturities of marketable securities | 5 | 369 | 556 | 362 |
|---|
| Other investing activities | -1 | - | 3 | - |
|---|
| Net cash used in investing activities | -503 | -98 | -86 | -39 |
|---|
| Proceeds from issuance of common stock | - | - | 36 | 99 |
|---|
| Change in customer funds obligations, net | 24 | 26 | 27 | 36 |
|---|
| Warrant repurchase | - | - | - | 61 |
|---|
| Repurchases of Class A common stock | - | - | - | 56 |
|---|
| Other financing activities | 1 | -1 | - | - |
|---|
| Net cash provided by financing activities | 759 | 38 | 63 | 18 |
|---|
| Effect of exchange rate changes on cash and cash equivalents and restricted cash | -1 | - | - | -1 |
|---|
| Net increase (decrease) in cash, cash equivalents, cash held on behalf of customers and restricted cash | - | - | - | 338 |
|---|
| Cash paid for income taxes | - | 1 | - | 3 |
|---|
| Share-Based Payment Arrangement, Amount Capitalized | 1 | 7 | - | 14 |
|---|
| Operating Lease, Payments | - | - | - | 14 |
|---|
| Right-of-Use Asset Obtained in Exchange for Operating Lease Liability Including Lease Terminations And Modifications | - | - | - | 1 |
|---|
| Stock Issued, Exercise of Common Stock Warrants | - | - | 1 | 17 |
|---|