* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.6; color: #2d3748; background: #fafafa; }

.container { max-width: 900px; margin: 0 auto; padding: 32px 24px; }

/* Header */
.header { text-align: center; margin-bottom: 32px; }
.header h1 { font-size: 28px; font-weight: 700; color: #2d3748; }
.subtitle { color: #718096; margin-top: 4px; font-size: 15px; }

/* Stepper */
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 36px; flex-wrap: wrap; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: all 0.3s; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; background: #e8e4f0; color: #718096; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; transition: all 0.3s; }
.step.active .step-circle { background: linear-gradient(135deg, #8b7fc7, #a78bfa); color: #fff; box-shadow: 0 4px 14px rgba(139,127,199,0.3); }
.step.completed .step-circle { background: #68d391; color: #fff; }
.step-label { font-size: 12px; font-weight: 500; color: #718096; }
.step.active .step-label { color: #8b7fc7; font-weight: 600; }
.step.completed .step-label { color: #2f855a; }
.step-line { width: 48px; height: 2px; background: #e8e4f0; margin: 0 4px; margin-bottom: 22px; transition: background 0.3s; }
.step-line.completed { background: #68d391; }

/* Cards */
.card { background: #fff; border: 1px solid #e8e4f0; border-radius: 16px; padding: 32px; margin-bottom: 20px; }
.step-card { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 20px; }
.card-icon { font-size: 36px; margin-bottom: 12px; }
.card-desc { color: #718096; margin: 8px 0 24px; }

/* Step content */
.step-content { display: none; animation: fadeIn 0.4s ease; }
.step-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Forms */
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 600; color: #4a5568; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea { padding: 10px 14px; font-size: 14px; border: 1px solid #e8e4f0; border-radius: 8px; width: 100%; background: #fff; color: #2d3748; }
input:focus { outline: none; border-color: #8b7fc7; box-shadow: 0 0 0 3px rgba(139,127,199,0.1); }
input:disabled { background: #f7f7fb; color: #718096; }

/* Buttons */
.btn { padding: 11px 22px; font-size: 14px; font-weight: 600; border-radius: 10px; border: none; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary { background: linear-gradient(135deg, #8b7fc7, #a78bfa); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(139,127,199,0.3); }
.btn-secondary { background: #fff; border: 1px solid #e8e4f0; color: #2d3748; }
.btn-secondary:hover { background: #f7f7fb; }
.btn-block { width: 100%; }
.btn-pay { background: linear-gradient(135deg, #635bff, #7c6ff0); }
.btn-pay:hover { box-shadow: 0 4px 14px rgba(99,91,255,0.3); }
.btn-row { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }

/* Code hints */
.code-hint { background: #f7f5ff; border: 1px solid #e8e4f0; border-radius: 8px; padding: 10px 14px; margin: 4px 0; }
.code-hint code { font-size: 13px; color: #8b7fc7; font-family: 'SF Mono', 'Fira Code', monospace; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.plan-card { border: 2px solid #e8e4f0; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; }
.plan-card:hover { border-color: #c4b5fd; }
.plan-card.selected { border-color: #8b7fc7; background: #faf8ff; box-shadow: 0 0 0 3px rgba(139,127,199,0.12); }
.plan-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #718096; margin-bottom: 8px; }
.popular-badge { color: #8b7fc7; }
.plan-card h3 { font-size: 18px; margin-bottom: 4px; }
.plan-price { font-size: 28px; font-weight: 700; color: #2d3748; margin: 8px 0 16px; }
.plan-price span { font-size: 14px; font-weight: 400; color: #718096; }
.plan-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 13px; color: #4a5568; padding-left: 20px; position: relative; }
.plan-features li::before { content: '\2713'; position: absolute; left: 0; color: #68d391; font-weight: 700; }

/* Payment */
.payment-demo { display: flex; flex-direction: column; gap: 20px; }
.payment-summary { background: #f7f5ff; border-radius: 10px; padding: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; }
.summary-divider { height: 1px; background: #e8e4f0; margin: 8px 0; }
.stripe-mock { border: 1px solid #e8e4f0; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.stripe-header { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #635bff; font-size: 14px; }

/* Success */
.success-banner { display: flex; align-items: center; gap: 16px; background: rgba(104,211,145,0.1); border: 1px solid rgba(104,211,145,0.3); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.success-icon { width: 40px; height: 40px; background: #68d391; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.success-banner p { color: #718096; font-size: 13px; margin-top: 2px; }

/* Dashboard */
.dashboard-preview { animation: fadeIn 0.5s ease; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.stat-card { background: #f7f5ff; border-radius: 10px; padding: 20px; text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; color: #8b7fc7; }
.stat-label { font-size: 12px; color: #718096; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Flow diagram */
.flow-card { margin-top: 12px; }
.flow-card h3 { margin-bottom: 16px; font-size: 16px; }
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #f7f5ff; border-radius: 10px; padding: 12px 16px; min-width: 90px; }
.flow-icon { font-size: 22px; }
.flow-node span { font-size: 11px; color: #8b7fc7; font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 500; }
.flow-arrow { color: #c4b5fd; font-size: 20px; margin-bottom: 4px; }

/* Responsive */
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .stepper { gap: 0; }
  .step-line { width: 24px; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .btn-row { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}