/*
Theme Name: AppSender
Theme URI: https://appsender.com.br
Author: Actio Midia
Author URI: https://actiomidia.com.br
Description: Tema profissional para o AppSender — Sistema de Multi-Atendimento WhatsApp com API Oficial Meta. Layout moderno, responsivo e otimizado para conversão.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appsender
Tags: one-page, landing-page, whatsapp, business, marketing, full-width-template
*/

/* === VARIÁVEIS === */
:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --green-light: #DCF8C6;
  --green-pale: #F0FBF4;
  --teal: #075E54;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(18,140,126,.10);
  --shadow-lg: 0 12px 48px rgba(18,140,126,.16);
  --font-main: 'Poppins', sans-serif;
  --max-width: 1100px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-800);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
p { margin-bottom: 1rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* === UTILITÁRIOS === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-green { color: var(--green-dark); }
.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-main);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-ghost:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--teal);
  box-shadow: var(--shadow);
}
.btn-white:hover { background: var(--gray-50); color: var(--teal); }

/* === NAVEGAÇÃO === */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--teal);
  text-decoration: none;
}
.site-logo:hover { color: var(--green-dark); }
.site-logo img { height: 36px; width: auto; }
.site-logo .logo-text { font-family: var(--font-main); }

/* Menu principal */
#primary-menu-wrap { display: flex; align-items: center; gap: 2rem; }
#primary-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
#primary-menu li { position: relative; }
#primary-menu li a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: .3rem 0;
  text-decoration: none;
  transition: color .2s;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item > a { color: var(--green-dark); }
/* Dropdown */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + .75rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem 0;
  list-style: none;
  margin: 0;
  z-index: 100;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu li a {
  display: block;
  padding: .55rem 1.2rem;
  color: var(--gray-700);
  font-size: .875rem;
}
#primary-menu .sub-menu li a:hover { background: var(--green-pale); color: var(--green-dark); }
.header-cta { white-space: nowrap; }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin-bottom: 1rem; }
.mobile-menu ul li a { font-size: 1.3rem; font-weight: 600; color: var(--gray-800); }
.mobile-menu .close-btn {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  font-size: 2rem; cursor: pointer;
  color: var(--gray-600);
}

/* === CONTEÚDO PRINCIPAL === */
#content { margin-top: 66px; } /* altura do header fixo */

/* === SEÇÃO HERO (HOME) === */
.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 40%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-light);
  color: var(--green-dark);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-title em { font-style: normal; color: var(--green-dark); }
