/* ──────────────────────────────────────
   1. Design Tokens
   ────────────────────────────────────── */
:root {
  --bg: #fef9f0;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --paper: #ffffff;

  --coral: #ff6b4a;
  --sky: #4d9fff;
  --mint: #2dd4a8;
  --sunshine: #ffcb47;
  --lavender: #a78bfa;

  --coral-soft: rgba(255, 107, 74, 0.12);
  --sky-soft: rgba(77, 159, 255, 0.12);
  --mint-soft: rgba(45, 212, 168, 0.12);
  --sunshine-soft: rgba(255, 203, 71, 0.15);

  --stroke: rgba(26, 26, 46, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow: 0 12px 40px rgba(255, 107, 74, 0.08), 0 8px 24px rgba(77, 159, 255, 0.06);
  --shadow-lg: 0 24px 64px rgba(255, 107, 74, 0.1), 0 12px 32px rgba(77, 159, 255, 0.08);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
}

/* ──────────────────────────────────────
   2. Reset & Base
   ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ──────────────────────────────────────
   3. Background
   ────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg__blob {
  position: absolute;
  width: 56rem;
  height: 56rem;
  filter: blur(60px);
  opacity: 0.3;
  transform: translateZ(0);
}

.bg__blob--a {
  background: radial-gradient(circle at 30% 30%, var(--coral), transparent 60%),
              radial-gradient(circle at 70% 40%, var(--sunshine), transparent 50%);
  top: -24rem;
  left: -16rem;
}

.bg__blob--b {
  background: radial-gradient(circle at 60% 40%, var(--sky), transparent 55%),
              radial-gradient(circle at 30% 70%, var(--mint), transparent 55%);
  bottom: -28rem;
  right: -20rem;
}

.bg__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 26, 46, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 70%);
}

/* ──────────────────────────────────────
   4. Header
   ────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(254, 249, 240, 0.8);
  border-bottom: 1px solid var(--stroke);
}

.top__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 46, 0.15);
  background:
    radial-gradient(circle at 35% 30%, var(--coral), transparent 60%),
    radial-gradient(circle at 65% 70%, var(--sky), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--mint), transparent 60%);
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.2);
}

.brand__name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────
   5. Progress Bar
   ────────────────────────────────────── */
.progress {
  max-width: 480px;
  margin: 0 auto 8px;
  padding: 0 20px;
  display: none;
}

.progress.is-visible {
  display: block;
}

.progress__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.progress__step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: all 300ms ease;
}

.progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(26, 26, 46, 0.06);
  color: var(--muted);
  transition: all 300ms ease;
}

.progress__label {
  display: none;
}

.progress__step.is-active .progress__dot {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 74, 0.3);
}

.progress__step.is-active .progress__label {
  display: inline;
  color: var(--ink);
}

.progress__step.is-complete .progress__dot {
  background: var(--mint);
  color: white;
}

.progress__step.is-complete .progress__dot::after {
  content: "\2713";
  font-size: 14px;
}

.progress__step.is-complete .progress__dot > :first-child {
  display: none;
}

/* Connector lines between steps */
.progress__step + .progress__step::before {
  content: "";
  width: 24px;
  height: 2px;
  background: rgba(26, 26, 46, 0.1);
  border-radius: 2px;
  margin-right: 6px;
  transition: background 300ms ease;
}

.progress__step.is-complete + .progress__step::before,
.progress__step.is-active + .progress__step::before {
  /* leave as-is for now; the completed connector color comes from .is-complete */
}

.progress__step.is-complete + .progress__step.is-complete::before,
.progress__step.is-complete + .progress__step.is-active::before {
  background: var(--mint);
}

/* ──────────────────────────────────────
   6. Steps (show/hide)
   ────────────────────────────────────── */
.main {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  min-height: calc(100vh - 120px);
}

.step {
  display: none;
}

.step.is-active {
  display: block;
  animation: fadeInUp 400ms ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────────────
   7. Landing Page
   ────────────────────────────────────── */
.landing {
  padding-top: 32px;
}

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-split__left {
  text-align: left;
}

.hero-split__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pixel lobster mascot */
.mascot {
  width: 100%;
  max-width: 256px;
}

.mascot__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(255, 79, 64, 0.18));
  animation: mascot-bob 3s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.landing__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-soft);
  border: 1px solid rgba(255, 107, 74, 0.2);
  margin-bottom: 24px;
}

.landing__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--coral), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing__lead {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.6;
}

