/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff7f0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ===== Page Wrapper ===== */
.page-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 40px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* ===== Card ===== */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== Logo ===== */
.logo {
  width: 64px;
  height: 64px;
  background: #1a1a1a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.logo-letter {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
}

/* ===== Brand Title ===== */
.brand-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.3;
}

.brand-title b {
  font-weight: 900;
}

/* ===== Amount ===== */
.amount {
  font-size: 4rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 2px;
  letter-spacing: -2px;
  text-align: center;
}

.subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px 4px;
  margin-bottom: 24px;
  gap: 0;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: #e0e0e0;
  flex-shrink: 0;
}

/* ===== Steps ===== */
.steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.step-desc {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 400;
  line-height: 1.4;
}

/* ===== CTA Button ===== */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  min-height: 52px;
}

.cta-button:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: scale(0.98);
  box-shadow: none;
  background: #111111;
}

/* ===== Footer Note ===== */
.footer-note {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
}

.footer-note strong {
  color: #1a1a1a;
  font-weight: 700;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* iPhone SE, small Android (320px - 374px) */
@media (max-width: 374px) {
  .page-wrapper {
    padding: 12px 10px 28px;
  }

  .card {
    padding: 22px 16px 20px;
    border-radius: 18px;
  }

  .badge {
    font-size: 0.6rem;
    padding: 6px 14px;
    gap: 6px;
    margin-bottom: 14px;
  }

  .badge-dot {
    width: 6px;
    height: 6px;
  }

  .logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .logo-letter {
    font-size: 1.6rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .amount {
    font-size: 3.2rem;
    letter-spacing: -1.5px;
  }

  .subtitle {
    font-size: 0.78rem;
    margin-bottom: 16px;
  }

  .stats-bar {
    padding: 10px 2px;
    border-radius: 10px;
    margin-bottom: 18px;
  }

  .stat-value {
    font-size: 0.78rem;
  }

  .stat-label {
    font-size: 0.5rem;
  }

  .stat-divider {
    height: 24px;
  }

  .steps {
    gap: 12px;
    margin-bottom: 18px;
    padding: 0;
  }

  .step {
    gap: 10px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.72rem;
  }

  .step-title {
    font-size: 0.82rem;
  }

  .step-desc {
    font-size: 0.72rem;
  }

  .cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .footer-note {
    font-size: 0.68rem;
  }
}

/* Standard phones (375px - 413px) — iPhone 12/13/14, Pixel 5 */
@media (min-width: 375px) and (max-width: 413px) {
  .page-wrapper {
    padding: 16px 14px 32px;
  }

  .card {
    padding: 26px 20px 22px;
  }

  .amount {
    font-size: 3.6rem;
  }

  .stats-bar {
    padding: 12px 4px;
  }
}

/* Large phones (414px - 430px) — iPhone Plus / Pro Max, Galaxy S */
@media (min-width: 414px) and (max-width: 480px) {
  .page-wrapper {
    padding: 20px 16px 36px;
  }

  .card {
    padding: 28px 24px 24px;
  }
}

/* Landscape orientation fix */
@media (max-height: 500px) and (orientation: landscape) {
  .page-wrapper {
    padding: 10px 16px 20px;
    min-height: auto;
  }

  .card {
    padding: 20px 20px 18px;
  }

  .logo {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }

  .logo-letter {
    font-size: 1.4rem;
  }

  .amount {
    font-size: 2.8rem;
    margin-bottom: 0;
  }

  .badge {
    margin-bottom: 10px;
  }

  .subtitle {
    margin-bottom: 12px;
  }

  .stats-bar {
    margin-bottom: 14px;
  }

  .steps {
    gap: 10px;
    margin-bottom: 14px;
  }
}

/* Notch-safe areas (iPhone X+) */
@supports (padding: env(safe-area-inset-top)) {
  .page-wrapper {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}
