/* ==========================================================================
   NGBackup — Components & Layout
   ========================================================================== */

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-2); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1rem; color: var(--text-muted); }
section { position: relative; }
::selection { background: rgba(45,212,191,.3); color: #fff; }

/* focus-visible for accessibility (AAA) */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-teal); color: #042a26; box-shadow: var(--glow-teal); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(45,212,191,.5), 0 14px 40px rgba(45,212,191,.30); color:#042a26; }
.btn-orange { background: var(--grad-orange); color: #2a1206; }
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(232,118,58,.30); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--teal); color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(14,17,22,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 8px rgba(45,212,191,.35)); }
.brand b { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: .94rem; padding: 8px 13px; border-radius: var(--r-sm); transition: color var(--t), background var(--t); }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--teal); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; }
.lang button { font-family: inherit; background: none; border: 0; color: var(--text-faint); font-weight: 700; font-size: .78rem; padding: 4px 9px; border-radius: var(--r-pill); cursor: pointer; transition: var(--t); }
.lang button.on { background: var(--teal-fill); color: #042a26; }
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; background: var(--grad-hero); overflow: hidden; }
.hero::after { /* faint grid */
  content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .12;
  mask-image: radial-gradient(800px 500px at 70% 0%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 900; }
.hero .sub { font-size: 1.18rem; max-width: 33ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: var(--r-pill);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: float 6s var(--ease) infinite; }
.hero-art .ring { position: absolute; inset: 6% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.20), transparent 65%); filter: blur(8px); z-index:-1; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ---------- Metrics / trust bar ---------- */
.metrics { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.metrics .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.metric { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.metric:last-child { border-right: 0; }
.metric .n { font-size: 2.1rem; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .l { font-size: .85rem; color: var(--text-muted); }

/* ---------- Generic section ---------- */
.sec { padding: 84px 0; }
.sec-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sec-head p { font-size: 1.08rem; }

/* ---------- Cards / grids ---------- */
.cards { display: grid; gap: var(--gap); }
.cards.c4 { grid-template-columns: repeat(4,1fr); }
.cards.c3 { grid-template-columns: repeat(3,1fr); }
.cards.c2 { grid-template-columns: repeat(2,1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow); transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-sm);
  background: rgba(45,212,191,.10); color: var(--teal); margin-bottom: 16px; border: 1px solid rgba(45,212,191,.22);
}
.card.orange .ic { background: rgba(232,118,58,.10); color: var(--orange); border-color: rgba(232,118,58,.22); }
.card h3 { font-size: 1.18rem; }
.card p { font-size: .95rem; margin: 0; }
.ic svg { width: 24px; height: 24px; }

/* ---------- Plugin grid ---------- */
.cat { margin-bottom: 40px; }
.cat-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.cat-title .bar { width: 4px; height: 22px; border-radius: 4px; background: var(--grad-teal); }
.plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.plugin {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: var(--t); color: var(--text);
}
.plugin:hover { border-color: var(--teal); background: var(--surface-2); transform: translateY(-2px); }
.plugin .pic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(45,212,191,.08); color: var(--teal); border: 1px solid var(--border); }
.plugin .pic svg { width: 20px; height: 20px; }
.plugin b { font-size: .95rem; font-weight: 700; }
.plugin span { font-size: .78rem; color: var(--text-faint); display: block; }

/* ---------- Product UI preview (the dashboard centerpiece) ---------- */
.preview-stage { background: var(--bg-2); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.dash {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--bg);
  box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 220px 1fr;
}
.dash-side { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; }
.dash-side .brand { font-size: 1rem; margin-bottom: 22px; padding: 0 6px; }
.dash-side .nav-i { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-muted); font-weight: 600; font-size: .9rem; margin-bottom: 3px; position: relative; }
.dash-side .nav-i svg { width: 18px; height: 18px; }
.dash-side .nav-i:hover { background: rgba(255,255,255,.03); color: var(--text); }
.dash-side .nav-i.active { color: var(--teal); background: rgba(45,212,191,.08); }
.dash-side .nav-i.active::before { content:""; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:3px; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.dash-side .act { margin-top: 18px; display: grid; gap: 9px; }
.dash-main { padding: 22px; display: grid; gap: 18px; background:
  radial-gradient(600px 300px at 90% -20%, rgba(45,212,191,.06), transparent 60%); }
.dash-bar { display: flex; align-items: center; justify-content: space-between; }
.dash-bar h4 { margin: 0; font-size: 1.15rem; }
.dash-bar .search { font-size:.8rem; color: var(--text-faint); border:1px solid var(--border); background: var(--surface); padding:7px 12px; border-radius: var(--r-pill); }
.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.kpi { background: var(--surface); border:1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.kpi .k { font-size: .76rem; color: var(--text-muted); display:flex; align-items:center; gap:6px; }
.kpi .v { font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.kpi .v.teal { color: var(--teal); } .kpi .v.orange { color: var(--orange); }
.kpi .trend { font-size: .72rem; color: var(--teal); }
.charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.panel { background: var(--surface); border:1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h5 { margin: 0 0 4px; font-size: .98rem; font-weight: 700; }
.panel .cap { font-size: .76rem; color: var(--text-faint); margin-bottom: 12px; }
.donut-wrap { display:flex; align-items:center; gap: 18px; }
.legend { display: grid; gap: 8px; font-size: .8rem; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 8px; }

/* ---------- Tables (zebra, roomy, formatted) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tbl th { text-align: left; font-weight: 700; color: var(--text-faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.tbl tbody tr:nth-child(odd) { background: rgba(255,255,255,.018); }
.tbl tbody tr:hover { background: var(--surface-3); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); color: var(--text); }
.tbl .name { color: var(--text); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.badge::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--teal); background: rgba(45,212,191,.10); }
.badge.run { color: var(--info); background: rgba(88,166,255,.12); }
.badge.run::before { animation: pulse 1.3s infinite; }
.badge.warn { color: var(--warn); background: rgba(245,166,35,.12); }
.badge.err { color: var(--error); background: rgba(255,107,107,.12); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border:1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.compare th, .compare td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th { background: var(--surface); font-size: .9rem; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text); font-weight: 600; }
.compare .us { background: rgba(45,212,191,.06); }
.compare .us-h { color: var(--teal); }
.compare .yes { color: var(--teal); font-weight: 800; }
.compare .no { color: var(--error); }
.compare .mid { color: var(--warn); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow); transition: var(--t); }
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tier.feat { border-color: var(--teal); box-shadow: var(--glow-teal); position: relative; }
.tier.feat::before { content:"Mais popular"; position:absolute; top:-12px; left:50%; transform:translateX(-50%); background: var(--grad-teal); color:#042a26; font-size:.72rem; font-weight:800; padding:5px 14px; border-radius: var(--r-pill); }
.tier h3 { font-size: 1.3rem; }
.tier .price { font-size: 2rem; font-weight: 900; margin: 8px 0; }
.tier .price small { font-size: .85rem; font-weight: 600; color: var(--text-faint); }
.tier .desc { font-size: .9rem; min-height: 42px; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; font-size: .9rem; color: var(--text-muted); }
.tier li { display: flex; gap: 9px; align-items: flex-start; }
.tier li svg { width: 17px; height: 17px; color: var(--teal); flex: 0 0 17px; margin-top: 3px; }
.tier .btn { margin-top: auto; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-teal); border-radius: var(--r-lg); padding: 54px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 80% 120%, rgba(0,0,0,.25), transparent); }
.cta-band h2 { color: #042a26; position: relative; font-size: 2rem; }
.cta-band p { color: #063b35; position: relative; font-weight: 500; opacity:.9; }
.cta-band .btn { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cinfo { display: grid; gap: 14px; }
.crow { display: flex; align-items: center; gap: 15px; padding: 16px 18px; background: var(--surface); border:1px solid var(--border); border-radius: var(--r); transition: var(--t); }
.crow:hover { border-color: var(--teal); }
.crow .ci { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(45,212,191,.10); color: var(--teal); border:1px solid rgba(45,212,191,.2); }
.crow .ci svg { width: 20px; height: 20px; }
.crow .lab { font-size: .76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.crow .val { font-weight: 600; color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: .95rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; transition: var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); background: var(--surface-2); outline: none; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 16px; }
.footer a { display: block; color: var(--text-muted); font-size: .92rem; padding: 5px 0; }
.footer a:hover { color: var(--teal); }
.footer .brand { margin-bottom: 14px; }
.footer .tag { font-size: .9rem; max-width: 30ch; }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface); border:1px solid var(--border); padding:0; }
.foot-social a:hover { border-color: var(--teal); color: var(--teal); }
.foot-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; font-size: .84rem; color: var(--text-faint); }
.footer-bottom .ng { color: var(--text-muted); }
.footer-bottom .ng b { color: var(--teal); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (sub-pages) ---------- */
.phero { padding: 64px 0 36px; background: var(--grad-hero); text-align: center; border-bottom: 1px solid var(--border); }
.phero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.phero p { font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
  .cards.c4, .kpis, .tiers, .metrics .wrap { grid-template-columns: repeat(2,1fr); }
  .cards.c3 { grid-template-columns: repeat(2,1fr); }
  .charts, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 26px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .nav-links { display: none; }
  .hamburger { display: inline-grid; }
  .metric { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .cards.c4, .cards.c3, .cards.c2, .kpis, .tiers, .metrics .wrap, .compare { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .cta-band { padding: 34px 22px; }
  .sec { padding: 56px 0; }
}

/* mobile drawer */
.drawer { position: fixed; inset: var(--nav-h) 0 0; background: rgba(11,14,18,.98); backdrop-filter: blur(8px); z-index: 99; transform: translateX(100%); transition: transform var(--t); padding: 24px; display: grid; gap: 6px; align-content: start; }
.drawer.open { transform: none; }
.drawer a { color: var(--text); font-size: 1.1rem; font-weight: 600; padding: 14px 10px; border-bottom: 1px solid var(--border); }

/* ---------- Pricing table (ported PHBackup model) ---------- */
.btn-sm { padding: 8px 15px; font-size: .82rem; }
.pricetable th, .pricetable td { text-align: left; }
.pricetable th.num, .pricetable td.num { text-align: right; font-family: var(--font-mono); color: var(--text); }
.pricetable tbody tr:hover { background: var(--surface-2); }
.pricetable td b { color: var(--text); font-size: .98rem; }
.pricetable .us-h b { color: var(--teal); }
.pricetable .btn { white-space: nowrap; }
@media (max-width:560px){ .pricetable .btn-sm{ padding:7px 11px; font-size:.76rem; } }

/* ---------- Floating WhatsApp badge + form status ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); color: #fff; box-shadow: 0 14px 36px rgba(37,211,102,.45); }
.wa-fab svg { width: 31px; height: 31px; }
@media (max-width:560px){ .wa-fab{ width:52px; height:52px; right:16px; bottom:16px; } .wa-fab svg{ width:27px;height:27px; } }
#lead_status { font-size: .9rem; margin: 12px 0 0; text-align: center; min-height: 1.2em; }
#lead_status.lead-ok  { color: var(--teal); }
#lead_status.lead-err { color: var(--error); }

/* responsive auto-fit card grid (5-up benefits row) */
.cards.cflex { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width:560px){ .cards.cflex { grid-template-columns: 1fr; } }

/* ---- mobile nav overflow fix + clean 5-up benefits ---- */
html { overflow-x: hidden; max-width: 100%; }
.nav .wrap { min-width: 0; }
.cards.cflex { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px){
  .cards.cflex { grid-template-columns: repeat(2, 1fr); }
  .nav-right > .btn { display: none; }   /* Login / Try Community move into the drawer */
}
@media (max-width: 560px){ .cards.cflex { grid-template-columns: 1fr; } }
/* drawer CTAs */
.drawer .btn { width: 100%; margin-top: 10px; }
