/* =========================================================
   UP Desconta — Landing MOBILE (tela única / hero)
   Tema roxo, base Nocturne
   ========================================================= */
:root {
  --bg: #12101f;
  --text: #f4f2fb;
  --muted: #bcb4d8;
  --accent: #9184d9;

  --purple-900: #140f26;
  --purple-800: #201646;
  --purple-700: #33246b;
  --purple-600: #5a35b0;
  --purple-500: #7b4cd8;
  --purple-300: #bda9f6;

  --wa: #25d366;
  --wa-dark: #17a94e;
  --lime: #c6f24e;

  --shadow-lg: 0 22px 55px rgba(0,0,0,.55);
  --shadow-md: 0 12px 28px rgba(0,0,0,.45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--purple-900);
  overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px calc(10px + env(safe-area-inset-top));
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-500), var(--purple-600));
  box-shadow: 0 5px 18px rgba(0,0,0,.4);
}
.topbar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 28%, transparent);
  animation: blink 1.4s ease-in-out infinite;
  flex: none;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Hero (tela única) ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100dvh - 40px);
  padding: 0 20px 78px;
  overflow: hidden;
  background:
    radial-gradient(120% 55% at 50% 100%, color-mix(in srgb, var(--purple-700) 60%, transparent), transparent 70%),
    linear-gradient(180deg, var(--purple-800) 0%, var(--purple-900) 62%);
}

/* Foto da mulher — funde suavemente no fundo (máscara em gradiente) */
.hero__photo {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 72%;
  background: url("../assets/woman.png") no-repeat center 12%;
  background-size: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0,0,0,.55) 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0,0,0,.55) 72%, transparent 100%);
}
/* Tinta roxa por cima para casar a foto com o fundo, sem esconder */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 42%, color-mix(in srgb, var(--purple-800) 62%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--purple-900) 35%, transparent), transparent 26%, transparent 74%, color-mix(in srgb, var(--purple-900) 35%, transparent));
  mix-blend-mode: multiply;
}
.hero__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 30% at 50% 6%, color-mix(in srgb, var(--purple-500) 34%, transparent), transparent 60%),
    radial-gradient(70% 40% at 50% 74%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%);
}

/* ---------- Elementos flutuantes ---------- */
.floaty {
  position: absolute;
  z-index: 3;
  font-weight: 800;
  color: #0e1220;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}
.floaty--off {
  top: 12%; right: 14px;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 20px;
  background: linear-gradient(150deg, var(--lime), #9ad02a);
  border: 3px solid rgba(255,255,255,.22);
}
.floaty--off small { font-size: 12px; }
.floaty--cupom {
  top: 30%; left: 12px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(150deg, var(--purple-500), var(--purple-600));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation-delay: .8s;
}
.floaty--free {
  top: 43%; right: 16px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: .03em;
  color: #0e1220;
  background: linear-gradient(150deg, #fff, #e4dcff);
  animation-delay: 1.6s;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}

/* ---------- Conteúdo ---------- */
.content {
  position: relative;
  z-index: 4;
  text-align: center;
}
/* gradiente atrás do conteudo p/ leitura (Promocoes Fitness em destaque) */
.content::before {
  content: "";
  position: absolute;
  left: -20px; right: -20px;
  top: 58px; bottom: -80px;
  z-index: -1;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--purple-900) 55%, transparent) 24%,
    color-mix(in srgb, var(--purple-900) 86%, transparent) 55%,
    var(--purple-900) 100%);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%);
          mask-image: linear-gradient(180deg, transparent, #000 22%);
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand__badge {
  width: 82px; height: 82px;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #262b3a;
  border: 3px solid color-mix(in srgb, var(--lime) 60%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--purple-900) 55%, transparent), 0 0 30px color-mix(in srgb, var(--lime) 45%, transparent);
}
.brand__logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.brand__verified { display: inline-grid; place-items: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }

.headline {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
}
.headline em { color: var(--lime); font-style: normal; }
.subline {
  margin: 9px auto 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.subline strong { color: var(--purple-300); font-weight: 700; }

/* ---------- CTA pulsante ---------- */
.cta {
  position: relative;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 17px 20px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--wa), var(--wa-dark));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--wa) 45%, transparent);
  transition: transform .14s ease, filter .14s ease;
  animation: cta-bounce 1.8s ease-in-out infinite;
}
.cta__ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid var(--wa);
  animation: cta-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(.97); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes cta-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}
@keyframes cta-ring {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.14); opacity: 0; }
}

/* ---------- Vagas ---------- */
.vagas { margin: 16px auto 0; max-width: 400px; }
.vagas__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vagas__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #ff6b6b;
  background: color-mix(in srgb, #ff6b6b 14%, transparent);
  padding: 4px 9px;
  border-radius: 99px;
}
.vagas__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff6b6b;
  animation: blink 1s ease-in-out infinite;
}
.vagas__num { font-size: 16px; font-weight: 600; color: var(--text); }
.vagas__num b { font-size: 22px; font-weight: 800; color: var(--lime); }
.vagas__bar {
  height: 8px;
  margin: 10px 0 0;
  border-radius: 99px;
  background: color-mix(in srgb, #000 28%, var(--purple-900));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.vagas__bar span {
  display: block;
  height: 100%;
  width: 84%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple-500), var(--lime));
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
.vagas__hint { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------- Notificações (canto inferior esquerdo) ---------- */
.notify {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  width: min(78vw, 300px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 7px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--purple-800) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  animation: toastIn .5s cubic-bezier(.2,.9,.25,1) both;
}
.toast.leaving { animation: toastOut .45s ease forwards; }
.toast__av {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--purple-700);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.toast__txt { min-width: 0; text-align: left; line-height: 1.25; }
.toast__name { font-size: 13px; font-weight: 700; }
.toast__name span { color: var(--purple-300); font-weight: 500; }
.toast__num { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toast__ok {
  flex: none; margin-left: auto;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wa);
}
.toast__ok svg { width: 12px; height: 12px; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-18px) scale(.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-14px) scale(.97); }
}

/* ---------- Rodapé ---------- */
.foot {
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  background: var(--purple-900);
}

/* Telas maiores: centraliza a coluna mobile */
@media (min-width: 520px) {
  .topbar, .hero, .foot { max-width: 460px; margin-left: auto; margin-right: auto; }
  .hero { border-left: 1px solid rgba(255,255,255,.05); border-right: 1px solid rgba(255,255,255,.05); }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .cta__ring, .topbar__dot, .floaty, .vagas__live i { animation: none; }
  .toast { animation: toastIn .01s both; }
}
