* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 20px;
}

body.reveal-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
  width: 100%;
  max-width: 450px;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #4a90d9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

.loading-state p {
  color: #666;
  font-size: 14px;
}

/* Content Card (Landing) */
.content-card {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  display: block;
  max-width: 120px;
  max-height: 60px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.content-card h1 {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

#body-content {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

#body-content p {
  margin-bottom: 12px;
}

.btn-primary {
  background: #4a90d9;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 160px;
}

.btn-primary:hover {
  background: #357abd;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Reveal Card */
.reveal-card {
  text-align: center;
  padding: 48px 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.reveal-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.reveal-card h1 {
  color: #333;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}

.reveal-card h1 .highlight {
  color: #764ba2;
}

.description {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tips-section {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  margin-top: 28px;
  text-align: left;
}

.tips-section h3 {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tips-section ul {
  list-style: none;
  padding: 0;
}

.tips-section li {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.tips-section li::before {
  content: "•";
  color: #764ba2;
  font-weight: bold;
  position: absolute;
  left: 8px;
}

/* QR Landing Form */
.qr-message {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.qr-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-email-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qr-email-input:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.qr-email-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.qr-email-input::placeholder {
  color: #999;
}

.qr-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
  padding: 10px 14px;
  background: #fee2e2;
  border-radius: 6px;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-icon {
  width: 56px;
  height: 56px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.error-state h1 {
  color: #333;
  font-size: 20px;
  margin-bottom: 8px;
}

.error-state p {
  color: #666;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .content-card,
  .reveal-card,
  .loading-state,
  .error-state {
    padding: 32px 24px;
  }

  .content-card h1 {
    font-size: 20px;
  }

  .reveal-card h1 {
    font-size: 22px;
  }

  .reveal-icon {
    font-size: 48px;
  }
}
