:root {
  --bg: #FFF3F0;
  --surface: #FFFFFF;
  --surface-2: #FDE7E1;
  --border: #FBD9CE;
  --text: #5C2A1E;
  --text-secondary: #8A5445;
  --text-muted: #B98A7B;
  --accent: #F0405A;
  --accent-strong: #9A3A1A;
  --on-accent: #FFF0F1;
  --badge-bg: #FDDCC9;
  --badge-text: #9A3A1A;
  --shadow: 0 14px 40px -20px rgba(154, 58, 26, 0.35);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #241014;
  --surface: #2E161B;
  --surface-2: #3A1C22;
  --border: #4A2530;
  --text: #F6D9DC;
  --text-secondary: #D9A8AE;
  --text-muted: #8C6169;
  --accent: #FF6B7F;
  --accent-strong: #FFB199;
  --on-accent: #2E0810;
  --badge-bg: #4A2018;
  --badge-text: #FFB199;
  --shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 72px 20px 56px;
  text-align: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.pill {
  display: inline-block;
  margin-top: 18px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 22px 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 32px;
}

.peek-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.peek-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 14px 14px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}

/* The blur IS the product's core hook — curiosity is the lock, so the teaser
   literally is the mechanic: tap to peek, blur snaps back after a moment. */
.peek-blur {
  background: var(--surface-2);
  filter: blur(6px);
  transition: filter 0.4s ease;
}
.peek-card.revealed .peek-blur { filter: blur(0); }

.peek-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.peek-avatar.small { width: 30px; height: 30px; }
.peek-avatar.offset { margin-top: -14px; margin-left: 22px; }

.peek-line {
  height: 8px;
  border-radius: 999px;
  width: 60%;
}
.peek-line.w70 { width: 70%; }
.peek-line.w60 { width: 60%; }
.peek-line.w50 { width: 50%; }
.peek-line.w40 { width: 40%; }
.peek-line.center { margin: 0 auto; }

.peek-bubble {
  height: 14px;
  border-radius: 999px;
  width: 72%;
  align-self: flex-start;
}
.peek-bubble.right { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.peek-bubble.short { width: 46%; }

.peek-coin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0405A, #FFB199);
}

.peek-label {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.peek-card.revealed .peek-label { color: var(--accent); }

.hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 34px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.waitlist-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.waitlist-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist-form button {
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.waitlist-form button:disabled { opacity: 0.6; cursor: default; }

.seats {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 40px;
}
.seats span { color: var(--accent); font-weight: 700; }

.back-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 420px) {
  h1 { font-size: 34px; }
}
