@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Poppins:wght@400;500;600&display=swap');

:root {
  --cream: #F7EFE0;
  --panel: #FFFBF3;
  --ink: #2B2420;
  --ink-muted: #6B5F4F;
  --accent: #E8562F;
  --accent-dark: #C4431F;
  --yellow: #F4B93B;
  --border: #E8DCC5;
  --radius: 18px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, .brand {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--panel);
  position: relative;
  box-shadow: 0 0 60px rgba(43,36,32,0.15);
  overflow: hidden;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 24px 100px;
  animation: fadeIn 0.4s ease;
}
.screen.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress dots */
.dots { display: flex; gap: 6px; justify-content: center; padding: 16px 0 4px; }
.dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.dots .dot.on { background: var(--accent); }

/* Landing */
.landing { justify-content: center; align-items: center; text-align: center; gap: 18px; }
.landing .logo-mark {
  font-size: 3.2rem; font-family: 'Baloo 2', sans-serif; font-weight: 800;
  color: var(--accent); letter-spacing: -1px;
}
.landing .tagline { color: var(--ink-muted); font-size: 1.05rem; max-width: 300px; }
.landing .hero-img {
  width: 100%; border-radius: var(--radius); margin: 8px 0;
  border: 6px solid var(--panel); outline: 2px solid var(--border);
}

.badge-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.badge {
  background: var(--cream); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 0.75rem; color: var(--ink-muted); font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink-muted); border: 1px solid var(--border); }
.btn-full { width: 100%; }
.btn-fixed {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
}

/* Form-y bits (host setup) */
.field-group { margin-bottom: 20px; text-align: left; }
.field-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }
.field-input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border);
  font-family: 'Poppins', sans-serif; font-size: 1rem; background: white; color: var(--ink);
}
.field-input:focus { outline: none; border-color: var(--accent); }

.stepper { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 6px 0; }
.stepper button {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border);
  background: white; font-size: 1.2rem; font-weight: 700; color: var(--accent); cursor: pointer;
}
.stepper .count { font-family: 'Baloo 2', sans-serif; font-size: 1.6rem; font-weight: 700; min-width: 48px; text-align: center; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: white;
  font-size: 0.85rem; font-weight: 500; cursor: pointer; color: var(--ink-muted);
}
.chip.selected { background: var(--accent); border-color: var(--accent); color: white; }

/* Filter/design picker (host setup) */
.filter-row { display: flex; gap: 10px; }
.filter-swatch {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px; border-radius: 12px;
}
.filter-swatch img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  border: 2.5px solid var(--border);
}
.filter-swatch.selected img { border-color: var(--accent); }
.filter-swatch span { font-size: 0.72rem; color: var(--ink-muted); font-weight: 500; text-align: center; }
.filter-swatch.selected span { color: var(--accent); font-weight: 700; }

/* Share / QR */
.qr-card {
  background: white; border-radius: var(--radius); padding: 28px; text-align: center;
  border: 1.5px solid var(--border); margin: 10px 0;
}
.qr-mock {
  width: 160px; height: 160px; margin: 0 auto 16px;
  background: repeating-conic-gradient(var(--ink) 0% 25%, white 0% 50%) 0 0/20px 20px;
  border-radius: 12px; border: 8px solid white; outline: 2px solid var(--border);
}
.link-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--cream); border-radius: 999px; padding: 10px 16px; font-size: 0.85rem;
  color: var(--ink-muted); margin-top: 14px;
}

/* Camera screen */
.camera-screen { padding: 0; position: relative; min-height: 100vh; background: var(--ink); }
.camera-viewfinder {
  position: relative; width: 100%; height: 100vh; overflow: hidden;
}
.camera-viewfinder img,
.camera-viewfinder video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); background: #000; }
.camera-topbar {
  position: absolute; top: 0; left: 0; right: 0; padding: 20px 20px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  display: flex; justify-content: space-between; align-items: center; color: white;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; z-index: 2;
}
.shots-left { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; }
.camera-bottombar {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 20px 40px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  display: flex; justify-content: center; align-items: center; z-index: 2;
}
.shutter-btn {
  width: 74px; height: 74px; border-radius: 50%; background: white; border: 5px solid rgba(255,255,255,0.4);
  cursor: pointer;
}
.shutter-btn:active { transform: scale(0.92); }
.flash-overlay {
  position: absolute; inset: 0; background: white; opacity: 0; pointer-events: none; z-index: 5;
}
.flash-overlay.flashing { animation: flash 0.35s ease; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* Developing screen */
.developing { justify-content: center; align-items: center; text-align: center; gap: 20px; }
.film-strip {
  display: flex; gap: 6px; overflow: hidden; width: 100%; padding: 10px 0;
}
.film-frame {
  width: 60px; height: 80px; border-radius: 8px; flex-shrink: 0;
  background: var(--ink); opacity: 0.15; position: relative;
}
.progress-bar-track { width: 100%; height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 2.5s linear; }

/* Gallery / reveal */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.watermark-note { font-size: 0.72rem; color: var(--ink-muted); text-align: center; margin-top: 14px; }
.watermark-note b { color: var(--accent); }

.section-kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); font-size: 0.92rem; }
.top-nav-back { color: var(--ink-muted); font-size: 0.85rem; cursor: pointer; margin-bottom: 10px; background:none; border:none; text-align:left; font-family:'Poppins',sans-serif; }

/* Loading overlay */
.loading-overlay {
  position: absolute; inset: 0; background: rgba(43,36,32,0.6); backdrop-filter: blur(2px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  z-index: 50; color: white; text-align: center; padding: 20px;
}
.loading-overlay p { font-weight: 500; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.3);
  border-top-color: white; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Custom reveal date field */
.custom-reveal-field { margin-top: 10px; }
.custom-reveal-field input[type="datetime-local"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; background: white; color: var(--ink);
}

/* QR image (real) */
.qr-mock-img {
  width: 160px; height: 160px; margin: 0 auto 16px; display: block;
  border-radius: 12px; border: 8px solid white; outline: 2px solid var(--border);
}
.copy-btn { background: none; border: none; cursor: pointer; font-size: 1rem; }
.lang-note { font-size: 0.72rem; color: var(--ink-muted); margin-top: 6px; }
