:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --muted: #5b6576;
  --text: #0b1020;
  --brand: #0a84ff;
  --brand-2: #5eb2ff;
  --ok: #2ecc71;
  --ring: 0 0 0 4px rgba(10, 132, 255, .25);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(10, 132, 255, .08), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(94, 178, 255, .08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04)
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.brand img {
  height: 32px;
  width: auto
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: linear-gradient(#fff, #f6f7fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 1px rgba(0, 0, 0, .04);
  font-weight: 600;
  color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px rgba(0, 0, 0, .08)
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, .95)
}

.btn.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1px solid rgba(10, 132, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(10, 132, 255, .25)
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 32px;
}

.hero>div {
  max-width: 560px;
}

@media (min-width:1000px) {
  .hero {
    padding-bottom: 12px;
  }

  /* antes 32px */
}

.hero+section {
  margin-top: 12px;
}

/* aproxima próximo bloco */

@media (min-width:1000px) {
  .hero {
    align-items: start;
  }

  .image-stack .img-left {
    top: -2%;
  }

  .image-stack .img-right {
    top: 24%;
  }
}

.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.banner {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08)
}

.banner img {
  display: block;
  width: 100%;
  height: auto
}

section {
  margin: 28px 0;
  position: relative;
}

section.alt {
  background: linear-gradient(180deg, rgba(10, 132, 255, .04), rgba(94, 178, 255, .04));
  border: 1px solid rgba(0, 0, 0, .04);
  padding: 34px 30px 40px;
  border-radius: 26px;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, .04), 0 2px 6px -2px rgba(0, 0, 0, .04);
}

section.alt:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(800px 400px at 15% 10%, rgba(10, 132, 255, .08), transparent 70%),
    radial-gradient(600px 380px at 85% 20%, rgba(94, 178, 255, .08), transparent 65%);
  mix-blend-mode: normal;
  opacity: .9;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .7s cubic-bezier(.4, .85, .35, 1), transform .7s cubic-bezier(.4, .85, .35, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal:nth-of-type(2n) {
  transition-delay: .05s;
}

.reveal:nth-of-type(3n) {
  transition-delay: .1s;
}

@media (prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05)
}

.card h3 {
  margin: 2px 0 10px
}

.card p {
  margin: 0;
  color: var(--muted)
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0b1020;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px
}

.kpi {
  background: linear-gradient(180deg, rgba(46, 204, 113, .12), rgba(46, 204, 113, .06));
  border: 1px solid rgba(46, 204, 113, .25);
  border-radius: 16px;
  padding: 16px;
  text-align: center
}

.kpi .v {
  font-size: 30px;
  font-weight: 800
}

.kpi .l {
  color: var(--muted)
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

footer {
  margin-top: 34px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 20px 0;
  color: #4a5565;
  font-size: 14px
}

@media (max-width: 920px) {
  .hero {
    padding: 26px 0 30px;
    grid-template-columns: 1fr
  }

  .cards {
    grid-template-columns: 1fr
  }

  .kpis {
    grid-template-columns: 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  nav {
    justify-content: flex-end
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  h1#hero-title {
    font-size: clamp(1.9rem, 5.8vw, 2.3rem);
    line-height: 1.15;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 24px;
  }

  .image-stack {
    width: clamp(280px, 92vw, 440px);
    margin-top: 26px;
    /* novo espaçamento para descer as imagens no mobile */
  }

  /* ocupa mais largura disponível */
  .image-stack img {
    width: clamp(58%, 52vw, 70%);
  }

  /* cresce proporcionalmente */
  .image-stack .img-right {
    top: 22%;
  }
}

@media (max-width: 520px) {
  .btn {
    padding: 8px 10px;
    font-size: 13px
  }

  .top {
    gap: 8px
  }

  .hero {
    padding: 12px 0 22px;
  }

  .hero h1 {
    font-size: clamp(26px, 7vw, 34px);
  }
}

/* Stack de duas imagens sobrepostas (prints) – versão fluida */
.image-stack {
  position: relative;
  width: clamp(260px, 50vw, 560px);
  aspect-ratio: 520/350;
  max-width: 100%;
  margin: 0;
}

.image-stack img {
  position: absolute;
  width: clamp(52%, 30vw, 60%);
  border-radius: 20px;
  box-shadow: 0 6px 18px -2px rgba(0, 0, 0, .18);
  background: #0b0d12 center/cover no-repeat;
  display: block;
  opacity: 0;
}

.image-stack .img-left {
  left: 0;
  top: -6%;
  z-index: 2;
  animation: inLeft .8s .05s both cubic-bezier(.4, .85, .35, 1);
}

/* top em % escala com o container */
.image-stack .img-right {
  right: 0;
  top: 18%;
  z-index: 1;
  animation: inRight .8s .15s both cubic-bezier(.4, .85, .35, 1);
}

@keyframes inLeft {
  0% {
    transform: translateX(-60px) rotate(-5deg) scale(.9);
    opacity: 0;
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: translateX(0) rotate(-3deg) scale(1);
    opacity: 1;
  }
}

@keyframes inRight {
  0% {
    transform: translateX(60px) rotate(5deg) scale(.9);
    opacity: 0;
  }

  60% {
    opacity: 1;
  }

  100% {
    transform: translateX(0) rotate(3deg) scale(1);
    opacity: 1;
  }
}

/* Ajustes em telas grandes: aumenta leve sobreposição */
@media (min-width:1200px) {
  .image-stack .img-left {
    top: -8%;
  }

  .image-stack .img-right {
    top: 20%;
  }
}

/* Mobile: centraliza e reduz margem lateral do wrapper */
@media (max-width:680px) {
  .wrap {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  h1#hero-title {
    font-size: clamp(1.9rem, 5.8vw, 2.3rem);
    line-height: 1.15;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-stack {
    width: clamp(280px, 92vw, 440px);
    margin-top: 26px;
    /* novo espaçamento para descer as imagens no mobile */
  }

  /* ocupa mais largura disponível */
  .image-stack img {
    width: clamp(58%, 52vw, 70%);
  }

  /* cresce proporcionalmente */
  .image-stack .img-right {
    top: 22%;
  }
}

@media (prefers-reduced-motion:reduce) {
  .image-stack img {
    animation: none;
    opacity: 1;
  }
}

/* ---------------- Página de Ajuda (como-funciona) ---------------- */
.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.page-summary {
  margin: 24px 0 38px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(10, 132, 255, .25);
  background: linear-gradient(180deg, rgba(10, 132, 255, .08), rgba(94, 178, 255, .06));
  border-radius: 20px;
  box-shadow: 0 4px 18px -4px rgba(10, 132, 255, .18), 0 1px 4px -1px rgba(10, 132, 255, .25);
}

.page-summary__title {
  font-size: .78rem;
  letter-spacing: .08em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--brand);
}

.page-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 16px;
  font-size: .9rem;
}

.page-summary a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--text);
  position: relative;
}

