/* ==========================================================================
   Seu Zé Online – Design System Completo
   Motion Design, Glassmorphism, Micro-animações & Layout Refinado
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #EAECEF;
}

/* --------------------------------------------------------------------------
   2. Keyframe Animations
   -------------------------------------------------------------------------- */

/* Pulse glow amarelo no botão CTA */
@keyframes pulseGlowYellow {
  0%   { box-shadow: 0 0 0 0 rgba(255,194,14,0.65), 0 8px 24px -4px rgba(255,194,14,0.45); }
  65%  { box-shadow: 0 0 0 14px rgba(255,194,14,0), 0 14px 28px -4px rgba(255,194,14,0.60); }
  100% { box-shadow: 0 0 0 0 rgba(255,194,14,0), 0 8px 24px -4px rgba(255,194,14,0.45); }
}

/* Flutuação suave da caneca */
@keyframes floatMug {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

/* Fade + slide-up para entrada dos cards */
@keyframes fadeSlideUp {
  0%   { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fade + slide-down para feed */
@keyframes slideDownFade {
  0%   { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Spinner de loading */
@keyframes spinFast {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulso de ponto verde */
@keyframes pingDot {
  0%   { transform: scale(1);   opacity: 0.8; }
  75%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Shimmer no card do formulário (borda iluminada) */
@keyframes borderShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contador — flip de dígito */
@keyframes digitFlip {
  0%   { transform: rotateX(0deg);   opacity: 1; }
  45%  { transform: rotateX(-90deg); opacity: 0; }
  55%  { transform: rotateX(90deg);  opacity: 0; }
  100% { transform: rotateX(0deg);   opacity: 1; }
}

/* Modal pop-in */
@keyframes modalPopIn {
  0%   { transform: scale(0.88) translateY(18px); opacity: 0; }
  65%  { transform: scale(1.02) translateY(-2px);  opacity: 1; }
  100% { transform: scale(1) translateY(0);         opacity: 1; }
}

/* Confete drop */
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* --------------------------------------------------------------------------
   3. Utility Classes — Motion
   -------------------------------------------------------------------------- */

.btn-yellow-glow {
  animation: pulseGlowYellow 2.4s ease-in-out infinite;
  transition: background 0.18s ease, transform 0.12s ease;
}
.btn-yellow-glow:hover  { transform: translateY(-2px) scale(1.01); }
.btn-yellow-glow:active { transform: scale(0.97); animation: none; }

.spinner-icon { animation: spinFast 0.75s linear infinite; }

.animate-feed-item {
  animation: slideDownFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up {
  animation: fadeSlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --------------------------------------------------------------------------
   4. Layout Helper — Equal-height Columns
   -------------------------------------------------------------------------- */

/* Grid das duas colunas principais */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;  /* colunas de mesma altura */
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Cada coluna ocupa 100% da altura do grid */
.hero-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Card base — proporções idênticas */
.sz-card {
  background: #ffffff;
  border-radius: 1.5rem;   /* 24px */
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sz-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

/* Card do formulário — borda roxa sutil + contorno leve */
.sz-card-form {
  border: 1.5px solid rgba(106, 27, 191, 0.25);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 8px 32px rgba(106, 27, 191, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

.sz-card-form:hover {
  border-color: rgba(106, 27, 191, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(106, 27, 191, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Input Focus Glow
   -------------------------------------------------------------------------- */
.sz-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: #F9F7FF;
  border: 1.5px solid #E4DCF7;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #111;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sz-input::placeholder { color: #aaa; font-weight: 400; }

.sz-input:focus {
  border-color: #6A1BBF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(106,27,191,0.10);
}

/* --------------------------------------------------------------------------
   6. Caneca — Floating 3D
   -------------------------------------------------------------------------- */
.mug-perspective { perspective: 1200px; }

.mug-float {
  animation: floatMug 4s ease-in-out infinite;
}

.mug-transition {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
}

.mug-transition.flipping {
  transform: rotateY(90deg) scale(0.85);
  opacity: 0.1;
}

/* --------------------------------------------------------------------------
   7. Contador Regressivo — Digits
   -------------------------------------------------------------------------- */
.timer-digit {
  transition: transform 0.25s ease;
}

.timer-digit.flip { animation: digitFlip 0.4s ease forwards; }

/* --------------------------------------------------------------------------
   8. Modal — Animação de Entrada
   -------------------------------------------------------------------------- */
.modal-wrapper {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.modal-wrapper.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-inner {
  transform: scale(0.88) translateY(18px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
}

.modal-wrapper.active .modal-inner {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   9. Feed Live Activity
   -------------------------------------------------------------------------- */
.feed-item {
  background: #FAFAFA;
  border: 1px solid rgba(106,27,191,0.08);
  border-radius: 1rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.feed-item:hover {
  background: #F4EBFF;
  border-color: rgba(106,27,191,0.18);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   10. Custom Scrollbar
   -------------------------------------------------------------------------- */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(106,27,191,0.18);
  border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(106,27,191,0.35);
}

/* --------------------------------------------------------------------------
   11. Badge & Tag Micro-animations
   -------------------------------------------------------------------------- */
.badge-ping::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 6px;
  animation: pingDot 1.4s ease infinite;
}

/* --------------------------------------------------------------------------
   12. Responsive Typography Clamps
   -------------------------------------------------------------------------- */
.sz-hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background-color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
}

/* Bloqueio total contra vazamento de conteúdo acima do topo (barra de status mobile / iOS notch) */
header::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 200px;
  background-color: #ffffff !important;
  pointer-events: none;
}

/* ==========================================================================
   14. Onboarding Splash — Full-screen 2-step flow
   ========================================================================== */

@keyframes splashCloseUp {
  0%   { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-105%); opacity: 0; }
}

@keyframes stepSlideOutLeft {
  0%   { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-48px); }
}

@keyframes stepSlideInRight {
  0%   { opacity: 0; transform: translateX(48px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes mugBounceIn {
  0%   { opacity: 0; transform: scale(0.75) translateY(32px); }
  60%  { opacity: 1; transform: scale(1.06) translateY(-6px); }
  80%  { transform: scale(0.97) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ruleCardIn {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Overlay container */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Individual step */
.splash-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.splash-step.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

:focus-visible {
  outline: 3px solid #FFC20E;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Step 1 — dark background */
#splashStep1 {
  background: #0A0A0F;
}

/* Step 2 — light background */
#splashStep2 {
  background: #F8F7FF;
}

/* Mug bounce animation on step 1 load */
.mug-bounce-in {
  animation: mugBounceIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Rule cards staggered animation */
.rule-card-anim {
  opacity: 0;
  animation: ruleCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Step indicator dots */
.splash-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}
.splash-dot.active {
  width: 24px;
  background: #FFC20E;
}

/* Closing animation on the whole overlay */
.splash-overlay.closing {
  animation: splashCloseUp 0.65s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* ==========================================================================
   15. Toast Notification System — Real-time live notifications
   ========================================================================== */

@keyframes toastIn {
  0%   { opacity: 0; transform: translateX(110%) scale(0.92); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  0%   { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(110%) scale(0.92); }
}

@keyframes toastProgress {
  0%   { width: 100%; }
  100% { width: 0%; }
}

#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 9980;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.625rem;
  pointer-events: none;
  max-width: 300px;
  width: calc(100vw - 2.5rem);
}

.toast-item {
  pointer-events: auto;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.10);
  border-left: 4px solid #6A1BBF;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  animation: toastIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  cursor: pointer;
}

.toast-item.leaving {
  animation: toastOut 0.38s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.toast-progress {
  height: 3px;
  background: linear-gradient(90deg, #6A1BBF, #FFC20E);
  animation: toastProgress 5s linear forwards;
}
