/* Floresta TV — tema escuro "Clareira" (clareira luminosa na mata, à noite).
   Paleta: verde-mata quase-preto + jade + violeta de luar, com vaga-lumes
   dourados como detalhe decorativo pontual.
   Shape language própria: ".leaf" — card com um veio-de-folha decorativo em
   SVG inline no canto (vetor orgânico, não clip-path/gradient-stripe/
   radial-dots/mask-corner/box-shadow-glow/rotated-rectangle — mecanismo
   inédito no histórico de projetos). Fonte de título: Spectral (serif
   literário, uso inédito). Botão primário com "gota n'água": anel que se
   expande e esmaece no hover, feito pra lembrar uma gota caindo numa
   folha. */

:root {
  --bg: #0A1510;
  --bg-panel: #11211A;
  --bg-panel-2: #16281F;
  --ink: #EAF2EC;
  --ink-soft: #AFC7BB;
  --ink-faint: #76907F;
  --jade: #2ED9A6;
  --jade-dark: #22B587;
  --jade-ink: #06130D;
  --violet: #8C7AE6;
  --violet-dark: #6F5ED1;
  --gold: #FFD873;
  --line: rgba(234, 242, 236, 0.09);
  --line-strong: rgba(234, 242, 236, 0.17);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.4);
  --footer-bg: #060C09;
  --footer-text: #9FB6A7;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand span {
  font-family: "Spectral", "Inter", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--jade); text-decoration: none; }
a:hover { color: var(--violet); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
section { padding: 72px 0; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--jade);
  margin-bottom: 10px;
}

/* ---------- Ícones ---------- */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--jade);
}
.icon svg { width: 100%; height: 100%; }
.icon.alt { color: var(--violet); }
.device-icon { display: inline-flex; width: 30px; height: 30px; color: var(--jade); }
.device-icon svg { width: 100%; height: 100%; }
.page-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--jade) 16%, transparent);
  color: var(--jade); margin-bottom: 14px;
}
.page-icon-badge svg { width: 24px; height: 24px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.header-inner {
  width: min(1120px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand span { font-size: 1.1rem; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.95rem;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--jade); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; width: 42px; height: 42px; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--line); border-top: none;
    border-radius: 0 0 16px 16px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .main-nav a { display: block; padding: 12px 24px; border-bottom: none; border-left: 3px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-left-color: var(--jade); background: color-mix(in srgb, var(--jade) 8%, transparent); }
}

/* ---------- Botões ---------- */
.btn-primary, .btn-secondary {
  position: relative; overflow: visible;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 12px;
  border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--jade); color: var(--jade-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent; color: var(--violet);
  border: 1.5px solid color-mix(in srgb, var(--violet) 55%, var(--line-strong));
}
.btn-secondary:hover { background: color-mix(in srgb, var(--violet) 12%, transparent); }

/* "Gota n'água" — anel que se expande e esmaece no hover, como uma gota de
   chuva caindo numa folha. Mecanismo de hover inédito (expanding ring),
   distinto de peel-corner/light-sweep/neon-pulse/icon-reveal/shadow-lift/
   underline-wipe/draw-in-corner-bracket já usados. */
.btn-primary::after, .btn-secondary::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid currentColor;
  opacity: 0; pointer-events: none;
}
.btn-primary:hover::after, .btn-secondary:hover::after {
  animation: dropRipple 0.65s ease-out;
}
@keyframes dropRipple {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(7); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::after, .btn-secondary:hover::after { animation: none !important; opacity: 0 !important; }
}

/* ---------- Shape language: .leaf (veio-de-folha decorativo) ---------- */
.leaf {
  position: relative;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  overflow: hidden;
}
.leaf > *:not(.vein-deco):not(.plan-badge) { position: relative; z-index: 1; }
.vein-deco {
  position: absolute; top: 8px; right: 8px; width: 64px; height: 64px;
  color: var(--jade); opacity: 0.16; pointer-events: none; z-index: 0;
}
.leaf.leaf-violet .vein-deco { color: var(--violet); }
.leaf.leaf-violet { border-color: color-mix(in srgb, var(--violet) 40%, var(--line-strong)); }

