/* ===================================
   CSS - SOFT PROJETOS v4.0 (Refatorado)

   Mudanças:
   - Consolidação de seletores de botão social (--wa, --tg, --pp)
   - Agrupamento de regras repetidas para hover/focus
   - Remoção de propriedades redundantes
   - Melhor organização por camadas lógicas
   - Variáveis adicionais para cores sociais
   =================================== */

/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
  /* Cores primárias */
  --bg-primary: #0b0f14;
  --bg-secondary: #121318;
  --text-color: #e9eef6;
  --text-muted: #a7aab3;

  /* Accent */
  --accent-color: #ff4d4d;
  --accent-hover: #ff6666;
  --success-color: #28a745;

  /* Cores sociais */
  --wa-color: #25D366;
  --wa-dark: #128C7E;
  --tg-color: #229ED9;
  --tg-dark: #1b7fc2;
  --pp-color: #FFC439;
  --pp-dark: #FFB020;
  --pp-text: #003087;

  /* Surfaces */
  --card-bg: #15171a;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(255, 77, 77, 0.25);

  /* Spacing & shape */
  --radius: 12px;
  --radius-lg: 20px;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;

  /* Transitions */
  --ease-fast: all 0.2s ease;
  --ease-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

::selection {
  background: var(--accent-color);
  color: #fff;
}

/* ===== BODY ===== */
body {
  font-family: var(--font-primary);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255, 0, 0, 0.06), transparent 60%),
    radial-gradient(700px 420px at 80% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--bg-primary);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.container#conteudo-principal {
  padding-top: 8px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  background: linear-gradient(90deg, var(--bg-secondary), #1a1d22);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}

.site-header.header--scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--ease-smooth);
}

.brand:hover { transform: scale(1.02); }

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-color);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   HAMBURGER (mobile only)
   ========================================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1010;
  transition: var(--ease-fast);
}

.hamburger:hover { border-color: var(--accent-color); }

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: var(--ease-smooth);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav wrapper */
.nav-area-desktop { display: contents; }

/* ==========================================================================
   NAVEGAÇÃO DESKTOP
   ========================================================================== */

.nav-links {
  flex: none;
  margin-left: 1rem;
}

.nav-main {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--ease-smooth);
}

.nav-link:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Submenu */
.has-sub { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 1rem 0.5rem 0.5rem;
  list-style: none;
  z-index: 1000;
  min-width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.3);
}

.submenu::-webkit-scrollbar { width: 12px; }
.submenu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
.submenu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.3);
}
.submenu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hover tolerance area */
.has-sub::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 15px;
  background: transparent;
  z-index: 999;
}

.has-sub:hover .submenu,
.submenu:hover {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.submenu a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.6rem 1rem;
  display: block;
  border-radius: 8px;
  transition: var(--ease-smooth);
  font-size: 0.9rem;
  font-weight: 500;
}

.submenu a:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateX(5px);
}

/* Botão Softwares (dropdown toggle) */
.sub-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.12), rgba(255, 77, 77, 0.08));
  border: 1.5px solid var(--border-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--ease-fast);
  font-family: var(--font-primary);
}

.sub-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.3);
}

.sub-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.3);
}

.sub-toggle .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.sub-toggle:hover .icon { transform: rotate(180deg); }

/* ==========================================================================
   HEADER ACTIONS (CTA buttons)
   ========================================================================== */

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--ease-smooth);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.nav-cta img.icon { width: 20px; height: 20px; }

.nav-cta:hover {
  box-shadow: var(--shadow-md);
  filter: brightness(1.15);
  transform: translateY(-3px);
}

/* Variantes de CTA */
.nav-cta.wa      { background: linear-gradient(135deg, var(--wa-color), var(--wa-dark)); color: #fff; }
.nav-cta.tg      { background: linear-gradient(135deg, var(--tg-color), var(--tg-dark)); color: #fff; }
.nav-cta.donate  { background: linear-gradient(135deg, var(--pp-color), var(--pp-dark)); color: var(--pp-text); font-weight: 800; }
.nav-cta.support { background: rgba(255, 255, 255, 0.06); color: var(--text-color); border: 1px solid var(--border-subtle); }

/* Online dot (pulse) */
.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0f0;
  margin-right: 6px;
  animation: pulse-green 2s infinite;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--ease-fast);
}

.breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb-sep    { color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb-current { color: var(--text-color); font-weight: 500; }

/* ==========================================================================
   CATÁLOGO — TÍTULO + GRID + CARDS
   ========================================================================== */

.catalog-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 1.5rem 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.catalog-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 0.8rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.9;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Cards */
.product-card {
  background: linear-gradient(180deg, #141821, #0d1116);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--ease-smooth);
  box-shadow: var(--shadow-md);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(255, 77, 77, 0.15);
}

.product-img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: transform 0.2s ease;
}

.product-card:hover .product-img { transform: scale(1.05); }

.product-title {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--ease-smooth);
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.3);
  font-size: 0.95rem;
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 77, 77, 0.5);
  filter: brightness(1.1);
}

/* ==========================================================================
   PÁGINA DE PRODUTO (detalhe)
   ========================================================================== */

.product-image { text-align: center; margin: 1.5rem 0 1rem; }

.product-hero-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.product-hero-img:hover { transform: scale(1.05); }

.product-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--text-color);
  text-align: center;
}

/* Descrição */
.product-description {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.desc-list { display: flex; flex-direction: column; gap: 0.6rem; }

.desc-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  transition: var(--ease-smooth);
}

.desc-item:hover { background: rgba(255, 255, 255, 0.03); }

.desc-bullet {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success-color), #34d058);
  margin-top: 0.4rem;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.desc-text {
  flex: 1;
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
}

/* Recursos / Features */
.product-features { max-width: 900px; margin: 2.5rem auto; }

.features-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.features-list { display: grid; gap: 1rem; }

.features-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--ease-smooth);
}

.features-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 77, 77, 0.3);
  transform: translateX(5px);
}

.features-bullet {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff96, #00b34f);
  margin-top: 0.4rem;
  box-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
}

.features-text {
  flex: 1;
  color: var(--text-color);
  line-height: 1.7;
  font-size: 0.95rem;
}

.features-text a,
.desc-text a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.features-text a:hover,
.desc-text a:hover {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}

/* Botões de ação */
.product-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn-download,
.btn-tutorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--ease-smooth);
  font-size: 1rem;
  cursor: pointer;
}

