:root {
  --cream: #FDF8F3;
  --peach: #F5D0C5;
  --peach-dark: #E8B4A0;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --white: #FFFFFF;
  --warm-beige: #F5E6D3;
  --coral: #E57373;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.5;
}

.container {
  max-width: 400px;
  margin: 0 auto;
}

.logo {
  text-align: center;
  margin-bottom: 24px;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--peach);
  border-top-color: var(--peach-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.info-label {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 2px;
}

.info-value {
  font-size: 16px;
  color: var(--ink);
}

.cta-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--peach);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background: var(--peach-dark);
}

.cta-button + .cta-button {
  margin-top: 12px;
}

.error-page {
  text-align: center;
  padding: 40px 0;
}

.error-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.error-message {
  color: var(--ink-light);
  margin-bottom: 24px;
}

.preview-header {
  text-align: center;
  margin-bottom: 24px;
}

.preview-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.preview-creator {
  color: var(--ink-light);
  font-size: 14px;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===========================================
   LANDING PAGE STYLES (Waitlist)
   =========================================== */

/* Hero Section */
.hero {
  text-align: center;
  padding: 16px 0 24px;
  animation: fade-in 0.6s ease-out;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--ink-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Brand Header */
.brand-header {
  text-align: center;
  padding: 16px 0 8px;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}

/* Mascot */
.mascot-hero {
  width: 260px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.mascot-bottom {
  width: 200px;
  height: auto;
  margin-bottom: 12px;
}

.mascot-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Email Form */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.email-input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 2px solid rgba(26, 26, 26, 0.1);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input:focus {
  border-color: var(--peach-dark);
  box-shadow: 0 0 0 3px rgba(245, 208, 197, 0.3);
}

.email-input::placeholder {
  color: var(--ink-light);
}

.submit-button {
  width: 100%;
  padding: 16px 24px;
  background: var(--peach);
  color: var(--ink);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  animation: pulse 3s ease-in-out infinite;
}

.submit-button:hover {
  background: var(--peach-dark);
  transform: translateY(-2px);
  animation: none;
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: none;
}

.form-hint {
  font-size: 13px;
  color: var(--ink-light);
  text-align: center;
}

.form-error {
  font-size: 14px;
  color: var(--coral);
  text-align: center;
  margin-top: 8px;
  animation: fade-in 0.3s ease-out;
}

.form-success {
  font-size: 14px;
  color: #4CAF50;
  text-align: center;
  margin-top: 8px;
}

/* Features Section */
.features-section {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
}

.features-section h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.feature-icon {
  font-size: 32px;
}

.feature-item > span:not(.feature-icon) {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.feature-item p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.4;
  margin: 0;
}

/* Bottom CTA */
.bottom-cta {
  text-align: center;
  padding: 32px 0;
}

.bottom-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.bottom-cta > p {
  font-size: 15px;
  color: var(--ink-light);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 0;
  color: var(--ink-light);
  font-size: 13px;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 208, 197, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 208, 197, 0);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===========================================
   CONFETTI
   =========================================== */

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.confetti-container.hidden {
  display: none;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 2s ease-out forwards;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet and up */
@media (min-width: 640px) {
  .container {
    max-width: 480px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .email-form {
    flex-direction: row;
    gap: 12px;
  }
  
  .email-input {
    flex: 1;
  }
  
  .submit-button {
    width: auto;
    white-space: nowrap;
  }
  
  .feature-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .feature-item {
    flex: 1;
    min-width: 140px;
  }
  
  .mascot-hero {
    width: 320px;
  }

  .mascot-bottom {
    width: 240px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 560px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero {
    padding: 48px 0 32px;
  }
  
  .features-section {
    padding: 32px;
  }
  
  .feature-item {
    min-width: 160px;
  }
}
