/* LUME — Design System oficial */
:root {
  --bg-deep: #0A0C1A;
  --text-warm: #F5F1EA;
  --copper-glow: #B88A5A;
  --blue-depth: #1D2A44;
  --card-bg: #0d0f1e;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  min-height: 100%;
  overflow-x: hidden;          /* o scroll vertical fica no documento, não no body */
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text-warm);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color-scheme: dark;          /* inputs de data/hora no tema escuro */
  accent-color: var(--copper-glow);
}
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 32px calc(132px + env(safe-area-inset-bottom));
  position: relative;
}
/* Orb de fundo */
.orb {
  position: fixed; top: -120px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,138,90,0.13), transparent 65%);
  pointer-events: none; z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
.view { position: relative; z-index: 1; animation: pageIn 1.2s var(--ease); }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp 1.4s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up-slow { animation: fadeUp 1.6s var(--ease) both; }
.stagger > * { animation: fadeUp 1.4s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }

/* Tipografia */
h1 { font-size: clamp(30px, 8vw, 40px); font-weight: 200; letter-spacing: -0.025em; line-height: 1.15; }
h2 { font-size: 26px; font-weight: 200; letter-spacing: -0.02em; }
h3 { font-size: 18px; font-weight: 300; letter-spacing: -0.01em; }
.overline {
  font-size: 8px; font-weight: 400; letter-spacing: 0.42em;
  text-transform: uppercase; color: rgba(184,138,90,0.55);
}
.body-hero { font-size: 15px; font-weight: 300; letter-spacing: 0.01em; color: rgba(245,241,234,0.42); line-height: 1.7; }
.body-text { font-size: 14px; font-weight: 300; letter-spacing: 0.01em; color: rgba(245,241,234,0.42); line-height: 1.75; }
.quote { font-size: 21px; font-weight: 200; font-style: italic; letter-spacing: -0.01em; color: rgba(245,241,234,0.65); line-height: 1.6; }
.legal { font-size: 11px; color: rgba(245,241,234,0.18); line-height: 1.6; }
.numero { font-size: 10px; font-weight: 300; letter-spacing: 0.20em; color: rgba(184,138,90,0.32); }

.logo-svg { width: 96px; display: block; }
.logo-svg.small { width: 64px; }
.header { padding: 40px 0 8px; display: flex; align-items: center; justify-content: space-between; }

/* Espaçamento */
.section { padding: 72px 0; }
.section.tight { padding: 36px 0; }
.hero { padding: 56px 0; }
/* usa o azul profundo do design system */
.section + .section { border-top: 1px solid rgba(29,42,68,0.5); }
.sep { height: 1px; margin: 8px 0; background: linear-gradient(to right, transparent, rgba(184,138,90,0.15), transparent); }

/* Botões */
.btn {
  display: block; width: 100%;
  background: rgba(184,138,90,0.10);
  border: 1px solid rgba(184,138,90,0.28);
  border-radius: 8px;
  padding: 17px 24px;
  font-family: inherit;
  font-size: 11px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-warm);
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
  text-align: center;
}
.btn:hover { background: rgba(184,138,90,0.18); border-color: rgba(184,138,90,0.45); }
.btn:disabled { background: rgba(184,138,90,0.06); border-color: rgba(184,138,90,0.12); color: rgba(245,241,234,0.35); cursor: default; }
.btn.ghost { background: transparent; border-color: rgba(184,138,90,0.16); color: rgba(245,241,234,0.55); }
.btn.quiet { background: none; border: none; color: rgba(245,241,234,0.35); letter-spacing: 0.16em; font-size: 10px; padding: 12px 8px; }

/* Inputs */
.field { margin: 18px 0; }
.field label {
  display: block; margin-bottom: 10px;
  font-size: 9px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(184,138,90,0.55);
}
.input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,138,90,0.18);
  border-radius: 6px;
  padding: 13px 16px;
  color: rgba(245,241,234,0.85);
  font-family: inherit; font-size: 16px; font-weight: 300;
  outline: none;
  transition: border-color 0.4s ease;
}
.input:focus { border-color: rgba(184,138,90,0.45); }
.input.pin { text-align: center; letter-spacing: 0.6em; font-size: 22px; }