.hero-sub { font-size: 1.1rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 2rem; max-width: 500px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--teal); }
.hero-stat span { font-size: .82rem; color: var(--gray-600); }
.hero-mockup { position: relative; }
.mockup-phone {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  border: 8px solid var(--gray-900);
}
.mockup-header { background: var(--teal); padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; }
.mockup-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; color: white; font-size: .9rem; font-weight: 700; }
.mockup-header strong { display: block; color: white; font-size: .85rem; }
.mockup-header span { color: rgba(255,255,255,.7); font-size: .72rem; }
.mockup-chat { background: #ECE5DD; padding: 1rem; min-height: 220px; display: flex; flex-direction: column; gap: .6rem; }
.bubble { max-width: 80%; padding: .5rem .75rem; border-radius: 10px; font-size: .8rem; line-height: 1.5; }
.bubble-in { background: white; align-self: flex-start; border-top-left-radius: 2px; }
.bubble-out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.bubble-agent { font-size: .7rem; color: var(--green-dark); font-weight: 600; display: block; margin-bottom: .15rem; }
.bubble-time { font-size: .65rem; color: var(--gray-400); text-align: right; }
.float-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: .6rem .9rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}
.float-1 { top: -15px; right: -20px; }
.float-2 { bottom: 20px; right: -30px; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* === SEÇÃO PAIN === */
.pain-section { background: var(--gray-900); padding: 5rem 1.5rem; }
.pain-section .section-label { background: rgba(37,211,102,.15); color: var(--green); }
.pain-section .section-title { color: white; }
.pain-section .section-sub { color: rgba(255,255,255,.65); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.pain-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background .2s;
}
.pain-card:hover { background: rgba(255,255,255,.1); }
.pain-icon { font-size: 2rem; margin-bottom: .75rem; }
.pain-card h3 { color: white; font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.pain-card p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.6; margin: 0; }
.pain-divider { text-align: center; margin-top: 3rem; font-size: 1.4rem; color: white; font-weight: 700; }
.pain-divider em { color: var(--green); font-style: normal; }

/* === FEATURES === */
.features-section { padding: 5rem 1.5rem; }
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.feature-block:last-child { border-bottom: none; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-visual {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 2.5rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list { list-style: none; padding: 0; margin-top: 1.2rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  color: var(--gray-600); font-size: .95rem;
  line-height: 1.6; margin-bottom: .5rem;
}
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }

/* === API OFICIAL === */
.api-section {
  background: linear-gradient(135deg, var(--teal) 0%, #0d4f47 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.api-section::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(37,211,102,.1);
}
.api-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: var(--max-width); margin: 0 auto; position: relative; }
.api-badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.2); padding: .5rem 1.2rem; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem; }
.api-title { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.api-sub { color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 1.5rem; }
.api-points { list-style: none; padding: 0; }
.api-points li { display: flex; align-items: center; gap: .75rem; color: white; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.api-points li:last-child { border-bottom: none; }
.api-points .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.api-seal { background: rgba(255,255,255,.08); border: 2px solid rgba(37,211,102,.4); border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.api-seal-icon { font-size: 4rem; margin-bottom: 1rem; }
.api-seal h3 { color: white; font-size: 1.2rem; margin-bottom: .5rem; }
.api-seal p { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.6; }
.seal-chip { display: inline-block; margin-top: 1rem; background: var(--green); color: white; border-radius: 50px; padding: .4rem 1rem; font-size: .8rem; font-weight: 700; }

/* === PRICING === */
.pricing-section { background: var(--gray-50); padding: 5rem 1.5rem; }
.pricing-toggle { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 2.5rem; }
.pricing-toggle span { font-size: .9rem; color: var(--gray-600); font-weight: 500; }
.toggle-track { width: 48px; height: 26px; background: var(--gray-200); border-radius: 50px; cursor: pointer; position: relative; transition: background .2s; }
.toggle-track.active { background: var(--green); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle-track.active .toggle-thumb { transform: translateX(22px); }
.pricing-slider-wrap { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.slider-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.slider-header h3 { font-size: 1.1rem; font-weight: 700; }
.slider-header p { font-size: .88rem; color: var(--gray-600); }
.attendants-control { display: flex; align-items: center; gap: 1.5rem; }
.att-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--green); background: white; color: var(--green-dark); font-size: 1.3rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.att-btn:hover { background: var(--green); color: white; }
.att-num { font-size: 2.2rem; font-weight: 800; color: var(--teal); min-width: 2ch; text-align: center; }
.att-label { font-size: .8rem; color: var(--gray-400); text-align: center; }
.price-display { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.price-box { background: var(--green-pale); border-radius: var(--radius-sm); padding: 1.2rem; text-align: center; border: 2px solid transparent; }
.price-box.highlight { background: var(--green-light); border-color: var(--green); }
.price-box .pb-label { font-size: .75rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.price-box .pb-value { font-size: 1.7rem; font-weight: 800; color: var(--teal); margin: .3rem 0; }
.price-box .pb-sub { font-size: .75rem; color: var(--gray-600); }
.plans-scroll { overflow-x: auto; padding-bottom: 1rem; }
.plans-table { display: flex; gap: 1.2rem; min-width: max-content; padding: .5rem; }
.plan-card { background: white; border-radius: var(--radius); border: 2px solid var(--gray-200); padding: 2rem 1.5rem; width: 240px; flex-shrink: 0; transition: all .2s; position: relative; }
.plan-card:hover { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.popular { border-color: var(--green); }
.plan-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: white; border-radius: 50px; padding: .25rem .9rem; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.plan-agents { font-size: .82rem; color: var(--green-dark); font-weight: 600; margin-bottom: 1rem; }
.plan-install { font-size: .75rem; color: var(--gray-400); padding: .35rem .6rem; background: var(--gray-100); border-radius: var(--radius-sm); margin-bottom: 1rem; display: inline-block; }
.plan-price-num { font-size: 2rem; font-weight: 800; color: var(--teal); }
.plan-price-period { font-size: .82rem; color: var(--gray-400); }
.plan-feats { list-style: none; padding: 0; }
.plan-feats li { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--gray-600); margin-bottom: .55rem; line-height: 1.4; }
.plan-feats li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.plan-btn { display: block; width: 100%; margin-top: 1.5rem; background: var(--green); color: white; border: none; border-radius: 50px; padding: .8rem; font-size: .9rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; transition: all .2s; font-family: var(--font-main); }
.plan-btn:hover { background: var(--green-dark); color: white; transform: translateY(-1px); }
.plan-card.enterprise { background: var(--gray-900); border-color: var(--gray-900); }
.plan-card.enterprise .plan-name, .plan-card.enterprise .plan-price-num { color: white; }
.plan-card.enterprise .plan-agents { color: var(--green); }
.plan-card.enterprise .plan-feats li { color: rgba(255,255,255,.7); }
.plan-card.enterprise .plan-feats li::before { color: var(--green); }
.plan-card.enterprise .plan-install { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* === BLOG === */
.blog-section { padding: 5rem 1.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.blog-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; transition: all .2s; }
.blog-card:hover { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--green-pale); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-thumb .no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--green-pale); }
.blog-card-body { padding: 1.5rem; }
.blog-card-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); margin-bottom: .5rem; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: .75rem; }
.blog-card-title a { color: var(--gray-900); }
.blog-card-title a:hover { color: var(--green-dark); }
.blog-card-excerpt { font-size: .875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem; }
.blog-card-meta { font-size: .75rem; color: var(--gray-400); display: flex; align-items: center; gap: .5rem; }
.blog-card-meta::before { content: '📅'; font-size: .7rem; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--green-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.read-more:hover { color: var(--green); gap: .6rem; }

/* === FAQ === */
.faq-section { padding: 5rem 1.5rem; background: white; }
.faq-list { max-width: 780px; margin: 3rem auto 0; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--green); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; font-size: .95rem; background: white; border: none; width: 100%; text-align: left; gap: 1rem; color: var(--gray-800); font-family: var(--font-main); }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .3s; font-size: .85rem; color: var(--green-dark); }
.faq-item.open .faq-icon { background: var(--green); color: white; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 1.3rem; }
.faq-answer p { color: var(--gray-600); line-height: 1.7; font-size: .92rem; padding-bottom: 1.2rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 400px; }

/* === CTA === */
.cta-section { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); padding: 5rem 1.5rem; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* === MODAL CONTATO === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: white; border-radius: var(--radius); padding: 2.5rem; max-width: 460px; width: 100%; transform: translateY(20px); transition: transform .3s; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .4rem; }
.modal-sub { font-size: .9rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.modal-box label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .35rem; }
.modal-box input, .modal-box select {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .92rem;
  color: var(--gray-800);
  transition: border-color .2s;
  outline: none;
  margin-bottom: 1rem;
  background: var(--gray-50);
}
.modal-box input:focus, .modal-box select:focus { border-color: var(--green); background: white; }
.modal-btns { display: flex; gap: .75rem; margin-top: .5rem; }
.btn-modal-submit { flex: 1; background: var(--green); color: white; border: none; border-radius: 50px; padding: .85rem; font-size: .95rem; font-weight: 600; cursor: pointer; font-family: var(--font-main); transition: background .2s; }
.btn-modal-submit:hover { background: var(--green-dark); }
.btn-modal-cancel { background: var(--gray-100); color: var(--gray-600); border: none; border-radius: 50px; padding: .85rem 1.4rem; font-size: .95rem; font-weight: 600; cursor: pointer; font-family: var(--font-main); }

/* === WA FLOAT === */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  text-decoration: none;
  animation: pulse-wa 2.5s infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: white; }
