:root {
  --gradient: linear-gradient(160deg, #f3c6de 0%, #d69fd6 40%, #9d5fc0 100%);
  --purple: #9333c9;
  --purple-dark: #7a1fb0;
  --text: #3a2e4d;
  --muted: #6b6076;
  --bg: #faf7fb;
  --card-bg: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(120, 60, 150, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hero {
  background: var(--gradient);
  padding: 48px 24px 64px;
  text-align: center;
  color: #fff;
}

.hero .logo-badge {
  background: #fff;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-family: 'Brush Script MT', cursive;
  color: var(--purple);
  font-size: 22px;
}

.hero h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
}

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

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: -32px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 8px;
  text-align: center;
}

.feature-card .icon { font-size: 22px; color: var(--purple); }
.feature-card p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.price-card, .content-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-top: 24px;
  text-align: center;
}

.price-card .price { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
.price-card p { color: var(--muted); margin: 0 0 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: #efe4f5; color: var(--purple-dark); }

.steps { text-align: left; margin-top: 24px; }
.steps h3 { text-align: center; }
.step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.step-num {
  background: var(--purple);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}

.grid-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.option-card {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .15s;
}
.option-card:hover, .option-card.selected { border-color: var(--purple); }
.option-card .emoji { font-size: 28px; display: block; margin-bottom: 8px; }

textarea, input[type=text], input[type=tel] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
}
textarea { min-height: 160px; resize: vertical; }

.qr-box { text-align: center; margin: 20px 0; }
.qr-box img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid #eee; }
.pix-copy {
  background: #f4eef7;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  word-break: break-all;
  margin-top: 12px;
  color: var(--muted);
}
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.status-pending { background: #fff3cd; color: #8a6d00; }
.status-approved { background: #d4f4dd; color: #1a7a3d; }

.top-link { display: block; text-align: center; margin-top: 16px; color: var(--purple); font-size: 14px; text-decoration: none; }
.footer-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 32px; }

.spinner {
  border: 3px solid #eee;
  border-top-color: var(--purple);
  border-radius: 50%;
  width: 28px; height: 28px;
  animation: spin 0.8s linear infinite;
  margin: 12px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Splash de abertura ---------- */
#app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--gradient);
  opacity: 1;
  transition: opacity .4s ease;
}
#app-splash img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  background: #fff;
  object-fit: cover;
}
#app-splash .app-splash-name {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .3px;
}
#app-splash.app-splash-hide { opacity: 0; pointer-events: none; }

/* ---------- Botão instalar app (PWA) ---------- */
.install-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  margin-top: 14px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.install-btn-light {
  border-color: var(--purple);
  color: var(--purple-dark);
  background: #fff;
}
