@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&family=Inter:wght@500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #fff8ec;
  color: #0f172a;
  line-height: 1.5;
}

header {
  background: linear-gradient(90deg, #FF7A00, #FFD9B0);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-size: 32px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

/* "Vitrine" */
.logo-vitrine {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: #111;
}

/* "OFF" */
.logo-off {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #111;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* LINKS */
nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  transition: opacity 0.2s ease;
  /* font-family: 'Playfair Display', serif; */
}

nav a:hover {
  opacity: 0.7;
}

/* BOTÃO HEADER */
.btn-header {
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: #FF7A00;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

/* HOVER BOTÃO */
.btn-header:hover {
  border-color: #FF7A00;
}

/* SECTIONS */
section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* HERO */
.hero {
  padding-top: 75px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
}

.hero h1 span {
  color: #f97316;
}

.hero-text {
  max-width: 600px;
  margin: 24px auto;
  font-size: 18px;
  color: #475569;
}

.btn-waitlist {
  display: inline-block;
  margin-top: 16px;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse-soft 3s ease-in-out infinite;
}

.btn-waitlist:hover {
  animation: none;
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
}

/* Animação sutil */
@keyframes pulse-soft {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(249, 115, 22, 0);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    transform: scale(1);
  }
}

.hero-info {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: #64748b;
}

h2{
  font-size: 32px;
  font-weight: 700;
}

/* VANTAGENS */
.subtitle {
  margin-top: 12px;
  color: #475569;
}

.toggle-role {
  margin: 40px auto;
  background: #fff1d6;
  padding: 8px;
  border-radius: 999px;
  display: inline-flex;
}

.role-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
}

.role-btn.active {
  background: #f97316;
  color: white;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.benefit-card {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #fde68a;
  text-align: left;
}

.benefit-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 15px;
  color: #475569;
}

/* COMO FUNCIONA */
.step-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.step {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #fde68a;
  text-align: center;
}

.step span {
  display: inline-block;
  background: #f97316;
  color: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  margin-bottom: 12px;
}

/* FORM */
.signup {
  padding-bottom: 140px;
}

.user-type {
  margin: 40px auto;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.type-card {
  padding: 32px;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  width: 260px;
  cursor: pointer;
  position: relative;
}

.type-card.active {
  border-color: #f97316;
  background: #fff7ed;
}

.check {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f97316;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.type-card.active .check {
  display: flex;
}

form {
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.btn-submit {
  background: #0f172a;
  color: white;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

input.error {
  border: 2px solid #e53935;
  background-color: #fff5f5;
}

input.error::placeholder {
  color: #e53935;
}

/* ===========================
   AJUSTES APENAS PARA MOBILE
=========================== */

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 768px) {

  header {
    padding: 12px 0;
  }

  header .container {
    padding: 0 16px;
  }

  /* Esconde links normais */
  .nav-link {
    display: none;
  }

  /* Mantém só o botão */
  .btn-header {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Troca texto do botão */
  .btn-header::after {
    content: "Lista de espera";
  }

  .btn-header {
    font-size: 0;
  }

  .btn-header::after {
    font-size: 14px;
    font-weight: 600;
  }
}

@keyframes nudge-right {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

@keyframes nudge-left {
  0% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.role-btn {
  transition: background 0.25s ease, color 0.25s ease;
}

/* Quando Lojista está ativo → Consumidor se move para a esquerda */
.role-btn[data-role="consumidor"]:not(.active) {
  animation: nudge-left 2.8s ease-in-out infinite;
}

/* Quando Consumidor está ativo → Lojista se move para a direita */
.role-btn[data-role="lojista"]:not(.active) {
  animation: nudge-right 2.8s ease-in-out infinite;
}

/* Pausa quando o usuário interage */
.role-btn:hover {
  animation: none;
}