/* QClave — tema das páginas públicas (home, /docs…): verde OTUNAC sobre fundo claro.
   Carregado só quando a página faz {% set public_layout = true %} (ver base.html).
   As páginas internas (painel, admin) continuam no tema escuro do <style> do base.html.
   Os tokens antigos (--bg, --accent, --accent2…) são redefinidos aqui para que os
   componentes compartilhados do base (chat, cookies, flash) acompanhem o tema. */

body.pub {
  --brand-950: #04110e; --brand-900: #052e26; --brand-800: #064e3b; --brand-700: #065f46;
  --brand-600: #00876a;  /* texto/links da marca sobre branco (AA) */
  --brand-500: #00cda0;  /* preenchimento: botões, marcadores */
  --brand-300: #6ee7b7; --brand-200: #a7f3d0; --brand-100: #d1fae5; --brand-50: #ecfdf5;
  --violet-300: #c4b5fd; --violet-500: #a08df5; --violet-700: #5b4bc4;
  --ink: #0f172a; --ink-2: #334155; --muted: #566173; --line: #e5e9f0;
  --surface: #fff; --canvas: #f6f7fb;
  --danger: #b42318;
  --radius: .9rem; --radius-lg: 1.25rem;
  --shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.04);
  --shadow-2: 0 18px 40px -18px rgba(15,23,42,.25);
  --hero-bg: radial-gradient(620px 320px at 92% -10%, rgba(160,141,245,.28), transparent 60%),
             radial-gradient(520px 320px at -5% 110%, rgba(0,205,160,.30), transparent 60%),
             linear-gradient(150deg, #04110e 0%, #062a22 55%, #064e3b 100%);
  --code-bg: #0d1117;
  --wrap: 1160px;
  --gutter: 2rem;

  /* aliases do tema antigo */
  --bg: var(--surface); --surface2: var(--canvas); --border: var(--line); --text: var(--ink);
  --accent: var(--brand-600); --accent2: var(--brand-600); --accent3: var(--danger);
  --gold: var(--violet-700); --font-display: 'Inter', system-ui, sans-serif;

  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767.98px) { body.pub { --gutter: 1rem; } }

.pub a { color: var(--brand-600); }
.pub code { font-family: var(--font-mono); }
.pub :focus-visible { outline: 3px solid rgba(0,205,160,.6); outline-offset: 2px; border-radius: .35rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Botões ──────────────────────────────────────────────────────── */
.pub .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: .75rem;
  font-family: var(--font-display); font-size: .95rem; font-weight: 650; letter-spacing: 0;
  border: 1px solid transparent; text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.pub .btn-primary { background: var(--brand-500); color: var(--brand-950); border-color: var(--brand-500); }
.pub .btn-primary:hover { background: #19dcb0; border-color: #19dcb0; color: var(--brand-950); transform: none; box-shadow: 0 8px 24px -10px rgba(0,205,160,.7); }
.pub .btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.28); }
.pub .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.pub .btn-outline { background: var(--surface); color: var(--ink); border: 1px solid #d5dbe5; }
.pub .btn-outline:hover { background: var(--canvas); color: var(--ink); border-color: #c3cad6; }
.pub .btn-sm { min-height: 40px; padding: .5rem .95rem; font-size: .9rem; }
.pub .btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; }
.pub .btn-block { width: 100%; }
@media (max-width: 767.98px) { .pub .btn-sm { min-height: 44px; } }

/* ── Topo público ────────────────────────────────────────────────── */
.pub-nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pub-nav-inner {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.pub-logo {
  display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0;
  min-height: 44px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.pub .pub-logo { color: var(--ink); }
.pub-logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: block;
}
.pub-links { display: flex; align-items: center; gap: .25rem; margin-right: auto; }
.pub-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .7rem; border-radius: .6rem;
  color: var(--ink-2); font-size: .92rem; font-weight: 550; text-decoration: none; white-space: nowrap;
}
.pub-links a:hover { color: var(--ink); background: var(--canvas); }
.pub-links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.pub-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.pub-login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .75rem; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.pub-login:hover { color: var(--brand-600); }

.pub .nav-hamburger { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; }
.pub .nav-hamburger span { width: 20px; background: var(--ink); }
.pub .nav-drawer { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); padding: .5rem var(--gutter) 1rem; }
.pub .nav-drawer a { min-height: 48px; padding: 0 .25rem; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 1rem; }
.pub .nav-drawer a:hover { color: var(--ink); }
.pub .nav-drawer a.drawer-cta { color: var(--brand-700); font-weight: 700; }

