/*
Theme Name: PLR Landing Theme PRO
Description: Tema de conversão premium baseado em funil de WhatsApp para Mamães e Bebês.
Version: 1.0.0
Requires PHP: 8.2
Author: Seu Nome
Text Domain: plr-landing-theme
*/

:root {
  --bg-body: #F5F6FA;
  --card-bg: #FFFFFF;
  --text-main: #2D3436;
  --text-light: #636E72;
  --text-muted: #B2BEC3;
  --primary: #FF6B9D;
  --primary-dark: #E84393;
  --secondary: #A29BFE;
  --accent: #55EFC4;
  --shadow: rgba(0,0,0,0.05);
  --whatsapp-green: #25D366;
  --radius: 20px;
  
  /* Dynamic customizer variables */
  --pulse-color: #E84393;
  --eyebrow-text-color: #E84393;
  --eyebrow-bg-color: rgba(255, 107, 157, 0.12);
  --instrucoes-badge-text-color: #E84393;
  --instrucoes-badge-bg-color: rgba(255, 107, 157, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-body);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 16px;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(162, 155, 254, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 107, 157, 0.10) 0%, transparent 60%);
}

.container {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.10);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.5);
  overflow: hidden;
  margin: auto;
}

.container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eyebrow-text-color);
  background: var(--eyebrow-bg-color);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.logo-container {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--card-bg);
  outline: 2px solid rgba(162, 155, 254, 0.4);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

h1 span {
  color: var(--primary-dark);
  font-weight: 800;
  display: block;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
  padding: 0 8px;
  font-weight: 400;
}

.subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

.cta-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 12px 25px -8px rgba(232, 67, 147, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2.5s infinite;
  cursor: pointer;
  border: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 60%);
  transform: rotate(45deg);
  transition: 0.5s;
  pointer-events: none;
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.cta-button:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px rgba(232, 67, 147, 0.4);
}

.cta-button i {
  animation: bounceIcon 2s infinite ease-in-out;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.cta-main-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  z-index: 2;
}

.cta-sub-text {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 1px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse-color) 50%, transparent); }
  70% { box-shadow: 0 0 0 15px color-mix(in srgb, var(--pulse-color) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse-color) 0%, transparent); }
}

.instructions {
  font-size: 13px;
  margin-top: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.instructions span {
  color: var(--instrucoes-badge-text-color);
  background: var(--instrucoes-badge-bg-color);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.urgency-box {
  background: #F0F4F8;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

#timer {
  background: var(--text-main);
  color: #FFF;
  padding: 3px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
  letter-spacing: 1px;
}

.counter-container {
  background: #F8F9FA;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
  text-align: left;
  border: 1px solid #EDF2F7;
}

.counter-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.1, 0, 0.1, 1);
}

.counter-bottom {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
  font-weight: 600;
}

.counter-bottom strong {
  color: var(--primary-dark);
}

.guarantee {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-light);
  margin: 20px 0;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  background: var(--bg-body);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid #EDF2F7;
  color: var(--text-main);
}

.guarantee-item i {
  color: var(--accent);
}

.benefits {
  text-align: left;
  margin-top: 24px;
}

.benefits h2 {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-body);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #EDF2F7;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.benefit-icon {
  flex-shrink: 0;
  background: white;
  color: var(--primary-dark);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.benefit-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.benefit-content p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.social-proof {
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.10), rgba(255, 107, 157, 0.10));
  padding: 18px 20px;
  border-radius: 14px;
  margin-top: 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-main);
  text-align: left;
  border: 1px solid rgba(162, 155, 254, 0.2);
  position: relative;
}

.social-proof strong {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer {
  margin-top: 30px;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 10px;
  line-height: 1.6;
}

.footer a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.notification-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  z-index: 1000;
  pointer-events: none;
}

.notification {
  background: #FFFFFF;
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  border: 1px solid #EDF2F7;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification i {
  color: var(--whatsapp-green);
  font-size: 16px;
}

.notification-btn {
  background: var(--whatsapp-green);
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(37,211,102,0.3);
  transition: transform 0.2s ease;
}

.notification-btn:active {
  transform: scale(0.95);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
  .container { padding: 24px 16px; }
  h1 { font-size: 20px; }
  .cta-main-text { font-size: 15px; }
}