.btn-download { background: linear-gradient(135deg, var(--wa-color), var(--wa-dark)); color: #fff; }
.btn-tutorial { background: linear-gradient(135deg, var(--accent-color), #d92f2f); color: #fff; }

.btn-download:hover,
.btn-tutorial:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  filter: brightness(1.15);
}

.btn-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.btn-icon path { fill: currentColor; }

/* ==========================================================================
   SEÇÃO DE CONFIANÇA (trust section)
   ========================================================================== */

.trust-section {
  background: linear-gradient(135deg, #0f1419, #1a1d24);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin: 4rem auto;
  max-width: 1100px;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(40, 167, 69, 0.2);
}

.trust-section h3 {
  color: var(--success-color);
  margin-bottom: 2.5rem;
  font-size: 2rem;
  text-align: center;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: var(--ease-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(40, 167, 69, 0.25);
}

.trust-item h4 { color: #fff; margin-bottom: 0.8rem; font-size: 1.15rem; font-weight: 700; }
.trust-item p   { color: #ccc; font-size: 0.9rem; line-height: 1.5; margin: 0; }

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: block;
  flex-shrink: 0;
}

.trust-icon path { fill: var(--success-color); }

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-color);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--ease-fast);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img,
.whatsapp-float .whatsapp-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, var(--bg-secondary), #0a0c0f);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  color: #999;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--ease-smooth);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ==========================================================================
   PÁGINAS DE CONTEÚDO (contato, políticas)
   ========================================================================== */

.content-page { max-width: 900px; padding-top: 2rem; }

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.content-card {
  background: linear-gradient(180deg, #141821, #0d1116);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title--red   { color: var(--accent-color); }
.section-title--green { color: var(--success-color); }

/* Contato */
.contact-channels { display: grid; gap: 1.5rem; margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
}

.contact-item--whatsapp { background: rgba(37, 211, 102, 0.1); border-left: 4px solid var(--wa-color); }
.contact-item--email    { background: rgba(229, 57, 53, 0.1);  border-left: 4px solid var(--accent-color); }
.contact-item--telegram { background: rgba(34, 158, 217, 0.1); border-left: 4px solid var(--tg-color); }

.contact-item__body { flex: 1; }

.contact-item__title { margin: 0 0 0.5rem; font-size: 1.2rem; }
.contact-item__title--whatsapp { color: var(--wa-color); }
.contact-item__title--red      { color: var(--accent-color); }
.contact-item__title--telegram { color: var(--tg-color); }

.contact-item p { margin: 0; color: var(--text-color); }

.contact-email {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--ease-smooth);
}

.btn-contact:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-contact--whatsapp { background: linear-gradient(135deg, var(--wa-color), var(--wa-dark)); }
.btn-contact--telegram { background: linear-gradient(135deg, var(--tg-color), var(--tg-dark)); }

/* Horário */
.schedule-box {
  padding: 1.5rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.schedule-box__title { color: var(--success-color); margin: 0 0 1rem; font-size: 1.2rem; }
.schedule-box p      { margin: 0; color: var(--text-color); line-height: 1.8; font-size: 1.1rem; }
.schedule-box__note  { margin-top: 1rem !important; color: var(--success-color) !important; font-weight: 600; }

/* Políticas */
.policy-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.policy-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
}

.policy-item:last-child { margin-bottom: 0; }
.policy-item--red       { border-left: 4px solid var(--accent-color); }
.policy-item--green     { border-left: 4px solid var(--success-color); }

.policy-item div { color: var(--text-color); line-height: 1.6; }

.policy-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Utils */
.link-whatsapp { color: var(--wa-color); font-weight: 600; }
.link-green    { color: var(--success-color); font-weight: 600; }
.link-red      { color: var(--accent-color); font-weight: 600; }
.text-red      { color: var(--accent-color); }
.text-green    { color: var(--success-color); }

.info-highlight {
  text-align: center;
  margin: 2rem 0 1rem;
  padding: 1.5rem;
  border-radius: 16px;
}

.info-highlight--green {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.info-highlight p { margin: 0; color: var(--text-color); font-weight: 600; }

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-color); }
.error-text  { color: #999; margin-bottom: 2rem; max-width: 400px; }

.error-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--ease-smooth);
}

.error-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 77, 77, 0.3);
}

/* ==========================================================================
   DRAWER MOBILE
   ========================================================================== */

/* Escondido no desktop */
.hamburger,
.drawer,
.drawer-backdrop { display: none; }

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 1200;
  background: linear-gradient(165deg, rgba(18, 19, 24, 0.97), rgba(11, 15, 20, 0.99));
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open { transform: translateX(0); }

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.95rem;
}

.drawer-brand img { border-radius: 6px; }

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--ease-smooth);
}

.drawer-close:hover {
  background: rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.3);
  color: var(--accent-color);
}

/* Drawer nav list */
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.drawer-nav::-webkit-scrollbar { width: 4px; }
.drawer-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.drawer-list {
  list-style: none;
  padding: 0 0.75rem;
  margin: 0;
}

.drawer-list li {
  opacity: 0;
  transform: translateX(20px);
}

/* Staggered animation via CSS custom property --i */
.drawer.open .drawer-list li {
  animation: drawerItemIn 0.4s ease forwards;
  animation-delay: calc(0.03s + var(--i, 0) * 0.02s);
}