@media (max-width: 960px) {
  .pub-links, .pub-login { display: none; }
  .pub .nav-hamburger { display: flex; }
}
@media (min-width: 960.02px) { .pub .nav-drawer { display: none !important; } }
@media (max-width: 359.98px) { .pub-actions .btn { display: none; } }

/* ── Rodapé público ──────────────────────────────────────────────── */
.pub-footer { background: var(--brand-950); color: #94a3b8; }
.pub-footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
}
.pub-footer .pub-logo { color: #fff; }
.pub-footer-brand p { margin-top: .9rem; max-width: 32ch; font-size: .92rem; line-height: 1.6; }
.pub-footer-col { display: flex; flex-direction: column; gap: .15rem; }
.pub-footer-col h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-300); margin-bottom: .5rem; }
.pub-footer-col a { color: #cbd5e1; text-decoration: none; font-size: .93rem; padding: .3rem 0; }
.pub-footer-col a:hover { color: #fff; }
.pub-footer-brand a, .pub-footer-base a { color: var(--brand-300); text-decoration: none; font-weight: 650; }
.pub-footer-brand a:hover, .pub-footer-base a:hover { color: #fff; text-decoration: underline; }
.pub-links a.pub-link-b2b { color: var(--violet-700); }
.pub-footer-base { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gutter) 1.75rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
@media (max-width: 767.98px) {
  .pub-footer-inner { grid-template-columns: 1fr 1fr; padding-top: 2.5rem; }
  .pub-footer-brand { grid-column: 1 / -1; }
  .pub-footer-col a { display: flex; align-items: center; min-height: 44px; padding: 0; }
}

/* ── Componentes compartilhados do base no tema público ──────────── */
.pub .flash.success { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.pub .flash.error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.pub .cookie-consent { box-shadow: var(--shadow-2); }
.pub .cookie-btn { min-height: 44px; font-family: var(--font-display); }
.pub .cookie-btn-accept { background: var(--brand-500); color: var(--brand-950); }
.pub #chat-fab { background: var(--brand-600); box-shadow: 0 8px 24px -8px rgba(0,135,106,.6); }

/* ── Tipografia e seções da landing ──────────────────────────────── */
.lp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { color: var(--brand-600); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .75rem; }
.eyebrow-light { color: var(--brand-300); }
.lp h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.lp h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin-bottom: .4rem; }
.lp p { color: var(--ink-2); }
.lp code { font-size: .86em; background: var(--canvas); border: 1px solid var(--line); border-radius: .35rem; padding: .05em .35em; color: var(--brand-800); overflow-wrap: anywhere; }

.lp-sec { padding: 5.5rem 0; }
.lp-sec-soft { background: var(--canvas); }
.lp-sec-head { max-width: 740px; margin-bottom: 2.75rem; }
.lp-sec-lead { margin-top: .9rem; font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 767.98px) {
  .lp-sec { padding: 3.5rem 0; }
  .lp-sec-head { margin-bottom: 2rem; }
}

.lp-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 650; text-decoration: none; color: var(--brand-600); }
.lp-link:hover { color: var(--brand-800); }

/* Revelação ao rolar: só quando o JS da página marca .will-reveal (conteúdo visível sem JS) */
.js .reveal.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.will-reveal.visible { opacity: 1; transform: none; }

/* ── Hero ────────────────────────────────────────────────────────── */
.lp-hero { position: relative; overflow: hidden; background: var(--hero-bg); color: #fff; padding: 4.5rem 0 5rem; }
.lp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; }
.lp .lp-badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: var(--brand-200); font-size: .82rem; font-weight: 600;
}
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(0,205,160,.2); flex-shrink: 0; }
.lp-hero h1 { margin: 1.4rem 0 1.1rem; font-size: clamp(2.15rem, 4.8vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; color: #fff; }
.lp-grad {
  background: linear-gradient(110deg, var(--brand-300) 10%, var(--brand-500) 45%, var(--violet-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-inline-end: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lp-hero .lp-lead { max-width: 560px; font-size: 1.12rem; line-height: 1.7; color: #cbd5e1; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.lp-cta-center { justify-content: center; }
.lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.lp-chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e2f7ef; font-size: .86rem;
}
.lp-chips i { color: var(--brand-300); }

/* Janela de código */
.lp-code {
  min-width: 0; background: var(--code-bg); border: 1px solid rgba(255,255,255,.1); border-radius: 1rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,205,160,.06); overflow: hidden;
}
.lp-code-bar { display: flex; align-items: center; gap: 1rem; padding: 0 .9rem; background: #161b22; border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-code-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.lp-code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #30363d; }
.lp-tabs { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs [role=tab] {
  min-height: 44px; padding: 0 .8rem; background: none; border: 0; border-bottom: 2px solid transparent;
  color: #8b949e; font: 600 .85rem var(--font-display); cursor: pointer; white-space: nowrap;
}
.lp-tabs [role=tab]:hover { color: #e6edf3; }
.lp-tabs [role=tab][aria-selected="true"] { color: #fff; border-bottom-color: var(--brand-500); }
.lp-code pre {
  margin: 0; padding: 1.15rem 1.25rem; overflow-x: auto; scrollbar-width: thin;
  font: 400 .82rem/1.75 var(--font-mono); color: #e6edf3; white-space: pre; tab-size: 2;
}
.lp-code-body { min-height: 12.5rem; }
.lp-code-resp { border-top: 1px dashed rgba(255,255,255,.12); background: rgba(255,255,255,.015); }
.lp-code-resp pre { padding-top: .25rem; color: #c9d1d9; }
.lp-code-label { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.25rem 0; font: 600 .75rem var(--font-display); color: #8b949e; text-transform: uppercase; letter-spacing: .08em; }
.lp .lp-code-label { color: #8b949e; }
.lp-status { padding: .15rem .5rem; border-radius: 999px; background: rgba(0,205,160,.15); color: var(--brand-300); letter-spacing: .02em; }
.t-c { color: #8b949e; } .t-s { color: #a7f3d0; } .t-k { color: #c4b5fd; } .t-n { color: #fcd34d; } .t-p { color: #e6edf3; }

@media (max-width: 960px) {
  .lp-hero { padding: 3rem 0 3.5rem; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 767.98px) {
  .lp-hero h1 { margin-top: 1.1rem; }
  .lp-hero .lp-lead { font-size: 1.02rem; }
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-code-dots { display: none; }
  .lp-code pre { font-size: .76rem; padding: 1rem; }
  .lp-code-label { padding-left: 1rem; }
  .lp-code-body { min-height: 0; }
}

/* ── Números e cobertura ─────────────────────────────────────────── */
.lp-numbers { border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lp-num { padding: 1.9rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.lp-num:first-child { border-left: 0; }
.lp-num strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-num span { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 767.98px) {
  .lp-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-num { padding: 1.25rem .5rem; border-left: 0; border-top: 1px solid var(--line); }
  .lp-num:nth-child(-n+2) { border-top: 0; }
  .lp-num:nth-child(even) { border-left: 1px solid var(--line); }
}

.lp-cover { padding: 2.5rem 0 1rem; text-align: center; }
.lp-cover-title { color: var(--muted) !important; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.lp-cover-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: .5rem; }
.lp-cover-list li { padding: .45rem .95rem; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }

/* ── Passos, usos, recursos ──────────────────────────────────────── */
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.lp-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-1); }
.lp-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 1rem; background: var(--brand-100); color: var(--brand-800); font-weight: 800; }
.lp-step p { font-size: .95rem; }

.lp-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.lp-use { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.lp-use p { font-size: .94rem; }
.lp-use .lp-use-case { margin-top: auto; padding-top: 1rem; font-size: .86rem; color: var(--muted); }
.icon-chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: .8rem; background: var(--brand-100); color: var(--brand-700); font-size: 1.05rem; flex-shrink: 0; margin-bottom: 1rem; }

.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.lp-feature { display: flex; gap: .9rem; }
.lp-feature > i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: .7rem; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.lp-feature h3 { font-size: 1rem; }
.lp-feature p { font-size: .92rem; color: var(--muted); }
.lp-feature code, .lp-step code { white-space: nowrap; }

@media (max-width: 1060px) {
  .lp-uses, .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .lp-steps, .lp-uses, .lp-features { grid-template-columns: minmax(0, 1fr); }
}

/* ── MCP (seção escura) ──────────────────────────────────────────── */
.lp-sec-dark { background: linear-gradient(160deg, #04110e 0%, #0a1f19 100%); }
.lp-sec-dark h2 { color: #fff; }
.lp-sec-dark .lp-sec-lead, .lp-sec-dark p { color: #cbd5e1; }
.lp-sec-dark a:not(.btn) { color: var(--brand-300); }
.lp-sec-dark code { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: var(--brand-200); }
.lp-mcp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; }
.lp-checks { list-style: none; margin-top: 1.5rem; display: grid; gap: .6rem; }
.lp-checks li { position: relative; padding-left: 1.75rem; color: #e2e8f0; }
.lp-checks li::before { content: '\f00c'; font: 900 .85rem 'Font Awesome 6 Free'; position: absolute; left: 0; top: .2rem; color: var(--brand-500); }
.lp-checks-ink li { color: var(--ink-2); }
.lp-checks-ink li::before { color: var(--brand-600); }
.lp-flow { list-style: none; display: grid; gap: 1rem; position: relative; }
.lp-flow::before { content: ''; position: absolute; left: calc(1.25rem + 21px); top: 2rem; bottom: 2rem; width: 2px; background: linear-gradient(var(--brand-500), var(--violet-500)); opacity: .45; }
.lp-flow li { position: relative; display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.lp-flow .icon-chip { margin: 0; background: #0f2a22; color: var(--brand-300); border: 1px solid rgba(0,205,160,.3); }
.lp-flow div { min-width: 0; }
.lp-flow strong { display: block; color: #fff; }
.lp-flow span { color: #a7b4c3; font-size: .9rem; }
@media (max-width: 960px) { .lp-mcp-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }

/* ── Preços e calculadora ────────────────────────────────────────── */
.lp-pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.5rem; align-items: start; }
.lp-price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-2); }
.lp-price-tag { color: var(--muted) !important; font-size: .95rem; }
.lp-price-tag span { display: block; font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 .5rem; font-size: .93rem; }
.lp-price-table th, .lp-price-table td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lp-price-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.lp-price-table tbody th { font-weight: 500; color: var(--ink-2); }
.lp-price-table td { white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.lp-price-table thead th:not(:first-child) { text-align: right; }
.lp-price-card .lp-checks { margin: 1.25rem 0 1.75rem; }

.lp-calc { background: var(--hero-bg); color: #fff; border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1rem; }
.lp-calc h3 { color: #fff; font-size: 1.15rem; }
.lp-field { display: grid; gap: .35rem; }
.lp-field span { font-size: .88rem; color: #cbd5e1; font-weight: 600; }
.lp-field input {
  width: 100%; min-height: 48px; padding: .6rem .9rem; border-radius: .7rem; font: 600 16px var(--font-display);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: #fff; font-variant-numeric: tabular-nums;
}
.lp-field input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(0,205,160,.3); }
.lp-calc-result { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: .35rem; }
.lp-calc-result p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: #cbd5e1; }
.lp-calc-result strong { color: #fff; font-variant-numeric: tabular-nums; }
.lp-calc-total strong { font-size: 1.85rem; letter-spacing: -.02em; color: var(--brand-300); }
.lp .lp-calc-note { font-size: .82rem; color: #a7b4c3; }
@media (max-width: 900px) { .lp-pricing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .lp-price-card, .lp-calc { padding: 1.4rem; }
  .lp-price-table th, .lp-price-table td { padding: .7rem .35rem; }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.lp-faq-wrap { max-width: 880px; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.04rem; color: var(--ink);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '\2b'; font: 900 .9rem 'Font Awesome 6 Free'; color: var(--brand-600); transition: transform .2s; flex-shrink: 0; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 0 1.25rem; max-width: 70ch; color: var(--ink-2); line-height: 1.7; }

/* ── CTA final ───────────────────────────────────────────────────── */
.lp-final { background: var(--hero-bg); padding: 5rem 0; text-align: center; }
.lp .lp-final h2 { color: #fff; max-width: 720px; margin: 0 auto; }
.lp .lp-final p { color: #cbd5e1; margin-top: .9rem; font-size: 1.08rem; }
@media (max-width: 767.98px) { .lp-final { padding: 3.5rem 0; } }

/* ── Documentação (/docs) ────────────────────────────────────────── */
.docs-head { background: var(--canvas); border-bottom: 1px solid var(--line); }
.docs-head-inner { max-width: var(--wrap); margin: 0 auto; padding: 2.75rem var(--gutter) 2.25rem; }
.crumbs { display: flex; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs { align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin: -.75rem 0; text-decoration: none; font-weight: 600; }
.docs-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); max-width: 20ch; }
.docs-head .lead { margin-top: .9rem; max-width: 68ch; color: var(--ink-2); font-size: 1.05rem; }
.docs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.docs-facts > div { min-width: 0; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; }
.docs-facts dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.docs-facts dd { margin-top: .2rem; }
.docs-facts code { font-size: .86rem; color: var(--ink); overflow-wrap: anywhere; }
.docs-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.docs-highlights li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); font-size: .86rem; font-weight: 600; }
.docs-head-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.docs-toc-btn { display: none; }
.docs-page .docs-wrapper { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter) 5rem; }
.docs-page .docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: start; }
.docs-page .docs-nav {
  position: sticky; top: calc(var(--nav-h) + 1rem); height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: .75rem .5rem;
}
.docs-page .nav-group { display: flex; flex-direction: column; gap: 1px; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); flex-shrink: 0; }
.docs-page .nav-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.docs-page .nav-group-title { padding: .25rem .65rem .35rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.docs-page .docs-nav a {
  display: flex; align-items: center; min-height: 34px; padding: .3rem .65rem; border-radius: .5rem;
  color: var(--ink-2); font-size: .87rem; text-decoration: none; flex-shrink: 0;
}
.docs-page .docs-nav a:hover { background: var(--canvas); color: var(--ink); }
.docs-page .docs-nav a.active { background: var(--brand-50); color: var(--brand-800); font-weight: 650; }
.docs-page .docs-content { min-width: 0; }
.docs-page [id^="ep-"] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.docs-page .docs-section-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 3rem 0 .75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.docs-page .docs-section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.docs-page .docs-section-sub { font-size: .98rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 1.5rem; font-weight: 400; }
.docs-page .docs-content strong { color: var(--ink); }
.docs-page .docs-content p, .docs-page .docs-content li { overflow-wrap: anywhere; }
.docs-page .docs-content code { font-size: .86em; background: #eef2f6; border-radius: .35rem; padding: .08em .35em; color: var(--brand-800); overflow-wrap: anywhere; }

.docs-page .ep-block { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow-1); }
.docs-page .ep-block:hover { border-color: var(--brand-200); }
.docs-page .ep-header { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .85rem 1.25rem; background: var(--canvas); border-bottom: 1px solid var(--line); }
.docs-page .ep-method { font: 700 .72rem var(--font-mono); padding: .25rem .55rem; border-radius: .4rem; letter-spacing: .04em; border: 1px solid transparent; }
.docs-page .m-get { background: var(--brand-100); color: var(--brand-800); border-color: var(--brand-200); }
.docs-page .m-post { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.docs-page .m-put { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.docs-page .m-delete { background: #fee4e2; color: var(--danger); border-color: #fecdca; }
.docs-page .ep-path { flex: 1 1 220px; min-width: 0; font: 600 .9rem var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.docs-page .ep-badge { font: 600 .72rem var(--font-mono); padding: .2rem .55rem; border-radius: .4rem; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.docs-page .ep-body { padding: 1.25rem; }
.docs-page .ep-body > p { font-size: .95rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 1rem; font-weight: 400; }
.docs-page .ep-divider { height: 1px; background: var(--line); margin: 1.1rem 0; }
.docs-page .ep-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; font-family: var(--font-display); }

.docs-page .code-wrap { position: relative; }
.docs-page pre {
  background: var(--code-bg); border: 0; border-radius: .8rem; padding: 1rem 1.15rem; padding-right: 5.5rem;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #30363d transparent;
  font: 400 .8rem/1.75 var(--font-mono); color: #e6edf3; margin: 0;
}
.docs-page pre .k { color: #79c0ff; } .docs-page pre .s { color: #a7f3d0; } .docs-page pre .v { color: #fcd34d; }
.docs-page pre .c { color: #8b949e; } .docs-page pre .n { color: #f0abfc; }
.docs-page pre [style*="--accent2"] { color: #5eead4 !important; }
.docs-page pre [style*="--gold"], .docs-page pre [style*="--accent)"] { color: var(--violet-300) !important; }
.docs-page pre code { background: none; color: inherit; padding: 0; }
.code-copy {
  position: absolute; top: .5rem; right: .5rem; min-height: 32px; padding: 0 .7rem; border-radius: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e6edf3;
  font: 600 .76rem var(--font-display); cursor: pointer;
}
.code-copy:hover { background: rgba(255,255,255,.16); }

.docs-page .params-table, .docs-page .mcp-tool-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.25rem; }
.docs-page .params-table th, .docs-page .mcp-tool-table th { padding: .55rem .75rem; text-align: left; font: 700 .72rem var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.docs-page .params-table td, .docs-page .mcp-tool-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; font-weight: 400; }
.docs-page .params-table tr:last-child td, .docs-page .mcp-tool-table tr:last-child td { border-bottom: 0; }
.docs-page .params-table td:first-child, .docs-page .mcp-tool-table td:first-child { font: 600 .84rem var(--font-mono); color: var(--brand-800); }
.docs-page .mcp-tool-table td:first-child, .docs-page .mcp-tool-table td:nth-child(2) { white-space: nowrap; }
.docs-page .mcp-tool-table td:nth-child(2) { font: 500 .8rem var(--font-mono); color: var(--ink-2); }
.docs-page .params-table .req { color: var(--danger); font: 700 .76rem var(--font-mono); }
.docs-page .params-table .opt { color: var(--muted); font: 500 .76rem var(--font-mono); }
.docs-page .mcp-cat-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-700); margin: 1.5rem 0 .5rem; font-family: var(--font-display); }
.docs-page .mcp-cat-title:first-of-type { margin-top: 0; }
.docs-page .mcp-cost-badge { display: inline-block; margin-left: .5rem; padding: .15rem .55rem; border-radius: 999px; font: 700 .72rem var(--font-display); vertical-align: middle; color: var(--violet-700); background: #f1eefe; border: 1px solid #ddd6fe; }
.docs-page .cat-params-note { padding: .8rem 1rem; margin-bottom: 1rem; border-radius: .7rem; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-2); font: 400 .9rem/1.6 var(--font-display); }
.docs-page .cat-params-note strong { color: var(--brand-800); }

@media (max-width: 960px) {
  .docs-page .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-page .docs-nav { display: none; }
  .docs-toc-btn {
    position: sticky; top: var(--nav-h); z-index: 150; width: 100%;
    display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: 0 var(--gutter);
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border: 0; border-bottom: 1px solid var(--line);
    color: var(--ink); font: 650 .95rem var(--font-display); cursor: pointer;
  }
  .docs-toc-btn i { color: var(--brand-600); }
  .docs-page .docs-nav.open {
    display: flex; position: fixed; z-index: 160; left: 0; right: 0; bottom: 0;
    top: calc(var(--nav-h) + 50px); height: auto; border-radius: 0; border-width: 1px 0 0;
    padding: .75rem var(--gutter) 2rem; box-shadow: var(--shadow-2);
  }
  .docs-page .docs-nav.open a { min-height: 44px; font-size: .95rem; }
  body.toc-open { overflow: hidden; }
  .docs-page [id^="ep-"] { scroll-margin-top: calc(var(--nav-h) + 62px); }
}
@media (max-width: 767.98px) {
  .docs-head-inner { padding-top: 2rem; padding-bottom: 1.75rem; }
  .docs-page .docs-wrapper { padding-top: 1.75rem; }
  .docs-page .ep-body { padding: 1rem; }
  .docs-page .ep-header { padding: .8rem 1rem; }
  .docs-page pre { font-size: .76rem; padding: .9rem; padding-right: .9rem; padding-top: 2.6rem; }
  .code-copy { min-height: 44px; top: .25rem; right: .25rem; }
  .docs-head-actions .btn { flex: 1 1 100%; }
}

/* Tabelas da doc viram cards no celular (rótulo de cada célula em data-label) */
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .docs-page .table-stack td { padding: .2rem 0; border: 0; white-space: normal !important; }
  .table-stack td::before { content: attr(data-label); display: block; font: 700 .7rem var(--font-display); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .1rem; }
  .table-stack td.ts-titulo::before, .table-stack td[data-label=""]::before { content: none; }
  .docs-page .table-stack td.ts-titulo { font-size: .95rem; padding-bottom: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pub *, .pub *::before, .pub *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Listagens e documentos (Etapa 6) ────────────────────────────── */
/* Paginação (macro templates/_pagination.html): mesma linguagem em todas as listagens públicas */
.pub .pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding: 2rem 0 0; }
.pub .pagination-info { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pub .pagination-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.pub .pagination-links a, .pub .pagination-links span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 .7rem;
  border-radius: .6rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: .9rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
.pub .pagination-links a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.pub .pagination-links span.current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* Empty state de listagens */
.pub .empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.pub .empty-state i { font-size: 2.2rem; margin-bottom: 1rem; color: var(--brand-500); }

/* Formulários de filtro: campos com altura de toque e fonte 16px no celular */

@media (max-width: 767.98px) {
  .pub input:not([type="checkbox"]):not([type="radio"]), .pub select, .pub textarea { font-size: 16px; }
        .pub .pagination-links { margin-left: 0; width: 100%; justify-content: center; }
  .pub .pagination-links a, .pub .pagination-links span { min-width: 44px; min-height: 44px; }
  .pub .pagination-info { width: 100%; text-align: center; }
  /* links de navegação de documento e índice: área de toque mínima */
  .pub .toc ol li a, .pub .back-link, .pub .crumbs a { min-height: 44px; align-items: center; }
}