/* Data de nascimento em três campos */
.data-nasc { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
.data-nasc .input { text-align: center; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.data-nasc .input::placeholder { letter-spacing: 0.18em; color: rgba(245,241,234,0.22); }
.input.erro { border-color: rgba(201,106,90,0.55); }

/* Cards */
.card {
  background: rgba(15,18,35,0.72);
  border: 1px solid rgba(184,138,90,0.12);
  border-radius: 14px;
  padding: 26px 24px;
  margin: 14px 0;
}
.card.tappable { cursor: pointer; transition: border-color 0.4s ease, background 0.4s ease; }
.card.tappable:hover { border-color: rgba(184,138,90,0.35); background: rgba(15,18,35,0.9); }
.card .tags { font-size: 9px; letter-spacing: 0.3em; color: rgba(184,138,90,0.7); text-transform: uppercase; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; font-size: 21px; font-weight: 200; }
.card.locked { opacity: 0.5; }

/* Opções (clímax / papéis) */
.option {
  display: block; width: 100%; text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,138,90,0.15);
  border-radius: 10px;
  padding: 18px;
  margin: 10px 0;
  color: var(--text-warm);
  font-family: inherit; cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.option:hover, .option.selected { border-color: rgba(184,138,90,0.55); background: rgba(184,138,90,0.08); }
.option .t { font-size: 15px; font-weight: 400; margin-bottom: 6px; display: block; }
.option .d { font-size: 13px; font-weight: 300; color: rgba(245,241,234,0.42); line-height: 1.6; display: block; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  display: flex;
  background: rgba(10,12,26,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184,138,90,0.12);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
.bottom-nav button {
  flex: 1; padding: 16px 0 14px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 8px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(245,241,234,0.35);
  transition: color 0.4s ease;
}
.bottom-nav button.active { color: rgba(184,138,90,0.85); }
.bottom-nav button:disabled { color: rgba(245,241,234,0.14); cursor: default; }

/* Cinematic (tela cheia) */
.cinematic {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 32px; text-align: center; cursor: pointer;
}
.cinematic .inner { max-width: 430px; margin: 0 auto; }
.cinematic p:not([class]) { font-size: 19px; font-weight: 200; line-height: 1.75; color: rgba(245,241,234,0.85); }
.cinematic .overline { font-size: 8px; letter-spacing: 0.42em; }
.cinematic .legal { font-size: 11px; }
.cinematic .tags { font-size: 9px; letter-spacing: 0.3em; }
.cinematic .hint {
  position: absolute; bottom: calc(40px + env(safe-area-inset-bottom)); left: 0; right: 0;
  font-size: 8px; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(184,138,90,0.5);
}
.cinematic.blackout { background: #000; }

/* Modal / sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8,10,20,0.88); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;   /* centralizado na tela */
  padding: 20px 16px;
}
/* H2 dentro de modal: 22px (design system) */
.sheet h2 { font-size: 22px; }
.sheet {
  width: 100%; max-width: 430px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid rgba(184,138,90,0.16);
  border-radius: 20px;
  padding: 32px;
  animation: sheetUp 0.5s var(--ease);
}
/* Em telas baixas volta a ser bottom sheet, ao alcance do polegar */
@media (max-height: 560px) {
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .sheet {
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    padding: 28px 32px calc(32px + env(safe-area-inset-bottom));
  }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Toast */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  background: var(--card-bg);
  border: 1px solid rgba(184,138,90,0.35);
  border-radius: 8px; padding: 12px 20px;
  font-size: 13px; color: rgba(245,241,234,0.85);
  animation: pageIn 0.4s var(--ease);
  max-width: 90vw;
}

/* Caixas de seleção no tom da marca */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; flex: 0 0 16px;
  border: 1px solid rgba(184,138,90,0.4);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
input[type="checkbox"]:hover { border-color: rgba(184,138,90,0.7); }
input[type="checkbox"]:checked { background: rgba(184,138,90,0.85); border-color: rgba(184,138,90,0.85); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 4px; height: 9px; border: solid #0A0C1A;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg); opacity: 0.5; cursor: pointer; }

/* Chips (pacto do casal) */
.chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,138,90,0.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: inherit; font-size: 11px; font-weight: 300;
  color: rgba(245,241,234,0.6);
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.chip:hover { border-color: rgba(184,138,90,0.4); }
.chip.on { background: rgba(184,138,90,0.16); border-color: rgba(184,138,90,0.55); color: var(--text-warm); }

/* Botão flutuante de segurança */
.safety-fab {
  position: fixed; right: max(16px, calc(50% - 215px + 16px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(13,15,30,0.92);
  border: 1px solid rgba(184,138,90,0.3);
  color: rgba(184,138,90,0.9);
  font-size: 16px; cursor: pointer;
  backdrop-filter: blur(8px);
}
.safety-fab:hover { border-color: rgba(184,138,90,0.6); }

/* Aviso (notificação in-app) */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(184,138,90,0.07);
  border: 1px solid rgba(184,138,90,0.18);
  border-radius: 10px; padding: 14px 16px;
}
.notice .dot {
  width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto;
  background: rgba(184,138,90,0.85);
  animation: breathe 3.5s ease-in-out infinite;
}
.notice p { font-size: 13px; font-weight: 300; line-height: 1.6; color: rgba(245,241,234,0.6); }

/* Progresso */
.progress-dots { display: flex; gap: 6px; justify-content: center; margin: 20px 0; }
.progress-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(184,138,90,0.2); transition: background 0.4s; }
.progress-dots span.on { background: rgba(184,138,90,0.85); }

.countdown { font-size: 28px; font-weight: 200; letter-spacing: 0.08em; color: rgba(245,241,234,0.85); font-variant-numeric: tabular-nums; }

/* Cofre */
.vault-item { position: relative; }
.vault-item img {
  max-width: 100%; border-radius: 10px; display: block;
  filter: blur(18px); transition: filter 0.6s var(--ease);
  cursor: pointer;
}
.vault-item img.revealed { filter: none; }
.vault-item .who { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(184,138,90,0.55); margin-top: 10px; }

.invite-code {
  font-size: 34px; font-weight: 200; letter-spacing: 0.35em;
  text-align: center; color: var(--copper-glow); padding: 18px 0 10px;
  font-variant-numeric: tabular-nums;
}
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; }
@media (max-width: 340px) { #app { padding-left: 20px; padding-right: 20px; } }

/* Remove o selo do host (Netlify Drop injeta um badge fixo no canto) */
#netlify-badge,
[id^="netlify"],
[class*="netlify-badge"],
a[href*="netlify.com/?utm_source=badge"],
div[style*="Powered by Netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
