/* PontoGate — design system (Montserrat, preto premium #080B14, azul elétrico → roxo) */
:root {
  --bg: #080B14; --bg2: #0B0F1C; --surface: #0F1424; --surface2: #151B30; --surface3: #1B2340;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #EAEEFA; --muted: #8F98B5; --faint: #5E6785;
  --blue: #2F6BFF; --blue2: #4C8DFF; --violet: #7B4DFF; --cyan: #29D3FF;
  --ok: #2FD39A; --warn: #FFB547; --err: #FF5A6E; --info: #4C8DFF;
  --grad: linear-gradient(135deg, #2F6BFF 0%, #7B4DFF 100%);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(47,107,255,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue2); text-decoration: none; } a:hover { color: #8db4ff; }
h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; } h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
code, pre, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .right { text-align: right; } .center { text-align: center; }
.mt { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb { margin-bottom: 1rem; } .flex { display: flex; gap: 12px; align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(76,141,255,.55)); }
.logo:hover { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; color: var(--text); background: var(--surface2); }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -8px rgba(47,107,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(76,141,255,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: transparent; border-color: var(--line2); } .btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-danger { background: rgba(255,90,110,.12); border-color: rgba(255,90,110,.4); color: #ff8b99; }
.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: 10px; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* site header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(8,11,20,.72); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .92rem; } .nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.05); }
.nav .btn { margin-left: 8px; } #nav-toggle, .nav-burger { display: none; }
.sandbox-banner { background: linear-gradient(90deg, rgba(255,181,71,.16), rgba(255,181,71,.06)); border-bottom: 1px solid rgba(255,181,71,.3); color: #ffd08a; text-align: center; padding: 7px 12px; font-size: .82rem; font-weight: 600; }
.site-banner { background: var(--grad); color: #fff; text-align: center; padding: 9px 14px; font-size: .88rem; font-weight: 600; }

/* hero */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 520px; background: radial-gradient(600px 300px at 20% 30%, rgba(47,107,255,.35), transparent 70%), radial-gradient(500px 300px at 80% 20%, rgba(123,77,255,.30), transparent 70%); pointer-events: none; }
.hero .grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero p.lead { font-size: 1.12rem; max-width: 560px; } .hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.03); margin-bottom: 1.2rem; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); display: inline-block; }
.phone { background: linear-gradient(160deg, var(--surface2), var(--surface)); border: 1px solid var(--line2); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); max-width: 360px; margin-left: auto; position: relative; }
.phone::after { content: ''; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; background: linear-gradient(160deg, rgba(76,141,255,.6), transparent 40%, rgba(123,77,255,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; display: grid; place-items: center; } .qr-box svg { width: 100%; height: auto; max-width: 260px; display: block; }

/* sections */
.section { padding: 70px 0; } .section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; } .eyebrow { color: var(--blue2); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; } .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.card.glow:hover { border-color: rgba(76,141,255,.45); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; } .card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 8px 24px -8px rgba(76,141,255,.7); } .icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps { counter-reset: s; } .step { display: flex; gap: 16px; } .step::before { counter-increment: s; content: counter(s); flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
pre.code { background: #060913; border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; font-size: .82rem; line-height: 1.7; color: #cdd6f4; margin: 0; }
pre.code .k { color: #7aa2ff; } pre.code .s { color: #8ee2b8; } pre.code .c { color: #5e6785; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; } .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: var(--surface); margin-bottom: 10px; } .faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; } .faq summary::after { content: '+'; color: var(--blue2); font-size: 1.3rem; line-height: 1; } .faq details[open] summary::after { content: '–'; } .faq details p { margin: .8rem 0 0; }
.prose { max-width: 780px; } .prose h2 { margin-top: 2rem; font-size: 1.4rem; } .prose p, .prose li { color: #b7bfd8; } .prose ul { padding-left: 1.2rem; }
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; background: var(--bg2); margin-top: 0; } .site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; } .site-footer h4 { font-size: .85rem; color: var(--text); text-transform: uppercase; letter-spacing: .1em; } .site-footer a { display: block; color: var(--muted); padding: 3px 0; font-size: .9rem; } .legal { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font-size: .78rem; color: var(--faint); }

/* forms */
.form-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; position: relative; } .form-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 50% 0%, rgba(47,107,255,.22), transparent 70%); pointer-events: none; }
.auth-card { width: 100%; max-width: 480px; position: relative; } .auth-card.wide { max-width: 640px; }
label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=file], select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: #0A0E1B; color: var(--text); font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(76,141,255,.2); }
textarea { min-height: 110px; resize: vertical; } select option { background: #0A0E1B; }
.field { margin-bottom: 16px; } .field .err { color: var(--err); font-size: .78rem; margin-top: 4px; } .hint { font-size: .76rem; color: var(--faint); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); } .check input { margin-top: 3px; accent-color: var(--blue); }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .88rem; border: 1px solid; } .flash.ok { background: rgba(47,211,154,.08); border-color: rgba(47,211,154,.35); color: #7fe8c3; } .flash.err { background: rgba(255,90,110,.08); border-color: rgba(255,90,110,.35); color: #ff9aa7; } .flash.warn { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.35); color: #ffd08a; } .flash.info { background: rgba(76,141,255,.08); border-color: rgba(76,141,255,.35); color: #a9c5ff; }

/* app shell (painel + admin) */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .logo { padding: 4px 10px 18px; } .side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: .9rem; margin-bottom: 2px; } .side nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; } .side nav a.active { background: linear-gradient(90deg, rgba(47,107,255,.22), rgba(123,77,255,.08)); color: #fff; box-shadow: inset 2px 0 0 var(--blue2); }
.side .nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); padding: 14px 12px 6px; font-weight: 700; }
.side .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; }
.main { min-width: 0; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(8,11,20,.8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.content { padding: 28px; max-width: 1280px; } .page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; } .page-title h1 { font-size: 1.7rem; margin: 0; }
.env-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 3px; } .env-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .78rem; padding: 7px 14px; border-radius: 9px; cursor: pointer; } .env-switch button.on-sandbox { background: rgba(255,181,71,.18); color: #ffd08a; } .env-switch button.on-live { background: rgba(47,211,154,.16); color: #7fe8c3; } .env-switch button:disabled { opacity: .4; cursor: not-allowed; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; } .stat { padding: 20px; } .stat .lbl { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; } .stat .val { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; } .stat .sub { font-size: .78rem; color: var(--faint); margin-top: 2px; } .stat.primary { background: linear-gradient(135deg, rgba(47,107,255,.35), rgba(123,77,255,.22)); border-color: rgba(76,141,255,.45); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; } th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; } td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; } tr:hover td { background: rgba(255,255,255,.015); } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.b-paid, .b-completed, .b-approved, .b-active, .b-delivered, .b-processed { background: rgba(47,211,154,.1); color: #6fe0b9; border-color: rgba(47,211,154,.35); }
.b-pending, .b-requested, .b-pending_approval, .b-processing, .b-received, .b-in_review, .b-none { background: rgba(255,181,71,.1); color: #ffcb7a; border-color: rgba(255,181,71,.35); }
.b-expired, .b-cancelled, .b-ignored, .b-duplicate { background: rgba(143,152,181,.1); color: #aab2cc; border-color: rgba(143,152,181,.3); }
.b-failed, .b-rejected, .b-blocked, .b-error, .b-refunded { background: rgba(255,90,110,.1); color: #ff8b99; border-color: rgba(255,90,110,.35); }
.b-sandbox { background: rgba(255,181,71,.12); color: #ffcb7a; border-color: rgba(255,181,71,.4); } .b-live { background: rgba(47,211,154,.12); color: #6fe0b9; border-color: rgba(47,211,154,.4); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; } .filters .field { margin: 0; min-width: 150px; flex: 1; }
.pager { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; } .pager a, .pager span { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line2); font-size: .82rem; color: var(--muted); } .pager .cur { background: var(--grad); color: #fff; border-color: transparent; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: .88rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.copy { background: #060913; border: 1px dashed var(--line2); border-radius: 12px; padding: 12px; font-size: .74rem; word-break: break-all; color: #aeb8d8; }
.chart { width: 100%; height: auto; } .chart text { fill: var(--faint); font-size: 10px; font-family: Montserrat, sans-serif; }
.tl { border-left: 2px solid var(--line2); margin-left: 6px; padding-left: 18px; } .tl > div { position: relative; padding-bottom: 14px; font-size: .84rem; } .tl > div::before { content: ''; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.m-menu { display: none; }

@media (max-width: 980px) {
  .hero .grid, .grid3, .grid2, .site-footer .cols { grid-template-columns: 1fr; } .grid4, .stats { grid-template-columns: repeat(2, 1fr); } .phone { margin: 0 auto; }
  .app { grid-template-columns: 1fr; } .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-102%); transition: transform .25s; } #side-toggle:checked ~ .app .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6); }
  .m-menu { display: inline-flex; } .content { padding: 18px 16px; } .topbar { padding: 12px 16px; }
  .nav-burger { display: inline-flex; padding: 8px; border-radius: 10px; border: 1px solid var(--line2); cursor: pointer; } .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 20px 20px; } #nav-toggle:checked ~ .nav { display: flex; } .nav .btn { margin: 8px 0 0; }
  .site-header .bar { position: relative; } .hero { padding: 50px 0 40px; } .section { padding: 48px 0; }
}
@media (max-width: 560px) { .grid4, .stats, .row2 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .stat .val { font-size: 1.4rem; } table { font-size: .8rem; } h1 { font-size: 1.9rem; } }
@media print { .side, .topbar, .filters, .btn { display: none !important; } body { background: #fff; color: #000; } }
.grid2 { align-items: start; }

.grid2 > *, .grid3 > *, .grid4 > *, .hero .grid > * { min-width: 0; }
@media (max-width: 980px) { .grid2, .stats { grid-template-columns: 1fr !important; } .stats { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr !important; } }
