:root {
  --brown: #8B4513;
  --brown-light: #A0522D;
  --cream: #FFF8F0;
  --cream-dark: #F5E6D3;
  --gold: #DAA520;
  --gold-light: #F0D080;
  --text: #2C1810;
  --text-light: #6B4F3F;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(44, 24, 16, 0.1);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}
.logo { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.tagline { font-size: 1.4rem; opacity: 0.9; margin-bottom: 16px; }
.subtitle { font-size: 1rem; opacity: 0.75; max-width: 500px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold); color: var(--text); }
.btn-primary:hover { box-shadow: 0 4px 16px rgba(218, 165, 32, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.15); color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text-light); text-decoration: underline; }

/* Features */
.features { padding: 80px 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.feature {
  text-align: center; padding: 32px 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature h3 { color: var(--brown); margin-bottom: 8px; }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* How It Works */
.how-it-works { padding: 80px 20px; background: var(--cream-dark); text-align: center; }
.how-it-works h2 { color: var(--brown); font-size: 2rem; margin-bottom: 40px; }
.steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  width: 200px; box-shadow: var(--shadow);
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gold);
  color: var(--text); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

/* Footer */
footer {
  background: var(--brown); color: var(--white); padding: 32px 20px;
  text-align: center;
}
footer p { opacity: 0.7; margin-bottom: 12px; }
.footer-links a { color: var(--gold-light); text-decoration: none; margin: 0 12px; }

/* Photo Grid */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.photo-grid-item {
  aspect-ratio: 1; overflow: hidden; border-radius: 4px; cursor: pointer;
  position: relative;
}
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-item .watermark-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.5); color: white; font-size: 0.65rem;
  padding: 2px 6px; border-radius: 4px;
}

/* Snap Page */
.snap-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.snap-page h1 { color: var(--brown); margin-bottom: 8px; }
.snap-form { width: 100%; max-width: 360px; margin-top: 24px; }
.snap-form label { display: block; text-align: left; font-weight: 600; margin-bottom: 4px; color: var(--text-light); }
.snap-form input, .snap-form select {
  width: 100%; padding: 14px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: 1rem; margin-bottom: 16px;
  background: var(--white);
}
.snap-form input:focus, .snap-form select:focus {
  outline: none; border-color: var(--gold);
}

/* Photo Reveal Animation */
.photo-reveal {
  max-width: 500px; width: 100%;
  animation: photoFadeIn 1s ease-out;
}
.photo-reveal img {
  width: 100%; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
@keyframes photoFadeIn {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Waiting spinner */
.waiting {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.spinner {
  width: 48px; height: 48px; border: 4px solid var(--cream-dark);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tip Card */
.tip-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); max-width: 400px; width: 100%; margin-top: 24px;
}
.tip-card h3 { color: var(--brown); margin-bottom: 8px; }
.tip-card p { color: var(--text-light); margin-bottom: 20px; }
.tip-options { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.tip-btn {
  padding: 14px 24px; border: 2px solid var(--gold); border-radius: var(--radius);
  background: var(--white); color: var(--text); font-weight: 700; font-size: 1.1rem;
  cursor: pointer; transition: background 0.15s;
}
.tip-btn:hover, .tip-btn.selected { background: var(--gold); }
.tip-note { font-size: 0.85rem; color: var(--text-light); font-style: italic; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--white); border-radius: var(--radius); max-width: 600px;
  width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px;
}
.modal-close {
  float: right; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-light);
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--white); padding: 12px 24px;
  border-radius: var(--radius); font-size: 0.9rem; z-index: 200;
  animation: toastIn 0.3s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Vault Page */
.vault-header {
  background: var(--brown); color: var(--white); padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.vault-header h1 { font-size: 1.4rem; }
.vault-content { padding: 20px; }

/* Auth Forms */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-form {
  background: var(--white); padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow); width: 100%; max-width: 400px;
}
.auth-form h2 { color: var(--brown); margin-bottom: 24px; text-align: center; }
.auth-form input {
  width: 100%; padding: 14px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-size: 1rem; margin-bottom: 12px;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-form .btn { width: 100%; text-align: center; margin-top: 8px; }

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.credit { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; }
