/* ==========================================================================
   iLAB4 Tecnologia — estilos do site (mobile-first)
   ========================================================================== */

:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --blue: #1f5c8b;
  --sky: #3a9ad9;
  --sky-soft: #e8f3fb;
  --amber: #f2a900;
  --amber-soft: #fff6dc;
  --green: #1fae5b;
  --wa: #25d366;
  --ink: #0f1b2a;
  --text: #3d4b5c;
  --muted: #6b7a8c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #c9d6e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--muted); }
.section-dark .section-head p { color: #a9bccf; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--amber); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--text); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; cursor: pointer; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px rgba(242, 169, 0, .35); }
.btn-primary:hover { color: var(--ink); background: #ffb914; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-wa:hover { color: #fff; background: #1ebe5a; }
.btn-outline { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-direction: column; gap: 12px; }

/* Faixa de alerta ---------------------------------------------------------- */
.topbar { background: var(--amber); color: var(--ink); font-size: .88rem; font-weight: 600; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; text-align: center; flex-wrap: wrap; }
.topbar a { color: var(--ink); text-decoration: underline; }
.topbar .container { flex-wrap: nowrap; gap: 6px; font-size: .8rem; }
.hide-sm { display: none; }
@media (min-width: 768px) {
  .hide-sm { display: inline; }
  .show-sm { display: none; }
  .topbar .container { font-size: .88rem; gap: 8px; }
}

/* Header ------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { height: 38px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; margin-right: -8px; }
.nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); height: 100dvh; background: #fff; z-index: 200;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; padding: 20px; overflow-y: auto;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
.nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nav-head img { height: 32px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a { display: flex; align-items: center; min-height: 48px; padding: 8px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--blue); }
.nav .nav-cta { margin-top: 20px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11,31,51,.45); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
body.nav-lock { overflow: hidden; }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #c9d6e3;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(58,154,217,.35), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(242,169,0,.18), transparent 60%), var(--navy);
  padding: 48px 0 56px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 40px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: #c9d6e3; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(242,169,0,.14); border: 1px solid rgba(242,169,0,.4); color: #ffd56b; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.hero-checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 8px; }
.hero-checks li { display: flex; gap: 10px; align-items: flex-start; }
.hero-checks i { color: var(--green); margin-top: 5px; }
.page-hero { padding: 40px 0 48px; }
.page-hero .container { display: block; }
.page-hero .lead { max-width: 760px; }
.page-hero.hero-lead .container { display: grid; gap: 32px; align-items: start; }
.hero-form { color: var(--text); scroll-margin-top: calc(var(--header-h) + 16px); }
.hero-form:hover { transform: none; }
.hero-form h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: .3em; }
@media (min-width: 1024px) { .page-hero.hero-lead .container { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }

.breadcrumb { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: #8ea4ba; }
.breadcrumb a { color: #c9d6e3; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #5d7690; }

/* Contagem regressiva */

/* Mockup (painel de emissão + chat) */
.mockup { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text); font-size: .9rem; }
.mockup-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #eef3f8; border-bottom: 1px solid var(--line); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dde7; display: block; }
.mockup-bar span { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mockup-body { padding: 16px; display: grid; gap: 10px; }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.bubble.me { justify-self: end; background: #dcf8c6; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--bg-alt); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.nf-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: grid; gap: 4px; font-size: .84rem; }
.nf-card .row { display: flex; justify-content: space-between; gap: 10px; }
.nf-card .ok { color: var(--green); font-weight: 700; }
.nf-doc { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; font-size: .8rem; }
.nf-doc-preview { padding: 10px 12px; display: grid; gap: 3px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(0deg, #fff 0 18px, #f6f8fb 18px 19px); }
.nf-doc-preview .row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.nf-doc-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-alt); }
.nf-doc-file i { font-size: 1.5rem; color: #d93025; }
.nf-doc-file span { display: grid; color: var(--muted); font-size: .74rem; }
.nf-doc-file strong { color: var(--text); font-size: .82rem; }

/* Chat animado do hero: o espaço de cada balão fica reservado (sem pulo de layout) */
.chat.is-anim > .bubble { position: relative; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.chat.is-anim > .bubble.show { opacity: 1; transform: none; }
.chat.is-anim > .bubble.typing { opacity: 1; transform: none; visibility: hidden; }
.chat.is-anim > .bubble.typing::before {
  content: ""; visibility: visible; position: absolute; left: 0; top: 0; width: 56px; height: 32px; border-radius: 16px 16px 16px 4px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, var(--muted) 3px, transparent 3.5px) 12px 50% / 10px 10px no-repeat,
              radial-gradient(circle, var(--muted) 3px, transparent 3.5px) 23px 50% / 10px 10px no-repeat,
              radial-gradient(circle, var(--muted) 3px, transparent 3.5px) 34px 50% / 10px 10px no-repeat, var(--bg-alt);
  animation: digitando 1s ease-in-out infinite;
}
@keyframes digitando { 50% { opacity: .45; } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--sky-soft); color: var(--blue); }
.tag-amber { background: var(--amber-soft); color: #8a6100; }
.tag-green { background: #e3f7ec; color: #12763c; }

/* Infográfico de fluxo (página de APIs): vertical no celular, horizontal no desktop */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.pipeline li { position: relative; padding: 0 0 32px 76px; }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: linear-gradient(var(--sky), rgba(58,154,217,.15)); }
.pipe-icon { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--navy-2); border: 2px solid rgba(124,195,240,.45); color: #7cc3f0; z-index: 1; }
.pipe-icon.amber { border-color: rgba(242,169,0,.6); color: var(--amber); }
.pipe-step { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 2px; }
.pipeline h3 { font-size: 1.05rem; margin-bottom: .35em; }
.pipeline p { margin: 0 0 10px; font-size: .92rem; color: #b3c4d6; }
.pipe-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: #c9d6e3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pipe-chip i { color: var(--green); }
.pipeline-log { margin-top: 32px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border: 1px dashed rgba(124,195,240,.4); border-radius: var(--radius); background: rgba(58,154,217,.06); }
.pipeline-log i { font-size: 1.4rem; color: #7cc3f0; margin-top: 2px; }
.pipeline-log p { margin: 0; color: #c9d6e3; }
.pipeline-log strong { color: #fff; }
@media (min-width: 1024px) {
  .pipeline { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .pipeline li { padding: 76px 0 0; }
  .pipeline li:not(:last-child)::after { left: 64px; right: -16px; top: 27px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--sky), rgba(58,154,217,.25)); }
  /* pacote de dados percorrendo o fluxo */
  .pipeline::before { content: ""; position: absolute; top: 23px; left: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); z-index: 2; animation: pacote 5s ease-in-out infinite; }
}
@keyframes pacote { 0% { left: 28px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 38px); opacity: 0; } }

/* Faixa de confiança */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.trust i { color: var(--blue); font-size: 1.1rem; width: 22px; text-align: center; }

/* Grids e cards ------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 2px rgba(11,31,51,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcea; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text); }
.card .more { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem;
  background: var(--sky-soft); color: var(--blue); margin-bottom: 16px; flex-shrink: 0;
}
.icon.amber { background: var(--amber-soft); color: #b07b00; }
.icon.green { background: #e3f7ec; color: #12763c; }
.card-featured { border: 2px solid var(--amber); position: relative; }
.card-featured .ribbon { position: absolute; top: -12px; left: 20px; background: var(--amber); color: var(--ink); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.section-dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.08); color: #c9d6e3; }
.section-dark .card p { color: #b3c4d6; }
.section-dark .card:hover { border-color: rgba(242,169,0,.4); }
.section-dark .icon { background: rgba(58,154,217,.15); color: #7cc3f0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--green); margin-top: 2px; flex-shrink: 0; }
.checklist.x li::before { content: "\f00d"; color: #d64545; }

/* Split (texto + mídia) */
.split { display: grid; gap: 32px; align-items: center; }

/* Etapas */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--amber); font-weight: 800; display: grid; place-items: center; font-family: var(--font-head);
}
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { margin: 0; font-size: .95rem; }

/* Agentes ------------------------------------------------------------------ */
/* --ac: cor de destaque de cada agente (config/site.php) */
.agent-index { display: grid; gap: 10px; margin-bottom: 32px; }
.agent-index a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--ac); border-radius: var(--radius); color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.agent-index a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.agent-index .icon { width: 40px; height: 40px; font-size: 1.05rem; margin: 0; border-radius: 10px; }
.agent-index strong { display: block; font-size: .95rem; line-height: 1.25; }
.agent-index small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
@media (min-width: 640px) { .agent-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .agent-index { grid-template-columns: repeat(3, 1fr); } }

.agent .icon, .agent-index .icon { background: color-mix(in srgb, var(--ac) 12%, #fff); color: var(--ac); }
.agent { border-top: 5px solid var(--ac); scroll-margin-top: calc(var(--header-h) + 16px); }
.agent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.agent-head .icon { margin: 0; }
.agent-head h3 { margin: 0; font-size: 1.2rem; }
.agent-num { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.agent-lead { font-size: 1.02rem; font-weight: 500; color: var(--ink) !important; margin: 0 0 18px; }
.agent h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.agent-pain, .agent-guard { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; }
.agent-pain p, .agent-guard p { margin: 0; color: inherit !important; }
.agent-pain strong, .agent-guard strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.agent-pain i, .agent-guard i { margin-top: 3px; }
.agent-pain { background: #fff4f4; color: #6b2c2c; }
.agent-pain i { color: #d64545; }
.agent-guard { background: var(--bg-alt); color: var(--text); border: 1px dashed #cfdcea; }
.agent-guard i { color: var(--blue); }

/* passos numerados ligados por uma linha */
.agent-flow { list-style: none; counter-reset: f; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; font-size: .93rem; }
.agent-flow li { counter-increment: f; position: relative; padding-left: 40px; min-height: 28px; }
.agent-flow li::before {
  content: counter(f); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ac); color: #fff; font-weight: 800; font-size: .82rem; display: grid; place-items: center; font-family: var(--font-head);
}
.agent-flow li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: -14px; width: 2px; background: color-mix(in srgb, var(--ac) 25%, #fff); }

.agent-meta { display: grid; gap: 14px; margin: 0 0 20px; font-size: .88rem; }
.agent-meta dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.agent-meta dt i { color: var(--ac); width: 16px; }
.agent-meta dd { margin: 0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text); }
.agent-cta { margin-top: auto; align-self: flex-start; gap: 8px; }

/* Depoimentos */
.testimonial { position: relative; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1rem; color: var(--ink); }
.testimonial .stars { color: var(--amber); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.testimonial figcaption strong { display: block; color: var(--ink); line-height: 1.3; }
.testimonial figcaption span { font-size: .85rem; color: var(--muted); line-height: 1.3; display: block; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }

/* Open source */
.repo { gap: 4px; }
.repo .repo-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.repo .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.repo .links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }

/* FAQ: título fixo à esquerda no desktop, perguntas numeradas à direita */
.faq-layout { display: grid; gap: 28px; }
.faq-intro h2 { margin: 6px 0 12px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.faq-intro p { color: var(--muted); margin-bottom: 20px; }
.faq { display: grid; gap: 12px; counter-reset: faq; align-content: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details:hover { border-color: #c6d6e6; }
.faq details[open] { border-color: rgba(58,154,217,.5); box-shadow: var(--shadow); }
.faq summary { counter-increment: faq; list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 64px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq, decimal-leading-zero); flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-size: .85rem; color: var(--blue); background: var(--sky-soft); transition: background .2s ease, color .2s ease; }
.faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; flex: none; margin-left: auto; font-size: .8rem; color: var(--blue); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); transition: transform .25s ease; }
.faq details[open] summary::before { background: var(--blue); color: #fff; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px 70px; color: var(--text); line-height: 1.65; }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 559px) { .faq .answer { padding-left: 18px; } }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Páginas legais: índice fixo à esquerda no desktop */
.legal-layout { display: grid; gap: 32px; }
.legal-toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.legal-toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--blue); }
.legal-layout h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Resumo em cards (fatos) */
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fact .fact-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.fact p { margin: 0; font-size: .95rem; }
.icon.red { background: #fde8e8; color: #c53030; }

/* Tabela comparativa compacta */
table.compare { min-width: 0; }
table.compare td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* CTA final */
.cta-box {
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #d7e3ef; border-radius: var(--radius-lg);
  padding: 36px 22px; text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { color: #fff; }
.cta-box .btn-group { margin-top: 24px; }

/* Tabela comparativa */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }

/* Formulário */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .9rem; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cdd8e4; border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,92,139,.15); }
.alert { padding: 14px 16px; border-radius: 12px; background: #e3f7ec; color: #12763c; font-weight: 600; margin-bottom: 16px; }
.alert-erro { background: #fdecea; color: #a4231a; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; color: var(--ink); }
.contact-list i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); }

/* Blog --------------------------------------------------------------------- */
.post-card { padding: 0; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1rem; }
.post-card h3 a { color: var(--ink); }
.post-card time { font-size: .82rem; color: var(--muted); margin-top: auto; }
.article { font-size: 1.06rem; color: var(--ink); }
.article img { border-radius: var(--radius); margin: 1.5em 0; height: auto !important; }
.article h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.article pre { background: var(--navy); color: #d6e2ee; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.article a { text-decoration: underline; }
.article table { min-width: 0; }
.article iframe { max-width: 100%; }
.article-cover { position: relative; z-index: 2; border-radius: var(--radius-lg); overflow: hidden; margin: -32px 0 32px; box-shadow: var(--shadow-lg); background: var(--bg-alt); }
.article-cover img { width: 100%; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .9rem; color: #a9bccf; }
.inline-cta { margin: 40px 0; padding: 24px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid #f5d98b; }
.inline-cta h3 { margin-bottom: .3em; }

/* Footer ------------------------------------------------------------------- */
.footer { background: #071523; color: #93a7bb; padding: 56px 0 24px; font-size: .93rem; }
.footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer a { color: #b9c9d9; display: inline-flex; align-items: center; min-height: 40px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .85rem; }
.footer .brand img { height: 36px; margin-bottom: 14px; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
.wa-float:hover { color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* Cookies */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; font-size: .88rem; display: none; gap: 12px; flex-direction: column; border: 1px solid var(--line); }
.cookie.show { display: flex; }
.cookie { gap: 10px; padding: 14px; font-size: .82rem; line-height: 1.45; }
.cookie .btn-group { flex-direction: row; gap: 8px; }
.cookie .btn { flex: 1; min-height: 44px; padding: 8px 10px; font-size: .86rem; }
.topbar a { white-space: nowrap; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .wa-float, .pipeline::before { animation: none; }
  .pipeline::before { display: none; }
  * { transition: none !important; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .btn-group { flex-direction: row; flex-wrap: wrap; }
  .cta-box .btn-group { justify-content: center; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .scroller { grid-auto-columns: 60%; }
  .cookie { left: auto; max-width: 420px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding: 88px 0; }
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .cta-box { padding: 56px 40px; }
  .hero { padding: 72px 0 80px; }
  .page-hero { padding: 64px 0 72px; }
  .scroller { grid-auto-columns: calc((100% - 32px) / 3); }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { height: 44px; }
  .nav-toggle, .nav-head, .nav-backdrop { display: none; }
  .nav {
    position: static; transform: none; visibility: visible; width: auto; height: auto; padding: 0; box-shadow: none; background: transparent;
    flex-direction: row; align-items: center; gap: 18px; overflow: visible;
  }
  .nav ul { display: flex; gap: 2px; }
  .nav li a { border: 0; padding: 8px 12px; min-height: 44px; font-size: .94rem; border-radius: 10px; }
  .nav li a:hover { background: var(--bg-alt); }
  .nav .nav-cta { margin: 0; }
  .nav .nav-cta .btn { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
  .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .page-hero .container { display: block; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
  .trust ul { grid-template-columns: repeat(6, 1fr); }
  .trust li { flex-direction: column; text-align: center; gap: 6px; font-size: .82rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .steps.horizontal { grid-template-columns: repeat(4, 1fr); }
  .steps.horizontal li { padding: 72px 20px 20px; }
}
