/* =====================================================
   LIPEDERMA — DESIGN SYSTEM COMPLETO
   Mobile-first | Paleta rosê/nude/terroso
   ===================================================== */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- TOKENS --- */
:root {
  /* Cores */
  --rose-soft: #C8958A;
  --rose-light: #E8B4AB;
  --rose-pale: #F5E6E3;
  --nude: #E8D5C4;
  --nude-dark: #D4B89A;
  --terra: #8B5E52;
  --terra-dark: #6B3F34;
  --off-white: #FAF7F4;
  --cream: #F3EDE6;
  --text-dark: #2C1810;
  --text-mid: #5C3D35;
  --text-light: #9E7B72;
  --white: #FFFFFF;
  --success: #6BAA80;
  --warning: #D4956A;
  --error: #C25F5F;

  /* Gradientes */
  --grad-hero: linear-gradient(135deg, #FAF7F4 0%, #F5E6E3 50%, #E8D5C4 100%);
  --grad-rose: linear-gradient(135deg, #E8B4AB 0%, #C8958A 100%);
  --grad-terra: linear-gradient(135deg, #8B5E52 0%, #6B3F34 100%);
  --grad-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,240,235,0.9) 100%);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Espaçamentos */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(139, 94, 82, 0.08);
  --shadow-md: 0 4px 20px rgba(139, 94, 82, 0.12);
  --shadow-lg: 0 8px 40px rgba(139, 94, 82, 0.16);
  --shadow-xl: 0 16px 60px rgba(139, 94, 82, 0.20);
  --shadow-rose: 0 8px 32px rgba(200, 149, 138, 0.30);

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1100px;
  --container-narrow: 720px;
  --header-height: 64px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { font-size: 1rem; line-height: 1.7; color: var(--text-mid); }

.text-display { font-family: var(--font-display); }
.text-italic { font-style: italic; }
.text-center { text-align: center; }
.text-rose { color: var(--rose-soft); }
.text-terra { color: var(--terra); }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.section--sm {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--grad-rose);
  color: var(--white);
  box-shadow: var(--shadow-rose);
  font-size: 1.05rem;
  padding: 1rem 2rem;
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(200, 149, 138, 0.45); transform: translateY(-2px); }

.btn--terra {
  background: var(--grad-terra);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--terra:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--outline {
  background: transparent;
  color: var(--terra);
  border: 2px solid var(--terra);
}
.btn--outline:hover { background: var(--terra); color: var(--white); }

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn--full { width: 100%; }
.btn--lg { padding: 1.2rem 2.4rem; font-size: 1.15rem; }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }

/* Botão pulsante (CTA principal) */
.btn--pulse {
  animation: pulse-rose 2s infinite;
}
@keyframes pulse-rose {
  0%, 100% { box-shadow: var(--shadow-rose); }
  50% { box-shadow: 0 8px 40px rgba(200, 149, 138, 0.55); }
}

/* --- CARDS --- */
.card {
  background: var(--grad-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 149, 138, 0.15);
  backdrop-filter: blur(10px);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 149, 138, 0.2);
}

.card--nude {
  background: var(--nude);
  border: none;
}

.card--rose {
  background: var(--rose-pale);
  border: 1px solid rgba(200, 149, 138, 0.25);
}

/* --- FORMS --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(139, 94, 82, 0.2);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-dark);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--rose-soft);
  box-shadow: 0 0 0 3px rgba(200, 149, 138, 0.15);
}

.form-input::placeholder { color: var(--text-light); }
.form-input.is-error { border-color: var(--error); }

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  display: none;
}
.form-input.is-error + .form-error { display: block; }

/* --- BADGE / CHIP --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge--rose { background: var(--rose-pale); color: var(--terra); }
.badge--success { background: rgba(107, 170, 128, 0.15); color: var(--success); }
.badge--nude { background: var(--nude); color: var(--terra); }

/* --- DIVISOR --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 149, 138, 0.3), transparent);
  margin: var(--spacing-xl) 0;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 149, 138, 0.12);
  transition: box-shadow var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo-accent { color: var(--rose-soft); }

/* --- PROGRESS BAR (Quiz) --- */
.progress-wrap {
  margin-bottom: var(--spacing-xl);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.progress-bar {
  height: 6px;
  background: rgba(200, 149, 138, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-rose);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 10px;
  height: 10px;
  background: var(--rose-soft);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--rose-light);
}