/* Flow steps (4-step visual) */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  position: relative;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.flow-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flow-step__num--coral { background: var(--coral); box-shadow: 0 4px 16px rgba(255, 107, 74, 0.3); }
.flow-step__num--sky { background: var(--sky); box-shadow: 0 4px 16px rgba(77, 159, 255, 0.3); }
.flow-step__num--lavender { background: var(--lavender); box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3); }
.flow-step__num--mint { background: var(--mint); box-shadow: 0 4px 16px rgba(45, 212, 168, 0.3); }

/* Connector line between steps */
.flow-step__connector {
  display: none;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--stroke), var(--stroke));
  z-index: 0;
}

.flow-step:nth-child(1)::after {
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.3), rgba(77, 159, 255, 0.3));
}

.flow-step:nth-child(2)::after {
  background: linear-gradient(90deg, rgba(77, 159, 255, 0.3), rgba(167, 139, 250, 0.3));
}

.flow-step:nth-child(3)::after {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.3), rgba(45, 212, 168, 0.3));
}

.flow-step__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.flow-step__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 20ch;
}

/* Trust pills */
.landing__trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--stroke);
}

.trust-pill__icon {
  font-size: 15px;
}

/* Landing sections (How it works, Easy to use, Security) */
.landing-section {
  margin-top: 56px;
  text-align: center;
}

.landing-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.landing-section__sub {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 50ch;
  line-height: 1.6;
}

/* Explainer cards (How it works) */
.explainer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.explainer-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
}

.explainer-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.explainer-card__icon--sky {
  background: var(--sky-soft);
  color: var(--sky);
}

.explainer-card__icon--coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.explainer-card__icon--mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.explainer-card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.explainer-card__text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Feature list (Easy to use) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.feature-item__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-item__body strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.feature-item__body span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Security card */
.security-card {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(77, 159, 255, 0.08), rgba(45, 212, 168, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.security-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(167, 139, 250, 0.12);
  color: var(--lavender);
  margin: 0 auto 16px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.security-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.security-point strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.security-point span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Bottom CTA */
.landing__bottom-cta {
  margin-top: 48px;
  text-align: center;
}

/* ──────────────────────────────────────
   8. Wizard Card (shared wrapper for steps 2-5)
   ────────────────────────────────────── */
.wizard-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-card--center {
  text-align: center;
}

.wizard-card__header {
  margin-bottom: 28px;
}

.wizard-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wizard-card__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* ──────────────────────────────────────
   9. Payment / Pricing
   ────────────────────────────────────── */
.pricing-card {
  background: var(--paper);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: linear-gradient(120deg, var(--coral), var(--sky));
  margin-bottom: 16px;
}

.pricing-card__amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.pricing-card__currency {
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--muted);
}

.pricing-card__number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card__period {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: 8px;
}

.pricing-card__note {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.pricing-card__features li::before {
  content: "\2713";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--mint-soft);
  color: var(--mint);
  flex-shrink: 0;
}

/* ──────────────────────────────────────
   10. API Key Flow
   ────────────────────────────────────── */
.api-key-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.instruction {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.instruction__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  background: var(--sky-soft);
  color: var(--sky);
  flex-shrink: 0;
}

.instruction__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instruction__text {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* ──────────────────────────────────────
   11. QR Code
   ────────────────────────────────────── */
.qr-container {
  margin: 8px auto 24px;
}

.qr-frame {
  width: 252px;
  height: 252px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--stroke);
  background: white;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.qr-frame__img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.qr-frame__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border-radius: inherit;
  font-size: 14px;
  color: var(--muted);
}

.qr-frame__loading[hidden] {
  display: none;
}

.qr-help {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.qr-help p {
  margin: 0 0 12px;
}

.qr-help__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

/* ──────────────────────────────────────
   12. Lobby
   ────────────────────────────────────── */
.lobby__loading,
.lobby__success {
  display: none;
}

.lobby[data-lobby-state="loading"] .lobby__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lobby[data-lobby-state="success"] .lobby__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lobby__progress-bar {
  width: 100%;
  max-width: 320px;
  height: 8px;
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.lobby__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--coral), var(--sky), var(--mint));
  background-size: 200% 100%;
  animation: shimmer 2s ease infinite;
  transition: width 600ms ease;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Success celebration */
.success-check {
  margin-bottom: 8px;
}

.success-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.success-burst span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: burst 800ms ease forwards;
  opacity: 0;
}

.lobby[data-lobby-state="success"] .success-burst span {
  opacity: 1;
}

