Whenever you're ready, walk me through how you'd approach this.
Design a system for issuing physical and virtual debit cards within a banking application at Revolut, focusing on API design, state transitions, and third-party integrations.
Define the public APIs, persistence model, card lifecycle state machine, idempotency strategy, asynchronous processing, retries, and failure handling. Explain how the design differs for physical and virtual cards, and how you would maintain consistency across Revolut services and external card processors.