/* --- QUIZ OPTIONS --- */
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 1rem 1.2rem;
  border: 1.5px solid rgba(139, 94, 82, 0.15);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 0.975rem;
  position: relative;
  overflow: hidden;
}
.quiz-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rose-pale);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.quiz-option:hover { border-color: var(--rose-soft); transform: translateX(4px); }
.quiz-option:hover::before { opacity: 1; }
.quiz-option.selected {
  border-color: var(--rose-soft);
  background: var(--rose-pale);
  box-shadow: var(--shadow-sm);
}
.quiz-option .option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(139, 94, 82, 0.3);
  flex-shrink: 0;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
}
.quiz-option.selected .option-dot {
  background: var(--rose-soft);
  border-color: var(--rose-soft);
}
.quiz-option.selected .option-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.quiz-option-text { position: relative; z-index: 1; line-height: 1.4; }

/* --- PERFIL CARD (Resultado) --- */
.perfil-card {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.perfil-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(200,149,138,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.perfil-nivel {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--spacing-md) 0;
}
.perfil-nivel-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-light), var(--rose-pale));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

/* --- DEPOIMENTO --- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(200,149,138,0.1);
}
.testimonial-stars { color: #F0A500; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { font-style: italic; color: var(--text-mid); line-height: 1.7; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--nude);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terra);
  font-weight: 600;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.testimonial-detail { font-size: 0.8rem; color: var(--text-light); }

/* --- GARANTIA BADGE --- */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(107,170,128,0.1) 0%, rgba(107,170,128,0.05) 100%);
  border: 1px solid rgba(107,170,128,0.25);
  border-radius: var(--radius-lg);
}
.guarantee-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.guarantee-text h4 { color: var(--success); margin-bottom: 0.2rem; }
.guarantee-text p { font-size: 0.9rem; }

/* --- CHECKLIST --- */
.checklist { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: 0.6rem 0;
}
.checklist-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist-text { color: var(--text-mid); line-height: 1.5; }

/* --- QR CODE (Pagamento) --- */
.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--rose-pale);
}
.qr-image {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--cream);
  border: 1.5px solid var(--nude-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--terra);
  transition: all var(--transition-fast);
  word-break: break-all;
  font-family: monospace;
  max-width: 100%;
}
.copy-btn:hover { background: var(--nude); }
.copy-btn.copied { background: rgba(107,170,128,0.15); border-color: var(--success); color: var(--success); }

/* --- TIMER --- */
.timer-wrap {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}
.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 60px;
}
.timer-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1;
}
.timer-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.timer-sep { font-family: var(--font-display); font-size: 2rem; color: var(--rose-soft); align-self: center; margin-top: -0.5rem; }

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* --- ANIMAÇÕES --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }
.animate-in--delay-4 { animation-delay: 0.4s; }

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- FLOATING BADGE (Header fixo mobile) --- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 1rem var(--spacing-lg);
  background: rgba(250, 247, 244, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200,149,138,0.2);
  box-shadow: 0 -4px 20px rgba(139, 94, 82, 0.1);
}

/* --- GRID --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }

/* --- UTILITIES --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* --- PAINEL ADMIN --- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  background: var(--cream);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--terra);
  border-bottom: 2px solid rgba(200,149,138,0.2);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(200,149,138,0.1);
  color: var(--text-mid);
}
.admin-table tr:hover td { background: rgba(200,149,138,0.04); }
.status-lead { color: var(--warning); font-weight: 500; }
.status-comprador { color: var(--success); font-weight: 500; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 2.5rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .btn--lg {
    padding: 1rem 1.8rem;
    font-size: 1.05rem;
  }

  .card { padding: var(--spacing-lg); }
  .perfil-card { padding: var(--spacing-xl); }
  .qr-image { width: 180px; height: 180px; }
  .admin-table { font-size: 0.75rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
  .timer-num { font-size: 2rem; }
  .timer-block { min-width: 50px; }
}
