/* ============================================
   FONTES
   ============================================ */
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --roxo-escuro: #4C0875;
  --roxo-vivo:   #8A13DF;
  --lilas:       #D0B2FB;
  --lilas-claro: #F3DDFD;

  --bg: var(--roxo-escuro);
  --text: var(--lilas-claro);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: "PP Neue Montreal", sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Aviso simples se abrirem em tela grande (o app é mobile-only) */
.desktop-warning {
  display: none;
}
@media (min-width: 700px) {
  body { border-inline: 1px solid rgba(255,255,255,.08); }
}

/* ============================================
   LAYOUT DE TELAS (screens) — 1 por vez, swipe/tap avança
   ============================================ */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

/* topo com progresso simples */
.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.progress span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  transition: background .3s;
}
.progress span.done { background: var(--lilas); }

h1, h2 { font-weight: 700; line-height: 1.15; }
h1 { font-size: 30px; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 12px; }
p  { font-size: 15px; line-height: 1.5; color: var(--lilas); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lilas);
  opacity: .8;
  margin-bottom: 6px;
}

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--roxo-escuro);
  background: var(--lilas-claro);
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  width: 100%;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.secondary {
  background: transparent;
  color: var(--lilas-claro);
  border: 1.5px solid var(--lilas);
}
.btn:disabled { opacity: .4; pointer-events: none; }

.btn-row { display: flex; gap: 12px; margin-top: auto; }
.btn-row .btn { flex: 1; }

/* topo fixo: nav voltar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.back-btn {
  background: none;
  border: none;
  color: var(--lilas-claro);
  font-size: 22px;
  padding: 6px;
  cursor: pointer;
}

/* ============================================
   TELA 1 — INFO / APRESENTAÇÃO
   ============================================ */
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--roxo-vivo);
  border: 2px solid var(--lilas);
  margin-bottom: 18px;
  object-fit: cover;
  display: block;
}
.info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}
.info-card p { color: var(--lilas-claro); opacity: .9; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--roxo-vivo);
  color: var(--lilas-claro);
}

/* ============================================
   TELA 2 — CAFÉ / CHÁ + ESCOLHA DE COMIDA
   ============================================ */
.stage {
  position: relative;
  flex: 1;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 20px;
}
.rive-slot {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.rive-slot canvas { width: 100% !important; height: 100% !important; }

.fallback-food {
  width: 62%;
  max-width: 220px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}

.drink-switch {
  display: flex;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
}
.drink-switch button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--lilas-claro);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.drink-switch button.active {
  background: var(--lilas-claro);
  color: var(--roxo-escuro);
}

.food-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.food-option {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  color: var(--lilas-claro);
}
.food-option.selected {
  border-color: var(--lilas);
  background: rgba(208,178,251,.15);
}
.food-option img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 6px; }
.food-option span { display: block; font-size: 12px; }

/* ============================================
   TELA 3 — MENSAGEM (FORM)
   ============================================ */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--lilas);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--lilas-claro);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 14px;
  resize: none;
}
.field textarea { min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243,221,253,.4); }
.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-msg.ok { color: #b6f2c9; }
.form-msg.err { color: #ffb4b4; }

/* ============================================
   TELA 3 — EMBRULHAR / BOTÃO "PEGAR SUA QUENTINHA"
   ============================================ */
#pegar-quentinha-btn { transition: opacity .4s ease; }

/* ============================================
   TELA 4 — AGRADECIMENTO + MENSAGEM
   ============================================ */
.thanks-title {
  font-size: 38px;
  margin: 32px 0 40px;
  text-align: center;
}
.msg-invite {
  margin-bottom: 20px;
}