/* ---------- Hero: "clareira luminosa" ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background: radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--jade) 16%, transparent), transparent 60%),
              radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.hero .lead { font-size: 1.14rem; max-width: 520px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.trust-chip {
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-panel) 70%, transparent);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.clareira { position: relative; padding: 18px; }
.clareira-glow {
  position: absolute; inset: -6% -4%;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 68%);
  filter: blur(6px);
  z-index: 0;
}
.firefly {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold), 0 0 16px color-mix(in srgb, var(--gold) 55%, transparent);
  animation: fireflyPulse 3.4s ease-in-out infinite;
  z-index: 1;
}
@keyframes fireflyPulse {
  0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.85); }
  50% { opacity: 1; transform: translateY(-7px) scale(1.1); }
}
.clareira-card {
  position: relative; z-index: 2;
  background: var(--bg-panel-2);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 26px;
}
.clareira-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 14px; }
.clareira-layers li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: layerIn 0.7s ease forwards;
}
.clareira-layers li:last-child { border-bottom: none; }
.clareira-layers li .dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--jade); box-shadow: 0 0 8px color-mix(in srgb, var(--jade) 60%, transparent);
}
.clareira-layers li:nth-child(even) .dot { background: var(--violet); box-shadow: 0 0 8px color-mix(in srgb, var(--violet) 60%, transparent); }
.clareira-layers li:nth-child(1) { animation-delay: 0.15s; }
.clareira-layers li:nth-child(2) { animation-delay: 0.45s; }
.clareira-layers li:nth-child(3) { animation-delay: 0.75s; }
@keyframes layerIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.clareira-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.86rem; color: var(--ink-faint); }
.clareira-note svg { width: 16px; height: 16px; color: var(--jade); }

@media (prefers-reduced-motion: reduce) {
  .firefly, .clareira-layers li { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .clareira { max-width: 480px; margin: 0 auto; }
}

/* ---------- Page hero (páginas institucionais) ---------- */
.page-hero { padding: 48px 0 20px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 760px; }
.page-hero .lead { max-width: 620px; font-size: 1.08rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Legal (termos/privacidade) ---------- */
.legal-body { max-width: 740px; margin: 0 auto; }
.legal-body h2 { margin-top: 1.5em; font-size: 1.25rem; }
.legal-body p { color: var(--ink-soft); }

/* ---------- Grids genéricos ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Planos ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; display: flex; flex-direction: column;
}
.plan-card.featured { border-color: color-mix(in srgb, var(--violet) 55%, var(--line-strong)); padding-top: 52px; }
.plan-badge {
  position: absolute; top: 20px; right: 20px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--violet); color: #11081F;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.plan-badge svg { width: 11px; height: 11px; stroke-width: 3; flex-shrink: 0; }
.plan-name { font-size: 1.1rem; margin-bottom: 4px; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--ink); font-family: "Spectral", serif; }
.plan-price span { font-size: 1rem; color: var(--ink-faint); font-family: "Inter", sans-serif; font-weight: 600; }
.plan-permonth { font-size: 0.85rem; color: var(--jade); font-weight: 700; margin: 4px 0 10px; }
.plan-note { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 18px; }
.plan-bullets { margin: 0 0 24px; flex-grow: 1; }
.plan-bullets li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.92rem; color: var(--ink-soft); }
.plan-bullets li svg { width: 17px; height: 17px; color: var(--jade); flex-shrink: 0; margin-top: 2px; }
.plan-card .btn-primary, .plan-card .btn-secondary { justify-content: center; width: 100%; }

/* ---------- Cards genéricos ---------- */
.card { }
.card h3 { font-size: 1.12rem; }
.card p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-panel); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--ink);
}
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--jade); flex-shrink: 0; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; border-radius: 26px; padding: 64px 30px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-final p { max-width: 560px; margin: 0 auto 26px; }

/* ---------- Device pages ---------- */
.device-hero { text-align: center; padding-top: 52px; }
.device-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--jade) 18%, transparent); color: var(--jade);
  font-weight: 800; font-family: "Spectral", serif; margin-bottom: 14px;
}
.device-grid-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.device-mini-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px; text-align: center; border-radius: 16px;
  background: var(--bg-panel); border: 1px solid var(--line-strong);
}
.device-mini-card:hover { border-color: color-mix(in srgb, var(--jade) 50%, var(--line-strong)); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card img { border-radius: 16px 16px 0 0; }
.post-card .post-body { padding: 22px 24px 26px; }
.post-card .post-meta { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { margin-top: 1.6em; font-size: 1.4rem; }
.post-content p, .post-content li { color: var(--ink-soft); font-size: 1.02rem; }
.post-content img { border-radius: 16px; margin: 24px 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--jade); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer-inner {
  width: min(1120px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { font-family: "Inter", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--footer-text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--jade); }
.site-footer p, .site-footer .brand span { color: var(--footer-text); }
.footer-brand p { font-size: 0.92rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--jade); color: var(--jade-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 0; }
.notfound .code { font-size: 5rem; font-family: "Spectral", serif; color: var(--jade); }