/* Gerar --i para nth-child(1..18), 19+ usa 19 */
.drawer.open .drawer-list li:nth-child(1)  { --i: 1; }
.drawer.open .drawer-list li:nth-child(2)  { --i: 2; }
.drawer.open .drawer-list li:nth-child(3)  { --i: 3; }
.drawer.open .drawer-list li:nth-child(4)  { --i: 4; }
.drawer.open .drawer-list li:nth-child(5)  { --i: 5; }
.drawer.open .drawer-list li:nth-child(6)  { --i: 6; }
.drawer.open .drawer-list li:nth-child(7)  { --i: 7; }
.drawer.open .drawer-list li:nth-child(8)  { --i: 8; }
.drawer.open .drawer-list li:nth-child(9)  { --i: 9; }
.drawer.open .drawer-list li:nth-child(10) { --i: 10; }
.drawer.open .drawer-list li:nth-child(11) { --i: 11; }
.drawer.open .drawer-list li:nth-child(12) { --i: 12; }
.drawer.open .drawer-list li:nth-child(13) { --i: 13; }
.drawer.open .drawer-list li:nth-child(14) { --i: 14; }
.drawer.open .drawer-list li:nth-child(15) { --i: 15; }
.drawer.open .drawer-list li:nth-child(16) { --i: 16; }
.drawer.open .drawer-list li:nth-child(17) { --i: 17; }
.drawer.open .drawer-list li:nth-child(18) { --i: 18; }
.drawer.open .drawer-list li:nth-child(n+19) { --i: 19; }

@keyframes drawerItemIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.drawer-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  margin: 2px 0;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--ease-smooth);
  position: relative;
  border: 1px solid transparent;
}

.drawer-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--accent-color);
  transition: transform 0.25s ease;
}

.drawer-list a:hover,
.drawer-list a:focus-visible {
  background: rgba(255, 77, 77, 0.08);
  border-color: rgba(255, 77, 77, 0.12);
  color: #fff;
  padding-left: 1.1rem;
}

.drawer-list a:hover::before,
.drawer-list a:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}

.drawer-list a:active {
  background: rgba(255, 77, 77, 0.15);
  transform: scale(0.98);
}

/* Drawer footer */
.drawer-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-cta--support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--ease-smooth);
}

.drawer-cta--support:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.drawer-cta--support .online-dot { margin-right: 0; }

/* Social buttons — consolidados com custom properties */
.drawer-social {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.drawer-social-btn {
  --btn-color: 255, 255, 255;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(var(--btn-color), 0.12);
}

.drawer-social-btn img {
  filter: brightness(0.9);
  transition: filter 0.2s ease;
}

.drawer-social-btn:hover img { filter: brightness(1.2); }

.drawer-social-btn:hover {
  background: rgba(var(--btn-color), 0.25);
  border-color: rgba(var(--btn-color), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--btn-color), 0.2);
}

/* Variantes — só mudam a custom property */
.drawer-social-btn--wa { --btn-color: 37, 211, 102; }
.drawer-social-btn--tg { --btn-color: 34, 158, 217; }
.drawer-social-btn--pp { --btn-color: 255, 196, 57; }

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1024px) {
  .row { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 768px) {
  .hamburger       { display: flex; }
  .drawer-backdrop { display: block; }
  .drawer          { display: flex; }
  .nav-area-desktop { display: none; }

  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .row { grid-template-columns: 1fr; gap: 1rem; }
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  body.drawer-open { overflow: hidden; }
  body.drawer-open .whatsapp-float { opacity: 0; pointer-events: none; }
}

@media (max-width: 640px) {
  .trust-items         { grid-template-columns: 1fr; }
  .product-card        { padding: 1.2rem; }
  .product-img         { max-width: 180px; height: 180px; }
  .catalog-title       { font-size: 1.4rem; }
  .trust-section       { padding: 2rem 1rem; }
  .trust-section h3    { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container    { padding: 12px; }
  .site-header  { padding: 0.5rem 0; }
  .logo-img     { height: 32px; }
  .logo-text    { font-size: 1rem; }
  .nav-cta      { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .breadcrumb   { font-size: 0.8rem; }

  .whatsapp-float { width: 60px; height: 60px; right: 15px; bottom: 15px; }
  .whatsapp-float img,
  .whatsapp-float .whatsapp-icon { width: 35px; height: 35px; }

  .product-title { font-size: 1.1rem; }
  .btn-download,
  .btn-tutorial  { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

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

.keyboard-navigation a:focus,
.keyboard-navigation button:focus,
.keyboard-navigation .product-btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