@keyframes pulse-wa { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.5)} 50%{box-shadow:0 4px 40px rgba(37,211,102,.7),0 0 0 8px rgba(37,211,102,.1)} }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--gray-900);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: .85rem; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--green); }
.cookie-buttons { display: flex; gap: .75rem; flex-shrink: 0; }
.btn-cookie-accept { background: var(--green); color: white; border: none; padding: .6rem 1.4rem; border-radius: 50px; font-weight: 600; font-size: .85rem; cursor: pointer; font-family: var(--font-main); transition: background .2s; }
.btn-cookie-accept:hover { background: var(--green-dark); }
.btn-cookie-decline { background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.2); padding: .6rem 1.2rem; border-radius: 50px; font-weight: 500; font-size: .85rem; cursor: pointer; font-family: var(--font-main); transition: all .2s; }
.btn-cookie-decline:hover { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.8); }

/* === FOOTER === */
#site-footer { background: var(--gray-900); color: rgba(255,255,255,.6); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .site-logo { color: white; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-brand .social-links { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-brand .social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: all .2s; }
.footer-brand .social-links a:hover { background: var(--green); color: white; }
.footer-col h4 { color: white; font-weight: 600; font-size: .9rem; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: rgba(255,255,255,.5); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom { max-width: var(--max-width); margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* === PÁGINAS INTERNAS === */
.page-hero { padding: 6rem 1.5rem 3rem; text-align: center; background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.page-hero p { font-size: 1.1rem; color: var(--gray-600); max-width: 560px; margin: 0 auto; }
.page-content { max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem; }
.page-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--teal); }
.page-content h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .75rem; }
.page-content p, .page-content li { font-size: .95rem; line-height: 1.8; color: var(--gray-700); }
.page-content ul, .page-content ol { margin-bottom: 1.5rem; }
.page-content ul li, .page-content ol li { margin-bottom: .4rem; }
.page-content a { color: var(--green-dark); border-bottom: 1px solid transparent; transition: border-color .2s; }
.page-content a:hover { border-color: var(--green-dark); }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.page-content th, .page-content td { padding: .75rem 1rem; border: 1px solid var(--gray-200); text-align: left; }
.page-content th { background: var(--green-pale); font-weight: 600; color: var(--teal); }
.page-content blockquote { border-left: 4px solid var(--green); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--green-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--gray-700); }
.info-box { background: var(--green-pale); border: 1px solid var(--green-light); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: .9rem; }
.info-box strong { color: var(--teal); }