.page-summary a:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(var(--brand), var(--brand-2));
  opacity: .6;
  transition: opacity .25s, transform .25s;
}

.page-summary a:hover:before {
  opacity: 1;
  transform: scale(1.2);
}

.docs-two-cols {
  display: grid;
}

@media (max-width:920px) {
  .docs-two-cols {
    grid-template-columns: 1fr !important;
  }
}

.toc {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: var(--card);
  border-radius: 18px;
  font-size: .85rem;
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .08);
}

.toc h4 {
  margin: 0 0 6px;
  font-size: .7rem;
  letter-spacing: .08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1.25;
  transition: background .25s, color .25s;
}

.toc a:hover {
  background: linear-gradient(90deg, rgba(10, 132, 255, .12), rgba(94, 178, 255, .10));
  color: var(--brand);
}

.flow h2 {
  margin-top: 54px;
}

.flow h2:first-of-type {
  margin-top: 0;
}

.module-block {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
  position: relative;
  overflow: hidden;
}

.module-block:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(400px 220px at 85% 15%, rgba(10, 132, 255, .08), transparent 70%);
  opacity: .6;
}

.module-block h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.module-block .demo-placeholder {
  background: repeating-linear-gradient(45deg, rgba(10, 132, 255, .08) 0 14px, rgba(94, 178, 255, .08) 14px 28px);
  border: 1px dashed rgba(10, 132, 255, .35);
  border-radius: 14px;
  padding: 22px 16px;
  font-size: .8rem;
  color: var(--muted);
}

.badge.inline {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  margin: 0 0 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(10, 132, 255, .15), rgba(94, 178, 255, .15));
  border: 1px solid rgba(10, 132, 255, .35);
  padding: 14px 16px 16px;
  border-radius: 16px;
  font-size: .92rem;
  box-shadow: 0 2px 10px -4px rgba(10, 132, 255, .35);
}

.simple-note {
  background: linear-gradient(90deg, rgba(46, 204, 113, .18), rgba(46, 204, 113, .05));
  border: 1px solid rgba(46, 204, 113, .4);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .78rem;
  display: inline-block;
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .75rem;
  background: #0b102005;
  border: 1px solid rgba(0, 0, 0, .08);
  padding: 2px 6px;
  border-radius: 6px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 10px 0 0;
  font-size: .85rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
}

.compare-table thead th {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(10, 132, 255, .15), rgba(94, 178, 255, .12));
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.compare-table tbody tr {
  background: var(--card);
}

.compare-table tbody tr:nth-child(2n) {
  background: rgba(10, 132, 255, .03);
}

.compare-table tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(10, 132, 255, .07), rgba(94, 178, 255, .05));
}

.faq {
  margin: 0 0 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--card);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .06);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:after {
  content: "+";
  font-weight: 600;
  color: var(--brand);
  margin-left: auto;
  transition: transform .3s;
}

.faq[open] summary:after {
  transform: rotate(45deg);
}

.faq p {
  margin: 8px 0 4px;
  font-size: .85rem;
  color: var(--muted);
}

.divider {
  margin: 58px 0 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 132, 255, .4), rgba(94, 178, 255, .2));
  border-radius: 1px;
}

.cta-final {
  margin: 70px 0 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(10, 132, 255, .15), rgba(94, 178, 255, .20));
  padding: 40px 30px;
  border-radius: 26px;
  border: 1px solid rgba(10, 132, 255, .35);
  box-shadow: 0 8px 30px -6px rgba(10, 132, 255, .35), 0 2px 8px -2px rgba(0, 0, 0, .15);
}

.cta-final h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.cta-final p {
  margin: 0 0 6px;
  color: var(--muted);
}

.page-hero {
  margin: 0 0 14px;
}

.page-hero h1 small {
  display: block;
  font-size: .55em;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .9;
}

/* Acessibilidade e foco */
.page-summary a:focus-visible,
.toc a:focus-visible,
.faq summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Redução responsiva */
@media (max-width:680px) {
  .page-summary {
    margin-top: 18px;
    padding: 16px 16px 18px;
  }

  .cta-final {
    padding: 34px 24px;
  }

  .module-block {
    padding: 16px 16px 18px;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 10px;
  }
}