.success-burst span:nth-child(1) { background: var(--coral); top: 30%; left: 15%; animation-delay: 0ms; }
.success-burst span:nth-child(2) { background: var(--sky); top: 20%; left: 50%; animation-delay: 80ms; }
.success-burst span:nth-child(3) { background: var(--mint); top: 30%; right: 15%; animation-delay: 160ms; }
.success-burst span:nth-child(4) { background: var(--sunshine); top: 50%; left: 10%; animation-delay: 60ms; }
.success-burst span:nth-child(5) { background: var(--lavender); top: 50%; right: 10%; animation-delay: 140ms; }
.success-burst span:nth-child(6) { background: var(--coral); bottom: 30%; left: 20%; animation-delay: 100ms; }
.success-burst span:nth-child(7) { background: var(--sky); bottom: 20%; right: 20%; animation-delay: 200ms; }
.success-burst span:nth-child(8) { background: var(--mint); bottom: 35%; left: 50%; animation-delay: 120ms; }

@keyframes burst {
  0% { transform: scale(0) translate(0, 0); opacity: 1; }
  100% { transform: scale(2.5) translate(var(--dx, 20px), var(--dy, -30px)); opacity: 0; }
}

.success-burst span:nth-child(1) { --dx: -30px; --dy: -40px; }
.success-burst span:nth-child(2) { --dx: 5px; --dy: -50px; }
.success-burst span:nth-child(3) { --dx: 30px; --dy: -40px; }
.success-burst span:nth-child(4) { --dx: -40px; --dy: -10px; }
.success-burst span:nth-child(5) { --dx: 40px; --dy: -10px; }
.success-burst span:nth-child(6) { --dx: -25px; --dy: 20px; }
.success-burst span:nth-child(7) { --dx: 25px; --dy: 15px; }
.success-burst span:nth-child(8) { --dx: 0px; --dy: 30px; }

/* ──────────────────────────────────────
   13. Shared Components
   ────────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 150ms ease;
  position: relative;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  color: white;
  background: linear-gradient(135deg, var(--coral), #e0524a 40%, var(--sky));
  box-shadow: 0 8px 28px rgba(255, 107, 74, 0.25), 0 4px 12px rgba(77, 159, 255, 0.15);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: 0 12px 36px rgba(255, 107, 74, 0.3), 0 6px 16px rgba(77, 159, 255, 0.2);
  transform: translateY(-1px);
}

.btn--secondary {
  color: var(--sky);
  background: var(--sky-soft);
  border: 1px solid rgba(77, 159, 255, 0.25);
}

.btn--secondary:hover:not(:disabled) {
  background: rgba(77, 159, 255, 0.18);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn--jumbo {
  padding: 18px 40px;
  font-size: 18px;
  margin-top: 32px;
}

.btn--full {
  width: 100%;
}

/* Form inputs */
.field__input {
  width: 100%;
  border-radius: 16px;
  border: 2px solid var(--stroke);
  background: var(--paper);
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field__input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-soft);
}

.field__textarea {
  resize: vertical;
  min-height: 80px;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 14px;
}

/* Status messages */
.step-status {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.step-status:empty {
  display: none;
}

.step-status.is-error {
  color: var(--coral);
}

.step-status.is-success {
  color: var(--mint);
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--stroke);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner--lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ──────────────────────────────────────
   14. Footer
   ────────────────────────────────────── */
.foot {
  padding: 0 20px;
}

.foot__inner {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--stroke);
  padding: 20px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand--foot .brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.brand--foot .brand__name {
  font-size: 15px;
}

.foot__tag {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ──────────────────────────────────────
   15. Responsive
   ────────────────────────────────────── */
@media (max-width: 640px) {
  .main {
    padding: 16px 16px 40px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split__left {
    text-align: center;
  }

  .hero-split__right {
    order: -1;
  }

  .mascot {
    max-width: 180px;
  }

  .wizard-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .explainer-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    padding: 28px 20px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 14px 16px;
  }

  .landing__title {
    font-size: clamp(32px, 8vw, 44px);
  }

  .progress__label {
    display: none !important;
  }

  .progress__step + .progress__step::before {
    width: 16px;
  }

  .qr-frame {
    width: 220px;
    height: 220px;
  }

  .instruction {
    gap: 12px;
  }

  .instruction__num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .landing__trust {
    flex-direction: column;
    align-items: center;
  }

  .btn--jumbo {
    padding: 16px 28px;
    font-size: 16px;
  }
}

/* ──────────────────────────────────────
   16. Reduced Motion
   ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .step.is-active { animation: none; }
  .spinner { animation: spin 1.5s linear infinite; }
  .lobby__progress-fill { animation: none; }
  .success-burst span { animation: none; }
  .mascot__img { animation: none; }
}