/* === SINGLE POST === */
.single-post-hero { padding: 5rem 1.5rem 3rem; background: var(--green-pale); }
.single-post-meta { font-size: .82rem; color: var(--gray-500); margin-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.post-cat-tag { background: var(--green-light); color: var(--green-dark); padding: .2rem .7rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.single-post-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.single-post-content h2, .single-post-content h3 { color: var(--teal); margin-top: 2rem; }
.post-share { border-top: 1px solid var(--gray-200); padding-top: 2rem; margin-top: 3rem; }
.post-share p { font-weight: 600; margin-bottom: .75rem; }
.share-btns { display: flex; gap: .75rem; }
.share-btn { padding: .5rem 1rem; border-radius: 50px; font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.share-wa { background: var(--green); color: white; }
.share-wa:hover { background: var(--green-dark); color: white; }
.related-posts { padding: 3rem 1.5rem 5rem; max-width: 1100px; margin: 0 auto; }
.related-posts h3 { font-size: 1.3rem; margin-bottom: 2rem; }

/* === ARQUIVO BLOG === */
.archive-header { padding: 5rem 1.5rem 3rem; background: var(--green-pale); text-align: center; }
.archive-grid { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2rem 1.5rem 4rem; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .875rem; font-weight: 600; text-decoration: none; border: 2px solid var(--gray-200); color: var(--gray-600); transition: all .2s; }
.pagination a:hover, .pagination .current { background: var(--green); border-color: var(--green); color: white; }

/* === 404 === */
.error-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.error-404 h1 { font-size: 8rem; color: var(--green-light); font-weight: 800; line-height: 1; }
.error-404 h2 { font-size: 1.8rem; margin-bottom: 1rem; }

/* === SEARCH === */
.search-form { display: flex; gap: .5rem; max-width: 500px; margin: 2rem auto; }
.search-form input { flex: 1; padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 50px; font-family: var(--font-main); font-size: .95rem; outline: none; transition: border-color .2s; }
.search-form input:focus { border-color: var(--green); }
.search-form button { background: var(--green); color: white; border: none; border-radius: 50px; padding: .75rem 1.5rem; font-weight: 600; cursor: pointer; font-family: var(--font-main); }

/* === WIDGETS SIDEBAR === */
.sidebar-widget { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green-light); }
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { padding: .4rem 0; border-bottom: 1px solid var(--gray-200); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { font-size: .875rem; color: var(--gray-700); }
.sidebar-widget ul li a:hover { color: var(--green-dark); }

/* === ANIMATIONS === */
[data-anim] { opacity: 0; transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-left"] { transform: translateX(-50px); }
[data-anim="fade-right"] { transform: translateX(50px); }
[data-anim="zoom-in"] { transform: scale(.88); }
[data-anim].visible { opacity: 1 !important; transform: none !important; }
[data-stagger] > * { opacity: 0; transform: translateY(32px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
[data-stagger].visible > *:nth-child(1){transition-delay:.05s} [data-stagger].visible > *:nth-child(2){transition-delay:.15s} [data-stagger].visible > *:nth-child(3){transition-delay:.25s} [data-stagger].visible > *:nth-child(4){transition-delay:.35s} [data-stagger].visible > *:nth-child(5){transition-delay:.45s} [data-stagger].visible > *:nth-child(6){transition-delay:.55s}
[data-stagger].visible > * { opacity: 1; transform: none; }
.feature-block { opacity: 0; transform: translateY(50px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.feature-block.visible { opacity: 1; transform: none !important; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .hero-inner, .feature-block, .api-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-mockup { display: none; }
  .feature-block.reverse { direction: ltr; }
  .feature-block { padding: 3rem 0; }
}
@media (max-width: 768px) {
  #primary-menu-wrap { display: none; }
  .nav-toggle { display: flex; }
  #content { margin-top: 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .plans-table { gap: .75rem; }
  .plan-card { width: 210px; padding: 1.5rem 1.2rem; }
}
@media (max-width: 640px) {
  section, .hero-section { padding: 3.5rem 1rem; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
  .error-404 h1 { font-size: 5rem; }
}

/* === GUTENBERG / WP BLOCKS === */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-quote { border-left: 4px solid var(--green); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--green-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wp-block-quote p { font-style: italic; color: var(--gray-700); margin: 0; }
.wp-block-separator { border: none; border-top: 2px solid var(--gray-200); margin: 2rem 0; }
.wp-block-button .wp-block-button__link { background: var(--green); color: white; border-radius: 50px; padding: .75rem 1.5rem; font-weight: 600; text-decoration: none; }
.wp-block-button .wp-block-button__link:hover { background: var(--green-dark); }
.alignwide { margin-left: -2rem; margin-right: -2rem; max-width: calc(100% + 4rem); }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }

/* === PRINT === */
@media print {
  #site-header, .wa-float, .cookie-banner, .modal-overlay { display: none !important; }
  #content { margin-top: 0; }
  body { font-size: 12pt; }
}
